body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

/* CONTENEDOR CENTRADO */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 0 16px;
}

/* HEADER */
.topbar {
    background: white;
    border-bottom: 1px solid #ddd;
}

.topbar h1 {
    margin: 0;
    padding: 16px 0;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px 0;
}

/* CARD */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: 0.25s;
}

.card:hover::after {
    background: rgba(0,0,0,0.08);
}

/* IMAGEN CUADRADA */
.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

/* TEXTO */
.card h3 {
    margin: 8px;
    font-size: 14px;
}

.card p {
    margin: 8px;
    font-size: 12px;
    color: #555;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* HERO */
#hero {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
}

#hero h2 {
    margin: 0;
}

/* BOTÓN VOLVER */
.back-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: purple;
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* EPISODIOS */
.list {
    margin-top: 16px;
}

.episode {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
    transition: 0.2s;
}

.episode:hover {
    background: #eeeeee;
}

.episode h4 {
    margin: 0;
}

.episode p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* ICONOS */
.icons {
    display: flex;
    gap: 12px;
    font-size: 18px;
    color: purple;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);

    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.modal-content {
    width: 95%;
    max-width: 900px;
    position: relative;
}

.modal-content span {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .card h3 {
        font-size: 13px;
    }

    .card p {
        font-size: 11px;
    }

    iframe {
        height: 220px;
    }
}