:root{
  --bg:#0b0b0f;--bg-2:#14141b;--surface:#1b1b24;--surface-2:#24242f;--surface-3:#30303d;
  --red:#e50914;--red-2:#ff2a36;--text:#f5f5f7;--muted:#9aa0aa;--muted-2:#6c6c78;
  --line:rgba(255,255,255,.08);--line-2:rgba(255,255,255,.16);
  --gold:#f5c518;--green:#46d369;--blue:#4a9eff;--purple:#a855f7;--cyan:#22d3ee;--orange:#f97316;
  --shadow:0 20px 55px -14px rgba(0,0,0,.8);
  --radius:8px;--gutter:4vw;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea,select{font-family:inherit;font-size:14px}
a{color:inherit;text-decoration:none}
::-webkit-scrollbar{height:9px;width:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:9px}
::-webkit-scrollbar-thumb:hover{background:#41414f}
:focus-visible{outline:2px solid var(--red-2);outline-offset:2px;border-radius:4px}

/* topbar */
.topbar{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;align-items:center;gap:22px;padding:14px var(--gutter);background:linear-gradient(180deg,rgba(7,7,11,.95),rgba(7,7,11,0));transition:background .3s}
.topbar.solid{background:var(--bg-2);box-shadow:0 1px 0 var(--line)}
.brand{font-weight:900;font-size:23px;letter-spacing:-.04em;color:var(--red);text-transform:uppercase;cursor:pointer;flex-shrink:0;line-height:1}
.brand span{color:var(--text)}
.nav{display:flex;gap:2px;align-items:center;flex:1;overflow-x:auto;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav button{padding:8px 13px;font-size:14px;font-weight:600;color:var(--muted);border-radius:6px;white-space:nowrap;transition:color .15s,background .15s}
.nav button:hover{color:var(--text)}
.nav button.active{color:var(--text);background:var(--surface-2)}
.top-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.icon-btn{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;color:var(--text);transition:background .15s}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn svg{width:20px;height:20px}

/* billboard */
.billboard{position:relative;min-height:72vh;display:flex;align-items:flex-end;padding:0 var(--gutter) 6vh;overflow:hidden}
.billboard-bg{position:absolute;inset:0;background-size:cover;background-position:center 20%;z-index:0;transition:background-image .5s}
.billboard-grad{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(11,11,15,.96) 0%,rgba(11,11,15,.72) 32%,rgba(11,11,15,.2) 62%,rgba(11,11,15,0) 100%),linear-gradient(0deg,var(--bg) 2%,rgba(11,11,15,.35) 22%,rgba(11,11,15,0) 55%)}
.bb-inner{position:relative;z-index:2;max-width:640px}
.bb-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:12.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--red-2);margin-bottom:14px}
.bb-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--red-2)}
.bb-title{font-size:clamp(34px,5.5vw,68px);font-weight:900;letter-spacing:-.035em;line-height:.98;margin-bottom:14px;text-shadow:0 3px 30px rgba(0,0,0,.5)}
.bb-meta{display:flex;flex-wrap:wrap;gap:9px 14px;align-items:center;font-size:14px;color:var(--muted);margin-bottom:16px}
.bb-meta .tag{padding:3px 9px;border:1px solid var(--line-2);border-radius:5px;font-weight:700;font-size:11.5px;letter-spacing:.05em;color:var(--text)}
.bb-overview{font-size:15.5px;line-height:1.55;color:#d8d8de;margin-bottom:24px;max-width:560px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bb-actions{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;gap:9px;padding:12px 24px;border-radius:7px;font-weight:800;font-size:15px;transition:transform .12s,background .15s,opacity .15s}
.btn:active{transform:scale(.97)}
.btn svg{width:19px;height:19px}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-2)}
.btn-ghost{background:rgba(80,80,92,.55);color:var(--text);backdrop-filter:blur(4px)}
.btn-ghost:hover{background:rgba(100,100,112,.6)}
.btn-sm{padding:9px 16px;font-size:13.5px}

/* rows */
.rows{padding:20px 0 60px;margin-top:-1vh;position:relative;z-index:5}
.row{margin:0 0 34px}
.row-head{display:flex;align-items:center;gap:12px;padding:0 var(--gutter);margin-bottom:12px}
.row-head h2{font-size:19px;font-weight:800;letter-spacing:-.02em}
.row-head .count{font-size:13px;color:var(--muted-2);font-weight:600}
.row-scroll{display:flex;gap:12px;overflow-x:auto;padding:6px var(--gutter) 10px;scroll-padding-inline:var(--gutter);scrollbar-width:none}
.row-scroll::-webkit-scrollbar{display:none}

/* cards */
.card{position:relative;flex:0 0 auto;width:158px;cursor:pointer;transition:transform .18s}
.card:hover{transform:scale(1.055)}
.card-poster{position:relative;width:100%;aspect-ratio:2/3;border-radius:7px;overflow:hidden;background:linear-gradient(150deg,var(--surface-2),var(--surface));box-shadow:0 8px 22px -10px rgba(0,0,0,.7)}
.card-poster img{width:100%;height:100%;object-fit:cover}
.card-noposter{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;padding:12px;background:linear-gradient(160deg,#26262f,#131319)}
.card-noposter .np-title{font-size:14px;font-weight:800;line-height:1.15}
.card-noposter .np-year{font-size:12px;color:var(--muted);margin-top:4px}
.card-foot{position:absolute;left:0;right:0;bottom:0;padding:20px 10px 9px;background:linear-gradient(0deg,rgba(0,0,0,.9),transparent);border-radius:0 0 7px 7px;opacity:0;transform:translateY(6px);transition:opacity .18s,transform .18s;pointer-events:none}
.card:hover .card-foot{opacity:1;transform:translateY(0)}
.card-foot .cf-title{font-size:12.5px;font-weight:800;line-height:1.15;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-labels{position:absolute;top:8px;left:8px;display:flex;flex-direction:column;gap:4px;z-index:3}
.card-label-tag{padding:3px 7px;border-radius:4px;font-size:9px;font-weight:800;letter-spacing:.03em;color:#fff;backdrop-filter:blur(4px);white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.badge-collection{position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:50%;background:var(--green);display:grid;place-items:center;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.badge-collection svg{width:15px;height:15px;color:#08240f}
.badge-wishlist{position:absolute;top:8px;right:8px;background:var(--gold);color:#1a1a00;font-size:9px;font-weight:800;letter-spacing:.04em;padding:4px 8px;border-radius:20px;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.mini-stars{display:flex;gap:1px;align-items:center}
.mini-stars svg{width:12px;height:12px}

/* row arrows */
.row-body{position:relative}
.row-arrow{position:absolute;top:calc(50% - 8px);transform:translateY(-50%);z-index:7;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:#fff;background:rgba(16,16,22,.6);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.14);box-shadow:0 8px 22px -8px rgba(0,0,0,.75);opacity:1;transition:opacity .18s,background .18s,transform .12s}
.row-arrow.left{left:8px}.row-arrow.right{right:8px}
.row-arrow svg{width:20px;height:20px}
.row-arrow:hover{background:rgba(28,28,38,.92);border-color:rgba(255,255,255,.28)}
.row-arrow:active{transform:translateY(-50%) scale(.9)}
.row-body.at-start .row-arrow.left,.row-body.at-end .row-arrow.right{opacity:0;pointer-events:none}
@media(hover:hover){.row-arrow{opacity:0}.row-body:hover .row-arrow{opacity:1}}

/* views */
.view{padding-top:76px;min-height:100vh}
.view.hidden{display:none}
.hero-strip{padding:34px var(--gutter) 6px}
.hero-strip h1{font-size:30px;font-weight:900;letter-spacing:-.03em}
.hero-strip p{color:var(--muted);margin-top:8px;font-size:15px;max-width:640px;line-height:1.5}
.toolbar{display:flex;flex-direction:column;gap:8px;padding:20px var(--gutter) 6px}
.toolbar-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.col-select{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px 14px;color:var(--text);font-size:13px;cursor:pointer;min-width:160px;appearance:auto}
.col-select:hover{border-color:var(--line-2)}
.col-select option{background:var(--bg-2);color:var(--text)}
.chip{padding:8px 15px;border-radius:20px;font-size:13.5px;font-weight:600;background:var(--surface);border:1px solid var(--line);color:var(--muted);transition:.15s}
.chip:hover{color:var(--text);border-color:var(--line-2)}
.chip.active{background:var(--text);color:#111;border-color:var(--text)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px 14px;padding:26px var(--gutter) 80px}
.empty{text-align:center;padding:70px 20px;color:var(--muted)}
.empty svg{width:52px;height:52px;color:var(--surface-3);margin-bottom:18px}
.empty h3{font-size:19px;font-weight:800;color:var(--text);margin-bottom:8px}
.empty p{font-size:14.5px;max-width:420px;margin:0 auto 18px;line-height:1.5}

/* overlays */
.overlay{position:fixed;inset:0;z-index:200;display:none;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto;background:rgba(0,0,0,.7);backdrop-filter:blur(6px)}
.overlay.open{display:flex}
.sheet{width:100%;max-width:860px;background:var(--bg-2);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;animation:pop .22s ease}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.sheet-sm{max-width:440px}
.close-x{position:absolute;top:16px;right:16px;z-index:6;width:38px;height:38px;border-radius:50%;background:rgba(10,10,14,.7);display:grid;place-items:center;backdrop-filter:blur(4px)}
.close-x svg{width:19px;height:19px}
.close-x:hover{background:rgba(30,30,38,.85)}

/* detail overlay */
.det-hero{position:relative;height:250px;background-size:cover;background-position:center 25%}
.det-hero .grad{position:absolute;inset:0;background:linear-gradient(0deg,var(--bg-2),transparent 75%),linear-gradient(90deg,rgba(20,20,27,.7),transparent 60%)}
.det-hero.noimg{background:radial-gradient(800px 400px at 80% 10%,rgba(229,9,20,.22),transparent),linear-gradient(135deg,#1c1c25,#101015)}
.det-body{padding:0 30px 30px;margin-top:-70px;position:relative;z-index:2}
.det-top{display:flex;gap:22px;align-items:flex-end;margin-bottom:22px}
.det-poster{width:118px;flex-shrink:0;aspect-ratio:2/3;border-radius:9px;object-fit:cover;box-shadow:var(--shadow);background:var(--surface-2)}
.det-headings{flex:1;min-width:0;padding-bottom:4px}
.det-title{font-size:27px;font-weight:900;letter-spacing:-.025em;line-height:1.05}
.det-meta{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:10px;font-size:13.5px;color:var(--muted)}
.det-meta .tag{padding:2px 8px;border:1px solid var(--line-2);border-radius:5px;font-weight:700;font-size:11px;color:var(--text)}
.det-section{margin-bottom:24px}
.det-section h4{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);margin-bottom:11px}
.det-overview{font-size:14.5px;line-height:1.6;color:#d5d5db}

/* labels */
.label-pills{display:flex;flex-wrap:wrap;gap:6px}
.label-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:7px;font-size:12.5px;font-weight:700;cursor:pointer;transition:.15s;border:1px solid var(--line)}
.label-pill.on{color:#fff;border-color:transparent}
.label-pill:not(.on){color:var(--muted);background:var(--surface)}
.label-pill:not(.on):hover{color:var(--text);border-color:var(--line-2)}

/* status segment */
.seg{display:inline-flex;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:4px;gap:3px;flex-wrap:wrap}
.seg button{padding:8px 15px;border-radius:6px;font-size:13.5px;font-weight:700;color:var(--muted);transition:.15s}
.seg button:hover{color:var(--text)}
.seg button.on{background:var(--red);color:#fff}
.seg button.on.owned{background:var(--green);color:#08240f}
.seg button.on.wishlist{background:var(--gold);color:#1a1a00}

/* stars */
.stars{display:inline-flex;gap:5px;align-items:center}
.star-slot{position:relative;width:30px;height:30px;cursor:pointer}
.star-slot .sh{position:absolute;inset:0;overflow:hidden;width:0}
.star-slot svg{width:30px;height:30px;flex-shrink:0}
.star-slot .base{color:var(--surface-3)}
.star-slot .sh svg{color:var(--gold)}
.star-half{position:absolute;top:0;bottom:0;width:50%;z-index:2}
.star-half.l{left:0}.star-half.r{right:0}
.rate-val{margin-left:12px;font-size:14px;font-weight:700;color:var(--gold)}
.rate-clear{margin-left:8px;font-size:12.5px;color:var(--muted-2);text-decoration:underline;cursor:pointer}
.rate-clear:hover{color:var(--text)}

/* notes */
textarea.notes{width:100%;min-height:88px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:13px 15px;color:var(--text);resize:vertical;line-height:1.5;font-size:14px}
textarea.notes:focus{border-color:var(--line-2);outline:none}

/* cast */
.cast-scroll{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scrollbar-width:none}
.cast-scroll::-webkit-scrollbar{display:none}
.cast-card{flex:0 0 auto;width:84px;text-align:center}
.cast-card img,.cast-ph{width:84px;height:84px;border-radius:50%;object-fit:cover;object-position:center 15%;background:var(--surface-2);margin:0 auto 8px}
.cast-ph{display:grid;place-items:center;font-size:24px;font-weight:800;color:var(--muted-2)}
.cast-name{font-size:11.5px;font-weight:700;line-height:1.2}
.cast-role{font-size:10.5px;color:var(--muted);margin-top:2px;line-height:1.2}

/* detail footer */
.det-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px}
.txt-btn{font-size:13px;color:var(--muted);font-weight:600;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.txt-btn:hover{color:var(--red-2)}
.txt-btn svg{width:15px;height:15px}

/* search overlay */
.search-head{padding:26px 26px 18px;border-bottom:1px solid var(--line)}
.search-in{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line-2);border-radius:11px;padding:14px 18px}
.search-in svg{width:22px;height:22px;color:var(--muted);flex-shrink:0}
.search-in input{flex:1;background:none;border:none;outline:none;color:var(--text);font-size:17px}
.search-results{padding:16px 26px 30px;min-height:200px}
.sr-item{display:flex;gap:14px;align-items:center;padding:11px 12px;border-radius:10px;cursor:pointer;transition:background .12s}
.sr-item:hover{background:var(--surface)}
.sr-poster{width:46px;height:69px;border-radius:6px;object-fit:cover;background:var(--surface-2);flex-shrink:0}
.sr-body{flex:1;min-width:0}
.sr-title{font-size:15px;font-weight:700}
.sr-sub{font-size:12.5px;color:var(--muted);margin-top:2px}
.sr-add{flex-shrink:0;width:34px;height:34px;border-radius:8px;background:var(--surface-2);display:grid;place-items:center;transition:.15s}
.sr-add svg{width:18px;height:18px}
.sr-add.added{background:var(--green)}
.sr-add.added svg{color:#08240f}
.search-hint{text-align:center;color:var(--muted);padding:44px 20px;font-size:14px}
.spinner{width:26px;height:26px;border:3px solid var(--surface-3);border-top-color:var(--red);border-radius:50%;animation:spin .7s linear infinite;margin:0 auto}
@keyframes spin{to{transform:rotate(360deg)}}

/* settings */
.set-body{padding:28px 30px 30px}
.set-body h2{font-size:22px;font-weight:900;letter-spacing:-.02em;margin-bottom:4px}
.set-body>p.sub{color:var(--muted);font-size:14px;margin-bottom:24px}
.set-group{margin-bottom:26px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.set-group:last-child{border-bottom:none;padding-bottom:0;margin-bottom:0}
.set-group h4{font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-2);margin-bottom:6px}
.set-group .g-desc{font-size:13.5px;color:var(--muted);line-height:1.5;margin-bottom:14px}
.set-group .g-desc a{color:var(--red-2);text-decoration:underline}
.key-row{display:flex;gap:10px;flex-wrap:wrap}
.key-row input{flex:1;min-width:200px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:12px 15px;color:var(--text)}
.key-row input:focus{border-color:var(--line-2);outline:none}
.key-status{font-size:12.5px;margin-top:10px;font-weight:600}
.key-status.ok{color:var(--green)}
.key-status.err{color:var(--red-2)}
.btn-row{display:flex;gap:10px;flex-wrap:wrap}
.btn-outline{background:transparent;border:1px solid var(--line-2);color:var(--text);padding:11px 18px;border-radius:8px;font-weight:700;font-size:14px;transition:.15s}
.btn-outline:hover{background:var(--surface-2)}
.btn-danger{color:var(--red-2);border-color:rgba(229,9,20,.4)}
.btn-danger:hover{background:rgba(229,9,20,.12)}

/* label manager */
.label-manager{margin-top:14px}
.lm-list{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.lm-row{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.lm-color{width:24px;height:24px;border-radius:6px;flex-shrink:0;cursor:pointer;border:2px solid transparent}
.lm-color:hover{border-color:var(--text)}
.lm-name{flex:1;font-size:13.5px;font-weight:600}
.lm-del{padding:4px 10px;border-radius:6px;font-size:12px;font-weight:700;color:var(--muted-2);transition:.15s}
.lm-del:hover{color:var(--red-2);background:rgba(229,9,20,.1)}
.lm-add-row{display:flex;gap:8px}
.lm-add-row input{flex:1;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 13px;color:var(--text);font-size:13.5px}
.lm-add-row input:focus{border-color:var(--line-2);outline:none}

/* stats */
.stats-wrap{padding:34px var(--gutter) 90px;max-width:1400px}
.stats-title{font-size:26px;font-weight:800;letter-spacing:-.02em;margin:0 0 26px}
.stat-band{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:44px}
.stat-big{background:linear-gradient(135deg,#1e1e28,#141419);border:1px solid var(--line);border-radius:16px;padding:26px 24px}
.sb-num{font-size:34px;font-weight:800;letter-spacing:-.02em;line-height:1}
.sb-lbl{color:var(--muted);font-size:12px;margin-top:9px;text-transform:uppercase;letter-spacing:.08em}
.genre-bars{display:flex;flex-direction:column;gap:12px}
.gb-row{display:grid;grid-template-columns:140px 1fr 34px;align-items:center;gap:14px}
.gb-name{font-size:13.5px;font-weight:600;text-align:right}
.gb-track{background:var(--surface-2);border-radius:7px;height:26px;overflow:hidden}
.gb-fill{height:100%;background:linear-gradient(90deg,var(--red),var(--red-2));border-radius:7px;transition:width .6s ease}
.gb-count{font-size:13px;font-weight:700;color:var(--muted)}
.stat-section{margin-bottom:44px}
.stat-section>h2{font-size:18px;font-weight:700;margin:0 0 16px}

/* import progress */
.import-progress{margin-top:14px;padding:14px;background:var(--surface);border-radius:9px;border:1px solid var(--line)}
.import-bar{height:6px;background:var(--surface-2);border-radius:6px;overflow:hidden;margin-top:8px}
.import-bar span{display:block;height:100%;background:var(--green);border-radius:6px;transition:width .3s}
.import-text{font-size:12.5px;color:var(--muted);font-weight:600}

/* toast */
.toast-wrap{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:400;display:flex;flex-direction:column;gap:10px;align-items:center;pointer-events:none}
.toast{background:var(--surface-2);border:1px solid var(--line-2);color:var(--text);padding:13px 20px;border-radius:10px;font-size:14px;font-weight:600;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px;animation:tin .25s ease;max-width:90vw}
.toast svg{width:18px;height:18px;flex-shrink:0}
.toast.ok svg{color:var(--green)}
.toast.err svg{color:var(--red-2)}
@keyframes tin{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* responsive */
/* Mobile bottom bar — hidden on desktop */
.mobile-bar{display:none}

@media(max-width:720px){
  .brand{font-size:20px}
  .nav{display:none}
  .billboard{min-height:60vh;padding-bottom:5vh}
  .bb-overview{-webkit-line-clamp:2;font-size:14px}
  .det-body{padding:0 18px 24px}
  .det-top{gap:16px}
  .det-poster{width:92px}
  .det-title{font-size:22px}
  .set-body,.search-head{padding-left:18px;padding-right:18px}
  .overlay{padding:16px 8px}
  .stat-band{grid-template-columns:repeat(2,1fr)}
  .gb-row{grid-template-columns:88px 1fr 26px;gap:8px}
  .gb-name{font-size:12px}
  .picker-card{flex-direction:column;align-items:center;text-align:center}
  .picker-poster{margin-bottom:16px}
  body{padding-bottom:68px}
  .mobile-bar{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:100;background:var(--bg-2);border-top:1px solid var(--line);padding:6px 0 env(safe-area-inset-bottom,6px);justify-content:space-around;align-items:center}
  .mb-btn{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 8px;color:var(--muted);transition:color .15s;background:none;border:none;cursor:pointer;font-family:inherit}
  .mb-btn svg{width:22px;height:22px}
  .mb-btn span{font-size:10px;font-weight:600}
  .mb-btn.active{color:var(--red-2)}
  .mb-btn:hover{color:var(--text)}
}

.count-link{cursor:pointer;text-decoration:underline;text-underline-offset:3px;transition:color .15s}
.count-link:hover{color:var(--red-2)}

/* Row drag */
.row-scroll{cursor:grab}
.row-scroll:active{cursor:grabbing}
.row-scroll.dragging *{pointer-events:none}

/* Watchlist page */
.wl-section{margin-bottom:8px}
.wl-header{display:flex;align-items:center;gap:12px;padding:20px 0 14px}
.wl-header h2{font-size:20px;font-weight:700}
.wl-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}

/* Random picker */
.picker-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.picker-card{display:flex;gap:24px;background:var(--surface);border-radius:12px;padding:24px;animation:pickerIn .4s ease-out}
.picker-poster{flex-shrink:0}
.picker-info{flex:1;text-align:left}
.picker-title{font-size:22px;font-weight:800;margin-bottom:6px}
.picker-meta{color:var(--muted);font-size:14px;margin-bottom:10px}
.picker-desc{color:var(--muted);font-size:13px;line-height:1.5;margin-bottom:10px}
@keyframes pickerIn{from{opacity:0;transform:scale(.92) translateY(12px)}to{opacity:1;transform:none}}

/* Read-only mode */
body.readonly .btn-add,body.readonly .detail-actions,body.readonly .detail-status,body.readonly .detail-labels,body.readonly .detail-rating,body.readonly .detail-notes,body.readonly [onclick*="openSearch"],body.readonly [onclick*="openSettings"],body.readonly [onclick*="openBarcode"]{display:none!important}
.auth-btn{transition:opacity .15s}
