﻿:root{
    --bg:#080808;
    --card:rgba(255,255,255,.05);
    --border:rgba(255,255,255,.08);
    --accent:#00c853;
    --text:#ffffff;
    --muted:#9ca3af;

    --radius:20px;
    --radius-sm:14px;

    --shadow:
        0 10px 30px rgba(0,0,0,.35);

    --glass-blur:18px;

    --container:1400px;

    --transition:.25s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow-x:hidden;
    min-height:100vh;
}

body.modal-open{
    overflow:hidden;
}

img{
    max-width:100%;
    display:block;
}

button{
    border:none;
    outline:none;
    cursor:pointer;
    font-family:inherit;
}

a{
    color:inherit;
    text-decoration:none;
}

.hidden{
    display:none !important;
}

.container{
    width:min(100% - 32px,var(--container));
    margin:auto;
}

/* ===================================
   LOADING
=================================== */

.loading-screen{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:24px;
    padding:24px;
}

.loading-logo{
    font-size:clamp(28px,5vw,48px);
    font-weight:800;
    letter-spacing:2px;
}

.loading-spinner{
    width:70px;
    height:70px;
    border-radius:50%;
    border:4px solid rgba(255,255,255,.08);
    border-top-color:var(--accent);
    animation:spin 1s linear infinite;
}

.loading-text{
    color:var(--muted);
    font-size:15px;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.skeleton-grid{
    width:min(100%,800px);
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:16px;
}

.skeleton-card{
    height:120px;
    border-radius:16px;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.08),
            rgba(255,255,255,.03)
        );

    background-size:300% 100%;
    animation:skeleton 1.5s infinite;
}

@keyframes skeleton{
    0%{
        background-position:100% 0;
    }
    100%{
        background-position:-100% 0;
    }
}

/* ===================================
   GLASS
=================================== */

.glass{
    background:var(--card);
    backdrop-filter:blur(var(--glass-blur));
    -webkit-backdrop-filter:blur(var(--glass-blur));

    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

/* ===================================
   HERO
=================================== */

.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.hero-backdrop{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    transform:scale(1.05);
}

.hero-backdrop::after{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.25),
            rgba(0,0,0,.70),
            rgba(8,8,8,1)
        );
}

.hero-overlay{
    position:absolute;
    inset:0;

    background:
        radial-gradient(
            circle at top right,
            rgba(0,200,83,.15),
            transparent 35%
        );
}

.hero-content{
    position:relative;
    z-index:2;

    width:100%;
}

.hero-glass{
    width:min(100%,760px);

    margin-left:clamp(16px,4vw,60px);

    padding:30px;
    border-radius:28px;
}

.hero-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:18px;
}

.rating-badge{
    background:var(--accent);
    color:#fff;

    padding:8px 14px;
    border-radius:999px;

    font-size:14px;
    font-weight:700;
}

.meta-pill{
    padding:8px 14px;
    border-radius:999px;

    background:rgba(255,255,255,.08);

    font-size:14px;
}

#seriesTitle{
    font-size:clamp(34px,6vw,68px);
    line-height:1.05;
    font-weight:800;
}

.genres{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}

.genre-pill{
    padding:8px 14px;
    border-radius:999px;

    background:rgba(255,255,255,.08);
    border:1px solid var(--border);

    font-size:13px;
}

.overview{
    margin-top:20px;
    color:#e5e7eb;
    line-height:1.8;
    font-size:15px;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:26px;
}

/* ===================================
   BUTTONS
=================================== */

.btn{
    border-radius:16px;
    transition:var(--transition);

    font-weight:700;

    padding:14px 22px;
}

.btn:hover{
    transform:translateY(-2px);
}

.btn-primary{
    background:var(--accent);
    color:white;
}

.btn-secondary{
    background:rgba(255,255,255,.08);
    color:white;
    border:1px solid var(--border);
}

.btn-large{
    width:100%;
    margin-top:8px;
}

/* ===================================
   SECTIONS
=================================== */

.section{
    padding:60px 0;
}

.section-title{
    font-size:28px;
    font-weight:800;
    margin-bottom:24px;
}

.section-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:24px;
}

.episode-count{
    color:var(--muted);
}

/* ===================================
   PLAYER
=================================== */

.player-card{
    overflow:hidden;
    border-radius:24px;
}

#videoPlayer{
    width:100%;
    display:block;
    background:black;
    aspect-ratio:16/9;
}

.playing-info{
    margin-top:14px;
    color:var(--muted);
    font-size:14px;
}

/* ===================================
   INFO GRID
=================================== */

.info-grid{
    display:grid;
    gap:16px;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.info-card{
    padding:20px;
    border-radius:20px;
}

.label{
    color:var(--muted);
    font-size:13px;
    margin-bottom:10px;
}

.value{
    font-weight:700;
    line-height:1.6;
}

/* ===================================
   EPISODES
=================================== */

.episodes-grid{
    display:grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(280px,1fr)
        );

    gap:18px;
}

.episode-card{
    overflow:hidden;

    border-radius:22px;

    background:var(--card);

    border:1px solid var(--border);

    transition:var(--transition);

    cursor:pointer;
}

.episode-card:hover{
    transform:translateY(-4px);
}

.episode-thumb{
    position:relative;
    aspect-ratio:16/9;
    overflow:hidden;
}

.episode-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.episode-badges{
    position:absolute;
    left:12px;
    top:12px;

    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.badge{
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.badge-season{
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(10px);
}

.badge-upcoming{
    background:#ff9800;
    color:#111;
}

.episode-content{
    padding:16px;
}

.episode-title{
    font-weight:700;
    margin-bottom:10px;

    line-height:1.4;
}

.episode-meta{
    display:flex;
    justify-content:space-between;
    gap:10px;

    color:var(--muted);
    font-size:13px;
}

.episode-overview{
    margin-top:12px;
    color:#d1d5db;
    font-size:13px;
    line-height:1.7;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* ===================================
   FAQ
=================================== */

.faq-container{
    display:grid;
    gap:16px;
}

.faq-item{
    padding:20px;
    border-radius:20px;
}

.faq-question{
    font-weight:800;
    margin-bottom:12px;
}

.faq-answer{
    color:#d1d5db;
    line-height:1.8;
}

/* ===================================
   FOOTER
=================================== */

.footer{
    border-top:1px solid var(--border);
    padding:40px 0 80px;
}

.footer-title{
    font-size:22px;
    font-weight:800;
    margin-bottom:12px;
}

.footer-desc{
    color:var(--muted);
    line-height:1.8;
    max-width:800px;
}

.footer-copy{
    margin-top:20px;
    color:#6b7280;
    font-size:14px;
}

/* ===================================
   MODAL
=================================== */

.modal{
    position:fixed;
    inset:0;

    display:none;

    z-index:9999;
}

.modal.active{
    display:flex;
    align-items:center;
    justify-content:center;

    animation:fadeIn .25s ease;
}

.modal-overlay{
    position:absolute;
    inset:0;

    background:rgba(0,0,0,.75);
    backdrop-filter:blur(12px);
}

.modal-content{
    position:relative;
    z-index:2;

    width:min(92vw,620px);

    margin:20px;

    padding:30px;

    border-radius:28px;
}

.modal-badge{
    display:inline-flex;

    padding:8px 12px;

    border-radius:999px;

    background:rgba(255,152,0,.18);

    border:1px solid rgba(255,152,0,.35);

    margin-bottom:16px;
}

.modal-content h2{
    font-size:34px;
    margin-bottom:10px;
}

.modal-subtitle{
    color:#d1d5db;
    margin-bottom:18px;
}

.modal-description{
    color:#d1d5db;
    line-height:1.9;
}

.modal-small{
    margin-top:14px;
    text-align:center;
    color:var(--muted);
    font-size:13px;
}

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

/* ===================================
   SCROLLBAR
=================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#101010;
}

::-webkit-scrollbar-thumb{
    background:#303030;
    border-radius:999px;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width:768px){

    .hero{
        min-height:auto;
        padding:100px 0 50px;
    }

    .hero-glass{
        margin:0 16px;
        padding:22px;
    }

    #seriesTitle{
        font-size:38px;
    }

    .section{
        padding:50px 0;
    }

    .section-title{
        font-size:24px;
    }

    .episodes-grid{
        grid-template-columns:1fr;
    }

    .modal-content h2{
        font-size:26px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn{
        width:100%;
    }
}

@media (min-width:1600px){

    .hero-glass{
        max-width:820px;
    }

}