@import url('https://solargentinotv.com.ar/assets/fonts/NetflixSans/netflixsans.css');

/* ====== GLOBAL ====== */
::selection {
    background-color: #810000;
    color: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p {
    margin-bottom: 0.5em;
    line-height: 1.2;
    padding-left: 1em;
    padding-right: 1em;
    text-align: left;
    padding-bottom: 0.3em;
}

#saga-season-count {
    position: absolute;
    margin-top: -2em;
}

body {
    font-family: "Netflix Sans", sans-serif;
    background: #010101;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ====== HEADER ====== */
header {
    width: 100%;
    background: #010101;
    border-bottom: 1px solid #810000;
    padding: 15px 0;
    text-align: center;
    color: #810000;
}

/* ====== NAV ====== */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-weight: 700;
}

nav a {
    text-decoration: none;
    color: #810000;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 700;
}

nav a:hover,
nav li:hover>a {
    color: #fff;
    border-bottom-color: #810000;
}

/* ====== DESTACADAS ====== */
.destacadas {
    padding: 40px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.destacadas h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

/* Contenedor de cards centrado */
.cards-container {
    width: 100%;
    max-width: 1400px;
    padding: 0 20px;
}

/* ====== GRID CARDS ====== */
.cards,
.cards-grid {
    display: grid;
    gap: 10px;
    width: 100%;
    padding-left: 2em;
    padding-right: 2em;
}

/* Responsive con mismo margen lateral */
@media (min-width: 1200px) {

    .cards,
    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {

    .cards,
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {

    .cards,
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 576px) and (max-width: 767px) {

    .cards,
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {

    .cards,
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.card {
    background: #181818;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    outline: 3px solid #fff;
    cursor: pointer;
    z-index: 1000;
}

/* Contenedor de imagen + título */
.card .img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Fondo de la card */
.card .img {
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #fff;
}

/* Título encima */
.card .img2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(0deg, #181818, transparent 50%);
    font-size: 1.8rem;
    color: #fff;
    pointer-events: none;
    /* para que no bloquee clicks */
}

/* Contenido debajo de la imagen */
.card .card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* WebKit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #141414;
}

::-webkit-scrollbar-thumb {
    background: #f00;

}

/* Firefox solamente */
@supports (-moz-appearance:none) {

    html,
    body {
        scrollbar-width: thin;
        scrollbar-color: #f00 #141414;
    }
}