[hidden] { display: none !important; }
:root {
  --bg: #0d0f14;
  --panel: #161a22;
  --panel-2: #1f2430;
  --text: #e9ecf2;
  --muted: #8a93a6;
  --accent: #ff6b3d;
  --accent-2: #ffb547;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); min-height: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button {
  background: var(--accent); border: 0; border-radius: 8px; padding: .6em 1.1em;
  font-weight: 600; cursor: pointer; color: #fff;
}
button.ghost { background: transparent; border: 1px solid #2c3342; }
button.danger { background: #b3261e; }
button:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=password], input[type=search], select , input[type=email]{
  background: var(--panel-2); border: 1px solid #2c3342; border-radius: 8px;
  padding: .6em .8em; width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

/* Top bar */
#topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem max(1rem, env(safe-area-inset-left)); background: linear-gradient(#0d0f14f0, #0d0f14d0);
  backdrop-filter: blur(8px); border-bottom: 1px solid #1c212c;
}
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 1.1rem; }
nav a { color: var(--muted); font-weight: 600; }
nav a.active { color: var(--text); }
#search { max-width: 240px; margin-left: auto; }
.menu { position: relative; }
#usermenu {
  position: absolute; right: 0; top: 120%; background: var(--panel); border: 1px solid #2c3342;
  border-radius: var(--radius); padding: .4rem; display: flex; flex-direction: column; min-width: 150px;
}
#usermenu a, #usermenu button { padding: .55rem .7rem; text-align: left; border: 0; border-radius: 6px; font-weight: 500; }
#usermenu a:hover, #usermenu button:hover { background: var(--panel-2); }
@media (max-width: 640px) {
  #topbar { flex-wrap: wrap; gap: .7rem .9rem; }
  nav { gap: .8rem; }
  .menu { order: 6; }
  #search { order: 5; max-width: none; flex: 1 1 calc(100% - 120px); margin-left: 0; }
}

main { padding: 1.2rem max(1rem, env(safe-area-inset-left)) 3rem; }
h1 { font-size: 1.6rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
.muted { color: var(--muted); }

/* Cards */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: .9rem;
  overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.card { display: block; scroll-snap-align: start; }
.card .img { position: relative; aspect-ratio: 16/9; background: var(--panel-2) center/cover no-repeat;
  border-radius: var(--radius); overflow: hidden; transition: transform .15s; }
.grid .card .img { aspect-ratio: 2/3; }
.card:hover .img { transform: scale(1.03); }
.card .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); }
.card .badge { position: absolute; top: .4rem; right: .4rem; background: #000a; padding: .1rem .45rem;
  border-radius: 5px; font-size: .75rem; font-weight: 700; }
.card .t { margin-top: .45rem; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { color: var(--muted); font-size: .82rem; }

/* Show page */
.episodes { display: flex; flex-direction: column; gap: .6rem; }
.ep { display: grid; grid-template-columns: 180px 1fr auto; gap: 1rem; align-items: center;
  background: var(--panel); border-radius: var(--radius); padding: .6rem; }
.ep .img { aspect-ratio: 16/9; border-radius: 8px; background: var(--panel-2) center/cover; position: relative; overflow: hidden; }
.ep .img .bar { position: absolute; bottom: 0; left: 0; height: 4px; background: var(--accent); }
.ep .watched { color: var(--accent-2); font-weight: 700; }
@media (max-width: 640px) { .ep { grid-template-columns: 120px 1fr; } .ep .actions { grid-column: 1 / -1; } }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button { background: var(--panel-2); }
.tabs button.on { background: var(--accent); }

/* Auth */
.auth { max-width: 360px; margin: 10vh auto; background: var(--panel); padding: 2rem; border-radius: 14px; }
.auth form, .panel form { display: flex; flex-direction: column; gap: .8rem; }
.error { color: #ff8a80; min-height: 1.2em; font-size: .9rem; }
.panel { background: var(--panel); border-radius: 14px; padding: 1.2rem; margin-bottom: 1.2rem; max-width: 720px; }
table { width: 100%; border-collapse: collapse; }
td { padding: .5rem .3rem; border-bottom: 1px solid #262c39; }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.inline input { flex: 1; min-width: 120px; }

/* Player */
.player { position: fixed; inset: 0; background: #000; z-index: 50; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(#000a, transparent 20%, transparent 70%, #000c); transition: opacity .25s; }
.player.idle .ui { opacity: 0; cursor: none; }
.player .top { display: flex; align-items: center; gap: 1rem; padding: 1rem max(1rem, env(safe-area-inset-left)); }
.player .top .title { font-weight: 700; font-size: 1.1rem; }
.player .bottom { padding: 1rem max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-bottom)); }
.player .controls { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.player .controls .spacer { flex: 1; }
.player .icon { background: none; border: 0; padding: .3rem .5rem; font-size: 1.35rem; }
.player .time { font-variant-numeric: tabular-nums; color: #ddd; font-size: .9rem; }
.player select { width: auto; padding: .3rem .5rem; background: #0008; }
.seek { position: relative; height: 18px; cursor: pointer; display: flex; align-items: center; }
.seek .track { position: absolute; left: 0; right: 0; height: 4px; background: #ffffff33; border-radius: 2px; }
.seek .buf { position: absolute; left: 0; height: 4px; background: #ffffff55; border-radius: 2px; }
.seek .fill { position: absolute; left: 0; height: 4px; background: var(--accent); border-radius: 2px; }
.seek .knob { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; }
.seek .hover { position: absolute; bottom: 20px; transform: translateX(-50%); background: #000c; padding: .15rem .4rem; border-radius: 4px; font-size: .8rem; }
.player .center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player .spinner { width: 46px; height: 46px; border: 4px solid #fff3; border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-box { pointer-events: auto; background: #000d; padding: 1.4rem; border-radius: 14px; text-align: center; display: flex; flex-direction: column; gap: .7rem; min-width: 260px; }
.upnext { position: absolute; right: 1.5rem; bottom: 6.5rem; background: #000d; padding: 1rem; border-radius: 12px; max-width: 300px; }

#toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--panel-2);
  padding: .7rem 1.1rem; border-radius: 10px; z-index: 100; box-shadow: 0 6px 24px #0008; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---- v1.1 additions ---- */
.small { font-size: .82rem; }
.warn { color: var(--accent-2); }
a.link { color: var(--accent); }
.btn { display: inline-block; background: var(--accent); border-radius: 8px; padding: .6em 1.1em; font-weight: 600; cursor: pointer; color: #fff; }
select { cursor: pointer; }
td select { width: auto; margin-left: .4rem; padding: .3em .5em; }
.settings { display: flex; flex-direction: column; gap: .9rem; }
.settings label { display: flex; flex-direction: column; gap: .3rem; }
.settings label.inline { flex-direction: row; }

/* Poster cards */
.card.tall .img { aspect-ratio: 2/3; }
.row.tallrow { grid-auto-columns: minmax(140px, 170px); }

/* Movie / show header */
.hero { display: flex; gap: 1.5rem; padding: 2rem 0 1.5rem; margin: -1.2rem 0 1rem; min-height: 320px; align-items: flex-end;
  background: center top / cover no-repeat; }
.hero-poster { width: 200px; border-radius: var(--radius); box-shadow: 0 10px 40px #000a; flex: none; }
.hero-text { max-width: 720px; }
.hero h1 { font-size: 2.2rem; margin: 0 0 .3rem; }
.tagline { font-style: italic; margin-top: .4rem; color: #c8cedb; }
.overview { line-height: 1.55; margin: 0 0 .8rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.chips span { background: var(--panel-2); border-radius: 99px; padding: .2rem .7rem; font-size: .82rem; }
.cast { font-size: .9rem; }
.ep-overview { font-size: .88rem; margin-top: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .hero { flex-direction: column; align-items: flex-start; } .hero-poster { width: 130px; } .hero h1 { font-size: 1.6rem; } }

/* Modals */
.modal-wrap { position: fixed; inset: 0; background: #000b; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal { background: var(--panel); border-radius: 16px; padding: 1.5rem; width: min(480px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px #000; }
.modal.wide { width: min(860px, 100%); }
.modal-title { margin: 0 0 .5rem; font-size: 1.3rem; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.release { border-top: 1px solid #262c39; padding: .8rem 0 .2rem; }
.release ul { margin: .5rem 0; padding-left: 1.2rem; line-height: 1.6; }
.trailer { aspect-ratio: 16/9; }
.trailer iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.fm-results { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.fm-item { display: flex; gap: .8rem; text-align: left; align-items: flex-start; font-weight: 400; }
.fm-item img, .fm-item .noimg { width: 60px; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; background: var(--panel-2); flex: none; }

/* Subtitles */
.player .subs { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; pointer-events: none; padding: 0 5%; transition: bottom .25s; }
.player.idle .subs { bottom: 6%; }
.player .subs span { display: inline-block; background: #000a; color: #fff; padding: .15em .5em; border-radius: 6px;
  font-size: clamp(1rem, 2.6vw, 2rem); line-height: 1.35; text-shadow: 0 1px 2px #000; }
.player .ui { z-index: 1; }
.player .center, .player .upnext { z-index: 2; }

.inline input[type=checkbox], .settings input[type=checkbox] { flex: none; min-width: 0; width: auto; }
.panel form.inline { flex-direction: row; }


/* ======================================================================
   Cartoon theme (v1.3): chunky outlines, hard shadows, bouncy motion
   ====================================================================== */
:root {
  --bg: #231f36;
  --panel: #2f2a4a;
  --panel-2: #3b3560;
  --ink: #0e0c18;
  --text: #fff6e5;
  --muted: #b9b2d6;
  --accent: #ff6b3d;
  --accent-2: #ffc93c;
  --pop: #3ddbd9;
  --radius: 18px;
  --line: 3px solid var(--ink);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  font-family: "Baloo 2", "Fredoka", "Nunito", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
}
html, body { background: var(--bg); }
body { background-image: radial-gradient(#ffffff0d 1.5px, transparent 1.6px); background-size: 22px 22px; background-attachment: fixed; }
::selection { background: var(--accent-2); color: var(--ink); }

h1, h2, .t, button, .btn, nav a, .brand, .sticker { font-weight: 800; letter-spacing: .01em; }
h1 { font-size: 2rem; text-shadow: 3px 3px 0 var(--ink); }
h2 { font-size: 1.25rem; }
.rowtitle { margin: 2rem 0 .9rem; }
.rowtitle span { display: inline-block; background: var(--accent-2); color: var(--ink); padding: .15em .7em; border: var(--line);
  border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1.5deg); }
.rowtitle:nth-of-type(even) span { background: var(--pop); transform: rotate(1deg); }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.45rem; line-height: 1; }
.brand .mascot { width: 38px; height: 38px; transition: transform .35s var(--bounce); filter: drop-shadow(2px 2px 0 var(--ink)); }
.brand:hover .mascot { transform: rotate(-12deg) scale(1.15); }
.brand .word { color: var(--text); text-shadow: 2px 2px 0 var(--ink); }
.brand .word b { color: var(--accent); font-weight: 900; }
.brand.big { font-size: 2.1rem; margin-bottom: 1.2rem; }
.brand.big .mascot { width: 62px; height: 62px; animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(6deg) translateY(-3px); } }

/* Buttons and inputs */
button, .btn { background: var(--accent); color: var(--ink); border: var(--line); border-radius: 999px; padding: .5em 1.2em;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .18s var(--bounce), box-shadow .18s var(--bounce), background .15s; }
button:hover:not(:disabled), .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
button:active:not(:disabled), .btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
button.ghost { background: var(--panel-2); color: var(--text); border: var(--line); }
button.alt { background: var(--accent-2); }
button.danger { background: #ff4d6d; color: var(--ink); }
button.big { font-size: 1.1rem; padding: .6em 1.5em; }
input[type=text], input[type=password], input[type=search], select , input[type=email]{ background: var(--panel-2); border: var(--line); border-radius: 14px; color: var(--text); }
input:focus, select:focus { outline: 3px solid var(--accent-2); outline-offset: 1px; }
input::placeholder { color: var(--muted); }

/* Top bar */
#topbar { background: var(--bg); border-bottom: var(--line); backdrop-filter: none; box-shadow: 0 4px 0 #0e0c1855; }
nav a { color: var(--muted); padding: .25em .8em; border-radius: 999px; border: 3px solid transparent; transition: transform .2s var(--bounce); }
nav a:hover { color: var(--text); transform: translateY(-2px) rotate(-2deg); }
nav a.active { background: var(--accent); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
#search { border-radius: 999px; padding-left: 1.1em; }
#usermenu { background: var(--panel); border: var(--line); box-shadow: 5px 5px 0 var(--ink); border-radius: 16px; z-index: 20; }
#usermenu a, #usermenu button { border-radius: 10px; box-shadow: none; background: transparent; color: var(--text); border: 0; }
#usermenu a:hover, #usermenu button:hover { background: var(--accent-2); color: var(--ink); transform: none; box-shadow: none; }

/* Cards */
.row { gap: 1.2rem; padding: .5rem .6rem 1.2rem .3rem; margin-left: -.3rem; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.grid { gap: 1.4rem; }
.card .img { border: var(--line); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--ink); background-color: var(--panel-2);
  transition: transform .25s var(--bounce), box-shadow .25s var(--bounce); }
.card:hover .img { transform: translate(-3px, -4px) rotate(-1.5deg) scale(1.03); box-shadow: 9px 9px 0 var(--accent); }
.card:nth-child(even):hover .img { transform: translate(-3px, -4px) rotate(1.5deg) scale(1.03); box-shadow: 9px 9px 0 var(--pop); }
.card .t { margin-top: .7rem; font-size: 1rem; }
.card .s { color: var(--muted); }
.card .bar, .ep .img .bar { height: 7px; background: var(--accent-2); border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); }
.card .badge { background: var(--pop); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-weight: 900; top: .5rem; right: .5rem; }

/* Featured banner on Home */
.feature { position: relative; min-height: min(62vh, 520px); display: flex; align-items: flex-end; border: var(--line); border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink); background: var(--panel) center 20% / cover no-repeat; overflow: hidden; margin: .4rem .5rem 1rem 0; }
.feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #231f36f2 0%, #231f36b0 42%, transparent 75%), linear-gradient(0deg, #231f36cc, transparent 45%); }
.feature-text { position: relative; padding: 2rem; max-width: 640px; }
.feature h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; margin: .5rem 0 .4rem; text-shadow: 4px 4px 0 var(--ink); }
.feature p { line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: .5rem 0 1.1rem; }
.feature-meta { color: var(--accent-2); font-weight: 700; }
.sticker { display: inline-block; background: var(--pop); color: var(--ink); border: var(--line); border-radius: 999px; padding: .1em .8em;
  font-size: .85rem; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); text-transform: uppercase; }

/* Movie / show pages */
.hero { border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: 2rem; margin: .4rem .5rem 1.5rem 0; background-color: var(--panel); }
.hero-poster { border: var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); transform: rotate(-2deg); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.tagline { color: var(--accent-2); }
.chips span { background: var(--pop); color: var(--ink); border: 2px solid var(--ink); font-weight: 800; }
.chips span:nth-child(even) { background: var(--accent-2); }
.tabs button { background: var(--panel-2); color: var(--text); }
.tabs button.on { background: var(--accent); color: var(--ink); }
.ep { background: var(--panel); border: var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); transition: transform .2s var(--bounce); }
.ep:hover { transform: translate(-2px, -2px); }
.ep .img { border: 2px solid var(--ink); border-radius: 12px; }
.ep .watched { color: var(--pop); }

/* Panels, sign-in, modals, toast */
.panel, .auth, .modal { background: var(--panel); border: var(--line); border-radius: 24px; box-shadow: 7px 7px 0 var(--ink); }
.auth { text-align: center; margin-top: 8vh; }
.auth h1 { text-shadow: 2px 2px 0 var(--ink); }
td { border-bottom: 2px dashed #ffffff1f; }
.error { color: #ff8fa3; font-weight: 700; }
.warn { color: var(--accent-2); font-weight: 700; }
a.link { color: var(--accent-2); text-decoration: underline wavy; }
.modal { animation: pop .35s var(--bounce); }
@keyframes pop { from { transform: scale(.7) rotate(-4deg); opacity: 0; } }
.modal-title { text-shadow: 2px 2px 0 var(--ink); font-size: 1.5rem; }
.release { border-top: 2px dashed #ffffff26; }
.release li::marker { color: var(--accent); }
.fm-item { border-radius: 16px; }
#toast { background: var(--accent-2); color: var(--ink); border: var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); font-weight: 800; animation: pop .3s var(--bounce); }
.empty { font-weight: 700; }

/* Player: keep it clean, add a little character */
.player .icon { box-shadow: none; border: 0; background: none; color: #fff; }
.player .icon:hover:not(:disabled) { transform: scale(1.25) rotate(-6deg); box-shadow: none; }
.player select { border: 2px solid #fff6; background: #000a; border-radius: 999px; }
.seek .track, .seek .buf, .seek .fill { height: 8px; border-radius: 99px; }
.seek .fill { background: var(--accent); }
.seek .knob { width: 20px; height: 20px; margin-left: -10px; background: var(--accent-2); border: 3px solid var(--ink); }
.seek .hover { background: var(--accent-2); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; bottom: 24px; }
.overlay-box, .upnext { background: var(--panel); border: var(--line); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); }
.player .spinner, .spinner { border: 6px solid #fff3; border-top-color: var(--accent); width: 54px; height: 54px; }
.player .subs span { border-radius: 12px; font-weight: 700; }
.player .title { text-shadow: 2px 2px 0 var(--ink); font-weight: 800; }

@media (max-width: 640px) {
  .feature { min-height: 420px; border-radius: 22px; }
  .feature-text { padding: 1.2rem; }
  .brand .word { font-size: 1.2rem; }
  .hero { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 640px) {
  #topbar { gap: .6rem .5rem; }
  nav { gap: .2rem; margin-left: auto; }
  nav a { padding: .2em .55em; font-size: .92rem; }
  .brand .mascot { width: 32px; height: 32px; }
  .feature::before { background: linear-gradient(0deg, #231f36f5 35%, #231f3690 70%, #231f3640); }
}


/* ======================================================================
   Seventies Sunset theme (v1.4): warm browns, sunset stripes, groovy type
   ====================================================================== */
:root {
  --bg: #2b1a12;
  --panel: #3a251a;
  --panel-2: #4d3324;
  --ink: #140b06;
  --text: #f4e4c1;
  --muted: #cdb893;
  --accent: #e8572a;
  --accent-2: #e3a72f;
  --pop: #2a9d8f;
  --groovy: "Shrikhand", "Cooper Black", "Cooper Std", "Arial Black", "Segoe UI Black", Impact, sans-serif;
  --stripes: linear-gradient(180deg, #e3a72f 0 25%, #e8572a 25% 50%, #c0392b 50% 75%, #2a9d8f 75% 100%);
}
body { background-image: radial-gradient(#f4e4c10d 1.5px, transparent 1.6px); }

/* Logo */
.brand .mascot { filter: none; }
.brand .word, .brand .word b { font-family: var(--groovy); font-weight: 400; letter-spacing: .01em; }
.brand .word { text-shadow: none; font-size: 1.5rem; }
.brand .word b { text-shadow: 2px 2px 0 var(--accent-2), 4px 4px 0 var(--pop); margin-left: .12em; }
.brand.big .word { font-size: 2.3rem; }
.brand.big .mascot { animation: none; }
.brand:hover .mascot { transform: rotate(20deg) scale(1.1); }

/* Groovy headings */
h1, .feature h1, .hero h1, .modal-title, .auth h1 { font-family: var(--groovy); font-weight: 400; letter-spacing: .01em; }
h1 { text-shadow: 3px 3px 0 var(--ink); }
.feature h1 { text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 var(--ink); }
.rowtitle span { font-family: var(--groovy); font-weight: 400; font-size: 1.15rem; padding: .2em .9em; }

/* Sunset stripes under the top bar and on panels */
#topbar { border-bottom: 0; box-shadow: none; }
#topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: var(--stripes); border-top: var(--line); border-bottom: var(--line); }
main { padding-top: 2rem; }
.auth::before, .modal:not(.wide)::before { content: ""; display: block; height: 14px; margin: -2rem -2rem 1.4rem; background: var(--stripes); border-bottom: var(--line); border-radius: 21px 21px 0 0; }
.modal:not(.wide)::before { margin: -1.5rem -1.5rem 1.2rem; }

/* Colour fixes for the warm palette */
.feature::before { background: linear-gradient(90deg, #2b1a12f2 0%, #2b1a12b0 42%, transparent 75%), linear-gradient(0deg, #2b1a12cc, transparent 45%); }
.feature-meta, .tagline { color: var(--accent-2); }
button.ghost { background: var(--panel-2); }
button.danger { background: #c0392b; color: var(--text); }
.sticker, .card .badge, .chips span { background: var(--pop); color: var(--text); }
.chips span:nth-child(even) { background: var(--accent-2); color: var(--ink); }
.rowtitle:nth-of-type(even) span { background: var(--pop); color: var(--text); }
.card:nth-child(even):hover .img { box-shadow: 9px 9px 0 var(--accent-2); }
.ep .watched { color: var(--accent-2); }
td { border-bottom: 2px dashed #f4e4c12e; }
.release { border-top: 2px dashed #f4e4c138; }
@media (max-width: 640px) {
  .feature::before { background: linear-gradient(0deg, #2b1a12f5 35%, #2b1a1290 70%, #2b1a1240); }
  .brand .word { font-size: 1.25rem; }
}


/* ---- v1.4.1: black background. Outlines and hard shadows switch to warm brown so they still show. ---- */
:root {
  --bg: #000;
  --panel: #17110d;
  --panel-2: #2a1d15;
  --edge: #6b4a35;
  --shade: #3a251a;
  --line: 3px solid var(--edge);
}
body { background-image: radial-gradient(#f4e4c112 1.5px, transparent 1.6px); }
button, .btn { box-shadow: 4px 4px 0 var(--shade); border-color: var(--ink); }
button:hover:not(:disabled), .btn:hover { box-shadow: 6px 6px 0 var(--shade); }
button:active:not(:disabled), .btn:active { box-shadow: 1px 1px 0 var(--shade); }
button.ghost { border-color: var(--edge); }
#usermenu a, #usermenu button, .player .icon, .player .icon:hover:not(:disabled) { box-shadow: none; }
nav a.active { border-color: var(--ink); box-shadow: 3px 3px 0 var(--shade); }
.card .img { box-shadow: 5px 5px 0 var(--shade); }
.feature, .hero { box-shadow: 8px 8px 0 var(--shade); }
.hero-poster { box-shadow: 6px 6px 0 var(--ink); }
.panel, .auth, .modal { box-shadow: 7px 7px 0 var(--shade); }
.ep { box-shadow: 4px 4px 0 var(--shade); }
.overlay-box, .upnext { box-shadow: 6px 6px 0 var(--shade); }
#usermenu { box-shadow: 5px 5px 0 var(--shade); }
.rowtitle span, .sticker, #toast { border-color: var(--ink); box-shadow: 3px 3px 0 var(--shade); }
h1 { text-shadow: 3px 3px 0 var(--shade); }
.feature h1 { text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 #000; }
.feature::before { background: linear-gradient(90deg, #000000f2 0%, #000000b0 42%, transparent 75%), linear-gradient(0deg, #000000cc, transparent 45%); }
#topbar::after { border-color: #000; }
.auth::before, .modal:not(.wide)::before { border-bottom-color: var(--edge); }
.card .bar, .ep .img .bar { border-color: #000; }
@media (max-width: 640px) { .feature::before { background: linear-gradient(0deg, #000000f5 35%, #00000090 70%, #00000040); } }

/* Media folders (Admin) */
.subhead { margin: 0 0 .5rem; font-size: 1rem; }
.folders { display: flex; flex-direction: column; gap: .5rem; }
.folder { display: flex; align-items: center; gap: .8rem; background: var(--panel-2); border: var(--line); border-radius: 14px; padding: .5rem .5rem .5rem .9rem; }
.folder.bad { border-style: dashed; }
.fpath { flex: 1; font-family: Consolas, ui-monospace, monospace; font-size: .92rem; word-break: break-all; }
button.small { font-size: .82rem; padding: .35em .9em; }
.pf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; margin: .8rem 0; max-height: 46vh; overflow: auto; padding: 4px 8px 8px 4px; }
.pf-item { text-align: left; border-radius: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-actions.inline { justify-content: flex-end; }

/* ---- v1.6: "Sunset Bold" high-contrast skin: white text, cream outlines, brighter colours ---- */
:root {
  --text: #ffffff;
  --muted: #e6d9bd;
  --edge: #f4e4c1;
  --shade: #6b3d22;
  --accent: #ff5a1f;
  --accent-2: #ffc21a;
  --pop: #19c2ae;
  --stripes: linear-gradient(180deg, #ffc21a 0 34%, #ff5a1f 34% 67%, #19c2ae 67% 100%);
}
button, .btn, nav a.active, .rowtitle span, .sticker, #toast, button.ghost { border-color: var(--edge); }
button, .btn { color: #000; }
button.ghost { color: var(--text); background: #000; }
button.danger { background: #ff3b30; color: #000; }
#usermenu a, #usermenu button { border: 0; background: transparent; color: var(--text); }
#usermenu a:hover, #usermenu button:hover { color: #000; }
.player .icon { border: 0; color: #fff; background: none; }
.sticker, .card .badge, .chips span, .rowtitle:nth-of-type(even) span { color: #000; }
.card .badge, .chips span { border-color: var(--edge); }
nav a { color: var(--text); }
nav a.active { color: #000; }
.card .s, .muted { color: var(--muted); }
.card .bar, .ep .img .bar { background: var(--accent-2); }
#topbar::after { border-color: var(--edge); border-width: 2px; }
.feature h1 { text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 #000; }
.brand .word { color: #fff; }
.fpath { color: var(--text); }
.error { color: #ff9d94; }
.seek .knob { border-color: #000; }

.panel.alert { border-color: #ff3b30; box-shadow: 7px 7px 0 #7a1c16; }
.panel.alert h2 { color: #ff9d94; }

/* On/off switch for user accounts */
.switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { position: relative; width: 52px; height: 28px; border-radius: 999px; background: #3a3a3a; border: 3px solid var(--edge); transition: background .2s; flex: none; }
.switch .slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--bounce); }
.switch input:checked + .slider { background: var(--pop); }
.switch input:checked + .slider::after { transform: translateX(24px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.switch-label { font-weight: 800; font-size: .85rem; min-width: 2em; }
table.users tr.off td:first-child, table.users tr.off .switch-label { opacity: .55; }

/* Favorites and requests */
.navbadge { display: inline-block; min-width: 1.4em; margin-left: .35em; padding: 0 .35em; border-radius: 999px; background: var(--accent-2); color: #000; font-size: .78rem; text-align: center; }
nav { flex-wrap: wrap; }
.reqs { display: flex; flex-direction: column; gap: .7rem; max-width: 900px; }
.req { display: flex; gap: .9rem; align-items: flex-start; background: var(--panel); border: var(--line); border-radius: var(--radius); padding: .7rem; box-shadow: 4px 4px 0 var(--shade); }
.req img, .req .noimg { width: 56px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; background: var(--panel-2); flex: none; }
.req-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.req-side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.req-side .inline { justify-content: flex-end; }
.req .reply { color: var(--accent-2); }
.status { display: inline-block; border-radius: 999px; padding: .1em .7em; font-size: .8rem; font-weight: 800; border: 2px solid var(--edge); white-space: nowrap; }
.status.new { background: var(--panel-2); color: var(--text); }
.status.approved { background: var(--accent-2); color: #000; }
.status.added { background: var(--pop); color: #000; }
.status.declined { background: #000; color: var(--muted); }
.req.added, .req.declined { opacity: .8; }
@media (max-width: 640px) { .req { flex-wrap: wrap; } .req-side { align-items: flex-start; flex-basis: 100%; } }

/* ---- Admin dashboard ---- */
.panel.dash { max-width: 1100px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.tile { background: var(--panel-2); border: var(--line); border-radius: 16px; padding: .7rem .9rem; }
.tile-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile-value { font-size: 2rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.nowplaying { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.np { display: flex; gap: .8rem; background: var(--panel-2); border: var(--line); border-radius: 16px; padding: .6rem; }
.np-img { width: 124px; aspect-ratio: 16/9; border-radius: 10px; background: #000 center/cover no-repeat; flex: none; align-self: flex-start; }
.np-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.np-bar { height: 8px; border-radius: 99px; background: #ffffff26; overflow: hidden; }
.np-bar > div { height: 100%; background: var(--accent-2); border-radius: 99px; }
.np-bar.full > div { background: #ff3b30; }
.chip { display: inline-block; border-radius: 999px; padding: 0 .6em; font-weight: 800; background: #000; border: 2px solid var(--edge); color: var(--text); }
.legend { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.legend i, .tip-row i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .4em; }
.chartwrap { position: relative; max-width: 760px; }
svg.usage { width: 100%; height: auto; display: block; }
svg.usage .grid { stroke: #ffffff1f; stroke-width: 1; }
svg.usage .axis { fill: var(--muted); font-size: 11px; }
svg.usage .endlabel { fill: var(--muted); font-size: 12px; }
svg.usage .endvalue { fill: var(--text); font-weight: 800; font-size: 13px; }
svg.usage .enddot { stroke: var(--panel); stroke-width: 2; }
svg.usage .cross { stroke: #ffffff80; stroke-width: 1; }
.tip { position: absolute; top: 8px; background: #000; border: 2px solid var(--edge); border-radius: 10px; padding: .4rem .6rem; font-size: .82rem; pointer-events: none; min-width: 130px; }
.tip-when { color: var(--muted); margin-bottom: .2rem; }
.tip-row b { display: inline-block; min-width: 3.4em; margin-right: .4em; font-variant-numeric: tabular-nums; }
.tip-row span { color: var(--muted); }
.dashcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
table.mini td, table.mini th { padding: .3rem .4rem; font-size: .88rem; text-align: left; }
table.mini th { color: var(--muted); font-weight: 700; }
.store { margin-bottom: .8rem; display: flex; flex-direction: column; gap: .25rem; }
details summary { cursor: pointer; color: var(--muted); margin-top: .4rem; }

/* Viewing history */
.hbar { margin-bottom: .6rem; }
.hbar-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; margin-bottom: .2rem; }
.hbar-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-top b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hbar .np-bar > div { background: var(--accent); }
svg.watch .barhit:hover, svg.watch .barhit:focus { fill: #ffffff14; outline: none; }
.histwrap { max-height: 420px; overflow: auto; border: 2px solid #ffffff1f; border-radius: 12px; }
.histwrap table.mini th { position: sticky; top: 0; background: var(--panel); }

/* Admin page: settings on the left, dashboard and history on the right (stacked on narrow screens) */
.admin-grid { display: grid; grid-template-columns: minmax(360px, 520px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.admin-main { grid-column: 1; grid-row: 1; min-width: 0; }
.admin-side { grid-column: 2; grid-row: 1; min-width: 0; }
.admin-grid .panel, .admin-grid .panel.dash { max-width: none; }
.admin-side .chartwrap { max-width: 860px; }
@media (max-width: 1100px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-main, .admin-side { grid-column: 1; grid-row: auto; }
  .admin-side { order: -1; }
}
/* the narrower left column: let the user rows wrap instead of squeezing */
.admin-main table.users td { display: inline-block; border-bottom: 0; padding: .25rem .5rem .25rem 0; vertical-align: middle; }
.admin-main table.users tr { display: block; padding: .5rem 0; border-bottom: 2px dashed #f4e4c12e; }
.admin-main form.inline input[type=text], .admin-main form.inline input[type=password] , .admin-main form.inline input[type=email]{ min-width: 110px; }

/* role tags in the Users list */
.role{display:inline-block;margin-left:.4rem;padding:.05rem .5rem;border-radius:999px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;border:1px solid currentColor;opacity:.85}
.role.owner{background:#e8572a;color:#000;border-color:#e8572a;opacity:1}
.role.creator{background:linear-gradient(135deg,#f6d77a,#c9971f);color:#2a1a00;border-color:#e0b648;opacity:1;font-weight:700;letter-spacing:.04em}

/* security: two-step setup, backup codes, password prompt */
form.stack{display:flex;flex-direction:column;gap:.8rem}
.twostep{display:flex;flex-direction:column;gap:.6rem;text-align:left}
.twostep[hidden]{display:none!important}
.steps{padding-left:1.2rem;display:flex;flex-direction:column;gap:.8rem;line-height:1.45}
.qrbox{background:#fff;border-radius:12px;padding:.4rem;width:min(230px,70%);margin:.7rem 0}
.qrbox svg{display:block;width:100%;height:auto}
code.key{display:block;margin-top:.5rem;font-size:1rem;letter-spacing:.06em;word-break:break-all}
.codes{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-top:.8rem}
.codes code{font-size:1.05rem;padding:.45rem .6rem;border:1px dashed currentColor;border-radius:8px;text-align:center;letter-spacing:.05em}
a.btn{display:inline-block;text-decoration:none}
.twostep label.inline{display:flex;flex-direction:row;align-items:flex-start;gap:.5rem;text-align:left}
.twostep input[type=checkbox]{width:auto;flex:none;margin-top:.15rem}

/* Admin > Users: one account at a time, picked from a list */
#userpick{width:100%;margin:.3rem 0 .8rem}
table.users.one, table.users.one tbody, table.users.one tr{display:block}
table.users.one tr[hidden]{display:none!important}
table.users.one td{display:block;padding:.35rem 0;border:0;text-align:left!important}
table.users.one td.inline{display:flex;flex-wrap:wrap;gap:.5rem}

/* browse bar: sort, genre, year, letters */
.browsebar{display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.2rem;margin:.2rem 0 .8rem}
.browsebar label{display:flex;align-items:center;gap:.4rem}
.browsebar select{width:auto}
.letters{display:flex;flex-wrap:wrap;gap:.25rem;margin-bottom:1.2rem}
.letters .letter{padding:.15em 0;width:2em;border-radius:8px;font-size:.85rem;background:transparent;color:inherit;border:1px solid transparent;box-shadow:none}
.letters .letter:hover:not(:disabled){border-color:currentColor}
.letters .letter.on{background:var(--accent);color:var(--ink,#000);border-color:var(--accent)}
.letters .letter:disabled{opacity:.25;cursor:default}
/* audiobooks */
.grid.square .card .img, .card.book .img{aspect-ratio:1/1}
.bookrow .card.book{flex:0 0 170px}
.img.nocover, .bookcover.nocover{display:flex;align-items:center;justify-content:center;text-align:center;padding:.8rem;font-weight:800;
  background:linear-gradient(160deg,#e3a72f 0 30%,#e8572a 30% 55%,#c0392b 55% 75%,#1f6f78 75%);color:#17110d}
.bookpage{display:grid;grid-template-columns:minmax(180px,300px) 1fr;gap:2rem;align-items:start;margin-bottom:1.5rem}
.bookcover{aspect-ratio:1/1;border-radius:18px;background:var(--panel-2) center/cover no-repeat;border:var(--line);box-shadow:7px 7px 0 var(--shade,#000)}
.bookinfo h1{margin-top:0}
.bookinfo .overview{max-width:70ch;line-height:1.5;white-space:pre-line}
.aplayer{background:var(--panel);border:var(--line);border-radius:18px;padding:1rem 1.2rem;margin:1rem 0;max-width:640px}
.ap-title{font-weight:800;font-size:1.1rem;margin:.1rem 0 .6rem}
.aplayer input[type=range]{width:100%;accent-color:var(--accent)}
.ap-times{display:flex;justify-content:space-between}
.ap-buttons{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.6rem;margin-top:.6rem}
.partlist{display:flex;flex-direction:column;gap:.35rem;max-width:760px}
.partlist .part{display:grid;grid-template-columns:2.2rem 1fr auto;gap:.6rem;align-items:center;text-align:left;background:transparent;color:inherit;
  border:1px solid #ffffff22;border-radius:12px;padding:.55rem .8rem;box-shadow:none;font-weight:600}
.partlist .part:hover{border-color:currentColor}
.partlist .part.on{background:var(--accent);color:var(--ink,#000);border-color:var(--accent)}
.partlist .part.on .muted{color:inherit;opacity:.8}
.partlist .pn{opacity:.6}
@media (max-width:720px){.bookpage{grid-template-columns:1fr}.bookcover{max-width:240px}}

/* Edit details */
.editform label{display:flex;flex-direction:column;gap:.3rem;font-weight:600}
.editform textarea{width:100%;font:inherit;padding:.6rem .8rem;border-radius:14px;background:var(--panel-2);color:inherit;border:var(--line);resize:vertical}
.editform .two{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.pics{display:flex;flex-wrap:wrap;gap:1rem;align-items:flex-end}
.pic{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}
.picbox{width:110px;aspect-ratio:2/3;border-radius:12px;border:var(--line);background:var(--panel-2) center/cover no-repeat}
.picbox.sq{aspect-ratio:1/1;width:140px}.picbox.bd{aspect-ratio:16/9;width:250px}
.thumbs{display:flex;gap:.5rem;overflow-x:auto;padding:.3rem 0 .6rem}
.thumbs .thumb{flex:none;width:80px;aspect-ratio:2/3;border-radius:8px;background:var(--panel-2) center/cover no-repeat;border:3px solid transparent;padding:0;box-shadow:none}
.thumbs.backdrop .thumb{width:150px;aspect-ratio:16/9}
.thumbs .thumb.on{border-color:var(--accent)}
.btn.small{font-size:.85rem;padding:.35em .9em}

/* notifications bell */
.bellwrap{position:relative}
#bell{position:relative;padding:.4em .55em;display:flex;align-items:center}
#bellcount{position:absolute;top:-6px;right:-8px;margin:0}
#bellmenu{position:absolute;right:0;top:calc(100% + .5rem);width:min(360px,90vw);max-height:70vh;overflow:auto;z-index:60;
  background:var(--panel);border:var(--line);border-radius:16px;box-shadow:6px 6px 0 var(--shade,#000);padding:.4rem}
#bellmenu[hidden]{display:none!important}
.bellhead{display:flex;justify-content:space-between;align-items:center;padding:.3rem .5rem .5rem}
.note{display:flex;flex-direction:column;gap:.15rem;padding:.55rem .6rem;border-radius:10px;color:inherit;text-decoration:none}
.note:hover{background:var(--panel-2)}
.note.unread span:first-child{font-weight:700}
.note.unread{border-left:4px solid var(--accent)}
.notelist{display:flex;flex-direction:column;gap:.3rem;margin:.6rem 0}
/* "3 new" tag on show posters, season bar */
.newtag{position:absolute;left:.4rem;top:.4rem;background:var(--accent);color:#000;font-weight:800;font-size:.75rem;padding:.1rem .5rem;border-radius:999px}
.seasonbar{justify-content:space-between;margin:.4rem 0 .8rem}
#follow.on{border-color:var(--accent);color:var(--accent)}
.upnext.still{text-align:center}
@media (max-width: 640px){.bellwrap{order:4}}
.upnext.still{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);padding:1.6rem 2rem;max-width:min(460px,90vw);z-index:30}
.upnext.still .inline{justify-content:center}

/* Home rows: hidden scroll bar, drag to scroll, arrows at the top right */
.rowtitle{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.rownav{display:flex;gap:.4rem}
.rownav[hidden]{display:none!important}
.rownav button{width:2.2rem;height:2.2rem;padding:0;font-size:1.4rem;line-height:1;display:flex;align-items:center;justify-content:center}
.rownav button:disabled{opacity:.3;cursor:default}
.row{scrollbar-width:none;cursor:grab;user-select:none;-webkit-user-select:none}
.row::-webkit-scrollbar{display:none}
.row.dragging{cursor:grabbing}
.row.dragging a{pointer-events:none}
.row img{-webkit-user-drag:none}
/* "New releases: TV episodes": 5 across on a computer, 3 on a tablet, 2 on a phone */
.row.five{--g:1.2rem;gap:var(--g);grid-auto-columns:calc((100% - 4 * var(--g)) / 5)}
@media (max-width:1000px){.row.five{grid-auto-columns:calc((100% - 2 * var(--g)) / 3)}}
@media (max-width:640px){.row.five{grid-auto-columns:calc((100% - var(--g)) / 2)}}
.row.dragging{scroll-snap-type:none}
/* every poster row uses exactly the same poster size, however many titles it has */
.row.tallrow{grid-auto-columns:170px}
@media (max-width:640px){.row.tallrow{grid-auto-columns:140px}}

/* Admin > Featured on Home */
.featlist{display:flex;flex-direction:column;gap:.4rem}
.featresults{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.5rem}

/* linked servers */
.contentpage{max-width:760px;margin:2rem auto;display:flex;flex-direction:column;gap:1rem}
.contentpage .brand.big{margin-bottom:.5rem}
.paircode{font-size:2.2rem;font-weight:900;letter-spacing:.18em;text-align:center;padding:.8rem;margin:.8rem 0;border:var(--line);border-radius:16px;background:var(--panel-2)}
.folder.srv{align-items:center}
#join-hint{margin-top:1rem}

/* "We're loading it up for you" before playback starts */
.overlay-box.buffering{text-align:center;max-width:min(420px,85vw);font-weight:700;gap:.8rem}
.overlay-box.buffering .spinner{position:static;margin:0 auto}

/* Admin: background work strip */
.jobs{display:flex;flex-direction:column;gap:.8rem;margin-bottom:1rem}
.jobs[hidden]{display:none!important}
.jobtext{margin-bottom:.35rem}
.jobbar{height:8px;border-radius:99px;background:var(--panel-2);overflow:hidden;position:relative}
.jobbar span{display:block;height:100%;background:var(--accent);border-radius:99px;transition:width .6s}
.jobbar.busy span{width:30%;position:absolute;animation:jobslide 1.4s ease-in-out infinite}
@keyframes jobslide{0%{left:-30%}100%{left:100%}}
@media (prefers-reduced-motion:reduce){.jobbar.busy span{animation:none;width:100%;opacity:.5}}

/* folder types */
.folder.ftyped{display:grid;grid-template-columns:1fr auto auto;gap:.6rem;align-items:center}
.folder.ftyped select{width:auto;min-width:9rem}
.typebtns{display:flex;flex-wrap:wrap;gap:.6rem;margin:.8rem 0}
details.skipped{margin:.4rem 0 .8rem}
details.skipped ul{max-height:12rem;overflow:auto;margin:.4rem 0;padding-left:1.2rem;word-break:break-all}
@media (max-width:640px){.folder.ftyped{grid-template-columns:1fr}}

/* ideas notepad */
.idea-add{display:flex;gap:.6rem;margin-bottom:.8rem}
.idea-add input,.idea-edit input{flex:1}
.idea-edit{display:flex;gap:.4rem}
ul.ideas{list-style:none;margin:0;padding:0}
.idea{display:grid;grid-template-columns:auto 1fr auto;gap:.7rem;align-items:start;padding:.6rem 0;border-top:1px solid rgba(255,255,255,.08)}
.idea input[type=checkbox]{width:1.15rem;height:1.15rem;margin-top:.2rem}
.idea .ibody{white-space:pre-wrap;word-break:break-word}
.idea.done .ibody{text-decoration:line-through;opacity:.55}
.idea .iact{display:flex;gap:.3rem}
@media (max-width:640px){.idea{grid-template-columns:auto 1fr}.idea .iact{grid-column:2}}

/* dashboard: one card per server */
.srvcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.9rem;margin-bottom:1rem}
.srvcard{border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:.8rem .9rem}
.srvcard.off{opacity:.65}
.srvhead{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.6rem}
.srvstats{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;margin-bottom:.6rem}
.srvnum{font-size:1.25rem;font-weight:700}
.srvnum.small{font-size:.95rem}
.dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;background:#888;margin-right:.35rem}
.dot.on{background:#3fb950}
.np-bar.nearly>div{background:#e3b341}
.np-bar.full>div{background:#e5534b}
.bad-text{color:#e5534b}

/* account switches side by side */
.switches{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1.6rem}

/* ---------- TV mode: the highlight that the remote moves ---------- */
body.tv :focus { outline: 4px solid #fff !important; outline-offset: 3px; box-shadow: 0 0 0 8px rgba(255,107,53,.55) !important; border-radius: 10px; }
body.tv .card:focus, body.tv a.card:focus { transform: scale(1.06); z-index: 2; transition: transform .12s; }
body.tv .card:focus img { filter: brightness(1.08); }
body.tv * { cursor: none !important; }
body.tv .row { scroll-behavior: smooth; scroll-padding: 0 60px; }
body.tv .player .ui button:focus, body.tv .player .ui select:focus { transform: scale(1.12); }
body.tv .player.idle .ui { opacity: 0; }

/* TV mode: a big top menu that reads from the couch, kept inside the TV's safe area.
   TVs crop a little off every edge, so nothing sits in the outer 5% of the screen.
   Row 1: logo, search, bell, account. Row 2: the menu, which slides along with the highlight if it's too wide.
   The bar scrolls away with the page (it would cover a quarter of the screen if it stayed). */
body.tv #topbar { position: relative; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 6vh 5vw .9rem; }
body.tv #topbar .brand .mascot { width: 56px; height: 56px; }
body.tv #topbar .brand .word { display: none; }
body.tv #topbar nav { order: 10; flex: 1 0 100%; flex-wrap: nowrap; gap: .7rem; overflow: hidden;
  padding: .7rem .9rem; margin: 0 -.9rem; scroll-behavior: smooth; scroll-padding: 0 4rem; }
body.tv #topbar nav a { font-size: 1.64rem; padding: .4rem 1.1rem; white-space: nowrap; flex: none; }
body.tv #topbar #search { width: 17rem; min-width: 0; flex: 0 1 17rem; max-width: none; font-size: 1.7rem; padding: .5rem 1.1rem; margin-left: auto; }
body.tv #topbar #bell { padding: .45rem .75rem; }
body.tv #topbar #bell svg { width: 36px; height: 36px; }
body.tv #topbar #userbtn { padding: .45rem 1.2rem; font-size: 1.7rem; max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tv #topbar .navbadge { font-size: 1.2rem; }
body.tv #usermenu { min-width: 300px; }
body.tv #usermenu a, body.tv #usermenu button { font-size: 1.6rem; padding: .8rem 1.2rem; }
body.tv #bellmenu { width: min(640px, 80vw); font-size: 1.4rem; }
body.tv main { padding-left: 5vw; padding-right: 5vw; padding-bottom: 6vh; }

/* TV mode player: controls inside the safe area; no volume slider (the remote has volume buttons,
   and the slider trapped the left/right arrows so Subtitles couldn't be reached); no full-screen
   button (the app is already full screen, and the Fire TV's own full-screen view hides subtitles). */
body.tv .player .top { padding: 6vh 6vw 1rem; }
body.tv .player .bottom { padding: 1rem 6vw 6vh; }
body.tv .player #pvol, body.tv .player #pfull { display: none; }
body.tv .player .subs { padding: 0 6vw; bottom: 8%; }
body.tv .player:not(.idle) .subs { bottom: 26%; }     /* above the controls while they're showing */

/* server cards: processor and memory */
.minibar { display: grid; grid-template-columns: 5.5rem 1fr 2.6rem; align-items: center; gap: .5rem; margin: .25rem 0; }
.minibar .np-bar { margin: 0; }
.miniusage { width: 100%; height: 70px; display: block; margin-top: .4rem; }
.miniusage .grid { stroke: rgba(255,255,255,.12); stroke-dasharray: 3 4; }
.miniaxis { display: flex; justify-content: space-between; margin-bottom: .5rem; }

/* admin messages */
.msg-form textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.msg-opts, .msg-people { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .5rem 0; align-items: center; }
.msg-people { padding: .5rem .7rem; border-radius: 8px; background: rgba(255,255,255,.04); }
.msg-list td { vertical-align: top; }
.msg-list td:nth-child(4) { white-space: pre-wrap; max-width: 28rem; }
.admin-msg { white-space: pre-wrap; line-height: 1.5; padding: .8rem 1rem; border-radius: 8px; background: rgba(255,255,255,.05); margin: .6rem 0 1rem; max-height: 50vh; overflow: auto; }
.admin-msg.important { border-left: 4px solid #e8a33a; }
.table-wrap { overflow-x: auto; }
.msg-form .inline input[type=radio], .msg-form .inline input[type=checkbox], .msg-form .inline input[type=date] { flex: none; min-width: 0; width: auto; margin: 0 .35rem 0 0; }
.msg-form label.inline { display: inline-flex; align-items: center; gap: .3rem; width: auto; margin: 0; }
.msg-form input[type=date] { width: auto; }
.msg-list { font-size: .9rem; }
.msg-list td:first-child { white-space: nowrap; }

/* Admin page: fold/open sections, jump bar, drag into your own order */
.panel[data-sec] > h2:first-child { cursor: pointer; user-select: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .5rem; }
.panel[data-sec] > h2:first-child::before { content: "▾"; display: inline-block; width: 1em; color: var(--accent); transition: transform .15s; }
.panel[data-sec].folded > h2:first-child::before { transform: rotate(-90deg); }
.panel[data-sec] > h2:first-child::after { content: "⠿"; margin-left: auto; color: var(--muted); font-size: 1rem; cursor: grab; opacity: .5; }
.panel[data-sec] > h2:first-child:hover::after { opacity: 1; }
.panel[data-sec].folded > :not(h2:first-child) { display: none !important; }
.panel[data-sec].folded { padding-top: .8rem; padding-bottom: .8rem; }
.panel[data-sec].folded > h2:first-child { margin-bottom: 0; }
.panel[data-sec].dragging { opacity: .45; outline: 3px dashed var(--accent); }
.admin-jump { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.2rem; }
.admin-jump .jump-list { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1; }
.admin-jump .jump-gap { width: .8rem; }
.admin-jump .chip { font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: var(--line); box-shadow: none; }
.admin-jump .chip.on { color: var(--text); border-color: var(--accent); }
.admin-jump .jump-actions { display: flex; gap: .4rem; }
@media (pointer: coarse) { .panel[data-sec] > h2:first-child::after { display: none; } }
body.tv .panel[data-sec] > h2:first-child::after { display: none; }

/* ---------- the popcorn mascot ---------- */
.mascot .mf-arm, .mascot .mf-body { transform-box: view-box; }
.mascot .mf-arm-r { transform-origin: 134px 116px; transition: transform .3s var(--bounce); }
.mascot .mf-arm-l { transform-origin: 66px 116px; transition: transform .3s var(--bounce); }
.brand:hover .mascot .mf-arm-r { transform: rotate(-12deg); }
.brand:hover .mascot .mf-arm-l { transform: rotate(12deg); }
.brand .mascot, .brand.big .mascot { animation: none; }
.brand:hover .mascot { transform: scale(1.12); }

/* ---------- splash screen in front of the sign-in box ---------- */
.splash { min-height: calc(100vh - 6rem); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem; padding: 2rem 1rem; transition: opacity .28s, transform .28s; }
.splash.leaving { opacity: 0; transform: translateY(-24px) scale(.97); }
.splash-mascot { position: relative; isolation: isolate; background: none; border: 0; box-shadow: none; padding: 0; cursor: pointer; width: min(300px, 62vw); aspect-ratio: 1; }
.splash-mascot:hover, .splash-mascot:active { background: none; transform: none; box-shadow: none; }
.splash-mascot::before { content: ""; position: absolute; inset: -38%; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(rgba(242, 179, 61, .13) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%);
  animation: mf-spin 70s linear infinite; }
.splash-mascot .mascot { width: 100%; height: 100%; filter: none; }
.splash-mascot .mf-arm-r { animation: mf-arm-up-r .9s var(--bounce) .25s both, mf-pump-r 4.5s ease-in-out 1.8s infinite; }
.splash-mascot .mf-arm-l { animation: mf-arm-up-l .9s var(--bounce) .25s both, mf-pump-l 4.5s ease-in-out 1.8s infinite; }
.splash-mascot .mf-body { transform-origin: 100px 186px; animation: mf-hop 4.5s ease-in-out 1.8s infinite; }
.splash-mascot.pump .mf-arm-r { animation: mf-big-r .7s var(--bounce); }
.splash-mascot.pump .mf-arm-l { animation: mf-big-l .7s var(--bounce); }
.splash-mascot.pump .mf-body { animation: mf-big-hop .7s var(--bounce); }
@keyframes mf-arm-up-r { from { transform: rotate(75deg); } to { transform: rotate(0); } }
@keyframes mf-arm-up-l { from { transform: rotate(-75deg); } to { transform: rotate(0); } }
@keyframes mf-pump-r { 0%, 78%, 100% { transform: rotate(0); } 86% { transform: rotate(-10deg); } 92% { transform: rotate(-4deg); } }
@keyframes mf-pump-l { 0%, 78%, 100% { transform: rotate(0); } 86% { transform: rotate(10deg); } 92% { transform: rotate(4deg); } }
@keyframes mf-hop { 0%, 78%, 100% { transform: none; } 86% { transform: translateY(-5px) scale(1.03); } }
@keyframes mf-big-r { 0% { transform: rotate(0); } 40% { transform: rotate(-22deg); } 100% { transform: rotate(0); } }
@keyframes mf-big-l { 0% { transform: rotate(0); } 40% { transform: rotate(22deg); } 100% { transform: rotate(0); } }
@keyframes mf-big-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-10px) scale(1.06); } }
@keyframes mf-spin { to { transform: rotate(360deg); } }
.splash-word { font-family: var(--groovy); font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; color: var(--text); text-shadow: 4px 4px 0 var(--ink); margin-top: .6rem;
  animation: mf-rise .6s var(--bounce) .15s both; }
.splash-word b { color: var(--accent); font-weight: 400; }
.splash-line { font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 700; color: var(--muted); margin: .4rem 0 1.4rem; min-height: 1.6em; animation: mf-rise .6s ease .9s both; }
.splash-line.swap { animation: mf-swap .35s ease; }
.splash-go { font-size: 1.25rem; padding: .85rem 2.4rem; animation: mf-rise .6s var(--bounce) 1.2s both; }
@keyframes mf-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mf-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth.pop-in { animation: mf-pop .45s var(--bounce) both; }
@keyframes mf-pop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .splash *, .splash-mascot::before, .auth.pop-in { animation: none !important; }
}
.splash-mascot, .splash-mascot:focus, .splash-mascot:hover, .splash-mascot:active { border: 0; outline: none; box-shadow: none; background: none; border-radius: 50%; }
.splash-mascot:focus-visible { outline: 3px dashed var(--accent); outline-offset: 6px; }
button.splash-mascot:hover:not(:disabled), button.splash-mascot:active:not(:disabled) { box-shadow: none; transform: none; background: none; }

/* loading: the popcorn guy flexing on a loop, instead of a spinning circle */
.spinner.pop, .player .spinner.pop { border: 0; border-radius: 0; width: 112px; height: 112px; animation: none; background: none; }
.spinner.pop[hidden] { display: none; }
.spinner.pop .mascot { width: 100%; height: 100%; filter: none; }
.spinner.pop .mf-arm-r { animation: mf-loop-r .8s ease-in-out infinite; }
.spinner.pop .mf-arm-l { animation: mf-loop-l .8s ease-in-out infinite; }
.spinner.pop .mf-body { transform-origin: 100px 186px; animation: mf-loop-hop .8s ease-in-out infinite; }
@keyframes mf-loop-r { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-14deg); } }
@keyframes mf-loop-l { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@keyframes mf-loop-hop { 0%, 100% { transform: none; } 50% { transform: translateY(-6px) scale(1.04); } }
.modal .spinner.pop { margin: 1rem auto; }
.overlay-box .spinner.pop { margin: 0 auto .6rem; }
@media (prefers-reduced-motion: reduce) {
  .spinner.pop .mf-arm-r, .spinner.pop .mf-arm-l, .spinner.pop .mf-body { animation: none; }
  .spinner.pop { animation: mf-breathe 1.6s ease-in-out infinite; }
  @keyframes mf-breathe { 50% { opacity: .55; } }
}

/* ---------- player controls: a VHS deck ---------- */
@font-face { font-family: "MF LCD"; src: local("Consolas"), local("Menlo"), local("DejaVu Sans Mono"); }
.player .seek { height: 22px; }
.player .seek .track, .player .seek .buf, .player .seek .fill { height: 12px; top: 5px; border-radius: 3px; }
.player .seek .track { background: #2b2b2b; box-shadow: inset 0 0 0 2px #000; }
.player .seek .buf { background: #ffffff2a; }
.player .seek .fill { background: repeating-linear-gradient(90deg, #2a9d8f 0 10px, #23867a 10px 12px); box-shadow: inset 0 0 0 2px #000; }
.player .seek .knob { width: 12px; height: 22px; top: 0; margin-left: -6px; border-radius: 3px; background: #ff5a1f; border: 2px solid #000; box-shadow: 2px 2px 0 #000; }
.player .controls.deck { gap: .55rem; margin-top: .8rem; flex-wrap: wrap; align-items: stretch; }
.deck .key { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-width: 72px; min-height: 54px; padding: .35rem .7rem; border-radius: 7px; border: 3px solid #000;
  background: linear-gradient(#e6e0d2, #c9c1ae); color: #1a1410; box-shadow: 0 5px 0 #000; transform: none; cursor: pointer; }
.deck .key:hover:not(:disabled) { background: linear-gradient(#f2ede1, #d6cfbd); box-shadow: 0 5px 0 #000; transform: none; }
.deck .key:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.deck .key .sym { font-size: 1.15rem; line-height: 1; letter-spacing: -.12em; font-weight: 900; }
.deck .key .lbl, .deck .slider .lbl { font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.deck .key.play { min-width: 104px; background: linear-gradient(#ff7a45, #ff5a1f); }
.deck .key.play:hover:not(:disabled) { background: linear-gradient(#ff8c5c, #ff6a33); }
.deck .key.pick { position: relative; min-width: 84px; }
.deck .key.pick select { appearance: none; -webkit-appearance: none; border: 0; background: none; color: #1a1410; font-weight: 800; font-size: .85rem;
  padding: 0 .2rem; text-align: center; text-align-last: center; cursor: pointer; width: auto; max-width: 9rem; box-shadow: none; border-radius: 0; }
.deck .key.pick select:focus { outline: none; }
.deck .counter { display: inline-flex; align-items: baseline; gap: .5rem; padding: .3rem .9rem; min-height: 54px; box-sizing: border-box; align-items: center;
  background: #06140d; border: 3px solid #000; border-radius: 7px; box-shadow: inset 0 0 14px #000; font-family: "MF LCD", Consolas, ui-monospace, monospace; }
.deck .counter .now { font-size: 1.7rem; color: #5dff9a; text-shadow: 0 0 8px #2bff7a99; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.deck .counter .total { font-size: .9rem; color: #3fbf73; }
.deck .slider { display: inline-flex; flex-direction: column; justify-content: center; gap: .2rem; padding: .3rem .7rem; border: 3px solid #000; border-radius: 7px; background: #2b2b2b; color: #d9d2c3; }
.deck .slider input { width: 96px; accent-color: #ff5a1f; }
.player .deck .spacer { flex: 1; }
body.tv .deck .key:focus, body.tv .deck .key:focus-within { outline: 4px solid #f2b33d; outline-offset: 3px; transform: none; }
body.tv .player .deck .slider, body.tv .player #pfull { display: none; }
@media (max-width: 700px) {
  .deck .key { min-width: 54px; min-height: 46px; padding: .25rem .45rem; }
  .deck .key.play { min-width: 76px; }
  .deck .counter { min-height: 46px; padding: .2rem .6rem; } .deck .counter .now { font-size: 1.25rem; } .deck .counter .total { display: none; }
  .deck .slider { display: none; }
  .player .deck .spacer { flex-basis: 100%; height: 0; }
}
/* Fire TV: keep the whole deck on one line (episodes add SUBS and NEXT) */
body.tv .player .controls.deck { flex-wrap: nowrap; gap: .45rem; }
body.tv .deck .key { min-width: 0; min-height: 46px; padding: .25rem .6rem; }
body.tv .deck .key.play { min-width: 84px; }
body.tv .deck .key.pick { min-width: 0; }
body.tv .deck .key.pick select { max-width: 6.5rem; font-size: .8rem; }
body.tv .deck .key .sym { font-size: 1rem; }
body.tv .deck .counter { min-height: 46px; padding: .2rem .7rem; }
body.tv .deck .counter .now { font-size: 1.35rem; }
body.tv .deck .counter .total { font-size: .8rem; }

/* ---------- popcorn guy: poses and outfits ---------- */
.mascot .mf-brows-up, .mascot .mf-closed, .mascot .mf-o-mouth, .mascot .mf-tape, .mascot .mf-outfit { display: none; }
body.outfit-halloween .mascot .mf-o-halloween, body.outfit-xmas .mascot .mf-o-xmas, body.outfit-newyear .mascot .mf-o-newyear,
body.outfit-valentine .mascot .mf-o-valentine, body.outfit-stpat .mascot .mf-o-stpat, body.outfit-canada .mascot .mf-o-canada,
body.outfit-birthday .mascot .mf-o-birthday { display: inline; }
/* doze: eyes shut, little o mouth, arms down, slow breathing */
.mascot.pose-doze .mf-eyes, .mascot.pose-doze .mf-brows, .mascot.pose-doze .mf-grin { display: none; }
.mascot.pose-doze .mf-closed, .mascot.pose-doze .mf-o-mouth { display: inline; }
.mascot.pose-doze .mf-arm-r { transform: rotate(62deg); } .mascot.pose-doze .mf-arm-l { transform: rotate(-62deg); }
.mascot.pose-doze .mf-body { transform-origin: 100px 186px; animation: mf-breathe 3.2s ease-in-out infinite; }
@keyframes mf-breathe { 50% { transform: scale(1.03, .98); } }
/* shrug: eyebrows up, arms out and down, shoulders bounce */
.mascot.pose-shrug .mf-brows, .mascot.pose-shrug .mf-grin { display: none; }
.mascot.pose-shrug .mf-brows-up, .mascot.pose-shrug .mf-o-mouth { display: inline; }
.mascot.pose-shrug .mf-arm-r { animation: mf-shrug-r 1.6s ease-in-out infinite; }
.mascot.pose-shrug .mf-arm-l { animation: mf-shrug-l 1.6s ease-in-out infinite; }
@keyframes mf-shrug-r { 0%, 100% { transform: rotate(48deg); } 50% { transform: rotate(34deg); } }
@keyframes mf-shrug-l { 0%, 100% { transform: rotate(-48deg); } 50% { transform: rotate(-34deg); } }
/* clap: fists meet over his head */
.mascot.pose-clap .mf-arm-r { animation: mf-clap-r .38s ease-in-out infinite; }
.mascot.pose-clap .mf-arm-l { animation: mf-clap-l .38s ease-in-out infinite; }
.mascot.pose-clap .mf-body { transform-origin: 100px 186px; animation: mf-hop .38s ease-in-out infinite; }
@keyframes mf-clap-r { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(-40deg); } }
@keyframes mf-clap-l { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(40deg); } }
/* tape: holding up a VHS tape */
.mascot.pose-tape .mf-tape { display: inline; }
.mascot.pose-tape .mf-arm-r { animation: mf-tape-wave 1.4s ease-in-out infinite; }
@keyframes mf-tape-wave { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(4deg); } }
.mascot { overflow: visible; }

/* ---------- player: VHS on-screen text and tracking lines ---------- */
.player .osd { position: absolute; top: 4.2rem; right: max(1.6rem, 5vw); z-index: 3; pointer-events: none; opacity: 0;
  font-family: "MF LCD", Consolas, ui-monospace, monospace; font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: .08em;
  color: #5dff9a; text-shadow: 3px 3px 0 #000, 0 0 10px #2bff7a88; transition: opacity .2s; }
.player .osd.show { opacity: 1; }
.player .osd.blink { animation: mf-blink 1.1s steps(1) infinite; }
@keyframes mf-blink { 50% { opacity: 0; } }
.player .tracking { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, #ffffff14 0 2px, transparent 2px 5px); }
.player .tracking::after { content: ""; position: absolute; left: 0; right: 0; height: 14%; top: -14%;
  background: linear-gradient(transparent, #ffffff40 45%, #ffffff18 55%, transparent); filter: blur(1px); }
.player.tracking-on .tracking { animation: mf-track-fade .9s steps(4) both; }
.player.tracking-on .tracking::after { animation: mf-track-band .9s linear; }
.player.tracking-on video { animation: mf-jitter .9s steps(9); }
@keyframes mf-track-fade { 0% { opacity: 1; } 80% { opacity: .8; } 100% { opacity: 0; } }
@keyframes mf-track-band { to { top: 100%; } }
@keyframes mf-jitter { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(4px) skewX(-1deg); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
body.tv .player .osd { top: 8vh; right: 7vw; }

/* ---------- popcorn guy reactions in the player ---------- */
.player .reaction { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: #000a; animation: mf-pop .4s var(--bounce) both; cursor: pointer; }
.player .reaction .mascot { width: min(260px, 50vw); height: auto; }
.player .reaction-text { font-family: var(--groovy); font-size: clamp(1.8rem, 5vw, 3rem); color: #f4e4c1; text-shadow: 4px 4px 0 #000; }
.player .doze { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); z-index: 3; pointer-events: none; width: min(220px, 40vw); }
.player .doze .mascot { width: 100%; height: auto; }
.zzz { position: absolute; right: -14%; top: -4%; font-family: var(--groovy); color: #f4e4c1; text-shadow: 2px 2px 0 #000; }
.zzz span { position: absolute; opacity: 0; animation: mf-z 3s ease-in infinite; }
.zzz span:nth-child(1) { font-size: 2.4rem; } .zzz span:nth-child(2) { font-size: 1.8rem; animation-delay: 1s; } .zzz span:nth-child(3) { font-size: 1.3rem; animation-delay: 2s; }
@keyframes mf-z { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -60px) rotate(12deg); } }

/* ---------- search: nobody found ---------- */
.empty.shrug { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty.shrug .mascot { width: 150px; height: auto; }

/* ---------- secret code: popcorn rain ---------- */
.popcorn-rain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; overflow: hidden; }
.popcorn-rain > span { position: absolute; top: -60px; animation: mf-fall linear both; }
.popcorn-rain > span svg { width: 100%; height: 100%; }
@keyframes mf-fall { from { transform: translateY(0) rotate(0); } to { transform: translateY(115vh) rotate(var(--spin)); } }
.popcorn-rain .rain-guy { position: absolute; left: 50%; bottom: -10px; width: min(260px, 45vw); transform: translateX(-50%); animation: mf-rise-guy 5.5s var(--bounce) both; }
@keyframes mf-rise-guy { 0% { transform: translate(-50%, 110%); } 12%, 85% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, 110%); } }

/* ---------- badges ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; justify-content: center; margin: .6rem 0; }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; width: 130px; }
.badge .medal { filter: drop-shadow(3px 3px 0 #000); }
.badge.locked b { color: var(--muted); }
#mybadges .badge-row { justify-content: flex-start; }
.badge-pop { text-align: center; }
.badge-pop .badge-flex { width: 150px; margin: .4rem auto 0; display: block; }
.badge-pop .badge-row .medal { animation: mf-pop .5s var(--bounce) .3s both; }

@media (prefers-reduced-motion: reduce) {
  .mascot *, .player .tracking, .player.tracking-on video, .popcorn-rain *, .zzz span { animation: none !important; }
}

/* ---------- player: fast-forward / rewind lines ---------- */
.player .ffbars { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; overflow: hidden;
  background: repeating-linear-gradient(0deg, #ffffff12 0 1px, transparent 1px 3px); }
.player .ffbars::before, .player .ffbars::after { content: ""; position: absolute; left: -4%; right: -4%; height: 11%; top: -12%;
  background: linear-gradient(transparent, #ffffff70 35%, #9a9a9a55 50%, #ffffff66 65%, transparent),
              repeating-linear-gradient(90deg, #00000055 0 2px, transparent 2px 6px, #ffffff22 6px 7px, transparent 7px 11px);
  filter: blur(.5px); transform: skewX(-8deg); }
.player.scanning .ffbars { opacity: 1; transition: opacity .1s; }
.player.scan-ff .ffbars::before { animation: mf-bar-down .42s linear infinite; }
.player.scan-ff .ffbars::after { animation: mf-bar-down .42s linear .21s infinite; height: 6%; }
.player.scan-rew .ffbars::before { animation: mf-bar-up .42s linear infinite; }
.player.scan-rew .ffbars::after { animation: mf-bar-up .42s linear .21s infinite; height: 6%; }
@keyframes mf-bar-down { from { top: -12%; } to { top: 108%; } }
@keyframes mf-bar-up { from { top: 108%; } to { top: -12%; } }
.player.scanning video { animation: mf-scan-wobble .12s steps(2) infinite; filter: saturate(1.35) contrast(1.08); }
@keyframes mf-scan-wobble { 0% { transform: translateX(-3px) skewX(.6deg); } 100% { transform: translateX(3px) skewX(-.6deg); } }
@media (prefers-reduced-motion: reduce) { .player .ffbars, .player.scanning video { animation: none !important; } .player.scanning .ffbars::before, .player.scanning .ffbars::after { animation: none !important; } }
/* the lines stay on the picture, under the controls */
.player .ffbars, .player .tracking { z-index: 1; }

/* badge levels: Rookie (bronze), Pro (silver), Beast Mode (gold) */
.lvname { display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: .12rem .55rem;
  border-radius: 999px; border: 2px solid #1a1410; color: #1a1410; box-shadow: 2px 2px 0 #000; }
.lvname.lv1 { background: #c98a4b; } .lvname.lv2 { background: #d8dce6; } .lvname.lv3 { background: #ffcf40; }
.medal.lv3 { animation: mf-shine 2.6s ease-in-out infinite; }
@keyframes mf-shine { 0%, 100% { filter: drop-shadow(3px 3px 0 #000); } 50% { filter: drop-shadow(3px 3px 0 #000) drop-shadow(0 0 8px #ffcf40aa); } }
.badge { width: 150px; }
@media (prefers-reduced-motion: reduce) { .medal.lv3 { animation: none; } }

/* ---------- Skip intro / Skip credits key ---------- */
.player .skipkey { position: absolute; right: max(1.6rem, 4vw); bottom: 9.5rem; z-index: 4; display: inline-flex; flex-direction: column;
  align-items: center; gap: .1rem; min-width: 150px; min-height: 58px; padding: .4rem 1.1rem; border-radius: 7px; border: 3px solid #000;
  background: linear-gradient(#e6e0d2, #c9c1ae); color: #1a1410; box-shadow: 0 5px 0 #000; cursor: pointer; animation: mf-pop .35s var(--bounce) both; }
.player .skipkey[hidden] { display: none; }
.player .skipkey:hover:not(:disabled) { background: linear-gradient(#f2ede1, #d6cfbd); box-shadow: 0 5px 0 #000; transform: none; }
.player .skipkey:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.player .skipkey .sym { font-size: 1.15rem; font-weight: 900; letter-spacing: -.12em; line-height: 1; }
.player .skipkey .lbl { font-size: .74rem; font-weight: 900; letter-spacing: .12em; }
.player.idle .skipkey { bottom: 2.4rem; }
body.tv .player .skipkey { right: 7vw; }
body.tv .player.idle .skipkey { outline: 4px solid #f2b33d; outline-offset: 3px; }

/* ---------- popcorn-kernel ratings ---------- */
.kernels { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: .4rem; }
.kernels .k-label { font-weight: 800; }
.kernels .k-row { display: inline-flex; gap: .15rem; }
.kernels .kernel { width: 40px; height: 40px; padding: 2px; border: 0; border-radius: 50%; background: none; box-shadow: none; cursor: pointer; }
.kernels .kernel svg { width: 100%; height: 100%; }
.kernels .kernel g { fill: #3a312a; transition: fill .15s; }
.kernels .kernel .shine { opacity: 0; }
.kernels .kernel.on g, .kernels .kernel.hover g { fill: #fff6dc; }
.kernels .kernel.on .shine, .kernels .kernel.hover .shine { opacity: 1; }
.kernels .kernel:hover:not(:disabled), .kernels .kernel:active:not(:disabled) { background: none; box-shadow: none; transform: scale(1.15); }
.kernels .kernel.on { animation: mf-pop .3s var(--bounce); }
.kernels .k-house { font-size: .9rem; }
.kernels.ask .k-label { color: var(--accent); }
.kernels.ask .k-row { animation: mf-ask 1.4s ease-in-out infinite; }
@keyframes mf-ask { 50% { transform: scale(1.08); } }
body.tv .kernels .kernel:focus { outline: 4px solid #f2b33d; outline-offset: 2px; }

/* ---------- late-night drive-in (Home page, 10 pm to 5 am) ---------- */
body.drivein { background: linear-gradient(#04061a 0%, #0b1033 45%, #1a1430 75%, #120d0a 100%) fixed; }
#drivein-decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.di-stars i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff8; animation: mf-twinkle 4s ease-in-out infinite; }
@keyframes mf-twinkle { 50% { opacity: .25; } }
.di-moon { position: absolute; right: 9%; top: 12%; width: 74px; height: 74px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 40px #fff6dc66, inset -14px -6px 0 #e8dcbf; }
.di-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.di-car { position: fixed; right: 2.5vw; bottom: 4px; width: 230px; }
.di-car svg { width: 100%; display: block; position: relative; z-index: 1; }
.di-guy { position: absolute; left: 82px; bottom: 48px; width: 96px; z-index: 0; }
.di-guy .mascot { width: 100%; height: auto; }
body.drivein .feature { border: 10px solid #e9e4d6; border-radius: 6px; box-shadow: 0 0 0 4px #000, 0 0 60px #fff6dc55, 0 30px 80px #000; position: relative; }
body.drivein .feature::after { content: "NOW SHOWING"; position: absolute; inset: auto; top: 1rem; right: 1.2rem; padding: .15rem .9rem;
  font-family: var(--groovy); color: #ffe08a; background: #1a1410; border: 3px solid #ffe08a; border-radius: 6px; text-shadow: 0 0 8px #ffcf40;
  box-shadow: 0 0 12px #ffcf4066; letter-spacing: .05em; z-index: 2; pointer-events: none; }
body.drivein main, body.drivein #app { position: relative; }
body.drivein #app { margin-top: 2.4rem; padding-bottom: 150px; }
@media (max-width: 700px) { .di-car { width: 150px; } .di-guy { left: 54px; bottom: 32px; width: 62px; } .di-moon { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .di-stars i, .kernels.ask .k-row { animation: none; } }
/* the drive-in scenery sits on the night sky, under the page */
#drivein-decor { z-index: 0; }
body.drivein #app { z-index: 1; }

.intros-box { margin: 1rem 0 .4rem; }
.intros-list { margin: .3rem 0 .6rem; padding-left: 1.1rem; font-size: .9rem; }

/* ---------- Home scenery by day: a 70s sunset ---------- */
body.sunset { background: linear-gradient(#1d120c 0%, #2b1a12 45%, #4a2414 78%, #2b1a12 100%) fixed; }
#sunset-decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#sunset-decor .ss-sun { position: absolute; left: 50%; bottom: 62px; width: min(980px, 110vw); height: auto; transform: translateX(-50%);
  filter: drop-shadow(0 0 60px #ff7a4555); animation: mf-sun-glow 6s ease-in-out infinite; opacity: .92; }
@keyframes mf-sun-glow { 50% { filter: drop-shadow(0 0 90px #ffb34a77); } }
#sunset-decor .ss-hills { position: absolute; left: 0; right: 0; bottom: 40px; width: 100%; height: 70px; }
#sunset-decor .ss-stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 42px; display: flex; flex-direction: column; background: #1d120c; }
#sunset-decor .ss-stripes i { flex: 1; } #sunset-decor .ss-stripes i:nth-child(1) { background: #f2b33d; }
#sunset-decor .ss-stripes i:nth-child(2) { background: #ff5a1f; } #sunset-decor .ss-stripes i:nth-child(3) { background: #2a9d8f; }
body.sunset #app { position: relative; z-index: 1; padding-bottom: 60px; }
/* the row titles and the text under the posters stay readable over the sun */
body.sunset .card { text-shadow: 0 1px 3px #000, 0 0 8px #000; }
@media (prefers-reduced-motion: reduce) { #sunset-decor .ss-sun { animation: none; } }

/* ---------- Admin page: black boxes ---------- */
body.adminpage .panel, body.adminpage .panel .tile, body.adminpage .panel select, body.adminpage .panel input,
body.adminpage .panel textarea, body.adminpage .histwrap table.mini th, body.adminpage .panel .folder,
body.adminpage .admin-jump .chip { background: #000; }
.scenery-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: .2rem 0 .9rem; }
.scenery-row select { width: auto; margin-left: .5rem; }

/* ---------- Sections: Posters / List switch, and the List view ---------- */
.viewpick { display: inline-flex; gap: .3rem; }
.viewpick button.on { background: var(--accent); color: var(--ink, #000); border-color: var(--accent); }
.llist { display: flex; flex-direction: column; gap: 0; }
.llist .lhead, .llist .lrow { display: grid; grid-template-columns: minmax(0, 3fr) 3.6rem 8rem minmax(0, 2fr) 4.2rem 4.6rem 5.2rem;
  gap: .8rem; align-items: center; padding: .55rem .8rem; }
.llist .lhead { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--panel-2); }
.llist .lrow { color: inherit; text-decoration: none; border-bottom: 1px solid var(--panel-2); border-radius: 8px; }
.llist .lrow:hover { background: var(--panel-2); }
.llist .lrow:nth-child(even) { background: rgba(255,255,255,.025); }
.llist .lrow:nth-child(even):hover { background: var(--panel-2); }
.llist .l-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llist .l-y, .llist .l-len, .llist .l-g, .llist .l-r { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llist .l-w, .llist .l-q { text-align: center; }
.llist .ok { color: var(--accent); }
.llist .q { font-style: normal; font-size: .72rem; font-weight: 800; padding: .1em .45em; border-radius: 6px; border: 1.5px solid currentColor; }
.llist .q-4k { color: #f2b33d; }
.llist .q-hd { color: #7fc8ff; }
.llist .q-sd { color: var(--muted); }
.llist .minibar { display: inline-block; width: 3.2em; height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; vertical-align: middle; }
.llist .minibar i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 760px) {
  .llist .lhead, .llist .lrow { grid-template-columns: minmax(0, 1fr) 3rem 4rem 4.8rem; gap: .5rem; }
  .llist .l-len, .llist .l-g, .llist .l-r { display: none; }
}
body.tv .llist .lrow { padding: .8rem 1rem; font-size: 1.1rem; }
body.tv .llist .lrow:focus { background: var(--panel-2); }

/* ---------- Collections: franchises as a stack of tapes ---------- */
.collrow { margin: .4rem 0 1rem; }
.collrow h2 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.collcard .tapes { position: relative; aspect-ratio: 2/3; margin: 0 14% 0 0; }
.collcard .tape { position: absolute; inset: 0; border: var(--line); border-radius: var(--radius); background: var(--panel-2) center/cover no-repeat;
  box-shadow: 4px 4px 0 var(--ink); }
.collcard .tape.t1 { transform: translate(9%, 4%) rotate(3deg); filter: brightness(.7); }
.collcard .tape.t2 { transform: translate(17%, 8%) rotate(6deg); filter: brightness(.5); }
.collcard .tape.t0 { z-index: 3; } .collcard .tape.t1 { z-index: 2; } .collcard .tape.t2 { z-index: 1; }
.collcard:hover .tape.t1 { transform: translate(12%, 3%) rotate(5deg); } .collcard:hover .tape.t2 { transform: translate(23%, 6%) rotate(9deg); }
.collcard .tape { transition: transform .2s; }
.collcard .t { margin-top: .9rem; }
.card .ctag { position: absolute; bottom: .5rem; left: .4rem; z-index: 2; background: #000c; color: var(--accent); font-size: .7rem; font-weight: 800;
  padding: .1rem .4rem; border-radius: 5px; letter-spacing: .02em; max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collparts { display: flex; flex-direction: column; gap: .2rem; margin: 1rem 0 2rem; max-width: 900px; }
.collpart { display: grid; grid-template-columns: 2.2rem 4.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .55rem .6rem;
  border-bottom: 1px solid var(--panel-2); color: inherit; text-decoration: none; border-radius: 8px; }
a.collpart:hover, a.collpart:focus { background: var(--panel-2); }
.collpart .num { color: var(--accent); font-size: 1.4rem; font-weight: 800; text-align: center; }
.collpart .pimg { aspect-ratio: 2/3; border-radius: 6px; background: var(--panel-2) center/cover no-repeat; }
.collpart .pinfo b { display: block; }
.collpart .ok { color: var(--accent); }
.collpart.missing { opacity: .55; }
.collpart.missing .pimg { filter: grayscale(1); border: 1px dashed var(--muted); }
.collpart.missing button { opacity: 1; }
body.tv .collpart { font-size: 1.1rem; }

/* Audio language choice on title pages */
.audiopick { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; }
.audiopick select { padding: .35rem .5rem; }

/* =====================================================================================================
   Cinematic Hero look (Admin > Featured on Home > Look). Everything but the player. Dark, metallic,
   a spotlight, red and gold. Fonts: condensed ones the devices already have (no downloads).
   ===================================================================================================== */
body.look-hero:not(.inplayer) {
  --bg: #07080b; --panel: #0e1117; --panel-2: #161a22; --ink: #000; --text: #e8ebf0; --muted: #8b93a1;
  --accent: #c8102e; --accent-2: #d4a64a; --pop: #d4a64a; --edge: #2a303a; --shade: transparent;
  --line: 1px solid #2a303a; --radius: 6px;
  --cine: "Bebas Neue", "Oswald", Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --groovy: var(--cine);
  --stripes: linear-gradient(90deg, transparent, #c8102e 30%, #d4a64a 70%, transparent);
  background: radial-gradient(ellipse 60% 40% at 70% 0%, #ffecc80d, transparent 70%), #07080b;
}
.brand .mf-shield { display: none; }
body.look-hero:not(.inplayer) .brand .mf-shield { display: inline-block; width: 1.7rem; height: 1.95rem; vertical-align: middle; margin-right: .45rem; filter: drop-shadow(0 0 8px #d4a64a55); }
body.look-hero:not(.inplayer) .brand .mascot { display: none; }
body.look-hero:not(.inplayer) .brand .word { font-family: var(--cine); text-transform: uppercase; letter-spacing: .12em; font-weight: 400; font-size: 1.5rem; color: #f4f5f7; }
body.look-hero:not(.inplayer) .brand .word b { color: #f4f5f7; font-weight: 400; }
body.look-hero:not(.inplayer) #topbar { background: #0b0d12f2; border-bottom: 1px solid #1a1f27; box-shadow: 0 1px 0 #d4a64a22; }
body.look-hero:not(.inplayer) nav a { font-family: var(--cine); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: 1.05rem; }
body.look-hero:not(.inplayer) nav a.active { color: #f4f5f7; box-shadow: inset 0 -2px 0 #c8102e; }
body.look-hero:not(.inplayer) h1, body.look-hero:not(.inplayer) h2, body.look-hero:not(.inplayer) .modal-title {
  font-family: var(--cine); font-weight: 400; letter-spacing: .06em; text-shadow: none; }

/* buttons: red with a glow; secondary ones outlined in gold */
html:has(body.look-hero:not(.inplayer)) { background: #07080b; }
body.look-hero:not(.inplayer) { min-height: 100vh; }
body.look-hero:not(.inplayer) #topbar::after { height: 2px; bottom: -2px; border: 0; }
body.look-hero:not(.inplayer) .brand .word, body.look-hero:not(.inplayer) .brand .word b { text-shadow: none; -webkit-text-stroke: 0; }
body.look-hero:not(.inplayer) nav { gap: .9rem; }
body.look-hero:not(.inplayer) nav a { letter-spacing: .06em; font-size: .95rem; }
body.look-hero:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem, .splash-mascot)) { background: #c8102e; color: #fff; border: 0; border-radius: 4px; box-shadow: 0 0 14px #c8102e66;
  font-family: var(--cine); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; transform: none; }
body.look-hero:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem)):hover { box-shadow: 0 0 22px #c8102eaa; transform: none; }
body.look-hero:not(.inplayer) button.ghost, body.look-hero:not(.inplayer) button.alt { background: transparent; color: #d4a64a; border: 1px solid #d4a64a; box-shadow: none; }
body.look-hero:not(.inplayer) button.ghost:hover, body.look-hero:not(.inplayer) button.alt:hover { background: #d4a64a1a; }
body.look-hero:not(.inplayer) button.ghost.on, body.look-hero:not(.inplayer) .viewpick button.on { background: #d4a64a; color: #07080b; }
body.look-hero:not(.inplayer) button.danger { background: #7a0f1e; }
body.look-hero:not(.inplayer) input:focus, body.look-hero:not(.inplayer) select:focus { outline: 1px solid #d4a64a; box-shadow: 0 0 0 3px #d4a64a33; }

/* panels, sign-in box, pop-ups: flat, thin border, a gold edge on top */
body.look-hero:not(.inplayer) .panel, body.look-hero:not(.inplayer) .auth, body.look-hero:not(.inplayer) .modal {
  background: #0e1117f0; border: 1px solid #2a303a; border-top: 2px solid #d4a64a; border-radius: 8px; box-shadow: 0 20px 50px #000c; }
body.look-hero:not(.inplayer) .auth::before, body.look-hero:not(.inplayer) .modal:not(.wide)::before { display: none; }

/* Home rows and posters */
body.look-hero:not(.inplayer) .rowtitle span { background: none; border: 0; box-shadow: none; transform: none; color: #f1f3f6; padding: 0;
  font-family: var(--cine); font-size: 1.6rem; letter-spacing: .08em; text-transform: uppercase; }
body.look-hero:not(.inplayer) .rowtitle span::after { content: ""; display: block; width: 2.4rem; height: 2px; margin-top: .2rem; background: linear-gradient(90deg, #c8102e, #d4a64a); }
body.look-hero:not(.inplayer) .card .img { border: 1px solid #2a303a; border-radius: 6px; box-shadow: none; transform: none; }
body.look-hero:not(.inplayer) .card:hover .img, body.look-hero:not(.inplayer) .card:focus .img {
  transform: translateY(-5px); border-color: #d4a64a; box-shadow: 0 0 0 1px #d4a64a, 0 0 24px #d4a64a55; }
body.look-hero:not(.inplayer) .card .t { letter-spacing: .02em; }
body.look-hero:not(.inplayer) .card .bar, body.look-hero:not(.inplayer) .ep .img .bar { height: 3px; background: #c8102e; border: 0; box-shadow: 0 0 8px #c8102e; }
body.look-hero:not(.inplayer) .card .badge { background: #d4a64a; color: #07080b; border: 0; }
body.look-hero:not(.inplayer) .card .ctag { background: #000c; color: #d4a64a; border: 1px solid #d4a64a; }
body.look-hero:not(.inplayer) .collcard .tape { box-shadow: 4px 4px 0 #000; border-radius: 6px; }

/* the big banner and title pages */
body.look-hero:not(.inplayer) .feature { border: 1px solid #1c2129; border-radius: 10px; box-shadow: 0 30px 80px #000; }
body.look-hero:not(.inplayer) .feature::before { background: linear-gradient(90deg, #07080bf5 0%, #07080bb0 45%, transparent 78%), linear-gradient(0deg, #07080bdd, transparent 50%); }
body.look-hero:not(.inplayer) .feature h1 { font-family: var(--cine); font-weight: 400; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .92; letter-spacing: .04em;
  text-transform: uppercase; color: #f4f5f7; text-shadow: 0 0 28px #c8102e66; }
body.look-hero:not(.inplayer) .feature-meta { color: #8b93a1; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
body.look-hero:not(.inplayer) .sticker { background: none; border: 0; box-shadow: none; transform: none; color: #d4a64a; padding: 0;
  font-family: var(--cine); letter-spacing: .3em; font-size: 1rem; text-transform: uppercase; }
body.look-hero:not(.inplayer) .hero { border: 1.5px solid #c9a24a; border-radius: 10px; box-shadow: 0 0 0 1px #00000080, 0 0 18px #c9a24a33, 0 30px 80px #000; }
body.look-hero:not(.inplayer) .hero-poster { transform: none; border: 1px solid #2a303a; box-shadow: 0 20px 50px #000; }
body.look-hero:not(.inplayer) .hero h1 { font-family: var(--cine); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 0 24px #c8102e55; }
body.look-hero:not(.inplayer) .chips span { background: #161a22; color: #d4a64a; border: 1px solid #2a303a; }

/* Home in this look: the banner's picture fades to black on the right, and a hero stands in a spotlight there */
body.look-hero:not(.inplayer) .feature { min-height: min(46vh, 400px); width: 68%; overflow: visible; background-color: #07080b; background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 1.5px solid #c9a24a; box-shadow: 0 0 0 1px #00000080, 0 0 18px #c9a24a33; }
body.look-hero:not(.inplayer) .feature::before { border-radius: inherit; background:
  linear-gradient(90deg, #07080bf2 0%, #07080bb0 35%, #07080b40 65%, #07080bcc 100%),
  linear-gradient(0deg, #07080bdd, transparent 50%), linear-gradient(180deg, #07080b99, transparent 30%); }
.feature-hero { position: absolute; left: calc(100% + 4vw); top: -70px; bottom: -10px; width: 300px; pointer-events: none; }
.feature-hero .hb-beam { position: absolute; top: 0; left: 0; width: 300px; height: 100%; animation: hb-on 1.4s ease-out both;
  background: linear-gradient(180deg, #fff0d238, #fff0d200 95%); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }
.feature-hero .hb-figure { position: absolute; bottom: 0; left: 55px; width: 190px; height: auto; max-height: 90%; animation: hb-rise 1.2s ease-out .4s both; }
@keyframes hb-on { from { opacity: 0; } 30% { opacity: .9; } 40% { opacity: .2; } to { opacity: 1; } }
@keyframes hb-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .feature-hero { display: none; }
  body.look-hero:not(.inplayer) .feature { width: auto; }
  body.look-hero:not(.inplayer) .feature::before { background: linear-gradient(90deg, #07080bf2 0%, #07080bb0 45%, #07080b55 75%, #07080b99 100%), linear-gradient(0deg, #07080bdd, transparent 50%); } }
body.herostage .feature-text { animation: hb-rise 1s ease-out both; }

/* the loader: the shield, a spinning red-and-gold ring, a sweep of light */
.spinner.pop.herospin { width: auto; height: auto; }
.spinner.herospin { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.spinner.herospin .mascot { display: none; }
.hero-ring { position: relative; width: 96px; height: 96px; }
.hero-ring svg.r { position: absolute; inset: 0; width: 100%; height: 100%; animation: hr-spin 1.6s linear infinite; }
.hero-ring .sh { position: absolute; left: 24px; top: 19px; width: 48px; height: 56px; overflow: hidden; filter: drop-shadow(0 0 10px #d4a64a55); }
.hero-ring .sh svg { width: 48px; height: 56px; animation: hr-pulse 1.6s ease-in-out infinite; }
.hero-ring .sweep { position: absolute; top: -10px; left: -50px; width: 24px; height: 80px; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, #fff0d28c, transparent); animation: hr-sweep 1.6s ease-in-out infinite; }
.hero-loading { font-family: var(--cine, Impact, sans-serif); letter-spacing: .3em; color: #8b93a1; text-transform: uppercase; font-size: .95rem; }
@keyframes hr-spin { to { transform: rotate(360deg); } }
@keyframes hr-sweep { 0% { left: -50px; } 60%, 100% { left: 70px; } }
@keyframes hr-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }

/* the front door */
.herosplash { position: relative; overflow: hidden; gap: .3rem; }
.herosplash .hs-beam { position: absolute; top: -4rem; left: 50%; transform: translateX(-50%); width: 360px; height: 120vh; pointer-events: none;
  background: linear-gradient(180deg, #fff0d226, #fff0d200 70%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); animation: hb-on 1.4s ease-out both; }
.herosplash .hs-emblem, .herosplash .hs-emblem:focus { background: none; border: 0; box-shadow: none; padding: 0; width: min(120px, 30vw); cursor: pointer; animation: hb-rise 1s ease-out .3s both; }
.herosplash .hs-emblem:hover { background: none; box-shadow: none; }
.herosplash .hs-shield { width: 100%; height: auto; filter: drop-shadow(0 0 22px #d4a64a66); }
.herosplash .hs-word { font-family: var(--cine); font-size: clamp(2.8rem, 9vw, 4.6rem); letter-spacing: .14em; color: #f4f5f7; text-shadow: 0 0 26px #c8102e66;
  font-weight: 400; animation: hb-rise 1s ease-out .6s both; }
.herosplash .hs-word b { font-weight: 400; }
.herosplash .hs-line { width: 220px; height: 2px; background: var(--stripes); margin: .1rem 0 .8rem; }
.herosplash .splash-line { font-style: italic; color: #c9ced6; max-width: 26rem; }
.herosplash .splash-go { margin-top: 1.4rem; font-size: 1.5rem; padding: .45em 2em; letter-spacing: .25em; }
.herosplash .hs-hint { margin-top: 1.2rem; color: #5d6573; font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; }
body.look-hero:not(.inplayer) .auth h1 { letter-spacing: .1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .hero-ring svg.r, .hero-ring .sweep, .hero-ring .sh svg, .herosplash * { animation: none !important; }
}

/* Cinematic Hero background: night city (behind every page except the player) */
body.look-hero:not(.inplayer) { background: transparent; }
#hero-city { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #05060a 0%, #0a0c13 65%, #12090d 100%); }
body.inplayer #hero-city { display: none; }
#hero-city .hc-glow { position: absolute; left: -10%; right: -10%; bottom: 0; height: 45vh; background: radial-gradient(ellipse 60% 70% at 50% 100%, #3a0d1655, transparent 70%); }
#hero-city .hc-light { position: absolute; bottom: 14vh; width: 70px; height: 95vh; transform-origin: 50% 100%; opacity: .55;
  background: linear-gradient(0deg, #fff0d230, #fff0d200 85%); clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0); }
#hero-city .hc-l1 { left: 22%; animation: hc-sweep1 14s ease-in-out infinite; }
#hero-city .hc-l2 { left: 72%; animation: hc-sweep2 17s ease-in-out infinite; }
#hero-city .hc-sky { position: absolute; left: 0; bottom: 0; width: 100%; height: 26vh; min-height: 140px; }
#hero-city .hc-blink { animation: hc-blink 7s steps(1) infinite; }
@keyframes hc-sweep1 { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(16deg); } }
@keyframes hc-sweep2 { 0%, 100% { transform: rotate(26deg); } 50% { transform: rotate(-18deg); } }
@keyframes hc-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { #hero-city * { animation: none !important; } }

/* =====================================================================================================
   Super Villain look ("Crimson tyrant"): the Cinematic Hero layout in black and blood red.
   body has both look-hero and look-villain. Colour overrides generated from the hero rules above.
   ===================================================================================================== */
body.look-hero.look-villain:not(.inplayer) { --accent: #8e0012; --accent-2: #e0342a; --pop: #e0342a; --stripes: linear-gradient(90deg, transparent, #8e0012 30%, #e0342a 70%, transparent); }
body.look-hero.look-villain:not(.inplayer) .brand .mf-shield { filter: drop-shadow(0 0 8px #e0342a55); }
body.look-hero.look-villain:not(.inplayer) #topbar { box-shadow: 0 1px 0 #e0342a22; }
body.look-hero.look-villain:not(.inplayer) nav a.active { box-shadow: inset 0 -2px 0 #8e0012; }
body.look-hero.look-villain:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem, .splash-mascot)) { background: #8e0012; box-shadow: 0 0 14px #8e001266; }
body.look-hero.look-villain:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem)):hover { box-shadow: 0 0 22px #8e0012aa; }
body.look-hero.look-villain:not(.inplayer) button.ghost, body.look-hero.look-villain:not(.inplayer) button.alt { background: transparent; box-shadow: none; color: #e0342a; border: 1px solid #e0342a; }
body.look-hero.look-villain:not(.inplayer) button.ghost:hover, body.look-hero.look-villain:not(.inplayer) button.alt:hover { background: #e0342a1a; }
body.look-hero.look-villain:not(.inplayer) button.ghost.on, body.look-hero.look-villain:not(.inplayer) .viewpick button.on { background: #e0342a; color: #0b0809; }
body.look-hero.look-villain:not(.inplayer) input:focus, body.look-hero.look-villain:not(.inplayer) select:focus { outline: 1px solid #e0342a; box-shadow: 0 0 0 3px #e0342a33; }
body.look-hero.look-villain:not(.inplayer) .panel, body.look-hero.look-villain:not(.inplayer) .auth, body.look-hero.look-villain:not(.inplayer) .modal { border-top: 2px solid #e0342a; }
body.look-hero.look-villain:not(.inplayer) .rowtitle span::after { background: linear-gradient(90deg, #8e0012, #e0342a); }
body.look-hero.look-villain:not(.inplayer) .card:hover .img, body.look-hero.look-villain:not(.inplayer) .card:focus .img { border-color: #e0342a; box-shadow: 0 0 0 1px #e0342a, 0 0 24px #e0342a55; }
body.look-hero.look-villain:not(.inplayer) .card .bar, body.look-hero.look-villain:not(.inplayer) .ep .img .bar { background: #8e0012; box-shadow: 0 0 8px #8e0012; }
body.look-hero.look-villain:not(.inplayer) .card .badge { background: #e0342a; }
body.look-hero.look-villain:not(.inplayer) .card .ctag { color: #e0342a; border: 1px solid #e0342a; }
body.look-hero.look-villain:not(.inplayer) .feature h1 { text-shadow: 0 0 28px #8e001266; }
body.look-hero.look-villain:not(.inplayer) .sticker { color: #e0342a; }
body.look-hero.look-villain:not(.inplayer) .hero { border: 1.5px solid #c42a22; box-shadow: 0 0 0 1px #00000080, 0 0 18px #c42a2233, 0 30px 80px #000; }
body.look-hero.look-villain:not(.inplayer) .hero h1 { text-shadow: 0 0 24px #8e001255; }
body.look-hero.look-villain:not(.inplayer) .chips span { color: #e0342a; }
body.look-hero.look-villain:not(.inplayer) .feature { border: 1.5px solid #c42a22; box-shadow: 0 0 0 1px #00000080, 0 0 18px #c42a2233; }
body.look-villain .feature-hero .hb-beam { background: linear-gradient(180deg, #ff6a5038, #ff6a5000 95%); }
body.look-villain .hero-ring .sh { filter: drop-shadow(0 0 10px #e0342a55); }
body.look-villain .hero-ring .sweep { background: linear-gradient(90deg, transparent, #ff6a508c, transparent); }
body.look-villain .herosplash .hs-beam { background: linear-gradient(180deg, #ff6a5026, #ff6a5000 70%); }
body.look-villain .herosplash .hs-shield { filter: drop-shadow(0 0 22px #e0342a66); }
body.look-villain .herosplash .hs-word { text-shadow: 0 0 26px #8e001266; }
body.look-villain #hero-city .hc-glow { background: radial-gradient(ellipse 60% 70% at 50% 100%, #5a000855, transparent 70%); }
body.look-villain #hero-city .hc-light { background: linear-gradient(0deg, #ff6a5030, #ff6a5000 85%); }

body.look-villain #hero-city { background: linear-gradient(180deg, #050304 0%, #0d0507 65%, #1a0508 100%); }
body.look-villain .feature-hero .vb-eyes { filter: drop-shadow(0 0 4px #ff3b2f) drop-shadow(0 0 10px #ff3b2f); animation: vb-glow 4s ease-in-out infinite; }
body.look-villain .feature-hero .vb-smirk { filter: drop-shadow(0 0 2px #ff3b2f); }
@keyframes vb-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
body.look-villain .feature-hero .hb-beam { clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); }

/* The sign-in page question: hero, villain, or stuck in the 70s */
.side-ask { margin: 1.4rem 0 .2rem; max-width: 30rem; font-weight: 600; }
.side-pick { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: .6rem; animation: mf-rise .6s var(--bounce, ease-out) .9s both; }
.side-pick .side-btn { font-size: 1.05rem; padding: .7rem 1.4rem; min-width: 10rem; }
.side-pick .side-btn.on { outline: 2px solid var(--pop, #fff); outline-offset: 3px; }
body.look-hero .side-ask { font-family: var(--cine); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: #c9ced6; font-size: 1.05rem; }
body.look-hero .side-pick .side-btn { font-size: 1.15rem; letter-spacing: .18em; }
.side-pick .side-hero { background: #c8102e !important; color: #fff !important; box-shadow: 0 0 14px #c8102e66 !important; }
.side-pick .side-villain { background: #0b0809 !important; color: #ff3b2f !important; border: 1.5px solid #e0342a !important; box-shadow: 0 0 14px #e0342a44 !important; }
.side-pick .side-classic { background: #eef0f4 !important; color: #15171c !important; border: 0 !important; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important; font-weight: 700 !important; letter-spacing: .01em !important; text-transform: none !important; box-shadow: 0 0 14px #4f8cff33 !important; }
#usermenu #sides { width: 100%; }
/* The villain's city is on fire */
#hero-city.on-fire { background: linear-gradient(180deg, #0a0405 0%, #1a0706 55%, #3a0c06 100%); }
#hero-city.on-fire .hc-glow { height: 60vh; background: radial-gradient(ellipse 70% 75% at 50% 100%, #ff4a1455, #8e001233 45%, transparent 75%); animation: hc-burn 3.2s ease-in-out infinite; }
#hero-city.on-fire .hc-smoke { position: absolute; inset: 0 -20% 30% -20%; background:
  radial-gradient(ellipse 30% 40% at 20% 60%, #2a0d0a66, transparent 70%), radial-gradient(ellipse 35% 45% at 70% 50%, #2a0d0a55, transparent 70%),
  radial-gradient(ellipse 25% 35% at 45% 70%, #3a120c44, transparent 70%); animation: hc-smoke 40s linear infinite alternate; }
#hero-city .hc-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: hc-flick 1.2s ease-in-out infinite alternate; }
#hero-city .hc-flames.front { opacity: .55; mix-blend-mode: screen; }
#hero-city .hc-ember { position: absolute; bottom: 12vh; width: 3px; height: 3px; border-radius: 50%; background: #ffb23a; box-shadow: 0 0 6px #ff6a1a;
  opacity: 0; animation: hc-ember 8s linear infinite; }
@keyframes hc-flick { 0% { transform: scale(1, 1); } 35% { transform: scale(.9, 1.18); } 70% { transform: scale(1.06, .88); } 100% { transform: scale(.95, 1.1); } }
@keyframes hc-burn { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }
@keyframes hc-smoke { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes hc-ember { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(40px, -70vh); } }
.side-ask small { display: block; margin-top: .3rem; font-weight: 400; font-style: italic; opacity: .75; font-size: .9em; }
body.look-hero .side-ask small { font-family: inherit; letter-spacing: .05em; text-transform: none; font-style: italic; font-family: system-ui, sans-serif; }
body.adminpage { background: radial-gradient(ellipse 60% 40% at 70% 0%, #ffecc80d, transparent 70%), #07080b; }
/* name menu: every item looks the same and stays on one line, in every look */
#usermenu a, #usermenu button, body.look-hero:not(.inplayer) #usermenu button { text-transform: none !important; letter-spacing: normal !important; font-family: inherit; font-size: 1rem; white-space: nowrap; }

/* =====================================================================================================
   Antihero look ("Shadow"): the Cinematic Hero layout in black-violet with neon cyan and purple;
   neon-sign row titles, glitches, target-lock brackets, terminal sign-in and loading, case-file pages, a rooftop perch.
   body has both look-hero and look-shadow. Colour overrides generated from the hero rules above.
   ===================================================================================================== */
body.look-hero.look-shadow:not(.inplayer) { --accent: #7a3cff; --accent-2: #2ee6d6; --pop: #2ee6d6; --stripes: linear-gradient(90deg, transparent, #7a3cff 30%, #2ee6d6 70%, transparent); }
body.look-hero.look-shadow:not(.inplayer) .brand .mf-shield { filter: drop-shadow(0 0 8px #2ee6d655); }
body.look-hero.look-shadow:not(.inplayer) #topbar { box-shadow: 0 1px 0 #2ee6d622; }
body.look-hero.look-shadow:not(.inplayer) nav a.active { box-shadow: inset 0 -2px 0 #7a3cff; }
body.look-hero.look-shadow:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem, .splash-mascot)) { background: #7a3cff; box-shadow: 0 0 14px #7a3cff66; }
body.look-hero.look-shadow:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem)):hover { box-shadow: 0 0 22px #7a3cffaa; }
body.look-hero.look-shadow:not(.inplayer) button.ghost, body.look-hero.look-shadow:not(.inplayer) button.alt { background: transparent; box-shadow: none; color: #2ee6d6; border: 1px solid #2ee6d6; }
body.look-hero.look-shadow:not(.inplayer) button.ghost:hover, body.look-hero.look-shadow:not(.inplayer) button.alt:hover { background: #2ee6d61a; }
body.look-hero.look-shadow:not(.inplayer) button.ghost.on, body.look-hero.look-shadow:not(.inplayer) .viewpick button.on { background: #2ee6d6; }
body.look-hero.look-shadow:not(.inplayer) input:focus, body.look-hero.look-shadow:not(.inplayer) select:focus { outline: 1px solid #2ee6d6; box-shadow: 0 0 0 3px #2ee6d633; }
body.look-hero.look-shadow:not(.inplayer) .panel, body.look-hero.look-shadow:not(.inplayer) .auth, body.look-hero.look-shadow:not(.inplayer) .modal { border-top: 2px solid #2ee6d6; }
body.look-hero.look-shadow:not(.inplayer) .rowtitle span::after { background: linear-gradient(90deg, #7a3cff, #2ee6d6); }
body.look-hero.look-shadow:not(.inplayer) .card:hover .img, body.look-hero.look-shadow:not(.inplayer) .card:focus .img { border-color: #2ee6d6; box-shadow: 0 0 0 1px #2ee6d6, 0 0 24px #2ee6d655; }
body.look-hero.look-shadow:not(.inplayer) .card .bar, body.look-hero.look-shadow:not(.inplayer) .ep .img .bar { background: #7a3cff; box-shadow: 0 0 8px #7a3cff; }
body.look-hero.look-shadow:not(.inplayer) .card .badge { background: #2ee6d6; }
body.look-hero.look-shadow:not(.inplayer) .card .ctag { color: #2ee6d6; border: 1px solid #2ee6d6; }
body.look-hero.look-shadow:not(.inplayer) .feature h1 { text-shadow: 0 0 28px #7a3cff66; }
body.look-hero.look-shadow:not(.inplayer) .sticker { color: #2ee6d6; }
body.look-hero.look-shadow:not(.inplayer) .hero { border: 1.5px solid #9b5cff; box-shadow: 0 0 0 1px #00000080, 0 0 18px #9b5cff33, 0 30px 80px #000; }
body.look-hero.look-shadow:not(.inplayer) .hero h1 { text-shadow: 0 0 24px #7a3cff55; }
body.look-hero.look-shadow:not(.inplayer) .chips span { color: #2ee6d6; }
body.look-hero.look-shadow:not(.inplayer) .feature { border: 1.5px solid #9b5cff; box-shadow: 0 0 0 1px #00000080, 0 0 18px #9b5cff33; }
body.look-shadow .feature-hero .hb-beam { background: linear-gradient(180deg, #9b5cff38, #9b5cff00 95%); }
body.look-shadow .hero-ring .sh { filter: drop-shadow(0 0 10px #2ee6d655); }
body.look-shadow .hero-ring .sweep { background: linear-gradient(90deg, transparent, #9b5cff8c, transparent); }
body.look-shadow .herosplash .hs-beam { background: linear-gradient(180deg, #9b5cff26, #9b5cff00 70%); }
body.look-shadow .herosplash .hs-shield { filter: drop-shadow(0 0 22px #2ee6d666); }
body.look-shadow .herosplash .hs-word { text-shadow: 0 0 26px #7a3cff66; }
body.look-shadow #hero-city .hc-glow { background: radial-gradient(ellipse 60% 70% at 50% 100%, #1d0f3a55, transparent 70%); }
body.look-shadow #hero-city .hc-light { background: linear-gradient(0deg, #9b5cff30, #9b5cff00 85%); }

/* the city: neon windows, a violet glow, rain */
body.look-shadow #hero-city { background: linear-gradient(180deg, #05030b 0%, #0f0820 60%, #1d0f3a 100%); }
body.look-shadow #hero-city .hc-light { display: none; }
body.look-shadow #hero-city .hc-sky g { opacity: .75; }
body.look-shadow #hero-city .hc-glow { background: radial-gradient(ellipse 70% 70% at 50% 100%, #7a3cff44, transparent 70%); }
body.look-shadow #hero-city::after { content: ""; position: absolute; inset: -20% 0 0 0; background: repeating-linear-gradient(95deg, transparent 0 28px, #2ee6d612 28px 29px), repeating-linear-gradient(95deg, transparent 0 45px, #9b5cff10 45px 46px); animation: sh-rain .5s linear infinite; }
@keyframes sh-rain { from { transform: translate(0, 0); } to { transform: translate(-4px, 46px); } }
/* the rooftop perch: he crouches on a ledge beside the banner, lower than the others stand */
body.look-shadow .feature-hero.shadow { top: auto; bottom: -14px; width: 300px; height: 330px; left: calc(100% + 2vw); }
body.look-shadow .feature-hero .perch { filter: drop-shadow(0 0 1.5px #9b5cffaa); position: absolute; left: 0; bottom: 0; width: 300px; height: auto; max-height: none; animation: hb-rise 1.2s ease-out .3s both; }
body.look-shadow .feature-hero .ah-eyes { filter: drop-shadow(0 0 3px #2ee6d6) drop-shadow(0 0 8px #2ee6d6); animation: vb-glow 5s ease-in-out infinite; }
body.look-shadow .feature-hero .sh-cape { transform-box: fill-box; transform-origin: 0% 30%; animation: sh-cape 3.5s ease-in-out infinite; }
body.look-shadow .feature-hero .sh-vent { animation: neon-flick 7s linear infinite; }
@keyframes sh-cape { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-4deg) scaleX(1.06); } }
/* neon-sign row titles that flicker now and then */
body.look-shadow:not(.inplayer) .rowtitle span { color: #effffd; font-weight: 500; text-shadow: 0 0 2px #fff, 0 0 8px #2ee6d6, 0 0 18px #2ee6d6, 0 0 36px #2ee6d688; animation: neon-flick 9s linear infinite; }
body.look-shadow:not(.inplayer) .rowtitle:nth-of-type(even) span { text-shadow: 0 0 2px #fff, 0 0 8px #9b5cff, 0 0 18px #9b5cff, 0 0 36px #9b5cff88; animation-delay: -4s; }
body.look-shadow:not(.inplayer) .rowtitle span::after { display: none; }
@keyframes neon-flick { 0%, 88%, 91%, 94%, 100% { opacity: 1; } 89%, 92% { opacity: .35; } 93% { opacity: .8; } }
/* glitches: once when the page appears, and on hover / remote focus */
#app.sh-glitch { animation: sh-glitch .55s steps(1) 1; }
@keyframes sh-glitch { 0% { transform: translate(0); filter: none; } 15% { transform: translate(-6px, 2px) skewX(-4deg); filter: drop-shadow(4px 0 #2ee6d6) drop-shadow(-4px 0 #9b5cff); }
  30% { transform: translate(5px, -1px); filter: drop-shadow(-3px 0 #2ee6d6) drop-shadow(3px 0 #9b5cff); clip-path: inset(10% 0 30% 0); }
  45% { transform: translate(-2px, 0); clip-path: inset(50% 0 10% 0); } 60% { transform: none; clip-path: none; filter: drop-shadow(2px 0 #2ee6d6); } 100% { transform: none; filter: none; clip-path: none; } }
body.look-shadow:not(.inplayer) .feature h1:hover, body.look-shadow:not(.inplayer) button:hover:not(:disabled), body.look-shadow:not(.inplayer) button:focus-visible,
body.look-shadow:not(.inplayer) nav a:hover, body.look-shadow:not(.inplayer) .card:hover .title, body.look-shadow:not(.inplayer) .card:focus .title { animation: sh-jitter .35s steps(2) 1; }
@keyframes sh-jitter { 0% { text-shadow: 2px 0 #2ee6d6, -2px 0 #9b5cff; transform: translateX(1px); } 50% { text-shadow: -2px 0 #2ee6d6, 2px 0 #9b5cff; transform: translateX(-1px); } 100% { text-shadow: none; transform: none; } }
/* target lock: cyan brackets snap onto the poster you hover or select with the remote */
body.look-shadow:not(.inplayer) .card .img::after { content: ""; position: absolute; inset: 5px; pointer-events: none; opacity: 0; transform: scale(1.12); transition: opacity .15s, transform .22s cubic-bezier(.2, .9, .3, 1.3);
  background: linear-gradient(#2ee6d6, #2ee6d6) top left / 18px 2px, linear-gradient(#2ee6d6, #2ee6d6) top left / 2px 18px,
    linear-gradient(#2ee6d6, #2ee6d6) top right / 18px 2px, linear-gradient(#2ee6d6, #2ee6d6) top right / 2px 18px,
    linear-gradient(#2ee6d6, #2ee6d6) bottom left / 18px 2px, linear-gradient(#2ee6d6, #2ee6d6) bottom left / 2px 18px,
    linear-gradient(#2ee6d6, #2ee6d6) bottom right / 18px 2px, linear-gradient(#2ee6d6, #2ee6d6) bottom right / 2px 18px; background-repeat: no-repeat; filter: drop-shadow(0 0 4px #2ee6d6); z-index: 3; }
body.look-shadow:not(.inplayer) .card:hover .img::after, body.look-shadow:not(.inplayer) .card:focus .img::after { opacity: 1; transform: none; }
body.look-shadow:not(.inplayer) .card .img { overflow: visible; }
/* sign-in terminal, ACCESS GRANTED, and the terminal loader */
.term { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; color: #2ee6d6; text-align: left; min-height: 4.6em; width: min(26rem, 90vw); margin: .8rem auto 0; font-size: .95rem; text-shadow: 0 0 6px #2ee6d688; }
.term div:last-child::after { content: "▌"; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.granted { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #05030be6; pointer-events: none; }
.granted div { font: 600 clamp(1.6rem, 5vw, 3rem) ui-monospace, Consolas, monospace; letter-spacing: .3em; color: #2ee6d6; text-shadow: 0 0 10px #2ee6d6, 0 0 30px #2ee6d6; animation: sh-glitch .6s steps(1) 1, granted 1.1s ease-out both; }
@keyframes granted { 0% { opacity: 0; transform: scale(1.3); } 25% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }
.term-load { display: flex; flex-direction: column; align-items: center; gap: 1rem; font-family: ui-monospace, Consolas, monospace; color: #2ee6d6; text-shadow: 0 0 6px #2ee6d688; }
.term-load .tl-mark { width: 64px; height: auto; filter: drop-shadow(0 0 10px #9b5cff88); }
.term-load .tl-lines { text-align: left; font-size: 1rem; line-height: 1.7; }
.term-load .tl-lines div:nth-child(2) { opacity: 0; animation: mf-rise .3s ease-out .5s both; }
.term-load .tl-cur { display: inline-block; width: .6em; height: 1.05em; margin-left: 4px; vertical-align: -2px; background: #2ee6d6; animation: blink .9s steps(1) infinite; }
/* case-file movie and show pages */
body.look-shadow .hero.is-dossier { border-color: #9b5cff; }
.dossier-head { display: flex; align-items: center; gap: 1rem; font: 600 .8rem ui-monospace, Consolas, monospace; letter-spacing: .25em; color: #2ee6d6; margin-bottom: .6rem; }
.dossier-head .stamp { color: #ff3b6b; border: 2px solid #ff3b6b; padding: .15em .6em; transform: rotate(-6deg); letter-spacing: .3em; opacity: .85; text-shadow: none; box-shadow: inset 0 0 6px #ff3b6b55; }
.dossier { margin: 0 0 .4rem; display: grid; gap: .25rem; font-family: ui-monospace, Consolas, monospace; }
.dossier div { display: flex; gap: .8rem; align-items: baseline; }
.dossier dt { width: 11em; flex: none; white-space: nowrap; color: #8a7fb0; font-size: .8rem; letter-spacing: .2em; }
.dossier dd { margin: 0; color: #effffd; }
.dossier div:first-child dd { font: 400 clamp(1.8rem, 4vw, 3rem) var(--cine, inherit); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 0 18px #7a3cff88; }
/* the sign-in choice */
.side-pick .side-shadow { background: #0c0a14 !important; color: #2ee6d6 !important; border: 1.5px solid #9b5cff !important; box-shadow: 0 0 14px #9b5cff44 !important; }
@media (max-width: 900px) { body.look-shadow .feature-hero.shadow { display: none; } }
/* Fire TV focus ring in the cinematic looks: match each look's colours */
body.tv.look-hero :focus { outline-color: #f2e6c8 !important; box-shadow: 0 0 0 8px #d4a64a66 !important; }
body.tv.look-villain :focus { outline-color: #ff9a80 !important; box-shadow: 0 0 0 8px #e0342a66 !important; }
body.tv.look-shadow :focus { outline-color: #b8fff7 !important; box-shadow: 0 0 0 8px #2ee6d655, 0 0 24px #9b5cff88 !important; }
/* the Antihero's rooftop: a wide tower that runs off the right edge of the screen and down behind the page */
body.look-shadow .feature-hero.shadow::after { content: ""; position: absolute; top: calc(100% - 58px); left: 8px; right: 0; height: 300vh; z-index: -1;
  border-left: 2px solid #2a2240; background-color: #07050d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='238' height='220'%3E%3Crect x='10' y='14' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='44' y='14' width='14' height='20' fill='%239b5cff' opacity='0.55'/%3E%3Crect x='44' y='27' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='78' y='14' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='112' y='14' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='112' y='27' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='146' y='14' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='180' y='14' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='214' y='14' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='214' y='27' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='10' y='58' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='44' y='58' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='44' y='71' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='78' y='58' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='112' y='58' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='112' y='71' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='146' y='58' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='146' y='71' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='180' y='58' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='214' y='58' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='10' y='102' width='14' height='20' fill='%239b5cff' opacity='0.55'/%3E%3Crect x='10' y='115' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='44' y='102' width='14' height='20' fill='%23ffcf8a' opacity='0.32'/%3E%3Crect x='44' y='115' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='78' y='102' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='112' y='102' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='146' y='102' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='180' y='102' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='214' y='102' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='10' y='146' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='10' y='159' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='44' y='146' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='78' y='146' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='112' y='146' width='14' height='20' fill='%239b5cff' opacity='0.55'/%3E%3Crect x='112' y='159' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='146' y='146' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='146' y='159' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='180' y='146' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='214' y='146' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='10' y='190' width='14' height='20' fill='%239b5cff' opacity='0.55'/%3E%3Crect x='10' y='203' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='44' y='190' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='78' y='190' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='112' y='190' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='146' y='190' width='14' height='20' fill='%23140f24' opacity='1'/%3E%3Crect x='180' y='190' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='180' y='203' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3Crect x='214' y='190' width='14' height='20' fill='%232ee6d6' opacity='0.5'/%3E%3Crect x='214' y='203' width='14' height='7' fill='%2305030b' opacity='.35'/%3E%3C/svg%3E"); background-size: 238px 220px; background-position: 6px 34px; }
body.look-shadow .feature-hero .sh-ledge { position: absolute; left: 0; right: 0; bottom: 57px; height: 14px; background: #120e20; border: 2px solid #2a2240; border-right: 0; z-index: 1; }
body.look-shadow .feature-hero .perch { z-index: 2; }
body.look-shadow .feature { z-index: auto; }
body.look-shadow .feature-hero.shadow { left: calc(100% + 3vw); width: calc(47% + 120px); }
body.look-shadow, html:has(body.look-shadow) { overflow-x: clip; }
body.look-shadow .feature-hero .sh-blink { animation: sh-blink 2.4s steps(1) infinite; filter: drop-shadow(0 0 4px #ff2a3a) drop-shadow(0 0 10px #ff2a3a); }
@keyframes sh-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .15; } }
body.look-shadow .feature-hero .sh-moon { filter: drop-shadow(0 0 14px #f4e4a166); }
/* the Hero's MF medallion is round, not shield-shaped */
body.look-hero:not(.inplayer) .brand .mf-medal { width: 2.1rem; height: 2.1rem; }
.hero-ring .sh svg.mf-medal { width: 56px; height: 56px; }

/* ===== Life in the scenes (v1.59) ===== */
/* Hero and Villain: the cape moves in the wind */
.feature-hero .hb-cape { transform-box: fill-box; transform-origin: 50% 0%; animation: hb-cape 5s ease-in-out infinite; }
@keyframes hb-cape { 0%, 100% { transform: skewX(0deg) scaleX(1); } 30% { transform: skewX(-4deg) scaleX(1.04); } 60% { transform: skewX(2deg) scaleX(.98); } }
/* Hero: a plane with blinking wing lights crosses the night sky now and then */
#hero-city .hc-plane { position: absolute; top: 24vh; left: 0; width: 46px; height: 14px; animation: hc-plane 70s linear infinite; animation-delay: -20s; }
#hero-city .hc-plane svg { width: 46px; height: 14px; display: block; }
#hero-city .hc-plane i { position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 50%; }
#hero-city .hc-plane .pl-r { left: 18px; top: 0; background: #ff3b3b; box-shadow: 0 0 5px #ff3b3b; animation: pl-blink 1.2s steps(1) infinite; }
#hero-city .hc-plane .pl-w { right: 2px; top: 6px; background: #fff; box-shadow: 0 0 6px #fff; animation: pl-blink 1.2s steps(1) .6s infinite; }
@keyframes hc-plane { 0% { transform: translate(-60px, 0); opacity: 1; } 40% { transform: translate(calc(100vw + 60px), -4vh); opacity: 1; } 40.1%, 100% { transform: translate(calc(100vw + 60px), -4vh); opacity: 0; } }
@keyframes pl-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: .1; } }
/* Villain: lightning flashes in the burning sky every so often */
#hero-city .hc-flash { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 88% 15%, #ffd9c055, transparent 70%); opacity: 0; animation: hc-flash 13s linear infinite; }
#hero-city .hc-bolt { position: absolute; top: 13vh; left: 90%; width: 40px; height: auto; opacity: 0; filter: drop-shadow(0 0 8px #ffd9c0) drop-shadow(0 0 22px #ff6a3a); animation: hc-flash 13s linear infinite; }
@keyframes hc-flash { 0%, 69% { opacity: 0; } 70% { opacity: 1; } 71% { opacity: .2; } 72% { opacity: .9; } 74%, 100% { opacity: 0; } }
/* Villain: a few embers drift up past him */
.feature-hero .vb-ember { position: absolute; bottom: 10%; width: 3px; height: 3px; border-radius: 50%; background: #ffb23a; box-shadow: 0 0 6px #ff6a1a; opacity: 0; animation: vb-ember 8s linear infinite; }
@keyframes vb-ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-30px, -260px); } }
/* Antihero: red and blue police lights flash across the tower's windows now and then, from the street below */
body.look-shadow .feature-hero .sh-police { position: absolute; left: 8px; right: 0; top: calc(100% + 10px); height: 75vh; z-index: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 38% 34% at 28% 42%, #ff2a3a66, transparent 70%), radial-gradient(ellipse 38% 34% at 72% 50%, #2a6bff66, transparent 70%); animation: hc-police 16s linear infinite; }
@keyframes hc-police { 0%, 55% { opacity: 0; } 57%, 61%, 65%, 69% { opacity: 1; filter: none; } 59%, 63%, 67% { opacity: .5; filter: hue-rotate(180deg); } 72%, 100% { opacity: 0; } }
/* Antihero: a small drone with a cyan light drifts past the moon */
body.look-shadow .feature-hero .sh-drone { position: absolute; left: 0; top: 120px; width: 14px; height: 4px; border-radius: 2px; background: #1a1430; z-index: 1; animation: sh-drone 24s ease-in-out infinite; }
body.look-shadow .feature-hero .sh-drone::before, body.look-shadow .feature-hero .sh-drone::after { content: ""; position: absolute; top: -2px; width: 6px; height: 1.5px; background: #3a3058; }
body.look-shadow .feature-hero .sh-drone::before { left: -3px; } body.look-shadow .feature-hero .sh-drone::after { right: -3px; }
body.look-shadow .feature-hero .sh-drone i { position: absolute; left: 5px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #2ee6d6; box-shadow: 0 0 6px #2ee6d6; animation: pl-blink 1s steps(1) infinite; }
@keyframes sh-drone { 0% { transform: translate(-30px, 20px); opacity: 0; } 5% { opacity: 1; } 35% { transform: translate(140px, 0px); } 45% { transform: translate(190px, 14px); opacity: 1; } 50%, 100% { transform: translate(260px, 6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .feature-hero .hb-cape, #hero-city .hc-plane, #hero-city .hc-flash, #hero-city .hc-bolt, .feature-hero .vb-ember, .feature-hero .sh-police, .feature-hero .sh-drone { animation: none; opacity: 0; } .feature-hero .hb-cape { opacity: 1; } }

/* Admin › Health */
.panel.health .h-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.panel.health .h-head h2 { margin: 0; }
.panel.health .h-head button { margin-left: auto; }
.panel.health .h-sum { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; }
.panel.health .h-list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .45rem; }
.panel.health .h-list li { display: grid; grid-template-columns: 14px 13rem 1fr; align-items: baseline; gap: .6rem; }
.panel.health .h-list span { color: var(--muted); }
.panel.health .h-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 6px #3fb95088; }
.panel.health .h-warn .h-dot, .panel.health.h-warn .h-sum .h-dot { background: #e3a72f; box-shadow: 0 0 6px #e3a72f88; }
.panel.health .h-bad .h-dot, .panel.health.h-bad .h-sum .h-dot { background: #e5484d; box-shadow: 0 0 6px #e5484d88; }
.panel.health .h-good .h-dot { background: #3fb950; }
@media (max-width: 640px) { .panel.health .h-list li { grid-template-columns: 14px 1fr; } .panel.health .h-list span { grid-column: 2; } }

/* Users: each person's email under their name */
.useremail { margin-top: .3rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.useremail input { min-width: 15rem; padding: .3rem .5rem; }
/* Admin › Users: everyone at a glance, with their email */
table.userlist { width: 100%; margin: .3rem 0 1rem; }
table.userlist tr { cursor: pointer; }
table.userlist tr:hover td { background: #ffffff0a; }
table.userlist tr.on td { background: #d4a64a1a; }
table.userlist tr.off td { opacity: .55; }
table.userlist .ok { color: #3fb950; }

/* =====================================================================================================
   Civilian look (replaces "Stuck in the 70s"): the same clean layout as the heroes, without the costume.
   No city, no figures, plain modern type, charcoal and silver with a calm blue. Overrides generated from the hero rules.
   ===================================================================================================== */
body.look-hero.look-civilian:not(.inplayer) { background: radial-gradient(ellipse 60% 40% at 70% 0%, #e2e4e90d, transparent 70%), #07080b; }
body.look-hero.look-civilian:not(.inplayer) .brand .mf-shield { filter: drop-shadow(0 0 8px #bbc0c955); }
body.look-hero.look-civilian:not(.inplayer) .brand .word { text-transform: none; letter-spacing: normal; font-weight: 650; }
body.look-hero.look-civilian:not(.inplayer) #topbar { box-shadow: 0 1px 0 #bbc0c922; }
body.look-hero.look-civilian:not(.inplayer) nav a { font-weight: 650; letter-spacing: normal; text-transform: none; }
body.look-hero.look-civilian:not(.inplayer) nav a.active { box-shadow: inset 0 -2px 0 #4988f5; }
body.look-hero.look-civilian:not(.inplayer) h1, body.look-hero.look-civilian:not(.inplayer) h2, body.look-hero.look-civilian:not(.inplayer) .modal-title { font-weight: 650; letter-spacing: normal; }
body.look-hero.look-civilian:not(.inplayer) nav a { letter-spacing: normal; }
body.look-hero.look-civilian:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem, .splash-mascot)) { background: #4988f5; box-shadow: 0 0 14px #4988f566; font-weight: 650; letter-spacing: normal; text-transform: none; }
body.look-hero.look-civilian:not(.inplayer) button:where(:not(.kernel, .icon, .hs-emblem)):hover { box-shadow: 0 0 22px #4988f5aa; }
body.look-hero.look-civilian:not(.inplayer) button.ghost, body.look-hero.look-civilian:not(.inplayer) button.alt { color: #bbc0c9; border: 1px solid #bbc0c9; }
body.look-hero.look-civilian:not(.inplayer) button.ghost:hover, body.look-hero.look-civilian:not(.inplayer) button.alt:hover { background: #bbc0c91a; }
body.look-hero.look-civilian:not(.inplayer) button.ghost.on, body.look-hero.look-civilian:not(.inplayer) .viewpick button.on { background: #bbc0c9; }
body.look-hero.look-civilian:not(.inplayer) button.danger { background: #0c5be3; }
body.look-hero.look-civilian:not(.inplayer) input:focus, body.look-hero.look-civilian:not(.inplayer) select:focus { outline: 1px solid #bbc0c9; box-shadow: 0 0 0 3px #bbc0c933; }
body.look-hero.look-civilian:not(.inplayer) .panel, body.look-hero.look-civilian:not(.inplayer) .auth, body.look-hero.look-civilian:not(.inplayer) .modal { border-top: 2px solid #bbc0c9; }
body.look-hero.look-civilian:not(.inplayer) .rowtitle span { letter-spacing: normal; text-transform: none; }
body.look-hero.look-civilian:not(.inplayer) .rowtitle span::after { background: linear-gradient(90deg, #4988f5, #bbc0c9); }
body.look-hero.look-civilian:not(.inplayer) .card:hover .img, body.look-hero.look-civilian:not(.inplayer) .card:focus .img { border-color: #bbc0c9; box-shadow: 0 0 0 1px #bbc0c9, 0 0 24px #bbc0c955; }
body.look-hero.look-civilian:not(.inplayer) .card .t { letter-spacing: normal; }
body.look-hero.look-civilian:not(.inplayer) .card .bar, body.look-hero.look-civilian:not(.inplayer) .ep .img .bar { background: #4988f5; box-shadow: 0 0 8px #4988f5; }
body.look-hero.look-civilian:not(.inplayer) .card .badge { background: #bbc0c9; }
body.look-hero.look-civilian:not(.inplayer) .card .ctag { color: #bbc0c9; border: 1px solid #bbc0c9; }
body.look-hero.look-civilian:not(.inplayer) .feature h1 { font-weight: 650; letter-spacing: normal; text-transform: none; text-shadow: 0 0 28px #4988f566; }
body.look-hero.look-civilian:not(.inplayer) .feature-meta { letter-spacing: normal; text-transform: none; }
body.look-hero.look-civilian:not(.inplayer) .sticker { color: #bbc0c9; letter-spacing: normal; text-transform: none; }
body.look-hero.look-civilian:not(.inplayer) .hero { border: 1.5px solid #b5bac4; box-shadow: 0 0 0 1px #00000080, 0 0 18px #b5bac433, 0 30px 80px #000; }
body.look-hero.look-civilian:not(.inplayer) .hero h1 { font-weight: 650; letter-spacing: normal; text-transform: none; text-shadow: 0 0 24px #4988f555; }
body.look-hero.look-civilian:not(.inplayer) .chips span { color: #bbc0c9; }
body.look-hero.look-civilian:not(.inplayer) .feature { border: 1.5px solid #b5bac4; box-shadow: 0 0 0 1px #00000080, 0 0 18px #b5bac433; }
body.look-hero.look-civilian:not(.inplayer) .auth h1 { letter-spacing: normal; text-transform: none; }
body.look-hero.look-civilian .side-ask { font-weight: 650; letter-spacing: normal; text-transform: none; }
body.look-hero.look-civilian .side-pick .side-btn { letter-spacing: normal; }
body.look-hero.look-civilian .side-ask small { letter-spacing: normal; }
body.look-hero.look-civilian:not(.inplayer) #usermenu button { letter-spacing: normal; }
body.look-hero.look-civilian:not(.inplayer) {
  --bg: #0f1013; --panel: #17191e; --panel-2: #1f2228; --text: #eef0f4; --muted: #949aa6;
  --accent: #4f8cff; --accent-2: #c9ced6; --pop: #c9ced6; --edge: #2a2e36; --line: 1px solid #2a2e36; --radius: 10px;
  --cine: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --groovy: var(--cine);
  --stripes: linear-gradient(90deg, transparent, #4f8cff55 30%, #c9ced655 70%, transparent);
  background: radial-gradient(ellipse 70% 45% at 50% -10%, #4f8cff14, transparent 70%), #0f1013;
}
html:has(body.look-civilian:not(.inplayer)) { background: #0f1013; }
body.look-civilian .feature-hero { display: none; }
body.look-hero.look-civilian:not(.inplayer) .feature h1, body.look-hero.look-civilian:not(.inplayer) .hero h1 { text-shadow: 0 2px 18px #00000099; }
body.look-hero.look-civilian:not(.inplayer) button.ghost, body.look-hero.look-civilian:not(.inplayer) button.alt,
body.look-hero.look-civilian:not(.inplayer) #userbtn { background: #ffffff0d; color: #e6e9ef; border: 1px solid #3a3f4a; box-shadow: none; }
body.look-hero.look-civilian:not(.inplayer) button.ghost:hover, body.look-hero.look-civilian:not(.inplayer) button.alt:hover,
body.look-hero.look-civilian:not(.inplayer) #userbtn:hover { background: #ffffff1a; border-color: #5a6170; }
body.look-hero.look-civilian:not(.inplayer) button:where(:not(.ghost, .alt, .danger)):hover { box-shadow: 0 0 0 3px #4f8cff33; }
/* Invitation form: the look picker */
#mkinvite { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; justify-items: start; max-width: 560px; }
#mkinvite input[type=email] { width: 100%; height: auto; min-height: 0; justify-self: stretch; }
.invite-looks { display: flex; flex-wrap: wrap; gap: .4rem; }
.invite-look input { position: absolute; opacity: 0; pointer-events: none; }
.invite-look span { display: inline-block; padding: .45rem .8rem; border-radius: 8px; border: 1px solid #2c3342; cursor: pointer; font-weight: 600; font-size: .92rem; opacity: .7; }
.invite-look input:checked + span { opacity: 1; box-shadow: 0 0 0 2px var(--pop, #fff); }
.invite-look input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.il-hero span { background: #c8102e; color: #fff; border-color: #c8102e; }
.il-villain span { background: #0b0809; color: #ff3b2f; border-color: #e0342a; }
.il-shadow span { background: #0c0a14; color: #2ee6d6; border-color: #9b5cff; }
.il-classic span { background: #eef0f4; color: #15171c; border-color: #eef0f4; }
input.locked { opacity: .75; cursor: not-allowed; }

/* ===== The menu: ☰ opens a drawer from the left with every section (replaced the row of tabs) ===== */
#navbtn { font-size: 1.35rem; line-height: 1; padding: .35rem .6rem; position: relative; border-radius: 8px; }
#navbtn .navbadge { position: absolute; top: -4px; right: -4px; min-width: .6rem; height: .6rem; padding: 0; font-size: 0; }
#drawerbg { position: fixed; inset: 0; background: #000a; z-index: 40; animation: drawer-fade .2s ease-out; }
#topbar nav#drawer, body.tv #topbar nav#drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 41; width: min(300px, 84vw); margin: 0; padding: 1rem .7rem 1.4rem;
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: .15rem; overflow-y: auto; order: 0;
  background: var(--panel, #161a22); border-right: 1px solid var(--edge, #2a303a); box-shadow: 20px 0 60px #000c;
  animation: drawer-in .22s ease-out; }
#topbar nav#drawer[hidden] { display: none; }
#drawer .drawer-head { font-weight: 800; font-size: 1.15rem; padding: .3rem .8rem 1rem; color: var(--text); }
#topbar #drawer a, body.look-hero:not(.inplayer) #topbar #drawer a, body.tv #topbar #drawer a {
  display: flex; align-items: center; gap: .8rem; padding: .62rem .8rem; border-radius: 8px; border: 0; box-shadow: none;
  font-family: inherit; text-transform: none; letter-spacing: normal; font-weight: 600; font-size: 1.02rem; color: var(--text);
  transform: none; background: transparent; white-space: nowrap; }
#topbar #drawer a:hover, #topbar #drawer a:focus-visible { background: #ffffff12; outline: none; }
#topbar #drawer a.active, body.look-hero:not(.inplayer) #topbar #drawer a.active { background: var(--accent); color: #fff; box-shadow: none; }
#drawer .di { width: 1.4rem; text-align: center; flex: none; }
#drawer .dsep { height: 1px; background: var(--edge, #2a303a); margin: .55rem .4rem; }
#drawer .dhead { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .2rem .8rem .25rem; }
#drawer .navbadge { margin-left: auto; }
body.tv #topbar #drawer a, body.tv.look-hero:not(.inplayer) #topbar #drawer a { font-size: 1.15rem; padding: .5rem .85rem; gap: .7rem; }
body.tv #topbar nav#drawer { width: min(320px, 45vw); padding: 5vh .8rem 5vh 4vw; gap: .1rem; }
body.tv #drawer .drawer-head { font-size: 1.25rem; padding-bottom: .7rem; }
body.tv #drawer .dhead { font-size: .7rem; }
body.tv #drawer .dsep { margin: .4rem .4rem; }
body.tv #topbar #drawer a:focus { box-shadow: 0 0 0 3px var(--pop, #fff); }
body.tv #navbtn { font-size: 1.6rem; padding: .35rem .65rem; }
@keyframes drawer-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
/* Admin › Library: sections */
.sections-list { display: grid; gap: .35rem; max-width: 640px; }
.secrow { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border: 1px solid var(--edge, #2a303a); border-radius: 8px; flex-wrap: wrap; }
.secrow .secicon { font-size: 1.25rem; }
.secrow .secbtns { margin-left: auto; display: flex; gap: .3rem; }
.iconpick, .holdpick { display: flex; flex-wrap: wrap; gap: .35rem; }
.iconpick input, .holdpick input { position: absolute; opacity: 0; pointer-events: none; }
.iconpick span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; font-size: 1.3rem; border: 1px solid var(--edge, #2a303a); border-radius: 8px; cursor: pointer; }
.holdpick span { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--edge, #2a303a); border-radius: 8px; cursor: pointer; font-weight: 600; }
.iconpick input:checked + span, .holdpick input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.iconpick input:focus-visible + span, .holdpick input:focus-visible + span { outline: 2px solid var(--pop, #fff); outline-offset: 2px; }
/* Who's watching? */
.profiles-page { max-width: 900px; margin: 6vh auto 2rem; text-align: center; padding: 0 1rem; }
.profiles-page h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.6rem; }
.proftiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem; }
button.proftile, body.look-hero:not(.inplayer) button.proftile { display: flex; flex-direction: column; align-items: center; gap: .55rem; width: 150px; padding: 0; border: 0;
  background: transparent; box-shadow: none; color: var(--text); font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; }
.proftile .pav { display: grid; place-items: center; width: 130px; height: 130px; font-size: 4rem; border-radius: 14px;
  background: var(--panel-2, #1f2430); border: 2px solid var(--edge, #2a303a); transition: transform .15s ease, border-color .15s ease; }
.proftile:hover .pav, .proftile:focus-visible .pav, body.tv .proftile:focus .pav { transform: scale(1.06); border-color: var(--pop, #fff); }
.proftile.on .pav { border-color: var(--accent); }
.proftile:focus { outline: none; }
.proftile .pname { font-weight: 700; font-size: 1.1rem; }
.proftile .ptags { display: flex; gap: .3rem; min-height: 1.2rem; }
.ptag { font-size: .72rem; padding: .1rem .45rem; border-radius: 999px; border: 1px solid var(--edge, #2a303a); color: var(--muted); }
.proftile.add .pav { font-size: 3rem; color: var(--muted); border-style: dashed; }
.checkline { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.checkline input { width: auto; }
body.tv .proftile .pav { width: 140px; height: 140px; font-size: 4.2rem; }
body.tv button.proftile, body.tv.look-hero:not(.inplayer) button.proftile { width: 165px; min-width: 0; padding: 0; margin: 0; }
body.tv .proftiles { gap: 2.6rem; }
body.tv .proftile .pname { font-size: 1.25rem; }
/* 🏅 Badges popup and the Battle of the sides */
#badgesbtn { font-size: 1.15rem; line-height: 1; padding: .35rem .55rem; border-radius: 999px; }
body.tv #badgesbtn { font-size: 1.6rem; padding: .45rem .7rem; }
.bp { width: 100%; max-width: 640px; margin: 0 auto; }
.bt-side { min-width: 0; }
.bp-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; flex-wrap: wrap; }
.bp-tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
button.bp-badge, body.look-hero:not(.inplayer) button.bp-badge { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .3rem;
  background: transparent; border: 1px solid var(--edge, #2a303a); border-radius: 10px; box-shadow: none; color: var(--text);
  font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; }
button.bp-badge:hover, button.bp-badge:focus-visible, body.tv button.bp-badge:focus { border-color: var(--pop, #fff); outline: none; }
.bp-badge.locked svg { opacity: .55; }
.bp-one { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.bp-levels { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.bp-levels li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--edge, #2a303a); border-radius: 8px; opacity: .75; }
.bp-levels li.done { opacity: 1; border-color: var(--accent); }
.bt-sides { display: grid; gap: .45rem; }
.bt-side { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3rem; gap: .6rem; align-items: center; padding: .35rem .5rem; border-radius: 8px; }
.bt-side.mine { background: #ffffff10; outline: 1px solid var(--edge, #2a303a); }
.bt-name { font-weight: 700; white-space: nowrap; }
.bt-bar { height: .7rem; background: #ffffff12; border-radius: 99px; overflow: hidden; }
.bt-bar span { display: block; height: 100%; border-radius: 99px; min-width: 2px; transition: width .6s ease; }
.side-hero .bt-bar span { background: #c8102e; } .side-villain .bt-bar span { background: #e0342a; }
.side-shadow .bt-bar span { background: linear-gradient(90deg, #7a3cff, #2ee6d6); } .side-classic .bt-bar span { background: #c9ced6; }
.bt-pts { text-align: right; font-weight: 800; }
.bt-top { width: 100%; margin-bottom: .6rem; }
.bt-top tr.me td { font-weight: 800; }
.bp-season { font-size: .68rem; padding: .05rem .45rem; border-radius: 999px; background: #2e7d32; color: #fff; }
.bp-badge.locked text { opacity: .35; }

/* mediaflex.ca page links under the sign-in screen and in the side menu */
.site-foot { position: relative; z-index: 2; text-align: center; margin: 1.2rem auto 0; font-size: .82rem; color: var(--muted); }
.site-foot a, #drawer .dlegal a { color: var(--muted); text-decoration: none; }
.site-foot a:hover, #drawer .dlegal a:hover { color: var(--text); text-decoration: underline; }
#drawer .dlegal { margin-top: auto; padding: .8rem .8rem 0; font-size: .75rem; color: var(--muted); line-height: 1.6; }
h1 #cc-open { vertical-align: middle; margin-left: .6rem; font-size: .9rem; }
.upd-card { border: 1px solid var(--accent); border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0; background: #ffffff08; }
.upd-card ul { margin: .4rem 0 .7rem; }
details.upd-file { margin-top: .8rem; }
.hs-steps { padding-left: 1.2rem; } .hs-steps li { margin: .7rem 0; } .hs-steps .inline { margin-top: .35rem; align-items: center; }
