[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 {
  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 { 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; }
