/* gral*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

body {
font-family: Arial, sans-serif;
background-color: #f7f3f5;
color: #29252a;
}

/* header */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    padding: 30px 60px;
    border-bottom: 1px solid #e5dfe2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

header h1 {
font-size: 24px;
letter-spacing: 3px;
white-space: nowrap;
}

/* nav tracker */

.tracker-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.tracker-nav button {
    border: 1px solid #e2dadf;
    background: #faf7f8;
    padding: 7px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #6b6267;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tracker-nav button:hover {
    border-color: #c9bdc4;
    color: #1f1b1e;
    background: #f1eaee;
}

.tracker-nav .wishlist-nav {
    font-size: 16px;
    line-height: 1;
    padding: 7px 12px;
}

/* buscador */

.search-container {
margin: 0;
flex: 1;
display: flex;
justify-content: center;
}

#search-input {
width: 100%;
max-width: 420px;
padding: 11px 16px;
border: 1px solid #ddd5da;
border-radius: 20px;
background-color: #faf8f9;
font-size: 14px;
color: #29252a;
transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

#search-input::placeholder {
color: #aaa1a6;
}

#search-input:focus {
outline: none;
border-color: #c9bdc4;
background-color: #ffffff;
}

/* pag principal*/

main {
max-width: 1300px;
margin: 0 auto;
padding: 30px 40px;
}

section {
margin-bottom: 70px;
}

section h2 {
font-size: 28px;
margin-bottom: 35px;
}

.year {
margin-bottom: 55px;
}

.year h3 {
font-size: 22px;
margin-bottom: 20px;
border-bottom: 1px solid #ddd4d8;
padding-bottom: 10px;
}

/* grid gls*/

.gl-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 25px;
}

/* tarjetas */

.gl-card {
cursor: pointer;
transition:
    transform 0.2s ease;
}

.gl-card:hover {
transform: translateY(-5px);
}

.poster-container {
position: relative;
width: 100%;
}

.gl-card img {
width: 100%;
aspect-ratio: 2 / 3;
object-fit: cover;
display: block;
border-radius: 8px;
}

/* nombre en tarjeta */

.gl-card h4 {
    margin-top: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
}

/* año de tarjeta */

.gl-year {
margin-top: 2px;
margin-bottom: 0;
font-size: 12px;
line-height: 1.1;
opacity: 0.55;
}

/* estado de los gls, visto, no visto, viendo */

.poster-container.not-watched img {
opacity: 0.45;
filter: grayscale(30%);
}

.poster-container.watching img {
opacity: 0.75;
}

.poster-container.watched img {
opacity: 1;
filter: none;
}

/* círculo de estado */

.status {
position: absolute;
bottom: 10px;
right: 10px;
font-size: 24px;
line-height: 1;
}

/* tarjeta if viendo */

.poster-container.watching .status {
color: #e6b800;
}

/* tarjeta if visto */

.poster-container.watched .status {
color: #4caf50;
}

/* =========================

WISHLIST EN TARJETAS

\========================= */



.wishlist-heart {

position: absolute;



top: 9px;

right: 9px;



border: none;

background: none;



font-size: 27px;

line-height: 1;



color: white;



cursor: pointer;



z-index: 5;



text-shadow:

    0 1px 4px rgba(0, 0, 0, 0.45);



transition:

    transform 0.2s ease,

    color 0.2s ease;



}



.wishlist-heart:hover {

transform: scale(1.12);

}



.wishlist-heart.in-wishlist {

color: #ffffff;

}



/* =========================

POPUP DE INFORMACIÓN

\========================= */



.modal {

display: none;



position: fixed;

inset: 0;



background-color: rgba(35, 30, 33, 0.65);



justify-content: center;

align-items: center;



padding: 30px;



z-index: 2000;



}



.modal.active {

display: flex;

}





/* =========================

CONTENIDO DEL MODAL

\========================= */



.modal-content {

    position: relative;

    background-color: #ffffff;

    width: 800px;

    max-width: 100%;

    padding: 35px;

    border-radius: 12px;

    display: flex;

    gap: 35px;

    align-items: center;

}



.modal-content > img {

    width: 240px;

    height: 360px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 8px;

}



/* =========================

INFORMACIÓN DEL MODAL

\========================= */



.modal-info {

flex: 1;

}



.modal-info h2 {

font-size: 30px;

margin-bottom: 8px;

}



.modal-info p {

margin-bottom: 20px;

line-height: 1.6;

font-size: 13px;

}



#modal-year {

color: #777;

font-size: 12px;

}



#modal-estreno {

    margin-top: -12px;

    margin-bottom: 20px !important;



    font-size: 12px !important;

    font-style: italic;

    font-weight: 600;



    color: #d63384;

}



#modal-synopsis {

margin-top: 30px;

font-size: 13px;

}



/* =========================

   FECHA DE ESTRENO

\========================= */



.gl-estreno {

    margin-top: 4px;

    margin-bottom: 0;



    font-size: 11px;

    font-style: italic;

    font-weight: 600;



    color: #d63384;



    line-height: 1.2;

}



/* =========================

BOTÓN CERRAR

\========================= */



.close {

position: absolute;



top: 12px;

right: 15px;



border: none;

background: none;



font-size: 28px;



cursor: pointer;



}



/* =========================

EPISODIOS

\========================= */



.episodes {

margin-top: 25px;

}



.episodes h3 {

    font-size: 15px;

    font-weight: 600;

    color: #777;

    margin-bottom: 10px;

}



#episode-list {

display: flex;

flex-wrap: wrap;

gap: 7px;

}



#episode-list button {



    border: none;

    background-color: #bbb1b1;



    width: 45px;

    height: 32px;



    padding: 0;



    border-radius: 6px;



    cursor: pointer;

    font-size: 12px;



    text-align: center;

    box-sizing: border-box;

}



#episode-list button.watched {

background-color: #f3c8d1;

}



/* =========================

BOTONES DEL MODAL

\========================= */



.modal-buttons {

display: flex;

gap: 10px;

margin-top: 25px;

}



.modal-buttons button {

border: none;





background-color: #eee5e9;



padding: 11px 16px;



border-radius: 20px;



cursor: pointer;



font-size: 14px;





}



.modal-buttons button:hover {

background-color: #ded1d7;

}



/* =========================

   ACTRICES Y PREFERENCIAS

   ========================= */



.cast-container {

    margin-top: 20px;

}



.cast-container h3 {

    font-size: 15px;

    margin-bottom: 5px;

    color: #5f595d;

}



.modal-cast-text {

    font-size: 13px;

    color: #443e42;

    margin-bottom: 15px !important;

}



.preference-container {

    margin-top: 15px;

    margin-bottom: 20px;

    padding: 14px 18px;

    background-color: #faf7f8;

    border: 1px solid #e5dfe2;

    border-radius: 12px;

}



.preference-container label {

    display: block;

    font-size: 13px;

    font-weight: 600;

    color: #5f595d;

    margin-bottom: 10px;

}



.pref-buttons {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 8px;

}



/* =========================

   BOTONES DE PREFERENCIAS

   ========================= */



.pref-btn {

    flex: 1;

    min-width: 75px;

    padding: 9px 10px;



    border: 1px solid #d5cdd1;

    background: #ffffff;

    border-radius: 8px;



    /* Misma fuente que la sinopsis */

    font-family: inherit;

    font-size: 12px;

    font-weight: 400;



    color: #443e42;

    cursor: pointer;



    transition: all 0.2s ease;

}



.pref-btn:hover {

    border-color: #c9bdc4;

    background-color: #f8f4f6;

}



/* =========================

   CORAZÓN

   ========================= */



.pref-btn .heart {

    margin-left: 6px;

    font-size: 12px;

}



/* =========================

   ACTRIZ ELEGIDA - ROJO

   ========================= */



.pref-btn.active-red {

    background-color: #fff0f3;

    border: 1.5px solid #f783ac;

    color: #d63384;

    font-weight: 700;

}



.pref-btn.active-red .heart {

    color: #d63384;

}



/* =========================

   ACTRIZ ELEGIDA - NEGRO

   ========================= */



.pref-btn.active-black {

    background-color: #eeeeee;

    border: 1.5px solid #999999;

    color: #443e42;

    font-weight: 550;

}



.pref-btn.active-black .heart {

    color: #000000;

}



/* =========================

SISTEMA DE PUNTUACIÓN (ESTRELLAS)

\========================= */



.rating-container {

    margin-top: 20px;

    padding: 14px 18px;

    background-color: #faf7f8;

    border: 1px solid #e5dfe2;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    gap: 8px;

}



.rating-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.rating-container label {

    font-size: 13px;

    font-weight: 600;

    color: #5f595d;

}



.rating-value {

    font-size: 13px;

    font-weight: 600;

    color: #9d8bb5;

}



#star-rating {

    display: flex;

    gap: 6px;

}



#star-rating button.star {

    border: none;

    background: transparent;

    font-size: 26px;

    color: #ddd5da;

    cursor: pointer;

    padding: 0;

    position: relative;

    transition: transform 0.15s ease, color 0.15s ease;

}



#star-rating button.star:hover {

    transform: scale(1.12);

}



/* Estrella llena */

#star-rating button.star.full {

    color: #d63384;

}



/* Media estrella */

#star-rating button.star.half {

    background: linear-gradient(90deg, #d63384 50%, #ddd5da 50%);

    background-clip: text;

    -webkit-text-fill-color: transparent;

}



/* =========================

POPUPS DE SECCIONES

\========================= */



.section-modal {

position: fixed;





inset: 0;



background: rgba(35, 30, 33, 0.65);



display: none;



justify-content: center;

align-items: center;



z-index: 1000;





}



.section-modal.active {

display: flex;

}



.section-content {

position: relative;





width: 80%;

max-width: 1000px;



max-height: 80vh;



overflow-y: auto;



background: white;



padding: 40px;



border-radius: 12px;





}



.section-close {

position: absolute;





top: 15px;

right: 20px;



border: none;

background: none;



font-size: 30px;



cursor: pointer;





}



#section-grid {

display: grid;





grid-template-columns:

    repeat(auto-fill, minmax(150px, 1fr));



gap: 20px;



margin-top: 25px;





}



.empty-wishlist {

opacity: 0.6;

font-style: italic;

}



/* =========================

COMING SOON

\========================= */



.coming-soon-button {

display: block;





margin: 35px auto 20px;



background: transparent;



border: 1px solid #d5cdd1;



border-radius: 20px;



padding: 8px 18px;



font-size: 13px;



color: #777;



cursor: pointer;



transition:

    border-color 0.2s ease,

    color 0.2s ease,

    background-color 0.2s ease;



}



.coming-soon-button:hover {

border-color: #aaa0a6;





color: #333;



background-color: #f8f4f6;



}



/* GLs dentro de Coming Soon */



#coming-grid {

    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 25px;

}



#coming-grid .gl-card {

    width: 80px;

}



#coming-grid .gl-card img {

    width: 80px;

    height: 110px;

    aspect-ratio: auto;

    object-fit: cover;

    border-radius: 6px;

}



#coming-grid .gl-card h4 {

    margin: 5px 0 0;

    font-size: 12px;

    line-height: 1.2;

}



/* POPUP COMING SOON */



#coming-modal {

display: none;

}



#coming-modal.active {

display: flex;

}



/* DESAOPARECER EL EPISODIOS VISTOS*/



#progress {

display: none;

}



/* =========================

   CALIFICACIONES

\========================= */



.rating-group {

    grid-column: 1 / -1;

    width: 100%;

    margin-bottom: 8px;



    padding: 14px 18px;



    background-color: #faf7f8;

    border: 1px solid #e5dfe2;

    border-radius: 12px;



    display: flex;

    flex-direction: column;

    gap: 8px;

}





/* =========================

   ENCABEZADO

\========================= */



.rating-group-header {

    width: 100%;



    display: flex;

    align-items: center;

    justify-content: flex-start;



    gap: 12px;



    background: none;

    border: none;



    cursor: pointer;



    padding: 0;



    font-family: inherit;

}





/* =========================

   ESTRELLAS

\========================= */



.rating-group-stars {

    display: flex;

    align-items: center;



    gap: 6px;



    white-space: nowrap;



    font-size: 26px;

    line-height: 1;



    color: #d63384;

}





/* Estrella llena */



.rating-group-stars .star.full {

    color: #d63384;

}





/* Media estrella */



.rating-group-stars .star.half {

    background: linear-gradient(

        90deg,

        #d63384 50%,

        #ddd5da 50%

    );



    background-clip: text;

    -webkit-background-clip: text;



    -webkit-text-fill-color: transparent;

}





/* =========================

   FLECHA

\========================= */



.rating-arrow {

    font-size: 15px;

    color: #d63384;



    transition: transform 0.2s ease;

}





/* =========================

   GLs DESPLEGADOS

\========================= */



.rating-group-list {

    display: flex;



    flex-wrap: wrap;



    gap: 15px;



    padding: 10px 0 0 37px;

}





/* =========================

   CADA GL

\========================= */



.rating-gl-item {

    width: 80px;



    cursor: pointer;



    text-align: center;

}





/* Imagen */



.rating-gl-item img {

    width: 80px;

    height: 110px;



    object-fit: cover;



    border-radius: 6px;

}





/* Información */



.rating-gl-info h4 {

    margin: 5px 0 0;



    font-size: 12px;

}



.rating-gl-info p {

    margin: 2px 0 0;



    font-size: 11px;

}



/* =========================

   CALENDARIO DE ESTRENOS

\========================= */



.release-calendar-section {

    margin-top: 50px;

    margin-bottom: 70px;

}



/* Contenedor general */

.calendar-wrapper {

    position: relative;

    width: 100%;

}



/* Ventana donde se ven los días */

.calendar-viewport {

    width: 100%;

    overflow: hidden;



}



/* Calendario */

#release-calendar {

    display: flex;

    gap: 12px;



    transition: transform 0.3s ease;

}



/* Cada día */

.calendar-day {

    flex: 0 0 calc((100% - 60px) / 6);



    min-height: 170px;



    padding: 12px;



    background-color: #faf7f8;

    border: 1px solid #e5dfe2;

    border-radius: 10px;



    box-sizing: border-box;

}



/* Número del día */

.calendar-day-number {

    font-size: 15px;

    font-weight: 700;

    text-align: center;

    color: #d63384;



    margin-bottom: 10px;

}



/* Información */

.calendar-day {

    display: flex;

    flex-direction: column;

    gap: 5px;

}



.calendar-day > .release-info + .release-info {

    margin-top: 5px;

}



/* Cada GL */

.release-gl {

    display: flex;

    flex-direction: column;

    align-items: center;



    text-align: center;

}



/* Imagen */

.release-gl img {

    width: 75px;

    height: 105px;



    object-fit: cover;

    border-radius: 6px;



    margin-bottom: 7px;

}



/* Texto */

.release-gl-text {

    display: flex;

    flex-direction: column;



    gap: 3px;



    width: 100%;

}



/* Nombre */

.calendar-day .release-title {

    font-size: 11px;

    font-weight: 700;

}



/* Episodio */

.calendar-day .release-episode {

    font-size: 10px;

    color: #777;

}



/* =========================

   CALENDARIO - DÍAS PASADOS

\========================= */



.calendar-day.calendar-past {

    opacity: 0.45;

    filter: grayscale(0.8);

}





/* =========================

   CALENDARIO - HOY

\========================= */



.calendar-day.calendar-today {

    opacity: 1;

    filter: none;

    background: #fce3ec;

}



/* =========================

   FLECHAS

\========================= */



.calendar-arrow {

    position: absolute;



    top: 50%;

    transform: translateY(-50%);



    width: 32px;

    height: 32px;



    border: none;

    border-radius: 50%;



    background-color: #faf7f8;



    font-size: 24px;

    line-height: 1;



    cursor: pointer;



    z-index: 5;

}



.calendar-arrow:hover {

    background-color: #eee7ea;

}



.calendar-prev {

    left: -44px;

}



.calendar-next {

    right: -44px;

}





/* =========================

   ESTADÍSTICAS

\========================= */



.tracker-stats-section {

    margin: 20px auto 0;

    max-width: 1300px;

    padding: 0 40px;

}



/* Contenedor */

.tracker-stats {

    display: grid;

    grid-template-columns: repeat(5, 1fr);



    border: 1px solid #e5dfe2;

    border-radius: 12px;



    background-color: #ffffff;



    overflow: hidden;

}



/* Cada estadística */

.stat-card {

    min-width: 0;



    padding: 18px 10px;



    text-align: center;



    background-color: #faf7f8;



    border-right: 1px solid #e5dfe2;



    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}



/* Última estadística */

.stat-card:last-child {

    border-right: none;

}



/* Número */

.stat-number {

    display: block;



    font-size: 25px;

    font-weight: 700;



    color: #d63384;



    line-height: 1.1;



    margin-bottom: 5px;

}



/* Texto */

.stat-label {

    display: block;



    font-size: 14px;

    color: #777;



    letter-spacing: 0.3px;

}









/* =========================

   PERSONAJES FAVORITOS

\========================= */



#characters-modal {

    display: none;

}



#characters-modal.active {

    display: flex;

}



#characters-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-top: 15px;

}



.favorite-character-card {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px;

    background: #faf7f8;

    border: 1px solid #e5dfe2;

    border-radius: 10px;

    cursor: pointer;

    transition: background 0.2s ease;

    min-width: 0;

}



.favorite-character-card:hover {

    background: #f1e8ed;

}



.favorite-character-card img {

    width: 90px;

    height: 120px;

    object-fit: cover;

    object-position: center;

    border-radius: 6px;

    flex-shrink: 0;

    display: block;

}



.favorite-character-info {

    min-width: 0;

}



.favorite-character-info h3 {

    font-size: 13px;

    line-height: 1.3;

    margin-bottom: 5px;

    overflow-wrap: anywhere;

}



.favorite-character-info p {

    font-size: 11px;

    color: #777;

    line-height: 1.4;

    overflow-wrap: anywhere;

}



.characters-empty {

    grid-column: 1 / -1;

    color: #777;

    font-size: 13px;

    line-height: 1.6;

}



/* Paginación */

#characters-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin-top: 15px;

}



#characters-pagination button {

    padding: 8px 14px;

    border: 1px solid #e5dfe2;

    border-radius: 6px;

    background: #faf7f8;

    cursor: pointer;

}



#characters-pagination button:disabled {

    opacity: 0.4;

    cursor: default;

}



#characters-page-info {

    font-size: 12px;

    color: #777;

}





/* Botón de información junto al título */

.modal-title-row {

    display: flex;

    align-items: center;

    gap: 10px;

}



.modal-title-row h2 {

    margin: 0;

}







.modal-info-button {

    flex-shrink: 0;

    width: 24px;

    height: 24px;

    display: inline-flex;

    align-items: center;

    justify-content: center;



    border: 1px solid #f3b6d2;

    border-radius: 50%;

    background: transparent;

    color: #e88ab5;



    font-family: Georgia, serif;

    font-size: 14px;

    font-style: italic;

    font-weight: normal;



    cursor: pointer;

    transition: all 0.25s ease;

}



.modal-info-button:hover {

    background: #fff2f8;

    border-color: #e88ab5;

    color: #d96b9e;

}





/* Popup de información */

.modal-info-popup {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 10000;

    background: rgba(0, 0, 0, 0.45);

    align-items: center;

    justify-content: center;

    padding: 20px;

}



.modal-info-popup.active {

    display: flex;

}



.modal-info-popup-content {

    position: relative;

    width: min(350px, 100%);

    padding: 25px;

    border-radius: 12px;

    background: white;

    color: #29252a;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);

}



.modal-info-popup-content h3 {

    margin: 0 0 18px;

}



.modal-info-popup-content p {

    margin: 10px 0;

    line-height: 1.5;

}



.modal-info-close {

    position: absolute;

    top: 8px;

    right: 12px;

    border: none;

    background: transparent;

    font-size: 24px;

    cursor: pointer;

}





/* Puntos de episodios pendientes: solo en el popup Viendo */

#section-grid .card-episode-progress {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: center;

    gap: 5px;

    margin-top: 8px;

    font-size: 12px;

    color: #d63384;

}



#section-grid .episode-dot {

    display: inline-block;

    width: 9px;

    height: 9px;

    flex-shrink: 0;

    border-radius: 50%;

    background-color: #d63384;

}





/* =========================

   RESPONSIVE estadisticas

\========================= */



@media (max-width: 800px) {



    .tracker-stats {

        grid-template-columns: repeat(3, 1fr);

    }



    .stat-card:nth-child(3) {

        border-right: none;

    }



    .stat-card:nth-child(4),

    .stat-card:nth-child(5) {

        border-top: 1px solid #e5dfe2;

    }



    .stat-card:nth-child(4) {

        border-right: 1px solid #e5dfe2;

    }



}





@media (max-width: 500px) {



    .tracker-stats-section {

        padding: 0 20px;

        margin-top: 25px;

        margin-bottom: 35px;

    }



    .tracker-stats {

        grid-template-columns: repeat(2, 1fr);

    }



    .stat-card {

        border-right: 1px solid #e5dfe2;

        border-bottom: 1px solid #e5dfe2;

    }



    .stat-card:nth-child(2),

    .stat-card:nth-child(4) {

        border-right: none;

    }



    .stat-card:nth-child(5) {

        grid-column: 1 / -1;

        border-right: none;

        border-bottom: none;

    }



}



/* =========================

RESPONSIVE

\========================= */



@media (max-width: 1000px) {



header {

    flex-wrap: wrap;

}



.search-container {

    order: 3;

    width: 100%;

}



.gl-grid {

    grid-template-columns: repeat(4, 1fr);

}





}



@media (max-width: 650px) {





header {

    padding: 25px;



    flex-direction: column;



    gap: 18px;

}



header h1 {

    font-size: 20px;

}



.search-container {

    width: 100%;

}



#search-input {

    max-width: 100%;

}



.tracker-nav {

    justify-content: center;

}



main {

    padding: 35px 20px;

}



.gl-grid {

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

}



.modal-content {

    flex-direction: column;



    align-items: center;



    max-height: 90vh;



    overflow-y: auto;

}



.modal-content > img {

    width: 180px;

}



.section-content {

    width: 92%;

    padding: 30px 20px;

}



}



/* ==========================================

   PRUEBA 3 — Y2K FUTURISTA

\========================================== */



:root {

    --y2k-bg: #0c0b14;

    --y2k-card: #171522;

    --y2k-pink: #ff65c3;

    --y2k-cyan: ##E5A0B8;

    --y2k-purple: #b7a0ff;

    --y2k-text: #f8f3ff;

    --y2k-muted: #aaa4c0;

    --y2k-line: #403652;

}



body {

    background:
        radial-gradient(
            ellipse 90% 75% at 10% 0%,
            rgba(163, 2, 98, 0.38) 0%,
            rgba(163, 2, 98, 0.22) 25%,
            rgba(163, 2, 98, 0.08) 50%,
            transparent 75%
        ),
        radial-gradient(
            ellipse 65% 60% at 100% 18%,
            rgba(239, 118, 39, 0.17) 0%,
            rgba(239, 118, 39, 0.08) 32%,
            rgba(239, 118, 39, 0.025) 55%,
            transparent 75%
        ),
        radial-gradient(
            ellipse 85% 65% at 50% 100%,
            rgba(211, 98, 164, 0.24) 0%,
            rgba(211, 98, 164, 0.12) 32%,
            rgba(211, 98, 164, 0.04) 55%,
            transparent 75%
        ),

    var(--y2k-bg);

    background-attachment: fixed;

    color: var(--y2k-text);

}



/* HEADER */



header {

    background: #100e1bd9;

    border-bottom: 1px solid #ff65c355;

    box-shadow: 0 8px 40px #ff65c310;

    backdrop-filter: blur(22px);

}



header h1 {

    color: var(--y2k-text);

    font-weight: 900;

    letter-spacing: 2px;

    text-shadow: 0 0 22px #ff65c355;

}



.tracker-nav button {

    background: linear-gradient(145deg, #211b30, #12121f);

    border: 1px solid var(--y2k-line);

    border-radius: 8px;

    color: var(--y2k-text);

    transition: 0.25s ease;

}



.tracker-nav button:hover {

    background: linear-gradient(110deg, #ff65c3, #b7a0ff);

    border-color: transparent;

    color: #171020;

    box-shadow: 0 0 20px #ff65c340;

}



#search-input {

    background: #171422c9;

    border: 1px solid #514267;

    border-radius: 10px;

    color: var(--y2k-text);

    backdrop-filter: blur(12px);

}



#search-input::placeholder {

    color: #9b91b1;

}



#search-input:focus {

    border-color: var(--y2k-cyan);

    box-shadow: 0 0 20px #E5A0B8;

}



/* SECCIONES */



section h2 {

    color: var(--y2k-text);

    font-weight: 850;

    letter-spacing: -1px;

    font-size: clamp(26px, 3vw, 36px);

    text-shadow: 0 0 25px #b7a0ff15;

}



section h2::before {

    content: "";

    width: 5px;

    height: 28px;

    display: inline-block;

    background: linear-gradient(

        180deg,

        var(--y2k-pink),

        var(--y2k-cyan)

    );

    border-radius: 8px;

    margin-right: 10px;

}



.year h3 {

    color: var(--y2k-cyan);

    border-color: #403652;

}



/* TARJETAS */



.gl-grid {

    gap: 24px;

}



.gl-card {

    background: linear-gradient(

        145deg,

        #211b30,

        #12111c 70%

    );

    border: 1px solid #493952;

    border-radius: 11px;

    padding: 6px 6px 12px;

    overflow: hidden;

    transition:

        transform 0.25s ease,

        border-color 0.25s ease,

        box-shadow 0.25s ease;

}



.gl-card:hover {

    transform: translateY(-5px) scale(1.015);

    border-color: var(--y2k-pink);

    box-shadow:

        0 12px 35px #0007,

        0 0 20px #ff65c31b;

}



.poster-container {

    overflow: hidden;

    border-radius: 7px;

    background: #211b30;

}



.gl-card img {

    border-radius: 7px;

}



/* CONSERVAR OPACIDAD SEGÚN EL ESTADO */



.poster-container.not-watched img {

    opacity: 0.45;

    filter: grayscale(30%);

}



.poster-container.watching img {

    opacity: 0.75;

}



.poster-container.watched img {

    opacity: 1;

    filter: none;

}



.gl-card h4 {

    color: var(--y2k-text);

    font-size: 12px;

    line-height: 1.35;

    font-weight: 750;

    margin: 10px 4px 0;

}



.gl-year {

    color: var(--y2k-muted);

    opacity: 1;

    margin-left: 4px;

}



.poster-container.watching .status {

    color: var(--y2k-cyan);

    text-shadow: 0 0 12px #eaff7280;

}



.poster-container.watched .status {

    color: #8affcd;

    text-shadow: 0 0 12px #8affcd80;

}



.wishlist-heart.in-wishlist {

    color: var(--y2k-pink);

    filter: drop-shadow(0 0 6px #ff65c355);

}



/* MODALES */



.modal,

.section-modal,

#coming-modal,

.modal-info-popup {

    background: #070611c9;

    backdrop-filter: blur(14px);

}



.modal-content,

.section-content,

.modal-info-popup-content {

    background: linear-gradient(

        145deg,

        #211a30f5,

        #11111cf8

    );

    border: 1px solid #62456e;

    border-radius: 14px;

    color: var(--y2k-text);

    box-shadow:

        0 25px 80px #0009,

        0 0 35px #b7a0ff13;

}



.modal-info h2,

.modal-info-popup-content h3 {

    color: var(--y2k-text);

}



.modal-info p,

.modal-info-popup-content p {

    color: #c7bed8;

}



.close,

.section-close,

.modal-info-close {

    color: var(--y2k-muted);

}



.close:hover,

.section-close:hover,

.modal-info-close:hover {

    color: var(--y2k-pink);

}



/* EPISODIOS */



#episode-list button {

    background: #211b30;

    color: var(--y2k-text);

    border: 1px solid #493952;

    border-radius: 7px;

}



#episode-list button:hover {

    border-color: var(--y2k-cyan);

    box-shadow: 0 0 13px #E5A0B8;

}



#episode-list button.watched {

    background: #3a2343;

    border-color: var(--y2k-pink);

    color: #ffb4e2;

}



/* CALENDARIO */



.calendar-day {

    background: linear-gradient(145deg, #1d192b, #12111d);

    border: 1px solid var(--y2k-line);

    border-radius: 10px;

}



.calendar-day-number {

    color: var(--y2k-cyan);

}



.calendar-day .release-title {

    color: var(--y2k-text);

}



.calendar-day .release-episode {

    color: var(--y2k-muted);

}



.calendar-day.calendar-past {

    opacity: 0.45;

    filter: grayscale(0.8);

}



.calendar-day.calendar-today {

    opacity: 1;

    filter: none;

    background: #291a32;

    border-color: var(--y2k-pink);

    box-shadow: inset 0 0 22px #ff65c310;

}



.calendar-arrow {

    background: #211b30;

    border: 1px solid var(--y2k-line);

    border-radius: 8px;

    color: var(--y2k-text);

}



.calendar-arrow:hover {

    background: #30213d;

    border-color: var(--y2k-cyan);

    color: var(--y2k-cyan);

}



/* SCROLLBAR */



* {

    scrollbar-color: #655080 var(--y2k-bg);

}



\*::-webkit-scrollbar-track {

    background: var(--y2k-bg);

}



\*::-webkit-scrollbar-thumb {

    background: #655080;

    border-radius: 10px;

}



\*::-webkit-scrollbar-thumb:hover {

    background: var(--y2k-pink);

}



/* TARJETAS MÁS PEQUEÑAS EN LOS POPUPS */



#section-grid {

    grid-template-columns: repeat(auto-fill, minmax(105px, 125px));

    justify-content: start;

    gap: 16px;

}



#section-grid .gl-card {

    width: 100%;

    min-width: 0;

    padding: 4px 4px 8px;

    border-radius: 7px;

}



#section-grid .gl-card img {

    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;

}



#section-grid .gl-card h4 {

    font-size: 10px;

    line-height: 1.3;

    margin-top: 7px;

}



#section-grid .gl-card .gl-year {

    font-size: 10px;

}



@media (max-width: 500px) {

    #section-grid {

        grid-template-columns: repeat(auto-fill, minmax(90px, 105px));

        gap: 12px;

    }

}



/* ==========================================

   TGL — Y2K VISUAL POLISH

\========================================== */



/* 1. ESTADOS DE LAS SERIES */



/* Las series que estás viendo: amarillo */

.poster-container.watching .status {

    color: #ffd84a;

    text-shadow: 0 0 10px #ffd84a55, 0 2px 5px #000;

}



/* Las terminadas: verde */

.poster-container.watched .status {

    color: #8affcd;

    text-shadow: 0 0 10px #8affcd40, 0 2px 5px #000;

}



/* La opacidad original se conserva */

.poster-container.not-watched img {

    opacity: 0.45;

    filter: grayscale(30%);

}



.poster-container.watching img {

    opacity: 0.75;

}



.poster-container.watched img {

    opacity: 1;

    filter: none;

}





/* 2. ESTADÍSTICAS */



.tracker-stats-section {

    max-width: 1400px;

    margin: 30px auto 45px;

}



.tracker-stats {

    background: linear-gradient(135deg, #191523, #12111c);

    border: 1px solid #40344f;

    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 12px 35px #00000025;

}



.stat-card {

    background: transparent;

    border-right: 1px solid #383047;

    padding: 22px 12px;

    transition: background 0.2s ease;

}



.stat-card:hover {

    background: #ffffff05;

}



.stat-number {

    color: #E5A0B8;

    font-size: 28px;

    font-weight: 800;

    text-shadow: 0 0 16px #E5A0B8;

}



.stat-label {

    color: #aaa4c0;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

    line-height: 1.5;

}



/* Mantener los separadores en el tema oscuro */

@media (max-width: 800px) {

    .stat-card:nth-child(3) {

        border-right: none;

    }



    .stat-card:nth-child(4),

    .stat-card:nth-child(5) {

        border-top: 1px solid #383047;

    }



    .stat-card:nth-child(4) {

        border-right: 1px solid #383047;

    }

}



@media (max-width: 500px) {

    .stat-card {

        border-bottom: 1px solid #383047;

        border-right: 1px solid #383047;

    }



    .stat-card:nth-child(2),

    .stat-card:nth-child(4),

    .stat-card:nth-child(5) {

        border-right: none;

    }

}





/* 3. POPUPS DE FAVORITOS Y CALIFICACIONES */



/* Base común de los popups */

.section-content,

#characters-modal .modal-content {

    background: linear-gradient(145deg, #1c1929, #11101a);

    color: #f8f3ff;

    border: 1px solid #514263;

    border-radius: 14px;

    box-shadow: 0 24px 70px #00000065;

}



.section-content h2,

#characters-modal h2 {

    color: #f8f3ff;

}



/* Tarjetas de GLs en favoritos y vistos */

#section-grid .gl-card {

    background: #171522;

    border: 1px solid #383047;

    border-radius: 8px;

    padding: 4px 4px 9px;

    transition: border-color 0.2s, transform 0.2s;

}



#section-grid .gl-card:hover {

    border-color: #ff65c3;

    transform: translateY(-3px);

    box-shadow: 0 8px 22px #00000035;

}



#section-grid .gl-card h4 {

    color: #f8f3ff;

    font-size: 11px;

    line-height: 1.3;

}



#section-grid .gl-card .gl-year {

    color: #aaa4c0;

}



/* Grupos de calificaciones */

.rating-group {

    background: linear-gradient(135deg, #211a30, #171420);

    border: 1px solid #40344f;

    border-radius: 10px;

    padding: 14px 16px;

    gap: 12px;

    transition: border-color 0.2s;

}



.rating-group:hover {

    border-color: #6b527e;

}



.rating-group-header {

    color: #f8f3ff;

}



.rating-group-stars {

    color: #ffd84a;

}



.rating-group-stars .star.full {

    color: #ffd84a;

}



.rating-group-stars .star.half {

    background: linear-gradient(90deg, #ffd84a 50%, #51465f 50%);

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.rating-arrow {

    color: #b7a0ff;

}



.rating-group-list {

    gap: 12px;

    border-top: 1px solid #383047;

    margin-top: 4px;

}



/* Miniaturas dentro de las calificaciones */

.rating-gl-item {

    width: 84px;

    padding: 4px;

    border-radius: 7px;

    transition: background 0.2s, transform 0.2s;

}



.rating-gl-item:hover {

    background: #ffffff08;

    transform: translateY(-2px);

}



.rating-gl-item img {

    width: 76px;

    height: 105px;

    border: 1px solid #40344f;

    border-radius: 5px;

}



.rating-gl-info h4 {

    color: #f8f3ff;

    font-size: 10px;

    line-height: 1.3;

}



.rating-gl-info p {

    color: #aaa4c0;

    font-size: 10px;

}



/* Tarjetas del popup de personajes favoritos */

.favorite-character-card {

    background: #191623;

    border: 1px solid #383047;

    border-radius: 9px;

    transition: border-color 0.2s, background 0.2s;

}



.favorite-character-card:hover {

    background: #231a30;

    border-color: #ff65c3;

}



.favorite-character-info h3 {

    color: #f8f3ff;

}



.favorite-character-info p {

    color: #aaa4c0;

}



#characters-pagination button {

    background: #211a30;

    color: #f8f3ff;

    border: 1px solid #40344f;

    border-radius: 6px;

}



#characters-pagination button:hover:not(:disabled) {

    border-color: #E5A0B8;

    color: #E5A0B8;

}



#characters-page-info,

.characters-empty,

.empty-wishlist {

    color: #aaa4c0;

}



/* Inputs y botones dentro de los popups */

.section-close {

    color: #aaa4c0;

}



.section-close:hover {

    color: #ff65c3;

}





/* 4. ALINEACIÓN DE LAS FECHAS DE ESTRENO EN TARJETAS */



/* Título, año y estreno comparten la misma línea izquierda */

#gls-grid .gl-card > h4,

#gls-grid .gl-card > .gl-year,

#gls-grid .gl-card > .gl-estreno {

    text-align: left;

    margin-left: 5px;

    margin-right: 5px;

    padding-left: 0;

    padding-right: 0;

    box-sizing: border-box;

}



#gls-grid .gl-card > h4 {

    margin-top: 10px;

}



#gls-grid .gl-card > .gl-year {

    margin-top: 4px;

    margin-bottom: 0;

}



#gls-grid .gl-card > .gl-estreno {

    margin-top: 5px;

    margin-bottom: 0;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.35;

    letter-spacing: 0.3px;

    color: #E5A0B8;

    overflow-wrap: anywhere;

}



/* La fecha no debe mover ni descentrar el resto de la tarjeta */

#gls-grid .gl-card > .card-episode-progress {

    margin: 0;

    min-height: 0;

}





/* 5. CALENDARIO — FORMATO DE AGENDA HORIZONTAL */



/* La ventana mantiene el carrusel */

.release-calendar-section {

    margin-top: 55px;

    margin-bottom: 75px;

}



.calendar-wrapper {

    position: relative;

    width: 100%;

    padding: 0 2px;

}



.calendar-viewport {

    width: 100%;

    overflow: hidden;

    padding: 5px 2px 14px;

}



#release-calendar {

    display: flex;

    align-items: stretch;

    gap: 14px;

    transition: transform 0.3s ease;

    will-change: transform;

}



/* Cada día se convierte en una columna de agenda */

.calendar-day {

    flex: 0 0 205px;

    min-width: 0;

    min-height: 190px;

    padding: 12px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    background: linear-gradient(150deg, #1b1828, #12111c);

    border: 1px solid #393047;

    border-radius: 12px;

    box-sizing: border-box;

    box-shadow: 0 6px 18px #00000015;

    opacity: 1;

    filter: none;

    transition: border-color 0.2s, background 0.2s;

}



/* Encabezado de fecha */

.calendar-day-number {

    display: block;

    text-align: left;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.2px;

    color: #b7a0ff;

    padding: 2px 0 10px;

    margin-bottom: 2px;

    border-bottom: 1px solid #383047;

}



/* Cada emisión es una fila compacta */

.calendar-day > .release-info {

    padding: 7px;

    background: #ffffff05;

    border: 1px solid #ffffff09;

    border-radius: 8px;

    margin: 0;

}



.calendar-day > .release-info + .release-info {

    margin-top: 0;

}



/* Miniatura a la izquierda; datos a la derecha */

.calendar-day .release-gl {

    display: flex;

    flex-direction: row;

    align-items: flex-start;

    gap: 8px;

    text-align: left;

}



.calendar-day .release-gl img {

    display: block;

    flex: 0 0 43px;

    width: 43px;

    height: 61px;

    object-fit: cover;

    border-radius: 5px;

    margin: 0;

    border: 1px solid #ffffff15;

}



.calendar-day .release-gl-text {

    display: flex;

    flex: 1;

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

    width: auto;

    min-width: 0;

}



.calendar-day .release-title {

    font-size: 10px;

    line-height: 1.35;

    font-weight: 800;

    color: #f8f3ff;

    text-align: left;

    overflow-wrap: anywhere;

}



.calendar-day .release-episode {

    font-size: 9px;

    line-height: 1.35;

    font-weight: 700;

    color: #E5A0B8;

    text-align: left;

    overflow-wrap: anywhere;

}



/* Hoy */

.calendar-day.calendar-today {

    background: linear-gradient(150deg, #2a1c35, #17121f);

    border: 1px solid #ff65c3;

    box-shadow: 0 0 20px #ff65c315;

    opacity: 1;

    filter: none;

}



.calendar-day.calendar-today .calendar-day-number {

    color: #ff65c3;

    border-bottom-color: #ff65c340;

}



/* Pasado: se mantiene desaturado */

.calendar-day.calendar-past {

    opacity: 0.48;

    filter: grayscale(0.75);

}



.calendar-day.calendar-past:hover {

    opacity: 0.75;

}



/* Flechas nuevas */

.calendar-arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #514263;

    border-radius: 50%;

    background: #201a2df2;

    color: #f8f3ff;

    font-size: 22px;

    line-height: 1;

    box-shadow: 0 4px 15px #00000055;

    cursor: pointer;

    transition: background 0.2s, border-color 0.2s, color 0.2s;

}



.calendar-arrow:hover {

    background: #30213d;

    border-color: #E5A0B8;

    color: #E5A0B8;

}



.calendar-prev {

    left: -10px;

}



.calendar-next {

    right: -10px;

}



/* Calendario adaptable */

@media (max-width: 700px) {

    .calendar-day {

        flex-basis: 185px;

    }



    .calendar-prev {

        left: 0;

    }



    .calendar-next {

        right: 0;

    }

}



@media (max-width: 420px) {

    .calendar-day {

        flex-basis: 165px;

    }



    .calendar-day .release-gl img {

        flex-basis: 38px;

        width: 38px;

        height: 54px;

    }

}



/* ESTRELLAS DE RATING — TURQUESA Y2K */



/* Estrellas del popup de cada serie */

#star-rating button.star,

#star-rating button.star.full,

#star-rating button.star:hover {

    color: #E5A0B8;

}



#star-rating button.star.half {

    background: linear-gradient(

        90deg,

        #E5A0B8 50%,

        #51465f 50%

    );

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



/* Estrellas del popup de calificaciones */

.rating-group-stars,

.rating-group-stars .star.full {

    color: #E5A0B8;

}



.rating-group-stars .star.half {

    background: linear-gradient(

        90deg,

        #E5A0B8 50%,

        #51465f 50%

    );

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



/* ==========================================

   TGL — POPUP DE SERIES · Y2K UNIFICADO

\========================================== */



/* Fondo detrás del popup */

.modal {

    background: rgba(5, 4, 13, 0.84);

    backdrop-filter: blur(12px);

    padding: 24px;

}



/* Panel principal */

.modal .modal-content {

    position: relative;

    width: 920px;

    max-width: 100%;

    max-height: 90vh;

    overflow-y: auto;

    align-items: flex-start;

    gap: 28px;

    padding: 30px;

    background: linear-gradient(145deg, #211a30, #12111c 78%);

    color: #f8f3ff;

    border: 1px solid #514263;

    border-radius: 14px;

    box-shadow:

        0 25px 80px #00000080,

        0 0 35px #b7a0ff0c;

}



/* Portada de la serie */

.modal .modal-content > img {

    width: 220px;

    height: 330px;

    flex: 0 0 220px;

    object-fit: cover;

    border: 1px solid #514263;

    border-radius: 8px;

    box-shadow: 0 10px 30px #00000040;

}



/* Área de información */

.modal .modal-info {

    flex: 1;

    min-width: 0;

    color: #f8f3ff;

}



.modal .modal-title-row {

    gap: 10px;

    align-items: center;

}



.modal .modal-info h2,

.modal #modal-title {

    color: #f8f3ff;

    font-size: clamp(22px, 2.5vw, 30px);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -0.5px;

    overflow-wrap: anywhere;

}



.modal #modal-year {

    color: #b7a0ff;

    font-size: 12px;

    letter-spacing: 1px;

    font-weight: 700;

    margin-top: 8px;

    margin-bottom: 14px;

}



/* Botón de información */

.modal .modal-info-button {

    color: #E5A0B8;

    border-color: #E5A0B8;

}



.modal .modal-info-button:hover {

    color: #10101a;

    background: #E5A0B8;

    border-color: #E5A0B8;

}



/* Estreno y Fast Track */

.modal #modal-estreno {

    color: #E5A0B8;

    font-size: 12px;

    font-style: normal;

    font-weight: 700;

    margin: 0 0 8px !important;

}



.modal #modal-fast-track {

    color: #ff65c3 !important;

    background: #ff65c310;

    border: 1px solid #ff65c330;

    border-radius: 6px;

    padding: 8px 10px;

    font-size: 11px !important;

    line-height: 1.4;

}



/* Sinopsis */

.modal #modal-synopsis {

    color: #c7bed8;

    font-size: 13px;

    line-height: 1.7;

    margin-top: 14px;

    margin-bottom: 18px;

}



/* Títulos: episodios, actrices y preferencias */

.modal .episodes h3,

.modal .cast-container h3,

.modal .preference-container label,

.modal .rating-container label {

    color: #f8f3ff;

    font-size: 12px;

    font-weight: 750;

    letter-spacing: 0.5px;

}



/* Sección de episodios */

.modal .episodes {

    margin-top: 20px;

}



.modal #episode-list {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}



.modal #episode-list button {

    width: 48px;

    height: 34px;

    background: #211b30;

    color: #e9e2f4;

    border: 1px solid #493952;

    border-radius: 6px;

    font-size: 11px;

    transition:

        background 0.2s ease,

        border-color 0.2s ease,

        color 0.2s ease;

}



.modal #episode-list button:hover {

    background: #30213d;

    border-color: #E5A0B8;

    color: #E5A0B8;

}



/* Episodios ya vistos */

.modal #episode-list button.watched {

    background: #202d3b;

    border-color: #E5A0B8;

    color: #E5A0B8;

}



/* Puntos de episodios disponibles */

.modal #episode-list button .episode-dot {

    width: 6px;

    height: 6px;

    background: #ff65c3;

    margin-left: 2px;

}



/* Actrices */

.modal .cast-container {

    margin-top: 22px;

}



.modal .modal-cast-text {

    color: #aaa4c0;

    font-size: 12px;

    line-height: 1.5;

}



/* Bloques de preferencias y rating */

.modal .preference-container,

.modal .rating-container {

    background: linear-gradient(135deg, #211a30, #191522);

    border: 1px solid #40344f;

    border-radius: 9px;

    padding: 14px;

}



.modal .preference-container {

    margin-top: 16px;

    margin-bottom: 16px;

}



.modal .rating-container {

    margin-top: 14px;

    gap: 9px;

}



/* Botones de elección de actrices */

.modal .pref-btn {

    background: #171421;

    border: 1px solid #40344f;

    border-radius: 6px;

    color: #c7bed8;

    transition: 0.2s ease;

}



.modal .pref-btn:hover {

    background: #292039;

    border-color: #b7a0ff;

    color: #f8f3ff;

}



/* Preferencia seleccionada */

.modal .pref-btn.active-red {

    background: #38213b;

    border-color: #ff65c3;

    color: #ffb4e2;

}



.modal .pref-btn.active-black {

    background: #242033;

    border-color: #b7a0ff;

    color: #d8ccff;

}



/* Estrellas turquesas */

.modal #star-rating button.star,

.modal #star-rating button.star.full,

.modal #star-rating button.star:hover {

    color: #E5A0B8;

}



.modal #star-rating button.star.half {

    background: linear-gradient(

        90deg,

        #E5A0B8 50%,

        #51465f 50%

    );

    background-clip: text;

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}



.modal .rating-value {

    color: #E5A0B8;

}



/* Botones inferiores */

.modal .modal-buttons {

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;

}



.modal .modal-buttons button {

    background: #211b30;

    color: #f8f3ff;

    border: 1px solid #493952;

    border-radius: 7px;

    padding: 10px 14px;

    font-size: 12px;

    transition: 0.2s ease;

}



.modal .modal-buttons button:hover {

    background: #30213d;

    border-color: #E5A0B8;

    color: #E5A0B8;

}



/* Cerrar */

.modal .close {

    top: 12px;

    right: 16px;

    color: #aaa4c0;

    font-size: 27px;

    transition: color 0.2s ease;

}



.modal .close:hover {

    color: #ff65c3;

}



/* Scroll interno si el contenido es largo */

.modal .modal-content {

    scrollbar-color: #655080 #15121f;

}



/* Adaptación a pantallas pequeñas */

@media (max-width: 760px) {

    .modal {

        padding: 12px;

    }



    .modal .modal-content {

        width: 100%;

        max-height: 94vh;

        padding: 22px 18px;

        gap: 20px;

    }



    .modal .modal-content > img {

        width: 145px;

        height: 218px;

        flex-basis: 145px;

    }



    .modal .modal-info h2,

    .modal #modal-title {

        font-size: 22px;

    }

}



@media (max-width: 520px) {

    .modal .modal-content {

        flex-direction: column;

        align-items: stretch;

        gap: 18px;

    }



    .modal .modal-content > img {

        width: 145px;

        height: 218px;

        flex: 0 0 auto;

        align-self: center;

    }



    .modal .modal-info h2,

    .modal #modal-title {

        font-size: 24px;

    }

}



/* ==========================================

   BACKUP CENTER — Y2K THEME

\========================================== */



.tracker-backup-section {

    max-width: 1400px;

    margin: 24px auto 45px;

    padding: 22px 26px;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    background: linear-gradient(135deg, #1c1929, #12111c);

    border: 1px solid #40344f;

    border-radius: 12px;

    box-shadow: 0 12px 30px #00000020;

}



.backup-panel-info {

    flex: 1;

    min-width: 200px;

}



.backup-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: #E5A0B8;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

}



.backup-panel-info h2 {

    margin: 0 0 7px;

    color: #f8f3ff;

    font-size: 20px;

    font-weight: 850;

    letter-spacing: 1px;

}



.backup-panel-info p {

    margin: 0;

    color: #aaa4c0;

    font-size: 12px;

    line-height: 1.5;

}



.backup-panel-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}



.backup-panel-actions button {

    padding: 11px 16px;

    background: #211a30;

    border: 1px solid #514263;

    border-radius: 7px;

    color: #f8f3ff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.5px;

    cursor: pointer;

    transition:

        background 0.2s ease,

        border-color 0.2s ease,

        color 0.2s ease;

}



#backup-export-btn:hover {

    background: #30213d;

    border-color: #E5A0B8;

    color: #E5A0B8;

}



#backup-import-btn:hover {

    background: #30213d;

    border-color: #ff65c3;

    color: #ff9cda;

}



#backup-status {

    flex-basis: 100%;

    margin: 0;

    color: #aaa4c0;

    font-size: 11px;

    line-height: 1.5;

}



#backup-status.backup-error {

    color: #ff8aab;

}



@media (max-width: 600px) {

    .tracker-backup-section {

        margin: 22px 16px 35px;

        padding: 20px;

        align-items: stretch;

    }



    .backup-panel-actions {

        width: 100%;

    }



    .backup-panel-actions button {

        flex: 1;

    }

}

/* ==========================================

   THAI GL TRACKER · PULIDO VISUAL DE PRUEBA

   ========================================== */



/* 2. TARJETAS DE SERIES */



.poster-container {

    overflow: hidden;

    border-radius: 8px;

    isolation: isolate;

}



.gl-card img {

    transition:

        transform 0.25s ease,

        filter 0.25s ease;

}



.gl-card:hover {

    transform: translateY(-5px) scale(1.012);

}



.gl-card:hover img {

    transform: scale(1.025);

}



.gl-card:hover h4 {

    color: #d63384;

}



.gl-card:hover .poster-container {

    box-shadow:

        0 0 0 1px #d6338455,

        0 8px 25px #9a42801c;

}



/* No modificar opacidad ni filtros de las portadas

   según su estado. */





/* 3. BUSCADOR Y NAVEGACIÓN */



#search-input {

    transition:

        border-color 0.2s ease,

        box-shadow 0.2s ease,

        background-color 0.2s ease;

}



.search-container:focus-within #search-input {

    border-color: #d63384;

    box-shadow:

        0 0 0 3px #d6338418,

        0 5px 18px #00000008;

    background-color: #ffffff;

}



.tracker-nav button {

    transition:

        color 0.2s ease,

        background-color 0.2s ease,

        border-color 0.2s ease,

        box-shadow 0.2s ease,

        transform 0.15s ease;

}



.tracker-nav button:active {

    transform: scale(0.97);

}



.tracker-nav button.is-active {

    color: #a82469;

    background: linear-gradient(135deg, #fff0f8, #f3fbff);

    border-color: #d98ab8;

    box-shadow: 0 0 0 2px #d6338410;

}



/* 6. ACCESIBILIDAD Y MOVIMIENTOS */



button:focus-visible,

a:focus-visible,

#search-input:focus-visible {

    outline: 2px solid #E5A0B8;

    outline-offset: 3px;

}



@keyframes tracker-popup-in {

    from {

        opacity: 0;

        transform: translateY(8px) scale(0.985);

    }

    to {

        opacity: 1;

        transform: translateY(0) scale(1);

    }

}





@media (prefers-reduced-motion: reduce) {

    .gl-card,

    .gl-card img,

    .tracker-nav button,

    .favorite-character-card,

    .modal-buttons button,

    #episode-list button,

    #characters-pagination button {

        transition: none !important;

    }



    .modal.active .modal-content,

    .section-modal.active .section-content,

    .modal-info-popup.active .modal-info-popup-content {

        animation: none !important;

    }

}



/* En pantallas táctiles no aplicar efectos de hover */

@media (hover: none) {

    .gl-card:hover {

        transform: none;

    }



    .gl-card:hover img {

        transform: none;

    }



    .gl-card:hover .poster-container {

        box-shadow: none;

    }

}

/* ESTADOS DE LAS SERIES · DISEÑO SUTIL */



#gls-grid .poster-container {

    border-radius: 8px;

    overflow: hidden;

    isolation: isolate;

}



/* Indicador de estado en la esquina inferior derecha */

#gls-grid .poster-container .status {

    bottom: 10px;

    right: 10px;

    z-index: 2;



    width: 27px;

    height: 27px;

    display: flex;

    align-items: center;

    justify-content: center;



    font-size: 0;

    line-height: 1;



    border: 1px solid currentColor;

    border-radius: 50%;

    background: #17121de8;

    backdrop-filter: blur(5px);

}



/* Línea de color en el borde inferior */

#gls-grid .poster-container::after {

    content: "";

    position: absolute;

    z-index: 2;

    bottom: 0;

    left: 0;

    right: 0;

    height: 3px;

    pointer-events: none;

}



/* SIN VER */

#gls-grid .poster-container.not-watched {

    box-shadow: inset 0 0 0 1px #9c86b5;

}



#gls-grid .poster-container.not-watched::after {

    background: #9c86b5;

}



#gls-grid .poster-container.not-watched .status {

    color: #c6b3da;

}



#gls-grid .poster-container.not-watched .status::before {

    content: "○";

    font-size: 17px;

}



/* VIENDO */

#gls-grid .poster-container.watching {

    box-shadow: inset 0 0 0 1px #ffd84a;

}



#gls-grid .poster-container.watching::after {

    background: #ffd84a;

}



#gls-grid .poster-container.watching .status {

    color: #ffd84a;

}



#gls-grid .poster-container.watching .status::before {

    content: "▶";

    font-size: 11px;

}



/* VISTA */

#gls-grid .poster-container.watched {

    box-shadow: inset 0 0 0 1px #65e6b4;

}



#gls-grid .poster-container.watched::after {

    background: #65e6b4;

}



#gls-grid .poster-container.watched .status {

    color: #65e6b4;

}



#gls-grid .poster-container.watched .status::before {

    content: "✓";

    font-size: 15px;

}



/* Resplandor suave al pasar el cursor */

@media (hover: hover) {

    #gls-grid .poster-container.watching:hover {

        box-shadow: inset 0 0 0 1px #ffd84a,

                    0 0 12px #ffd84a22;

    }



    #gls-grid .poster-container.watched:hover {

        box-shadow: inset 0 0 0 1px #65e6b4,

                    0 0 12px #65e6b422;

    }



    #gls-grid .poster-container.not-watched:hover {

        box-shadow: inset 0 0 0 1px #c6b3da,

                    0 0 12px #9c86b522;

    }



}



/* ESTADOS DE LAS PORTADAS — SOLO EN LA PÁGINA PRINCIPAL */

/* Todavía no vista */
#gls-grid .poster-container.not-watched img {
    opacity: 0.20;
    filter: grayscale(55%);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Actualmente viendo */
#gls-grid .poster-container.watching img {
    opacity: 0.40;
    filter: none;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Ya vista */
#gls-grid .poster-container.watched img {
    opacity: 1;
    filter: none;
    transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Ocultar los círculos de estado de la página principal */
#gls-grid .poster-container .status {
    display: none !important;
}

/* ESTADÍSTICAS — BANDERA LÉSBICA SUTIL */

.tracker-stats {
    position: relative;
    background: #15121d;
    border: 1px solid #393044;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px #00000020;
}

/* Línea fina con los colores de la bandera */
.tracker-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #A30262,
        #B55690,
        #D362A4,
        #FFF5F8,
        #FF9A56,
        #EF7627,
        #D52D00
    );
}

.stat-card {
    background: transparent;
    border-right-color: #33283b;
    transition: background-color 0.2s ease;
}

.stat-card:hover {
    background: #ffffff06;
}

/* Todos los números iguales */
.stat-number {
    color: #f5dce9;
    text-shadow: none;
    font-weight: 800;
}

/* Etiquetas */
.stat-label {
    color: #b9adbf;
}

/* Separadores en pantallas pequeñas */
@media (max-width: 800px) {
    .stat-card:nth-child(4),
    .stat-card:nth-child(5) {
        border-top-color: #33283b;
    }
}

@media (max-width: 500px) {
    .stat-card {
        border-bottom-color: #33283b;
    }
}

/* Ocultar los círculos de estado en los popups Vistos y Viendo */
#section-grid .poster-container .status {
    display: none !important;
}

/* POPUPS VISTOS Y VIENDO: ALINEAR LOS PUNTOS */

#section-grid .gl-card h4 {
    min-height: 2.6em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

#section-grid .gl-card .gl-year {
    min-height: 1.3em;
}

#section-grid .card-episode-progress {
    min-height: 18px;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    align-items: center;
    gap: 5px;
}

/* Acento decorativo de los títulos de sección */
section h2::before {
    background: linear-gradient(
        180deg,
        #A30262 0%,
        #D362A4 50%,
        #EF7627 100%
    ) !important;
}

/* Miscelánea del título BACKUP CENTER */
.backup-panel-info h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.backup-panel-info h2::before {
    content: "";
    display: inline-block;
    flex: 0 0 5px;
    width: 5px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        #A30262 0%,
        #D362A4 50%,
        #EF7627 100%
    );
}

/* =========================================
   COMING SOON — DISEÑO Y2K
   ========================================= */

/* Botón que abre Coming Soon */
.coming-soon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin: 38px auto 25px;
    padding: 12px 24px;

    background: linear-gradient(
        135deg,
        #241725,
        #17121d 75%
    );

    border: 1px solid #70445f;
    border-radius: 9px;

    color: #e5a0b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;

    box-shadow:
        inset 0 1px 0 #ffffff08,
        0 5px 18px #00000020;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.coming-soon-button::before {
    content: "✦";
    color: #d362a4;
    font-size: 16px;
}

.coming-soon-button:hover {
    background: linear-gradient(
        135deg,
        #352033,
        #201522
    );

    border-color: #d362a4;
    color: #f5c9dc;

    box-shadow:
        0 0 18px #d362a418,
        inset 0 1px 0 #ffffff0c;

    transform: translateY(-2px);
}


/* Contenedor de próximas series */
#coming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 120px));
    justify-content: start;
    gap: 16px;

    margin-top: 25px;
}


/* Tarjetas */
#coming-grid .gl-card {
    width: 100%;
    min-width: 0;

    padding: 5px 5px 9px;

    background: linear-gradient(
        150deg,
        #241925,
        #17121d 75%
    );

    border: 1px solid #493044;
    border-radius: 9px;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#coming-grid .gl-card:hover {
    border-color: #b55690;

    box-shadow:
        0 8px 22px #00000035,
        0 0 14px #d362a410;

    transform: translateY(-3px);
}


/* Portadas */
#coming-grid .gl-card img {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;

    object-fit: cover;
    border-radius: 6px;
}


/* Títulos */
#coming-grid .gl-card h4 {
    margin: 8px 2px 0;

    color: #f8f3ff;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;

    overflow-wrap: anywhere;
}


/* Año, si aparece dentro de las tarjetas */
#coming-grid .gl-card .gl-year {
    margin: 3px 2px 0;

    color: #b9a1b5;
    font-size: 10px;
    opacity: 1;
}


/* Ajuste para pantallas pequeñas */
@media (max-width: 500px) {
    #coming-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }

    .coming-soon-button {
        margin-top: 28px;
    }
}

/* ==========================================
   RULETA — THAI GL TRACKER
   ========================================== */

.watching-roulette {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;

    margin: 0 0 25px;
    padding: 20px;

    background: linear-gradient(
        120deg,
        #251522,
        #17121d 75%
    );

    border: 1px solid #593449;
    border-radius: 12px;

    box-shadow: 0 10px 28px #00000020;
}

.watching-roulette-copy {
    min-width: 0;
}

.roulette-eyebrow {
    display: block;
    margin-bottom: 7px;

    color: #d362a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.watching-roulette-copy h3 {
    margin: 0 0 5px;

    color: #f8f3ff;
    font-size: 19px;
    font-weight: 800;
}

.watching-roulette-copy p {
    margin: 0;

    color: #b9a1b5;
    font-size: 12px;
    line-height: 1.5;
}

#watching-roulette-btn,
.roulette-open-btn {
    padding: 11px 16px;

    background: linear-gradient(
        135deg,
        #7d2858,
        #482039
    );

    border: 1px solid #b55690;
    border-radius: 7px;

    color: #fff3fa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#watching-roulette-btn:hover:not(:disabled),
.roulette-open-btn:hover {
    background: linear-gradient(
        135deg,
        #963767,
        #612749
    );

    border-color: #e5a0b8;
    box-shadow: 0 0 18px #d362a425;
    transform: translateY(-1px);
}

#watching-roulette-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.watching-roulette-result {
    grid-column: 1 / -1;
}

.watching-roulette-result:empty {
    display: none;
}

.watching-roulette-result.is-spinning {
    padding: 13px;

    background: #100d18;
    border: 1px solid #493044;
    border-radius: 8px;

    color: #e5a0b8;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.watching-roulette-result.is-winner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    padding: 15px;

    background: #100d18;
    border: 1px solid #70445f;
    border-radius: 8px;
}

.roulette-winner-label {
    width: 100%;

    color: #d362a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.roulette-winner-name {
    flex: 1;
    min-width: 130px;

    margin: 0;

    color: #f8f3ff;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.roulette-open-btn {
    white-space: nowrap;
}

@media (max-width: 500px) {
    .watching-roulette {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    #watching-roulette-btn {
        width: 100%;
    }

    .watching-roulette-result.is-winner {
        align-items: stretch;
    }

    .roulette-winner-name {
        flex-basis: 100%;
    }

    .roulette-open-btn {
        width: 100%;
    }
}

/* RULETA: SOLO UN BOTÓN */

.watching-roulette-button {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 20px auto;
    padding: 10px 16px;

    background: linear-gradient(135deg, #482039, #241522);
    border: 1px solid #b55690;
    border-radius: 8px;

    color: #f5dce9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;

    cursor: pointer;
    overflow-wrap: anywhere;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.watching-roulette-button:hover:not(:disabled) {
    border-color: #e5a0b8;
    box-shadow: 0 0 16px #d362a425;
    transform: translateY(-1px);
}

.watching-roulette-button:disabled {
    opacity: 0.75;
    cursor: wait;
}

@media (max-width: 500px) {
    .watching-roulette-button {
        width: 100%;
        justify-content: center;
    }
}

/* RULETA: BOTÓN DE SOLO UN SÍMBOLO */

.watching-roulette-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    margin: 0 0 18px auto;
    padding: 0;

    background: linear-gradient(135deg, #482039, #241522);
    border: 1px solid #b55690;
    border-radius: 10px;

    font-size: 23px;
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.watching-roulette-button:hover:not(:disabled) {
    border-color: #e5a0b8;
    box-shadow: 0 0 16px #d362a425;
    transform: translateY(-2px);
}

.watching-roulette-button:disabled {
    cursor: wait;
    opacity: 0.8;
}

.watching-roulette-button.is-spinning {
    animation: roulette-spin 0.25s linear infinite;
}

@keyframes roulette-spin {
    0% { transform: rotate(-12deg) scale(1); }
    50% { transform: rotate(12deg) scale(1.08); }
    100% { transform: rotate(-12deg) scale(1); }
}

/* Ícono minimalista de la ruleta */
/* RULETA MINIMALISTA */

/* RULETA: RESULTADO DESPLEGABLE */

.watching-roulette-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 24px auto 0;
    width: 100%;
}

.watching-roulette-button {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;

    background: linear-gradient(135deg, #482039, #241522);
    border: 1px solid #b55690;
    border-radius: 10px;

    font-size: 22px;
    cursor: pointer;

    transition: border-color 0.2s, box-shadow 0.2s;
}

.watching-roulette-button:hover:not(:disabled) {
    border-color: #e5a0b8;
    box-shadow: 0 0 16px #d362a425;
}

.watching-roulette-button:disabled {
    opacity: 0.8;
    cursor: wait;
}

.watching-roulette-button.is-spinning {
    animation: roulette-spin 0.35s ease-in-out infinite;
}

@keyframes roulette-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.watching-roulette-result[hidden] {
    display: none;
}

.watching-roulette-result.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    width: min(100%, 380px);
    margin-top: 16px;
    padding: 22px 18px;

    text-align: center;
    background: linear-gradient(135deg, #251522, #17121d);
    border: 1px solid #70445f;
    border-radius: 12px;

    box-shadow: 0 12px 30px #00000030;

    animation: roulette-reveal 0.4s ease-out;
}

.roulette-winner-label {
    color: #d362a4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.roulette-winner-name {
    margin: 0;
    color: #f8f3ff;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.roulette-open-btn {
    margin-top: 5px;
    padding: 10px 18px;

    color: #f5dce9;
    background: #482039;
    border: 1px solid #b55690;
    border-radius: 7px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.roulette-open-btn:hover {
    background: #612749;
    border-color: #e5a0b8;
}

@keyframes roulette-reveal {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
        clip-path: inset(0 0 100% 0);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        clip-path: inset(0 0 0 0);
    }
}

/* Ocultar las X de todos los popups */
.close,
.section-close,
.modal-info-close {
    display: none !important;
}

/* OCULTAR BARRAS DE DESPLAZAMIENTO EN LOS POPUPS */
.modal-content,
.section-content,
.modal-info-popup-content,
#coming-modal .modal-content,
#coming-modal .section-content {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar,
.section-content::-webkit-scrollbar,
.modal-info-popup-content::-webkit-scrollbar,
#coming-modal .modal-content::-webkit-scrollbar,
#coming-modal .section-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ==========================================
   TÍTULOS DE LOS POPUPS
   ========================================== */

.section-content > h2,
#characters-modal .modal-content > h2,
#coming-modal h2,
.modal-info h2,
.modal-info-popup-content h3 {
    position: relative;
    display: block;

    color: #f8f3ff !important;
    font-size: clamp(22px, 2.5vw, 29px);
    font-weight: 850;
    letter-spacing: 0.4px;
    line-height: 1.25;

    padding-bottom: 13px;
    margin-bottom: 22px;
    text-shadow: 0 0 18px #d362a415;
}

/* Línea decorativa de la paleta */
.section-content > h2::after,
#characters-modal .modal-content > h2::after,
#coming-modal h2::after,
.modal-info h2::after,
.modal-info-popup-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 76px;
    height: 3px;
    border-radius: 4px;

    background: linear-gradient(
        90deg,
        #A30262 0%,
        #D362A4 48%,
        #EF7627 100%
    );

    box-shadow: 0 0 10px #d362a415;
}

/* El título de la ficha conserva su alineación */
.modal-title-row h2 {
    margin-bottom: 0;
}

/* Evitar que la línea interfiera con la fila del título */
.modal-title-row h2::after {
    bottom: -10px;
}

/* TÍTULOS DE LOS POPUPS — ESTILO LIMPIO */

.section-content > h2,
#characters-modal .modal-content > h2,
#coming-modal h2,
.modal-info h2,
.modal-info-popup-content h3 {
    position: relative;
    display: block;

    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.35;

    color: #f8f3ff !important;
    text-shadow: none;

    padding-bottom: 12px;
    margin-bottom: 22px;
}

/* Línea degradada debajo del título */
.section-content > h2::after,
#characters-modal .modal-content > h2::after,
#coming-modal h2::after,
.modal-info h2::after,
.modal-info-popup-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 52px;
    height: 2px;
    border-radius: 2px;

    background: linear-gradient(
        90deg,
        #A30262,
        #D362A4,
        #EF7627
    );
}

/* El título de la ficha conserva su alineación */
.modal-title-row h2 {
    margin-bottom: 0;
}

.modal-title-row h2::after {
    bottom: -10px;
}

/* TÍTULOS DE POPUPS: LIMPIOS Y ARMONIZADOS */

.section-content h2::after,
#characters-modal h2::after,
#coming-modal h2::after,
.modal-info h2::after,
.modal-info-popup-content h3::after {
    display: none !important;
    content: none !important;
}

.section-content > h2,
#characters-modal .modal-content > h2,
#coming-modal h2,
.modal-info h2,
.modal-info-popup-content h3 {
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.35;

    color: #f8f3ff !important;
    text-shadow: none !important;
}

/* BARRITA VERTICAL EN TODOS LOS TÍTULOS DE POPUPS */

.section-content > h2::before,
#characters-modal .modal-content > h2::before,
#coming-modal h2::before,
.modal-info h2::before,
.modal-info-popup-content h3::before {
    content: "";
    display: inline-block;
    vertical-align: middle;

    width: 5px;
    height: 28px;
    flex-shrink: 0;

    margin-right: 12px;
    border-radius: 8px;

    background: linear-gradient(
        180deg,
        #A30262 0%,
        #D362A4 50%,
        #EF7627 100%
    );
}

/* Centrar verticalmente la barrita con el título */
.section-content > h2,
#characters-modal .modal-content > h2,
#coming-modal h2,
.modal-info h2,
.modal-info-popup-content h3 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-content > h2::before,
#characters-modal .modal-content > h2::before,
#coming-modal h2::before,
.modal-info h2::before,
.modal-info-popup-content h3::before {
    display: block;
    flex: 0 0 5px;
    margin: 0;
}

/* Centrar las tarjetas en los popups Viendo y Vistos */
#section-grid:has(> .gl-card) {
    justify-content: center;
}

/* Título y sorteo en la misma línea */
#section-title-roulette-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 26px;
}

#section-title-roulette-row #section-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}

#section-title-roulette-row .watching-roulette-button {
    flex: 0 0 44px;
    margin: 0;
}

/* Resultado desplegado debajo de la línea del título */
.watching-roulette-result.is-open {
    margin: 0 0 24px;
}

/* RULETA: SE EXPANDE DESDE EL BOTÓN HACIA LA IZQUIERDA */

#section-title-roulette-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 26px;
}

#section-title-roulette-row #section-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}

#section-title-roulette-row .watching-roulette-button {
    display: inline-flex;
    flex: 0 0 44px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;

    width: 44px;
    min-width: 44px;
    max-width: min(420px, 60%);
    height: 44px;
    margin: 0;
    padding: 0 11px;

    white-space: nowrap;
    overflow: hidden;

    transition:
        width 0.4s ease,
        flex-basis 0.4s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* El nombre comienza oculto */
#section-title-roulette-row .roulette-result-name {
    display: block;
    flex: 0 1 auto;

    max-width: 0;
    margin-right: 0;
    overflow: hidden;
    opacity: 0;

    color: #f5dce9;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-overflow: ellipsis;
    white-space: nowrap;

    transition:
        max-width 0.4s ease,
        opacity 0.25s ease,
        margin-right 0.4s ease;
}

/* El dado permanece en el extremo derecho */
#section-title-roulette-row .roulette-die {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
    font-size: 20px;
    line-height: 1;
    transform-origin: center;
}

/* Cuando termina, el botón crece hacia la izquierda */
#section-title-roulette-row .watching-roulette-button.has-result {
    flex: 0 1 auto;
    width: max-content;
    max-width: min(420px, 60%);
    border-color: #d362a4;
    box-shadow: 0 0 16px #d362a420;
}

#section-title-roulette-row
.watching-roulette-button.has-result
.roulette-result-name {
    max-width: 320px;
    margin-right: 9px;
    opacity: 1;
}

#section-title-roulette-row .watching-roulette-button.is-spinning {
    border-color: #e5a0b8;
}

#section-title-roulette-row
.watching-roulette-button.is-spinning
.roulette-die {
    animation: roulette-spin 0.35s linear infinite;
}

@media (max-width: 500px) {
    #section-title-roulette-row {
        gap: 8px;
    }

    #section-title-roulette-row
    .watching-roulette-button.has-result {
        max-width: 62%;
    }

    #section-title-roulette-row
    .watching-roulette-button.has-result
    .roulette-result-name {
        max-width: 180px;
    }
}

/* Centrar el dado cuando el botón está cerrado */
#section-title-roulette-row .watching-roulette-button:not(.has-result) {
    justify-content: center;
    padding: 0;
}

/* Al desplegarse, mantener el dado a la derecha */
#section-title-roulette-row .watching-roulette-button.has-result {
    justify-content: flex-end;
    padding: 0 11px;
}

/* Centrado exacto del dado en la ruleta */
#section-title-roulette-row .watching-roulette-button {
    position: relative;
    justify-content: center !important;
    padding: 0 !important;
}

#section-title-roulette-row .roulette-die {
    position: absolute;
    inset: 0;
    width: 100%;
    display: grid;
    place-items: center;
    line-height: 1;
    flex: none;
}

/* Al desplegarse, el dado se mueve al extremo derecho */
#section-title-roulette-row .watching-roulette-button.has-result {
    justify-content: flex-start !important;
    padding: 0 40px 0 11px !important;
}

#section-title-roulette-row
.watching-roulette-button.has-result .roulette-die {
    left: auto;
    right: 0;
    width: 40px;
}

/* POPUP: BARRA DE DESPLAZAMIENTO POR FUERA DEL MARCO */

#section-modal .section-content {
    overflow: visible !important;
    max-height: 80vh;
}

/* El contenido se desplaza de forma independiente */
#section-modal .section-scroll-area {
    width: calc(100% + 52px);
    margin-right: -52px;
    padding-right: 52px;

    max-height: calc(80vh - 82px);
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #b55690 transparent;
}

/* Barra para Chrome y Edge */
#section-modal .section-scroll-area::-webkit-scrollbar {
    width: 7px;
}

#section-modal .section-scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

#section-modal .section-scroll-area::-webkit-scrollbar-thumb {
    background: #b55690;
    border-radius: 10px;
}

#section-modal .section-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #e5a0b8;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 650px) {
    #section-modal .section-scroll-area {
        width: calc(100% + 32px);
        margin-right: -32px;
        padding-right: 32px;

        max-height: calc(80vh - 62px);
    }
}
/* Quitar las flechas de la barra del popup */
#section-modal .section-scroll-area::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* El popup debe quedar por encima del encabezado fijo */
#section-modal {
    z-index: 5000 !important;
}

/* ESTRELLAS: DIFERENCIAR SELECCIONADAS Y VACÍAS */

/* Estrellas sin seleccionar */
.modal #star-rating button.star:not(.full):not(.half) {
    color: #51465f !important;
    background: transparent !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Estrellas completas */
.modal #star-rating button.star.full {
    color: #D362A4 !important;
    background: transparent !important;
    -webkit-text-fill-color: currentColor !important;
}

/* Medias estrellas */
.modal #star-rating button.star.half {
    background: linear-gradient(
        90deg,
        #D362A4 50%,
        #51465f 50%
    ) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Al pasar el cursor */
.modal #star-rating button.star:not(.full):not(.half):hover {
    color: #E5A0B8 !important;
}

/* La ficha de la serie siempre debe quedar encima */
#modal {
    z-index: 6000 !important;
}

/* FICHA DE SERIE: ALINEAR TÍTULO, MISCELÁNEA E INFO */

#modal .modal-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 10px;
    min-height: 32px;
}

#modal .modal-title-row h2 {
    display: flex !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1.2 !important;
    min-height: 32px;
}

#modal .modal-title-row h2::before {
    display: block !important;
    align-self: center;

    flex: 0 0 5px;
    width: 5px;
    height: 28px;

    margin: 0 12px 0 0 !important;
}

#modal .modal-title-row .modal-info-button {
    position: relative;
    top: auto;

    align-self: center;
    flex-shrink: 0;

    margin: 0 !important;
    transform: none;
}

/* ==========================================
   COMING SOON — ESTADOS DE PRODUCCIÓN
   ========================================== */

#coming-grid .coming-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#coming-grid .coming-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;

    margin: 9px 2px 2px;
    padding: 5px 7px;

    border: 1px solid #70445f;
    border-radius: 5px;

    background: #241522;

    color: #e5a0b8;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

/* Anunciada */
#coming-grid .estado-anunciada {
    color: #c6b3da;
    border-color: #756184;
    background: #262030;
}

/* Preproducción */
#coming-grid .estado-preproduccion {
    color: #d99cbd;
    border-color: #815071;
    background: #2b1929;
}

/* En rodaje */
#coming-grid .estado-en-rodaje {
    color: #ffb17d;
    border-color: #a85d3c;
    background: #302019;
}

/* Postproducción */
#coming-grid .estado-postproduccion {
    color: #f08aba;
    border-color: #a64d7c;
    background: #30182a;
}

/* Próximo estreno */
#coming-grid .estado-proximo-estreno {
    color: #ffb4a0;
    border-color: #a85d54;
    background: #301d20;
}

/* Estrenada */
#coming-grid .estado-estrenada {
    color: #f5dce9;
    border-color: #b55690;
    background: #321c2c;
}

/* En pausa */
#coming-grid .estado-en-pausa {
    color: #b9aaba;
    border-color: #625565;
    background: #211c27;
}

/* Sin información */
#coming-grid .estado-sin-actualizar {
    color: #a99bad;
    border-color: #493952;
    background: #1c1824;
}

/* ETIQUETA DE ESTADO SOBRE LA PORTADA */

#coming-grid .poster-container {
    position: relative;
    overflow: hidden;
}

#coming-grid .coming-status {
    position: absolute;
    top: 9px;
    left: 8px;
    z-index: 5;

    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 16px);
    margin: 0;
    padding: 6px 8px;

    border-radius: 5px;
    background: #211522eF;
    backdrop-filter: blur(7px);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.6px;
    line-height: 1.2;
    text-transform: uppercase;

    overflow-wrap: anywhere;
    pointer-events: none;
}

/* COMING SOON: RESTAURAR TARJETAS Y ETIQUETAS */

#coming-grid .gl-card {
    display: block;
}

#coming-grid .poster-container {
    position: relative;
    overflow: hidden;
}

#coming-grid .poster-container img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

/* Etiquetas sobre las portadas */
#coming-grid .coming-status {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;

    display: inline-flex;
    width: fit-content;
    min-width: 0;
    height: auto;
    min-height: 0;
    max-width: calc(100% - 16px);

    padding: 5px 8px;

    background: #211522ed;
    border: 1px solid #70445f;
    border-radius: 5px;

    color: #e5a0b8;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.3;

    overflow-wrap: anywhere;
    pointer-events: none;
    box-sizing: border-box;
}

/* Títulos */
#coming-grid .gl-card h4 {
    display: block;
    margin: 8px 0 0;
    color: #f8f3ff;
    font-size: 11px;
    line-height: 1.3;
}

/* COMING SOON — ETIQUETA INFERIOR */

#coming-grid .coming-status {
    position: absolute;
    top: auto;
    bottom: 9px;
    left: 8px;
    right: 8px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: auto;
    max-width: none;
    min-height: 25px;
    margin: 0;
    padding: 5px 7px;

    background: rgba(19, 14, 24, 0.88);
    border: 1px solid rgba(211, 98, 164, 0.45);
    border-radius: 5px;
    backdrop-filter: blur(6px);

    color: #e5a0b8;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;

    box-sizing: border-box;
    pointer-events: none;
}

/* HISTORIAL DE VISUALIZACIÓN */

.episode-history-editor {
    margin-top: 18px;
    padding: 12px 14px;

    background: #191420;
    border: 1px solid #493044;
    border-radius: 8px;
}

.episode-history-editor summary {
    color: #e5a0b8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.episode-history-content {
    margin-top: 13px;
}

.episode-history-content > p {
    color: #b9a1b5;
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.episode-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 7px 0;
    border-bottom: 1px solid #332637;
}

.episode-history-row span {
    color: #f5dce9;
    font-size: 11px;
    font-weight: 700;
}

.episode-history-row input {
    width: 145px;
    padding: 6px 8px;

    background: #241a29;
    color: #f8f3ff;

    border: 1px solid #70445f;
    border-radius: 5px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    color-scheme: dark;
}

.episode-history-row input:focus {
    outline: none;
    border-color: #d362a4;
    box-shadow: 0 0 8px #d362a420;
}

@media (max-width: 500px) {
    .episode-history-row input {
        width: 135px;
    }
}