:root{
    --bg:#020503;
    --surface:#0b120d;
    --line:#1c3924;
    --ink:#effff1;
    --muted:#91aa98;
    --accent:#39ff70;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font:14px system-ui,-apple-system,"Segoe UI",sans-serif;
}

a{
    color:inherit;
    text-decoration:none;
}


/* =========================
   WRAPPER
========================= */

.wrap{
    width:min(1160px,100%);
    margin:auto;
}


/* =========================
   HEADER
========================= */

.top{
    background:#030704;
    border-bottom:1px solid var(--line);
}

.top .wrap{
    min-height:68px;
    display:flex;
    align-items:center;
    gap:22px;
    padding:0 20px;
}

.brand{
    font-weight:950;
    font-size:19px;
    letter-spacing:-.7px;
}

.brand b{
    color:var(--accent);
    text-shadow:0 0 13px #39ff7088;
}


/* =========================
   SEARCH
========================= */

.search{
    display:flex;
    margin-left:auto;
    width:min(420px,55vw);
    height:38px;
    overflow:hidden;
    border:1px solid #275535;
    border-radius:6px;
    background:#08100a;
}

.search input{
    min-width:0;
    flex:1;
    border:0;
    outline:0;
    background:transparent;
    color:#fff;
    padding:0 12px;
}

.search button{
    width:44px;
    border:0;
    border-left:1px solid #275535;
    background:#102617;
    color:var(--accent);
    font-size:17px;
    cursor:pointer;
}


/* =========================
   NAVIGATION
========================= */

.nav{
    display:flex;
    gap:2px;
    overflow:auto;
    background:#071008;
    border-bottom:3px solid var(--accent);
    padding:0 max(12px,calc((100% - 1160px)/2));
}

.nav a{
    padding:12px 13px;
    white-space:nowrap;
    color:#a7c7ad;
    font-size:12px;
    font-weight:750;
}

.nav a:hover,
.nav a.active{
    background:var(--accent);
    color:#021006;
}


/* =========================
   HERO
========================= */

.hero{
    padding:40px 22px;
    background:
        radial-gradient(
            circle at 78% 15%,
            #176b31,
            transparent 28%
        ),
        linear-gradient(
            120deg,
            #07160c,
            #071009 58%,
            #06170c
        );
}

.eyebrow{
    margin:0;
    color:#78ff9e;
    font-size:11px;
    font-weight:850;
    letter-spacing:1px;
}

.hero h1{
    max-width:700px;
    margin:6px 0 9px;
    font-size:clamp(29px,4vw,42px);
    letter-spacing:-1.4px;
}

.hero p:last-child{
    max-width:650px;
    margin:0;
    color:var(--muted);
    line-height:1.6;
}


/* =========================
   SECTION
========================= */

.section{
    padding:29px 20px 0;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    border-bottom:1px solid var(--line);
    padding-bottom:10px;
    margin-bottom:13px;
}

.section-head h2{
    margin:0;
    font-size:21px;
}

.count{
    font-size:11px;
    color:var(--muted);
}


/* =========================
   MOVIE GRID
========================= */

.grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:12px;
}

.card{
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:7px;
    background:var(--surface);
    transition:.15s;
}

.card:hover{
    transform:translateY(-4px);
    border-color:var(--accent);
    box-shadow:0 7px 20px #39ff701a;
}


/* =========================
   POSTER
========================= */

.poster{
    position:relative;
    display:flex;
    align-items:end;
    justify-content:center;
    aspect-ratio:2/3;
    padding:10px 6px;
    background:linear-gradient(
        145deg,
        var(--a),
        var(--b)
    );
    overflow:hidden;
}

.poster:after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            transparent 35%,
            #0001 55%,
            #020204
        );
}

.poster strong{
    z-index:1;
    text-align:center;
    font-size:12px;
    text-shadow:0 2px 5px #000;
}


/* =========================
   BADGE / SCORE
========================= */

.pill,
.score{
    position:absolute;
    z-index:2;
    top:6px;
    padding:3px 5px;
    border-radius:3px;
    background:#000a;
    font-size:9px;
}

.pill{
    left:6px;
    background:var(--accent);
    color:#021006;
}

.score{
    right:6px;
}


/* =========================
   CARD INFO
========================= */

.info{
    padding:8px;
}

.info h3{
    margin:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:12px;
}

.info p{
    margin:4px 0 0;
    color:var(--muted);
    font-size:10px;
}


/* =========================
   DETAIL BUTTON
========================= */

.nonton{
    width:100%;
    margin-top:9px;
    border:1px solid #2b613a;
    border-radius:4px;
    background:#102617;
    color:#d7ffe1;
    padding:6px;
    font-size:10px;
    font-weight:750;
    cursor:pointer;
}

.nonton:hover{
    border-color:var(--accent);
    background:var(--accent);
    color:#021006;
}


/* =========================
   EMPTY
========================= */

.empty{
    padding:28px;
    border:1px dashed #2b613a;
    border-radius:8px;
    background:var(--surface);
    color:var(--muted);
    line-height:1.6;
}


/* =========================
   ARTICLE
========================= */

.article{
    max-width:780px;
    padding:31px 20px 10px;
    color:#c1d2c5;
    line-height:1.75;
}

.article h2{
    color:#fff;
    line-height:1.2;
}

.article a{
    color:#78ff9e;
    text-decoration:underline;
}


/* =========================
   NOTICE
========================= */

.notice{
    max-width:760px;
    margin:35px 20px;
    padding:27px;
    border:1px solid var(--line);
    border-radius:9px;
    background:var(--surface);
}

.notice h1{
    margin:0 0 8px;
}

.notice p{
    color:var(--muted);
    line-height:1.65;
}


/* =========================
   FOOTER
========================= */

footer{
    margin-top:38px;
    border-top:3px solid var(--accent);
    padding:28px 20px;
    background:#030704;
    text-align:center;
    color:var(--muted);
    font-size:12px;
}


/* =========================
   MODAL
========================= */

.modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:5;
    background:#000d;
}

.modal.open{
    display:block;
}

.dialog{
    position:absolute;
    top:50%;
    left:50%;
    display:grid;
    grid-template-columns:220px 1fr;
    transform:translate(-50%,-50%);
    width:min(680px,calc(100% - 28px));
    overflow:hidden;
    border:1px solid #397947;
    border-radius:8px;
    background:#0a120d;
}

.art{
    min-height:325px;
    background:linear-gradient(
        145deg,
        #092116,
        #20a94a
    );
}

.body{
    padding:28px;
}

.body h2{
    margin:5px 0;
    font-size:28px;
}

.body p{
    color:var(--muted);
    line-height:1.6;
}

.close{
    position:absolute;
    right:9px;
    top:9px;
    z-index:2;
    width:32px;
    height:32px;
    border:0;
    border-radius:50%;
    background:#000b;
    color:#fff;
    font-size:23px;
    cursor:pointer;
}


/* =========================
   BUTTON
========================= */

.button{
    display:inline-block;
    border:0;
    border-radius:5px;
    background:var(--accent);
    padding:10px 13px;
    color:#021006;
    font-size:12px;
    font-weight:800;
}


/* =========================
   TABLET
========================= */

@media(max-width:800px){

    .grid{
        grid-template-columns:repeat(4,1fr);
    }

}


/* =========================
   MOBILE
========================= */

@media(max-width:570px){

    .top .wrap{
        min-height:58px;
        padding:0 12px;
        gap:12px;
    }

    .brand{
        font-size:16px;
    }

    .search{
        width:auto;
        flex:1;
    }

    .nav{
        padding:0;
    }

    .nav a{
        padding:10px 9px;
    }

    .hero{
        padding:29px 16px;
    }

    .section{
        padding:24px 12px 0;
    }

    .grid{
        grid-template-columns:repeat(3,1fr);
        gap:8px;
    }

    .detail{
        display:none;
    }

    .dialog{
        grid-template-columns:1fr;
        max-height:90vh;
        overflow:auto;
    }

    .art{
        min-height:190px;
    }

    .body{
        padding:19px;
    }

}