.sl-tmdb-wrap{
    margin:20px 0;
    color:var(--text-color);
}

/* HERO */

.sl-tmdb-hero{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    padding:30px 20px 40px;
    margin-bottom:20px;
}

.sl-tmdb-backdrop{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    transform:scale(1.05);
}

.sl-tmdb-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        to bottom,
        rgba(0,0,0,.35),
        rgba(0,0,0,.92)
    );
}

.sl-tmdb-content{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.sl-center-wrap{
    width:100%;
    max-width:900px;
    margin:0 auto;
}

/* POSTER */

.sl-tmdb-poster{
    width:220px;
    max-width:100%;
    border-radius:22px;
    display:block;
    margin:0 auto 25px;
    box-shadow:0 20px 60px rgba(0,0,0,.55);
}

/* TITLE */

.sl-tmdb-title{
    color:#fff;
    font-size:46px;
    line-height:1.2;
    font-weight:700;
    margin:0 0 20px;
}

/* BADGES */

.sl-tmdb-badges{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
    margin-bottom:25px;
}

.sl-badge{
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.15);
    color:#fff !important;
    padding:10px 18px;
    border-radius:999px;
    font-size:15px;
    font-weight:600;
}

/* GENRES */

.sl-tmdb-genres{
    color:#fff;
    opacity:.9;
    margin-bottom:20px;
    font-size:15px;
}

/* SYNOPSIS */

.sl-synopsis{
    max-width:700px;
    margin:0 auto 25px;
    color:#e8e8e8;
    font-size:18px;
    line-height:1.8;
}

.sl-synopsis p{
    margin:0;
}

/* BUTTONS */

.sl-tmdb-buttons{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
}

.sl-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:12px 22px;
    border-radius:12px;
    background:#e50914;
    color:#fff !important;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}

.sl-btn:hover{
    transform:translateY(-2px);
    opacity:.95;
}

/* ABOUT SECTION */

.sl-about{
    margin:20px 0;
    padding:20px;
    border-radius:18px;
    background:var(--content-bg,var(--page-bg));
}

.sl-section-title{
    font-size:24px;
    font-weight:700;
    margin-bottom:20px;
    color:var(--text-color);
}

.sl-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.sl-card{
    padding:16px;
    border-radius:14px;
    border:1px solid rgba(127,127,127,.15);
    min-width:0;
}

html.dark .sl-card{
    background:#1f1f1f;
}

html.light .sl-card{
    background:#f5f5f5;
}

.sl-card span{
    display:block;
    font-size:12px;
    letter-spacing:1px;
    text-transform:uppercase;
    opacity:.65;
    margin-bottom:6px;
}

.sl-card strong{
    display:block;
    font-size:16px;
    line-height:1.5;
    font-weight:500;
    word-break:break-word;
}

/* CAST */

.sl-cast-card{
    grid-column:1 / -1;
}

.sl-cast-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.sl-cast-item{
    padding:6px 10px;
    border-radius:999px;
    font-size:13px;
}

html.dark .sl-cast-item{
    background:#2c2c2c;
}

html.light .sl-cast-item{
    background:#e9e9e9;
}

/* EPISODE BOX */

.sl-tmdb-details-box{
    margin-top:20px;
    padding:20px;
    border-radius:18px;
    border:1px solid rgba(127,127,127,.15);
}

html.dark .sl-tmdb-details-box{
    background:#1b1b1b;
}

html.light .sl-tmdb-details-box{
    background:#fff;
}

.sl-tmdb-details-box h3{
    margin:0 0 15px;
}

.sl-tmdb-details-box p{
    margin:0;
    line-height:1.8;
}

/* MOBILE */

@media(max-width:768px){

    .sl-tmdb-hero{
        padding:25px 15px 35px;
    }

    .sl-tmdb-poster{
        width:190px;
    }

    .sl-tmdb-title{
        font-size:28px;
    }

    .sl-badge{
        font-size:14px;
        padding:9px 15px;
    }

    .sl-synopsis{
        font-size:17px;
        line-height:1.7;
    }

    .sl-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .sl-card{
        padding:12px;
    }

    .sl-card span{
        font-size:11px;
    }

    .sl-card strong{
        font-size:14px;
    }

    .sl-section-title{
        font-size:22px;
    }
}