@font-face{font-family:"Vazirmatn";src:url("fonts/Vazirmatn-var.woff2") format("woff2");font-weight:100 900;font-display:swap}

:root{
  --ink:#000;--ink-2:#121212;--ink-3:#1f1f1f;
  --paper:#fff;--mute:#b3b3b3;
  --brass:#f5c518;--brass-ink:#000;--yellow:#f5c518;--link:#5799ef;
  --line:#2e2e2e;--ok:#7fd3a0;--bad:#ff8a7a;--warn:#f5c518;
  --r:8px;
  --sans:"Vazirmatn",Roboto,system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;
  --wrap:1280px;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:5rem}
body{margin:0;background:var(--ink);color:var(--paper);font:400 1rem/1.7 var(--sans);min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
img,video{max-width:100%;display:block}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:2px solid var(--yellow);outline-offset:2px;border-radius:4px}
.skip{position:absolute;inset-inline-start:1rem;top:-4rem;background:var(--yellow);color:#000;padding:.5rem 1rem;border-radius:6px;z-index:60}
.skip:focus{top:.6rem}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
h1,h2,h3{margin:0;line-height:1.25;font-weight:700}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1rem}
@media(min-width:900px){.wrap{padding:0 1.5rem}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.muted{color:var(--mute)}
.star{width:1.1rem;height:1.1rem;fill:currentColor;flex:none}
.star.on{fill:var(--yellow);color:var(--yellow)}

/* ---------- header (search-first, like a film database) ---------- */
.site-header{background:var(--ink-2);border-bottom:1px solid #1d1d1d;position:sticky;top:0;z-index:40}
.hdr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.6rem 1.1rem;max-width:var(--wrap);margin:0 auto;padding:.55rem 1rem}
@media(min-width:900px){.hdr{padding:.6rem 1.5rem}}
.brand{display:flex;align-items:center;gap:.6rem;color:#fff;font-weight:700;min-width:0}
.brand:hover{text-decoration:none}
.logo{width:2.3rem;height:2.3rem;flex:none;display:grid;place-items:center;background:var(--yellow);border-radius:6px}
.logo svg{width:1.4rem;height:1.4rem;fill:#000}
.brand-name{font-size:.92rem;line-height:1.25;max-width:12rem}
.hnav{display:flex;align-items:center;gap:.2rem;order:3}
.hnav a{color:#fff;padding:.45rem .75rem;border-radius:6px;font-weight:500;font-size:.95rem;white-space:nowrap}
.hnav a:hover{background:rgba(255,255,255,.1);text-decoration:none}
.hnav .lang{border:1px solid #444;margin-inline-start:.3rem}
.search{display:flex;background:#fff;border-radius:6px;overflow:hidden;order:2;min-width:0}
.search input{flex:1;min-width:0;border:0;background:transparent;color:#000;padding:.55rem .9rem;border-radius:0;font:400 .98rem var(--sans)}
.search input:focus{outline:none}
.search:focus-within{box-shadow:0 0 0 2px var(--yellow)}
.search input::placeholder{color:#777}
.search button{border:0;background:transparent;color:#444;padding:0 .8rem;cursor:pointer}
.search button svg{width:1.4rem;height:1.4rem;fill:currentColor}
@media(max-width:820px){
  .hdr{grid-template-columns:minmax(0,1fr) auto}
  .search{grid-column:1/-1;order:3}
  .hnav{order:2}
  .hnav a{padding:.4rem .5rem;font-size:.88rem}
  .brand-name{font-size:.85rem;max-width:9.5rem}
}
.foot{background:var(--ink-2);margin-top:3rem;border-top:1px solid #1d1d1d}
.foot-in{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-block:1.5rem;color:var(--mute);font-size:.9rem}

/* ---------- buttons / fields ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.8rem;padding:.5rem 1.3rem;border-radius:6px;border:1px solid transparent;background:#2a2a2a;color:#fff;font:600 1rem var(--sans);cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.btn:hover{text-decoration:none;background:#3a3a3a}
.btn svg{width:1.25rem;height:1.25rem;fill:currentColor}
.btn-yellow,.btn-primary{background:var(--yellow);color:#000}
.btn-yellow:hover,.btn-primary:hover{background:#ffd740;color:#000}
.btn-ghost{background:transparent;border-color:#555;color:var(--link)}
.btn-ghost:hover{background:rgba(87,153,239,.12);border-color:var(--link)}
.btn-small{min-height:2.2rem;padding:.2rem .9rem;font-size:.9rem}
.btn-block{width:100%}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.field{display:grid;gap:.4rem;margin-bottom:1rem}
.field>span{font-size:.92rem;color:var(--mute)}
.field small{color:var(--mute);font-size:.82rem;line-height:1.6}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=date],input[type=time],input:not([type]),select,textarea{width:100%;background:#0d0d0d;color:#fff;border:1px solid #444;border-radius:6px;padding:.65rem .85rem;font:400 1rem/1.6 var(--sans)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--yellow);outline-offset:1px;border-color:transparent}
::placeholder{color:#777}
textarea{resize:vertical}
.hp{position:absolute!important;inset-inline-start:-9999px;width:1px;height:1px;opacity:0}
.notice{padding:.75rem 1rem;border-radius:6px;border:1px solid var(--line);background:var(--ink-3);margin:0 0 1rem;font-size:.97rem;line-height:1.8}
.notice-ok{border-color:rgba(127,211,160,.5);color:var(--ok)}
.notice-err{border-color:rgba(255,138,122,.55);color:var(--bad)}
.notice-warn{border-color:rgba(245,197,24,.5);color:var(--warn)}
.tag{display:inline-block;color:var(--yellow);border:1px solid var(--yellow);border-radius:4px;font-size:.76rem;font-weight:700;padding:0 .5rem;margin-bottom:.45rem;line-height:1.7}

/* ---------- section headings (yellow bar) ---------- */
.sec{margin:2.4rem 0}
.sec-h{display:flex;align-items:center;gap:.7rem;font-size:1.45rem;margin-bottom:1rem;flex-wrap:wrap}
.sec-h::before{content:"";width:4px;height:2rem;background:var(--yellow);border-radius:2px;flex:none}
.sec-h.sub{margin-top:2rem}
.sec-count{color:var(--mute);font-size:1.05rem;font-weight:400}
.sec-more{margin-inline-start:auto;font-size:.95rem;font-weight:500}
.crumb{font-size:.9rem;color:var(--mute);margin-bottom:.8rem}

/* ---------- poster cards / rows ---------- */
.row{display:flex;gap:.9rem;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:.7rem;scrollbar-color:#444 transparent}
.card{flex:0 0 clamp(145px,17vw,205px);scroll-snap-align:start;background:var(--ink-3);border-radius:6px;overflow:hidden;color:#fff;display:flex;flex-direction:column}
.card:hover{text-decoration:none;background:#292929}
.card-poster{display:block;aspect-ratio:2/3;background:#2a2a2a}
.card-poster img{width:100%;height:100%;object-fit:cover}
.card-body{display:grid;gap:.15rem;padding:.65rem .75rem .85rem}
.card-body strong{font-size:1rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-body small{color:var(--mute);font-size:.85rem}
.card-rate{display:flex;align-items:center;gap:.3rem;font-size:.95rem;color:#ddd}
.card-rate .star{color:var(--yellow);fill:var(--yellow)}
.card-rate i{font-style:normal;color:#777}
.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem}
.grid-cards .card{flex:none}
.poster-empty{display:grid;place-items:center;width:100%;height:100%;font-size:4rem;font-weight:800;color:var(--yellow);background:#1a1a1a}

/* ---------- home feature ---------- */
.feature{position:relative;display:flex;align-items:flex-end;min-height:clamp(340px,56vh,520px);background:#121212 var(--still,none) center/cover no-repeat}
.feature::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#000 2%,rgba(0,0,0,.6) 45%,rgba(0,0,0,.25))}
.feature-in{position:relative;width:100%;display:flex;gap:1.3rem;align-items:flex-end;padding-block:1.6rem 1.8rem}
.feature-poster{flex:none;width:clamp(105px,16vw,200px);aspect-ratio:2/3;border-radius:6px;overflow:hidden;background:#222;box-shadow:0 12px 40px -10px #000}
.feature-poster img{width:100%;height:100%;object-fit:cover}
.feature-text{min-width:0}
.feature h1{font-size:clamp(1.8rem,5vw,3.4rem);margin-bottom:.3rem}
.feature h1 a{color:#fff}
.feature-tag{color:#ddd;font-size:1.1rem;max-width:34rem;margin:0 0 .6rem}
.feature-meta{display:flex;align-items:center;gap:.6rem;margin:0 0 1rem;color:#ddd;flex-wrap:wrap}
.feature-meta b{font-size:1.2rem}
.cta-row{display:flex;flex-wrap:wrap;gap:.7rem;margin:0}
.cta-main{margin-top:1.4rem}

/* ---------- title page ---------- */
.tp-top{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem 2rem;flex-wrap:wrap;padding-top:1.3rem}
.tp h1{font-size:clamp(1.9rem,5vw,3rem);line-height:1.2}
.meta{display:flex;flex-wrap:wrap;list-style:none;margin:.5rem 0 0;padding:0;color:var(--mute);font-size:.98rem}
.meta li+li::before{content:"•";margin-inline:.65rem;opacity:.7}
.tp-rate{display:flex;align-items:center;gap:1.4rem}
.lbl{display:block;font-size:.74rem;font-weight:700;color:var(--mute);letter-spacing:.05em;margin-bottom:.15rem}
.rate-main{display:flex;align-items:center;gap:.55rem;color:#fff}
.rate-main:hover{text-decoration:none}
.rate-main .star{width:2.1rem;height:2.1rem;color:#666;fill:#666}
.rate-main .star.on{color:var(--yellow);fill:var(--yellow)}
.rate-main .score{font-size:1rem;color:var(--mute)}
.rate-main .score b{font-size:1.5rem;color:#fff}
.rate-main small{display:block;color:var(--mute);font-size:.82rem;line-height:1.2}
.rate-main .none{max-width:8rem}
.rate-btn{display:flex;align-items:center;gap:.45rem;color:var(--link);font-weight:600;padding:.5rem .8rem;border-radius:6px}
.rate-btn:hover{background:rgba(87,153,239,.12);text-decoration:none}
.rate-btn .star{width:1.5rem;height:1.5rem}
.tp-media{display:grid;grid-template-columns:minmax(150px,270px) minmax(0,1fr) minmax(130px,190px);gap:.5rem;margin-top:1.1rem}
.tp-poster{margin:0;border-radius:6px;overflow:hidden;background:#1a1a1a;aspect-ratio:2/3}
.tp-poster img{width:100%;height:100%;object-fit:cover}
.tp-still{position:relative;display:block;min-height:240px;border-radius:6px;overflow:hidden;background:#161616 var(--still,none) center/cover no-repeat;color:#fff}
.tp-still::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.82),rgba(0,0,0,0) 55%)}
.tp-still:hover{text-decoration:none}
.play-chip{position:absolute;z-index:1;inset-inline-start:1rem;bottom:1rem;display:flex;align-items:center;gap:.7rem;font-weight:700;font-size:1.05rem}
.play-chip svg{width:3rem;height:3rem;padding:.55rem;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.45);fill:#fff;transition:background .15s,border-color .15s}
.tp-still:hover .play-chip svg{background:var(--yellow);border-color:var(--yellow);fill:#000}
.play-chip time{font-weight:400;color:#ddd}
.soon-chip{font-weight:500;font-size:.95rem}
.tp-side{display:grid;grid-template-rows:1fr 1fr;gap:.5rem}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;background:var(--ink-3);color:#fff;border-radius:6px;padding:.8rem;text-align:center;font-weight:600;font-size:.95rem}
.tile:hover{background:#2c2c2c;text-decoration:none}
.tile svg{width:1.7rem;height:1.7rem;fill:#ddd}
.tp-info{display:flex;gap:1.1rem;margin-top:1.4rem}
.tp-poster-m{display:none;flex:none;width:105px;aspect-ratio:2/3;margin:0;border-radius:6px;overflow:hidden;background:#1a1a1a}
.tp-poster-m img{width:100%;height:100%;object-fit:cover}
.tp-text{min-width:0;max-width:56rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.9rem}
.chip{border:1px solid #666;border-radius:999px;padding:.1rem .95rem;font-size:.9rem;color:#fff}
.tp-tagline{color:var(--mute);margin-bottom:.5rem}
.syn{font-size:1.06rem;line-height:2;margin-bottom:.7rem}
html[lang=en] .syn{line-height:1.7}
.credit-rows{margin-top:1.5rem;max-width:56rem}
.credit-row{display:flex;gap:1.2rem;padding:.75rem 0;border-top:1px solid #2e2e2e}
.credit-row:last-child{border-bottom:1px solid #2e2e2e}
.credit-row b{flex:none;min-width:7.5rem;font-weight:700}
.credit-row span{color:var(--link)}
.credit-row span.plain{color:#fff}
@media(max-width:900px){
  .tp-media{grid-template-columns:1fr}
  .tp-poster{display:none}
  .tp-still{aspect-ratio:16/9;min-height:0}
  .tp-side{grid-template-rows:none;grid-template-columns:1fr 1fr}
  .tp-info .tp-poster-m{display:block}
  .tp-rate{width:100%;justify-content:space-between}
}
@media(max-width:520px){.credit-row{flex-direction:column;gap:.1rem}.credit-row b{min-width:0;color:var(--mute);font-size:.85rem}}

.stills{display:flex;gap:.6rem;overflow-x:auto;padding-bottom:.7rem;scroll-snap-type:x proximity}
.still{flex:0 0 auto;height:clamp(140px,22vw,230px);padding:0;border:0;border-radius:6px;overflow:hidden;cursor:zoom-in;background:#1a1a1a;scroll-snap-align:start}
.still img{height:100%;width:auto;max-width:none}
.awards{list-style:none;margin:0;padding:0;max-width:56rem}
.awards li{padding:.7rem 0;border-top:1px solid #2e2e2e}
.awards li:last-child{border-bottom:1px solid #2e2e2e}
.awards a{color:var(--link)}

/* ---------- watch options (ticket) ---------- */
.ticket{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--r);padding:clamp(1.1rem,3vw,1.8rem);max-width:56rem}
.ticket-sub{color:var(--mute);max-width:38rem}
.ticket-body{display:grid;grid-template-columns:1fr 1px 1fr;gap:clamp(1.1rem,3vw,2rem);margin-top:1.1rem}
.ticket-body::before{content:"";order:1;grid-column:2;grid-row:1;border-inline-start:2px dashed #3a3a3a}
.stub{order:0}.admit{order:2}
.ticket-body h3{font-size:1.1rem;margin-bottom:.9rem}
.fine{margin:1.2rem 0 0;font-size:.88rem;color:var(--mute)}
.seg{display:inline-grid;grid-auto-flow:column;gap:.2rem;padding:.2rem;border:1px solid #444;border-radius:999px;margin-bottom:1rem}
.seg label{display:block}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span,.seg a{display:block;padding:.3rem 1.1rem;border-radius:999px;cursor:pointer;color:var(--mute);font-size:.93rem}
.seg input:checked+span,.seg a.on{background:var(--yellow);color:#000;font-weight:700}
.seg input:focus-visible+span{outline:2px solid var(--yellow);outline-offset:2px}
.code-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:1.25rem!important;letter-spacing:.2em;text-transform:uppercase;text-align:center}
@media(max-width:760px){
  .ticket-body{grid-template-columns:1fr}
  .ticket-body::before{grid-column:1;grid-row:2;border-inline-start:0;border-top:2px dashed #3a3a3a;height:0}
}

/* ---------- rating ---------- */
.rate-panel{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--r);padding:clamp(1.1rem,3vw,1.6rem);max-width:56rem}
.rate-sub{color:var(--mute)}
.stars{direction:ltr;display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:.1rem;margin:.2rem 0 .3rem}
.stars input{position:absolute;opacity:0;pointer-events:none}
.stars label{cursor:pointer;color:#555;padding:.1rem;line-height:0}
.stars label .star{width:clamp(1.7rem,6.2vw,2.3rem);height:clamp(1.7rem,6.2vw,2.3rem);fill:currentColor;transition:transform .1s}
.stars input:checked~label,.stars label:hover,.stars label:hover~label{color:var(--yellow)}
.stars label:hover .star{transform:scale(1.12)}
.stars input:focus-visible+label{outline:2px solid #fff;border-radius:4px}
.stars-val{display:block;min-height:1.6rem;font-weight:700;color:var(--yellow);margin-bottom:.6rem}
.rate-form .btn{margin-top:.3rem}
.old-code{margin:.4rem 0 .8rem;max-width:20rem}
.old-code summary{cursor:pointer;color:var(--link);font-size:.93rem;margin-bottom:.6rem}
.rate-gate{margin-top:1rem;padding:1rem;border:1px solid var(--yellow);border-radius:6px;background:rgba(245,197,24,.07)}
.rate-after h2{font-size:1.25rem;margin-bottom:.8rem}

/* ---------- news (editorial look) ---------- */
.news-list{display:grid;gap:0;max-width:60rem}
.nrow{display:grid;grid-template-columns:minmax(0,1fr) clamp(110px,22vw,200px);gap:1rem;padding:1.1rem 0;border-top:1px solid #2e2e2e}
.nrow:last-child{border-bottom:1px solid #2e2e2e}
.nthumb{order:2;display:block;aspect-ratio:4/3;border-radius:6px;overflow:hidden;background:#1a1a1a;align-self:start}
.nthumb img{width:100%;height:100%;object-fit:cover}
.nbody{order:1;min-width:0}
.nbody h3{font-size:1.2rem;line-height:1.45;margin-bottom:.35rem}
.nbody h3 a{color:#fff}
.nbody h3 a:hover{color:var(--link);text-decoration:none}
.nbody p{color:#cfcfcf;font-size:.98rem;margin:0 0 .5rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nmeta{display:flex;flex-wrap:wrap;gap:.2rem 1rem;color:var(--mute);font-size:.85rem}
.nmeta span+span::before,.nmeta time+span::before{content:"|";margin-inline-end:1rem;opacity:.5}
.top-story{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:1.4rem;align-items:center;margin-bottom:1.4rem;max-width:60rem}
.ts-img{display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#1a1a1a}
.ts-img img{width:100%;height:100%;object-fit:cover}
.ts-body h2{font-size:clamp(1.4rem,3vw,2rem);line-height:1.35;margin-bottom:.6rem}
.ts-body h2 a{color:#fff}
.ts-body h2 a:hover{color:var(--link);text-decoration:none}
.ts-body p{color:#d6d6d6;margin-bottom:.7rem}
@media(max-width:700px){.top-story{grid-template-columns:1fr}}
.article-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:2.5rem;padding-top:1.5rem}
.article{max-width:46rem}
.article h1{font-size:clamp(1.8rem,4.6vw,2.7rem);line-height:1.35;margin-bottom:.8rem}
.standfirst{font-size:1.2rem;line-height:1.9;color:#d9d9d9;margin-bottom:1rem}
.byline{display:flex;flex-wrap:wrap;gap:.2rem 1rem;color:var(--mute);font-size:.9rem;padding-block:.7rem;border-block:1px solid #2e2e2e;margin-bottom:1.2rem}
.byline span+span::before,.byline time+span::before{content:"|";margin-inline-end:1rem;opacity:.5}
.article-img{margin:0 0 1.4rem;border-radius:8px;overflow:hidden;background:#1a1a1a}
.article-img img{width:100%;max-height:480px;object-fit:cover}
.article-body{font-size:1.12rem;line-height:2.05}
html[lang=en] .article-body{line-height:1.8}
.article-body p{margin-bottom:1.2em}
.source{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #2e2e2e;color:var(--mute)}
.article-side{display:grid;gap:1rem;align-content:start}
.side-film{display:flex;gap:.9rem;align-items:center;background:var(--ink-3);border-radius:8px;padding:.7rem;color:#fff}
.side-film:hover{text-decoration:none;background:#2a2a2a}
.side-film img{width:72px;border-radius:4px;aspect-ratio:2/3;object-fit:cover}
.side-film strong{display:block}
.side-film small{display:flex;align-items:center;gap:.3rem;color:var(--mute)}
.side-h{font-size:1.1rem;margin-top:.6rem}
.side-news{list-style:none;margin:0;padding:0}
.side-news li{padding:.7rem 0;border-top:1px solid #2e2e2e}
.side-news a{display:block;color:#fff;font-weight:600;line-height:1.5}
.side-news time{color:var(--mute);font-size:.82rem}
@media(max-width:900px){.article-grid{grid-template-columns:1fr}.article-side{order:2}}

/* ---------- lightbox / watch page / misc ---------- */
dialog{border:0;padding:0;background:transparent;max-width:min(94vw,1200px);max-height:92vh;color:#fff}
dialog::backdrop{background:rgba(0,0,0,.92)}
dialog img{max-height:90vh;margin:auto;border-radius:6px}
.lb-close{position:fixed;top:1rem;inset-inline-end:1.2rem;background:none;border:0;color:#fff;font-size:2.4rem;line-height:1;cursor:pointer}
.theatre{max-width:1200px;margin:0 auto;padding:0 1rem 1rem}
.theatre-bar{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;color:var(--mute);font-size:.92rem;padding:1rem 0}
.theatre-title{font-size:clamp(1.5rem,4vw,2.4rem);margin-bottom:1rem}
.screen{background:#000;border-radius:8px;overflow:hidden;border:1px solid #222;margin-bottom:1.4rem}
.screen video{width:100%;max-height:78vh;background:#000}
.player-error{padding:1rem;color:var(--bad);margin:0}
.center-block{max-width:46rem;margin:0 auto;padding:clamp(2.5rem,7vw,5rem) 1rem}
.center-block h1{font-size:clamp(1.9rem,5vw,3rem);margin-bottom:.8rem}
.lead{max-width:38rem;color:var(--mute);font-size:1.1rem}
.prose p{max-width:62ch}
.soon{color:var(--mute)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- admin ---------- */
body.admin{font-size:1rem;line-height:1.8}
.adm-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding:.9rem 1.25rem;border-bottom:1px solid var(--line);background:var(--ink-2)}
.adm-top nav{display:flex;gap:1.1rem;align-items:center;flex-wrap:wrap}
.adm-top nav a{color:var(--paper);text-decoration:none;font-size:.95rem}
.adm-top nav a:hover{color:var(--brass)}
.adm-main{max-width:1100px;width:100%;margin:0 auto;padding:2rem 1.25rem 3rem}
.adm-main h1{font-size:1.8rem;margin-bottom:1.2rem}
.adm-main h2{font-size:1.2rem;margin:1.8rem 0 .8rem}
.adm-card{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--r);padding:1.4rem;margin:1.2rem 0}
.adm-card.narrow{max-width:30rem;margin:4vh auto}
.adm-card summary{cursor:pointer;font-weight:700}
.stack{display:grid;gap:.4rem}
.form-wide{max-width:none}
.form-wide fieldset{border:1px solid var(--line);border-radius:var(--r);padding:1.2rem 1.2rem .4rem;margin:0 0 1.4rem;min-width:0}
legend{padding:0 .6rem;font-weight:700;color:var(--brass)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 1.2rem}
@media (max-width:760px){.grid2{grid-template-columns:1fr}}
.inline{display:flex;align-items:center;gap:.5rem}.inline input{width:5rem}
.check{display:flex;gap:.6rem;align-items:center;margin:.4rem 0 1rem}
.actions{display:flex;gap:.8rem;margin:1rem 0}
.row-between{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.row-between h1{margin:0}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:1rem;margin-bottom:1.5rem}
.stat{display:grid;gap:.2rem;padding:1.2rem;background:var(--ink-2);border:1px solid var(--line);border-radius:var(--r);color:var(--paper);text-decoration:none}
a.stat:hover{border-color:var(--brass)}
.stat b{font-size:2.2rem;line-height:1.1;color:var(--brass)}
.stat span{color:var(--mute);font-size:.9rem}
.table-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:.95rem}
.tbl th{text-align:start;color:var(--mute);font-weight:600;font-size:.85rem;padding:.6rem .7rem;border-bottom:1px solid var(--line)}
.tbl td{padding:.7rem;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl .small{font-size:.82rem;color:var(--mute);max-width:14rem}
.acts{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap}
.acts form{margin:0}
body.admin .tag{display:inline-block;padding:.05rem .7rem;border-radius:99px;border:1px solid var(--line);font-size:.82rem;color:var(--mute)}
body.admin .tag-ok{color:var(--ok);border-color:rgba(143,199,163,.5)}
body.admin .tag-bad{color:var(--bad);border-color:rgba(229,154,138,.5)}
.link-btn{background:none;border:0;padding:0;color:var(--brass);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:.25em}
.link-btn.danger{color:var(--bad)}
.thumb{max-width:140px;border-radius:6px;margin-bottom:.6rem}
.thumbs{display:flex;flex-wrap:wrap;gap:.7rem;margin-bottom:.7rem}
.thumb-del{display:grid;gap:.2rem;font-size:.8rem;color:var(--mute)}
.thumb-del img{height:70px;width:auto;border-radius:4px}
.issued{border:1px solid var(--brass);background:linear-gradient(135deg,#242638,#191c28);border-radius:var(--r);padding:1.2rem 1.4rem;margin-bottom:1.5rem}
.issued h2{margin-top:0}
.issued-code{font:700 2.1rem/1.3 ui-monospace,Consolas,monospace;letter-spacing:.18em;color:var(--brass);margin:.6rem 0;user-select:all}
code{background:var(--ink-3);padding:.05rem .4rem;border-radius:5px;font-size:.9em}

/* ---------- admin: upload progress ---------- */
.vup{border:1px dashed #555;border-radius:8px;padding:1rem;background:#0d0d0d}
.vup-bar{height:12px;background:#222;border-radius:99px;overflow:hidden;margin:.8rem 0 .4rem}
.vup-fill{height:100%;width:0;background:linear-gradient(90deg,#f5c518,#ffd740);border-radius:99px;transition:width .2s}
.vup.is-busy .vup-fill{background-size:200% 100%;animation:vupmove 1.2s linear infinite}
@keyframes vupmove{from{background-position:0 0}to{background-position:-40px 0}}
.vup-status{font-size:.93rem;min-height:1.6rem;color:var(--mute)}
.vup.is-done{border-color:var(--ok);border-style:solid}
.vup.is-done .vup-fill{background:var(--ok)}
.vup.is-done .vup-status{color:var(--ok)}
.vup-check{display:inline-grid;place-items:center;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--ok);color:#000;font-weight:700;margin-inline-end:.3rem}
.vup.is-error{border-color:var(--bad)}
.vup.is-error .vup-status{color:var(--bad)}
#save-btn.pulse{animation:pulse 1.2s ease 2}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(245,197,24,.35)}}
.rate-info{font-size:.85rem;color:var(--mute)}
