.forum-card{
    background:#262421;
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:14px;
    transition:.2s;
}

.forum-card:hover{
    border-color:var(--chess-green);
    transform:translateY(-2px);
}

.bg-dark-input{
    background:#1e1e1e!important;
}

.bg-dark-input:focus{
    background:#151515!important;
    color:#fff!important;
    border-color:var(--chess-green)!important;
    box-shadow:none!important;
}

.modal-content{
    background:#262421!important;
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
}

.modal-header,.modal-footer{
    border-color:rgba(255,255,255,.08)!important;
}

.btn-close{
    filter:invert(1);
}

.modal-body .form-control,
.modal-body .form-select{
    background:#1e1e1e!important;
    border:1px solid rgba(255,255,255,.08)!important;
    color:#fff!important;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus{
    background:#151515!important;
    border-color:var(--chess-green)!important;
    box-shadow:none!important;
}

.foro-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.foro-avatar{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
}

.foro-header-info{
    flex:1;
}

.foro-header-info h6{
    margin:0;
    font-size:.93rem;
    font-weight:700;
}

.foro-header-info small{
    color:#9d9d9d;
    font-size:.78rem;
}

.foro-titulo{
    display:block;
    margin-bottom:6px;
    font-size:1rem;
    font-weight:700;
    color:#fff;
}

.foro-contenido{
    color:#d8d8d8;
    line-height:1.45;
    font-size:.9rem;
    margin-bottom:10px;
    white-space:pre-wrap;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:4;
}

.foro-media{
    position:relative;
    margin-bottom:8px;
    border-radius:12px;
    overflow:hidden;
    background:#181818;
}

.foro-imagen{
    width:100%;
    display:block;
    max-height:260px;
    object-fit:contain;
    background:#181818;
}

.foro-video{
    width:100%;
    max-height:260px;
    background:#000;
}

.foro-youtube{
    width:100%;
    aspect-ratio:16/9;
    border:none;
}

.foro-extra{
    position:absolute;
    right:8px;
    bottom:8px;
    background:rgba(0,0,0,.75);
    padding:4px 10px;
    border-radius:30px;
    font-size:.78rem;
    font-weight:600;
}

.foro-reacciones{
    margin:6px 0;
}

.foro-reacciones-publicacion{
    display:flex;
    align-items:center;
    gap:8px;
}

.foro-footer{
    display:flex;
    gap:14px;
    align-items:center;
    color:#bcbcbc;
    font-size:.82rem;
    padding:6px 0;
    border-top:1px solid rgba(255,255,255,.06);
}

.foro-footer span{
    display:flex;
    align-items:center;
    gap:5px;
}

.foro-comentarios{
    margin-top:6px;
    border-top:1px solid rgba(255,255,255,.06);
    padding-top:6px;
    max-height:145px;
    overflow-y:auto;
}

.foro-comentarios::-webkit-scrollbar{
    width:5px;
}

.foro-comentarios::-webkit-scrollbar-thumb{
    background:#5a5a5a;
    border-radius:20px;
}

.foro-comentario{
    padding:7px 0;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.foro-comentario:last-child{
    border:none;
}

.foro-comentario strong{
    display:block;
    color:var(--chess-green);
    font-size:.82rem;
    margin-bottom:2px;
}

.foro-comentario p{
    margin:0;
    color:#ddd;
    font-size:.84rem;
    line-height:1.35;
}

.foro-comentario-reacciones{
    display:flex;
    gap:3px;
    margin-top:4px;
}

.foro-comentario-reacciones .badge{
    width:18px;
    height:18px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    font-size:.6rem;
}

.media-item{
    background:#1d1d1d;
    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;
    padding:12px;
}

@media(max-width:992px){

    .foro-comentarios{
        max-height:170px;
    }

}

.btnNuevo{
    background:var(--chess-green);
    border:1px solid var(--chess-green);
    color:#fff;
    transition:.2s;
}

.btnNuevo:hover{
    background:#6ea13f;
    border-color:#6ea13f;
    color:#fff;
    transform:translateY(-1px);
}

.btnNuevo:focus,
.btnNuevo:active{
    background:#6ea13f!important;
    border-color:#6ea13f!important;
    color:#fff!important;
    box-shadow:0 0 0 .2rem rgba(129,182,76,.25)!important;
}

.btnNuevo i{
    color:inherit;
}

.modal-publicacion{
    padding:24px;
}

.modal-publicacion .foro-avatar{
    width:58px;
    height:58px;
}

.modal-publicacion h2{
    font-size:1.8rem;
    margin-bottom:0;
}

.modal-publicacion{
    padding:24px;
}

.modal-media{
    border-radius:14px;
    overflow:hidden;
    background:#181818;
    position:relative;
}

.modal-imagen{
    width:100%;
    max-height:600px;
    object-fit:contain;
    display:block;
    background:#181818;
}

.modal-video{
    width:100%;
    max-height:600px;
    display:block;
    background:#000;
}

.modal-extra{
    position:absolute;
    right:18px;
    bottom:18px;
    background:rgba(0,0,0,.8);
    color:#fff;
    padding:8px 16px;
    border-radius:30px;
    font-weight:700;
}

.modal-play{
    position:absolute;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:5rem;
    color:#fff;
    background:rgba(0,0,0,.25);
}

.modal-foro-contenido{
    color:#ddd;
    line-height:1.6;
    font-size:.95rem;
    white-space:pre-wrap;
}

.modal-foro-footer{
    display:flex;
    align-items:center;
    gap:18px;
    color:#bdbdbd;
    padding:10px 0;
    border-top:1px solid rgba(255,255,255,.06);
    border-bottom:1px solid rgba(255,255,255,.06);
}

.modal-foro-footer span{
    display:flex;
    align-items:center;
    gap:6px;
}

.modal-comentarios{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:18px;
}

.modal-comentario{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding-bottom:14px;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.modal-comentario:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.modal-comentario .foro-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
}

.modal-comentario strong{
    display:block;
    color:#fff;
    font-size:.9rem;
    margin-bottom:2px;
}

.modal-comentario small{
    color:#8d8d8d!important;
    font-size:.78rem;
}

.modal-comentario div:last-child{
    color:#ddd;
    line-height:1.5;
    margin-top:4px;
}

.modal-dialog.modal-xl{
    max-width:800px;
}

.modal-body{
    padding:0!important;
}

.modal-foro-body{
    padding:20px 28px 24px;
}

.modal-foro-body>*{
    max-width:100%;
}

.modal-foro-contenido{
    margin:18px 0 22px;
}

.btn-reaccion{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.08);
    background:transparent;
    color:#8f8f8f;
    transition:.2s;
    cursor:pointer;
}

.btn-reaccion:hover{
    background:rgba(255,255,255,.05);
}

.btn-reaccion.like.activo{
    color:#0d6efd;
    border-color:#0d6efd55;
}

.btn-reaccion.dislike.activo{
    color:#dc3545;
    border-color:#dc354555;
}

.modal-nuevo-comentario{
    margin:18px 0 22px;
}

.modal-nuevo-comentario textarea{
    background:#1e1e1e!important;
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    resize:none;
}

.modal-nuevo-comentario textarea:focus{
    background:#151515!important;
    border-color:var(--chess-green)!important;
    box-shadow:none;
    color:#fff;
}

.modal-media-youtube{
    padding:0;
    background:#000;
    overflow:hidden;
    border-radius:14px;
}

.modal-youtube{
    width:100%;
    aspect-ratio:16/9;
    border:none;
    display:block;
}

.foro-play{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.18);
    cursor:pointer;
    transition:.2s;
}

.foro-play:hover{
    background:rgba(0,0,0,.28);
}

.foro-play i{
    font-size:4rem;
    color:#fff;
    text-shadow:0 2px 10px rgba(0,0,0,.45);
    transition:.2s;
}

.foro-play:hover i{
    transform:scale(1.08);
}

#modalNuevoTema .modal-dialog{
    max-width:900px;
    margin:2rem auto;
}

#modalNuevoTema .modal-body{
    padding:24px!important;
}

#modalNuevoTema .modal-footer{
    padding:18px 24px;
}

#modalNuevoTema .modal-header{
    padding:18px 24px;
}
