/* ===========================
   MÓDULO DE NOTICIAS RELACIONADAS
   (ESTILOS GLOBALES – PC + MÓVIL)
   =========================== */

.related-news-module {
    margin: 16px 8px 8px 8px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    /* gris suave */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    font-family: inherit;
}

.related-news-module .rn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.related-news-module .rn-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-news-module .rn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 10px;
    background: #fee2e2;
    /* rojo muy claro */
    color: #b91c1c;
    /* rojo intenso */
}

.related-news-module .rn-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.related-news-module .rn-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.related-news-module .rn-list {
    padding: 0;
    margin: 0;
}

.related-news-module .rn-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.related-news-module .rn-item:first-child {
    border-top: none;
}

.related-news-module .rn-item-icon {
    display: flex;
    align-items: flex-start;
}

.related-news-module .rn-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.related-news-module .rn-item-content {
    flex: 1;
    min-width: 0;
    /* evita desbordes de texto */
}

.related-news-module .rn-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.related-news-module .rn-meta-date {
    font-weight: 500;
    color: #64748b;
}

.related-news-module .rn-title {
    margin: 0 0 2px 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.related-news-module .rn-title a {
    color: #0f172a;
    text-decoration: none;
}

.related-news-module .rn-title a:hover {
    color: #dc2626;
}

.related-news-module .rn-excerpt {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* ===========================
   RESTO DE AJUSTES SOLO MÓVIL
   =========================== */

@media (max-width: 960px) {

    /* El cuerpo de la ficha ocupa todo el ancho en móvil */
    #site_body {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* 
       Tabla principal que crea las DOS columnas de la ficha clásica:
       (izquierda: texto/noticias, derecha: carátula + ficha + publi)

       OJO: excluimos la nueva tabla con clase .tj-game-layout--news
       para no interferir con el layout moderno de “Noticias del juego”.
    */
    #site_body .centerbody>table[bgcolor="#FFFFFF"]:not(.tj-game-layout--news)>tbody>tr>td {
        display: block !important;
        width: 100% !important;
    }

    /* Las tablas internas dentro de cada “columna” a ancho completo */
    #site_body .centerbody>table[bgcolor="#FFFFFF"]:not(.tj-game-layout--news)>tbody>tr>td>table {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Quitamos el <br> suelto que hay justo antes de la tabla interior */
    #site_body .centerbody>table[bgcolor="#FFFFFF"]:not(.tj-game-layout--news)>tbody>tr>td>br {
        display: none !important;
    }

    /* ==========================================
       BLOQUE de carátula + menú de la ficha
       (fondo ficha_fondo.jpg) – protección por si se usa
       ========================================== */

    #site_body .centerbody table[style*="ficha_fondo.jpg"] table.novedades tr {
        display: block !important;
        width: 100% !important;
    }

    #site_body .centerbody table[style*="ficha_fondo.jpg"] table.novedades td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    #site_body .centerbody table[style*="ficha_fondo.jpg"] table.novedades td:first-child {
        text-align: center !important;
        margin-bottom: 8px;
    }

    #site_body .centerbody table[style*="ficha_fondo.jpg"] table.novedades img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
        margin: 0 auto;
    }

    /* ==========================================
       GALERÍA DE IMÁGENES INFERIOR
       (fondo noticia_im_vid.jpg)
       ========================================== */

    #site_body .centerbody td[style*="noticia_im_vid.jpg"] {
        height: auto !important;
        padding: 10px 5px !important;
    }

    #site_body .centerbody td[style*="noticia_im_vid.jpg"] a {
        display: inline-block;
        width: 30%;
        margin: 0 1% 6px 1%;
        vertical-align: top;
    }

    #site_body .centerbody td[style*="noticia_im_vid.jpg"] img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }
}

/* ============ CABECERA NARANJA (título + plataforma + nota) ============ */
.tj-review-hero {
    position: relative;
    width: 100%;
    background: #E88F2A;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 100px;
    margin: 0 0 16px 0;
}

/* “Brillo” diagonal */
.tj-review-hero__shine {
    position: absolute;
    right: 80px;
    top: 0;
    height: 100%;
    width: 140px;
    background: rgba(255, 255, 255, 0.10);
    transform: skewX(12deg);
    pointer-events: none;
}

.tj-review-hero__left {
    flex: 1;
    min-width: 0;
    /* clave para que el título pueda hacer wrap sin empujar la nota */
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tj-review-hero__title {
    margin: 0;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    font-size: 20px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.10);
}

.tj-review-hero__platforms {
    margin-top: 12px;
}

.tj-review-hero__platform {
    display: inline-block;
    background: #F4AC5B;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tj-review-hero__right {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* vital: la nota no se aplasta en móvil */
    position: relative;
    z-index: 1;
}

.tj-review-hero__score {
    background: #3D2E1E;
    color: #fff;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.tj-review-hero__score-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Desktop / tablet */
@media (min-width: 768px) {
    .tj-review-hero__left {
        padding: 22px 24px;
    }

    .tj-review-hero__title {
        font-size: 34px;
    }

    .tj-review-hero__score {
        width: 100px;
        height: 70px;
        border-radius: 10px;
    }

    .tj-review-hero__score-value {
        font-size: 40px;
    }
}