:root{
    --bg:#070708;
    --bg2:#0c0c0f;
    --panel:#111114;
    --panel2:#17171b;
    --line:rgba(255,255,255,.08);
    --text:#f5f2ec;
    --muted:#929097;
    --gold:#deb16f;
    --gold2:#f1d09e;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    background:var(--bg);
}

body{
    margin:0;
    color:var(--text);
    background:var(--bg);
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
}

body,
button,
input{
    font-family:inherit;
}

button,
a{
    -webkit-tap-highlight-color:transparent;
}

a{
    color:inherit;
    text-decoration:none;
}

img,
video{
    max-width:100%;
}

.hidden{
    display:none!important;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar{
    width:9px;
    height:9px;
}

::-webkit-scrollbar-track{
    background:#08080a;
}

::-webkit-scrollbar-thumb{
    background:#303036;
    border-radius:999px;
}

/* =====================================================
   TOP BAR
   ===================================================== */

.topbar{
    position:sticky;
    top:0;
    z-index:100;
    border-bottom:1px solid rgba(255,255,255,.06);
    background:rgba(8,8,10,.92);
    backdrop-filter:blur(15px);
}

.topbar-inner{
    min-height:68px;
    padding:0 24px;
    display:flex;
    align-items:center;
    gap:30px;
}

.brand,
.logo{
    font-weight:950;
    letter-spacing:.18em;
    font-size:13px;
    white-space:nowrap;
}

.brand span,
.logo span,
.footer-brand span{
    color:var(--gold);
}

.main-nav{
    display:flex;
    align-items:center;
    gap:23px;
    margin-left:5px;
}

.main-nav a{
    color:#b7b4ba;
    font-size:12px;
    font-weight:750;
    white-space:nowrap;
    transition:color .2s ease;
}

.main-nav a:hover{
    color:#fff;
}

.header-actions{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:7px;
}

.search-btn,
.login-btn{
    min-width:40px;
    height:38px;
    padding:0 12px;
    border:0;
    background:transparent;
    color:#ddd;
    cursor:pointer;
    font-weight:800;
}

.search-btn{
    font-size:25px;
}

.login-btn{
    font-size:10px;
    letter-spacing:.08em;
}

.upload-btn{
    min-height:38px;
    padding:0 15px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:4px;
    background:var(--gold);
    color:#17130e;
    font-size:10px;
    font-weight:950;
    letter-spacing:.08em;
}

/* =====================================================
   SEARCH
   ===================================================== */

.search-panel{
    max-height:0;
    overflow:hidden;
    border-top:1px solid transparent;
    transition:max-height .25s ease;
}

.search-panel.open{
    max-height:120px;
    border-top-color:var(--line);
}

.search-inner{
    width:min(1050px,calc(100% - 40px));
    margin:0 auto;
    padding:15px 0;
    display:flex;
    gap:10px;
}

.search-inner input{
    flex:1;
    min-width:0;
    height:46px;
    padding:0 16px;
    border:1px solid var(--line);
    border-radius:5px;
    outline:none;
    background:#101014;
    color:#fff;
}

.search-submit{
    height:46px!important;
}

/* =====================================================
   AGE GATE
   ===================================================== */

.age{
    position:fixed;
    inset:0;
    z-index:9999;
    display:grid;
    place-items:center;
    padding:20px;
    background:
        linear-gradient(90deg,rgba(5,5,7,.97),rgba(5,5,7,.82)),
        url("../img/hero-bg.jpg") center/cover no-repeat;
}

.age-card{
    width:min(470px,100%);
    padding:42px 35px;
    text-align:center;
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    background:rgba(15,15,18,.95);
    box-shadow:0 30px 100px rgba(0,0,0,.6);
}

.age-badge{
    width:max-content;
    margin:22px auto 0;
    padding:6px 10px;
    border:1px solid rgba(222,177,111,.3);
    color:var(--gold);
    font-size:9px;
    font-weight:900;
    letter-spacing:.18em;
}

.age-card h1{
    margin:22px 0 13px;
    font-family:Georgia,serif;
    font-size:44px;
    font-weight:400;
    letter-spacing:-.04em;
}

.age-card p{
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
}

.age-card .primary-btn{
    margin-top:15px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.primary-btn,
.secondary-btn{
    min-height:43px;
    padding:0 17px;
    border:1px solid transparent;
    border-radius:4px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:10px;
    font-weight:950;
    letter-spacing:.08em;
    transition:.2s ease;
}

.primary-btn{
    background:var(--gold);
    color:#16120d;
}

.primary-btn:hover{
    background:var(--gold2);
}

.secondary-btn{
    background:rgba(255,255,255,.03);
    border-color:rgba(255,255,255,.15);
    color:#eee;
}

.secondary-btn:hover{
    border-color:rgba(222,177,111,.5);
    color:var(--gold2);
}

.full{
    width:100%;
}

/* =====================================================
   HERO
   ===================================================== */

.featured-hero{
    position:relative;
    min-height:430px;
    background:
        linear-gradient(
            90deg,
            rgba(5,5,7,.96) 0%,
            rgba(5,5,7,.78) 35%,
            rgba(5,5,7,.2) 100%
        ),
        url("../img/hero-bg.jpg") center/cover no-repeat;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            0deg,
            rgba(7,7,8,1) 0,
            transparent 35%
        );
}

.hero-content{
    position:relative;
    z-index:2;
    width:min(1450px,calc(100% - 60px));
    min-height:430px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.mini-label,
.section-kicker{
    color:var(--gold);
    font-size:9px;
    font-weight:950;
    letter-spacing:.2em;
    text-transform:uppercase;
}

.hero-content h1{
    max-width:700px;
    margin:14px 0;
    font-size:clamp(45px,6vw,84px);
    line-height:.92;
    letter-spacing:-.06em;
}

.hero-content h1 span{
    color:var(--gold2);
    font-family:Georgia,serif;
    font-weight:400;
}

.hero-content p{
    max-width:500px;
    margin:0;
    color:#b4b0b6;
    line-height:1.7;
    font-size:15px;
}

.hero-buttons{
    display:flex;
    gap:9px;
    margin-top:22px;
}

/* =====================================================
   SECTION
   ===================================================== */

.content-section{
    width:min(1450px,calc(100% - 34px));
    margin:0 auto;
    padding:36px 0 5px;
}

.section-title-row{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:15px;
}

.section-title-row h2{
    margin:5px 0 0;
    font-size:20px;
    line-height:1;
    letter-spacing:-.02em;
}

.view-all{
    color:#aaa7ac;
    font-size:9px;
    font-weight:900;
}

.view-all:hover{
    color:var(--gold2);
}

.row-controls{
    display:flex;
    gap:5px;
}

.arrow-btn{
    width:34px;
    height:34px;
    border:0;
    background:#16161a;
    color:#d4d1cc;
    cursor:pointer;
    font-size:25px;
    line-height:1;
}

.arrow-btn:hover{
    background:#222227;
    color:var(--gold2);
}

/* =====================================================
   POSTER ROW
   ===================================================== */

.poster-row{
    display:flex;
    gap:9px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-behavior:smooth;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    padding-bottom:7px;
}

.poster-row::-webkit-scrollbar{
    display:none;
}

.poster-card{
    position:relative;
    flex:0 0 158px;
    width:158px;
    scroll-snap-align:start;
    overflow:hidden;
}

.poster-media{
    position:relative;
    aspect-ratio:2/3;
    overflow:hidden;
    background:#16161b;
    border-radius:2px;
    border:1px solid rgba(255,255,255,.06);
}

.poster-media img,
.poster-media video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    cursor:pointer;
    transition:transform .3s ease;
}

.poster-card:hover .poster-media img,
.poster-card:hover .poster-media video{
    transform:scale(1.04);
}

.content-badge{
    position:absolute;
    top:5px;
    left:5px;
    padding:3px 5px;
    background:#e5162e;
    color:#fff;
    font-size:7px;
    font-weight:950;
    line-height:1;
}

.rating-badge{
    position:absolute;
    top:5px;
    right:5px;
    padding:3px 5px;
    background:#ffd325;
    color:#14110c;
    font-size:8px;
    font-weight:950;
    line-height:1;
}

.rank-badge{
    position:absolute;
    left:7px;
    bottom:27px;
    color:#fff;
    font-size:28px;
    font-weight:950;
    text-shadow:0 3px 9px rgba(0,0,0,.9);
}

.poster-title{
    margin-top:7px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    color:#e9e6df;
    font-size:10px;
    font-weight:800;
}

.poster-meta{
    margin-top:3px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    color:#747078;
    font-size:8px;
}

.poster-actions{
    margin-top:5px;
}

.poster-actions a{
    color:var(--gold);
    font-size:8px;
    font-weight:800;
}

/* =====================================================
   LATEST GRID
   ===================================================== */

.latest-grid{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
    padding-bottom:50px;
}

.grid-card{
    min-width:0;
    overflow:hidden;
    background:#101014;
    border:1px solid rgba(255,255,255,.06);
}

.grid-media{
    aspect-ratio:2/3;
    background:#17171b;
    overflow:hidden;
}

.grid-media img,
.grid-media video{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}

.grid-media img{
    cursor:pointer;
}

.grid-info{
    padding:10px;
}

.grid-info h3{
    margin:0;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    color:#e8e4dd;
    font-size:11px;
}

.grid-info span{
    display:block;
    margin-top:4px;
    color:#77737b;
    font-size:8px;
}

.download-link{
    display:inline-block;
    margin-top:8px;
    color:var(--gold);
    font-size:8px;
    font-weight:900;
}

.loading-card,
.empty-result{
    flex:0 0 auto;
    min-width:190px;
    padding:50px 25px;
    border:1px dashed rgba(255,255,255,.12);
    background:#0d0d10;
    color:#77737b;
    font-size:11px;
    text-align:center;
}

.latest-grid .empty-result{
    grid-column:1/-1;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal{
    position:fixed;
    inset:0;
    z-index:1000;
    display:none;
    place-items:center;
    padding:20px;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(8px);
}

.modal.show{
    display:grid;
}

.modal-box{
    position:relative;
    width:min(420px,100%);
    padding:32px;
    background:#121216;
    border:1px solid rgba(255,255,255,.1);
    border-radius:10px;
}

.modal-box h2{
    margin:8px 0;
    font-size:30px;
}

.modal-muted{
    color:var(--muted);
    font-size:12px;
    line-height:1.6;
}

.modal-box form{
    margin-top:22px;
    display:grid;
    gap:10px;
}

.modal-box input{
    width:100%;
    height:45px;
    padding:0 13px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:4px;
    background:#0d0d10;
    color:#fff;
    outline:none;
}

.modal-close{
    position:absolute;
    top:10px;
    right:12px;
    width:36px;
    height:36px;
    border:0;
    background:transparent;
    color:#aaa;
    font-size:27px;
    cursor:pointer;
}

/* =====================================================
   LIGHTBOX
   ===================================================== */

.lightbox-box{
    position:relative;
    width:min(1000px,95vw);
    max-height:92vh;
    padding:16px;
    background:#0c0c0f;
    border:1px solid rgba(255,255,255,.08);
}

.lightbox-box img,
.lightbox-box video{
    width:100%;
    max-height:82vh;
    object-fit:contain;
    display:block;
    background:#050507;
}

.lightbox-title{
    padding:0 0 12px;
    color:#ebe7df;
    font-size:13px;
    font-weight:800;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer{
    min-height:90px;
    padding:25px 24px;
    border-top:1px solid rgba(255,255,255,.06);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    color:#69666d;
    font-size:9px;
}

.footer-brand{
    color:#eee;
    font-size:12px;
    font-weight:950;
    letter-spacing:.15em;
}

/* =====================================================
   TABLET
   ===================================================== */

@media(max-width:1000px){

    .main-nav{
        gap:13px;
    }

    .latest-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }

}

/* =====================================================
   MOBILE
   ===================================================== */

@media(max-width:720px){

    .topbar-inner{
        min-height:60px;
        padding:0 14px;
        gap:10px;
    }

    .main-nav{
        display:none;
    }

    .brand{
        font-size:11px;
    }

    .login-btn{
        display:none;
    }

    .upload-btn{
        min-height:34px;
        padding:0 11px;
        font-size:8px;
    }

    .featured-hero{
        min-height:370px;
    }

    .hero-content{
        width:calc(100% - 32px);
        min-height:370px;
    }

    .hero-content h1{
        font-size:52px;
    }

    .hero-content p{
        font-size:13px;
    }

    .content-section{
        width:calc(100% - 22px);
        padding-top:30px;
    }

    .section-title-row h2{
        font-size:18px;
    }

    .poster-card{
        flex-basis:132px;
        width:132px;
    }

    .latest-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:7px;
    }

    .grid-info{
        padding:8px;
    }

    .grid-info h3{
        font-size:9px;
    }

    .site-footer{
        flex-direction:column;
        align-items:flex-start;
    }

}

@media(max-width:460px){

    .header-actions{
        gap:3px;
    }

    .search-btn{
        padding:0 6px;
    }

    .featured-hero{
        min-height:340px;
        background-position:68% center;
    }

    .hero-content{
        min-height:340px;
    }

    .hero-content h1{
        font-size:42px;
    }

    .hero-buttons{
        flex-wrap:wrap;
    }

    .poster-card{
        flex-basis:116px;
        width:116px;
    }

    .latest-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .age-card{
        padding:32px 22px;
    }

}