:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --text: #161a26;
  --muted: #5b6275;
  --border: #dde1ea;
  --accent: #087f8c;
  --accent-text: #ffffff;
  --good: #0f7a4a;
  --good-bg: #e3f5ec;
  --bad: #b42318;
  --bad-bg: #fde8e6;
  --warn: #8a5a00;
  --warn-bg: #fff3d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 4px 16px rgb(16 24 40 / 6%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --surface: #171b24;
    --surface-2: #212634;
    --text: #e8eaf1;
    --muted: #a0a7b8;
    --border: #2b3141;
    --accent: #6de0dd;
    --accent-text: #0e1117;
    --good: #5fd39a;
    --good-bg: #13301f;
    --bad: #ff8a80;
    --bad-bg: #3a1714;
    --warn: #ffcf66;
    --warn-bg: #3a2c0b;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.section-heading h2 { margin: 0; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1rem; }
.history-card { max-width: 380px; padding: 1rem; }
.history-card a:first-child { display: grid; gap: .5rem; text-decoration: none; color: var(--text); }
.history-card .poster { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.history-card .poster img { width: 100%; height: 100%; object-fit: cover; }
.page-intro { padding: 2rem 0; }
.page-intro .hero-kicker { color: var(--accent); }
.library-shelf { margin: 2rem 0 3rem; }
.discovery-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.card-description { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.progress-panel { padding: 1.25rem; margin: 1.5rem 0; }
.progress-panel h2 { font-size: 1.1rem; margin-top: 0; }
.progress-panel input[type=number] { width: 6rem; display: inline-block; }
.progress-panel > button { margin-top: .75rem; }
.episode-browser { padding: 1rem; }
.episode-browser h2 { font-size: 1.1rem; margin-top: 0; }
.watch-episodes { display: grid; gap: .5rem; max-height: 380px; overflow-y: auto; margin-top: .75rem; }
.watch-episode { display: grid; gap: .3rem; text-decoration: none; color: var(--text); padding: .75rem; background: var(--surface-2); border-radius: 8px; border: 1px solid transparent; }
.watch-episode.current { border-color: var(--accent); }
.story-info h2 { font-size: 1.25rem; }
.topnav { flex-wrap: wrap; }
@media (max-width: 620px) {
  .history-grid { grid-template-columns: 1fr; }
  .history-card { max-width: none; }
  .topbar { flex-wrap: wrap; gap: .5rem; }
  .topnav { gap: .35rem; }
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.watch-help { max-width: 820px; margin: 1rem auto; padding: 2rem; }
.watch-help li { margin-bottom: 1rem; }
@media (max-width: 540px) {
  .topbar { flex-wrap: wrap; gap: .5rem; }
  .topnav { flex-wrap: wrap; }
  .watch-help { padding: 1.25rem; }
}

/* layout */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(16px, calc((100vw - 1200px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
.topnav { display: flex; gap: .25rem; }
.topnav a { color: var(--muted); text-decoration: none; padding: .4rem .75rem; border-radius: 999px; font-weight: 500; }
.topnav a:hover, .topnav a.active { color: var(--text); background: var(--surface-2); }
.topnav button { font: inherit; font-weight: 500; color: var(--muted); background: none; border: 1px solid var(--border); padding: .4rem .75rem; border-radius: 999px; cursor: pointer; }
.topnav button:hover { color: var(--text); background: var(--surface-2); }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 1.25rem 16px 3rem; outline: none; }
.footer { border-top: 1px solid var(--border); padding: 1rem 16px; text-align: center; color: var(--muted); font-size: .85rem; }
.footer p { max-width: 720px; margin: 0 auto; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 10px; padding: .55rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  min-height: 44px;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.btn.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.btn.small { min-height: 34px; padding: .3rem .7rem; font-size: .875rem; }
.btn.selected { outline: 3px solid currentColor; outline-offset: 1px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: .55rem .75rem; min-height: 44px; width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
input[type="checkbox"] { width: auto; min-height: 0; }
input[type="file"] { padding: .4rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.field { margin-bottom: .85rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; }
.chip.age { background: var(--accent); color: var(--accent-text); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.good { background: var(--good-bg); color: var(--good); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.notice { border-radius: 12px; padding: .75rem 1rem; background: var(--surface-2); margin: .75rem 0; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.good { background: var(--good-bg); color: var(--good); }
.error { color: var(--bad); font-weight: 600; }

/* home */
.hero { margin: .5rem 0 1.25rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.25rem; }
.search { flex: 1 1 260px; position: relative; }
.search input { padding-left: 2.4rem; }
.search svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.filters button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: .45rem .95rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
@media (max-width: 480px) { .cards { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
.vcard { display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .15s ease; }
.vcard:hover { transform: translateY(-3px); }
.poster { aspect-ratio: 2 / 3; background: linear-gradient(135deg, #4f46e5, #0ea5e9); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 2rem; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.vcard .body { padding: .65rem .75rem .8rem; display: flex; flex-direction: column; gap: .35rem; }
.vcard .name { font-weight: 700; line-height: 1.25; }
.vcard .meta { display: flex; flex-wrap: wrap; gap: .3rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); grid-column: 1 / -1; }

/* title page */
.title-head { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .title-head { grid-template-columns: 1fr; } .title-head .poster { max-width: 200px; } }
.title-head .poster { border-radius: var(--radius); box-shadow: var(--shadow); }
.meta-line { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .9rem; }
.rights { font-size: .9rem; }
.rights dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.rights dt { color: var(--muted); }
.rights dd { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: .75rem; }
.tabs button { flex: none; }
.episodes { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.episode { display: grid; grid-template-columns: 3rem 1fr auto; gap: .75rem; align-items: center; padding: .75rem; text-decoration: none; color: inherit; }
.episode:hover { background: var(--surface-2); }
.episode .num { font-size: 1.3rem; font-weight: 800; color: var(--muted); text-align: center; }
.episode .desc { color: var(--muted); font-size: .9rem; margin: .1rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* watch page */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
@media (max-width: 960px) { .watch { grid-template-columns: 1fr; } }
.watch .side { display: grid; gap: 1rem; }
.ep-nav { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }

.player { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; color: #fff; user-select: none; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player video::cue { font-size: 1.05em; background: rgb(0 0 0 / 75%); }
.player .big-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 55%); color: #fff; cursor: pointer; display: grid; place-items: center; }
.player .big-play svg { width: 36px; height: 36px; }
.player.playing .big-play { display: none; }
.player .controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .6rem .45rem;
  background: linear-gradient(transparent, rgb(0 0 0 / 80%));
  transition: opacity .2s ease; display: grid; gap: .25rem;
}
.player.idle.playing .controls { opacity: 0; pointer-events: none; }
.player.idle.playing { cursor: none; }
.player .bar { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.player .bar .spacer { flex: 1; }
.player button.ctl, .player select.ctl {
  background: transparent; border: 0; color: #fff; min-width: 40px; min-height: 40px; border-radius: 8px; cursor: pointer;
  display: inline-grid; place-items: center; font: 600 .85rem/1 system-ui, sans-serif; padding: 0 .4rem; width: auto;
}
.player select.ctl { appearance: none; -webkit-appearance: none; background: rgb(255 255 255 / 12%); padding: 0 .6rem; }
.player select.ctl option { color: #000; }
.player button.ctl:hover, .player select.ctl:hover { background: rgb(255 255 255 / 16%); }
.player button.ctl[aria-pressed="true"] { background: rgb(255 255 255 / 22%); }
.player button.ctl svg { width: 22px; height: 22px; }
.player .time { font: 600 .8rem/1 ui-monospace, Consolas, monospace; padding: 0 .3rem; white-space: nowrap; }
.player input[type="range"] { accent-color: #fff; min-height: 0; padding: 0; border: 0; background: transparent; }
.player .seek { width: 100%; height: 18px; }
.player .volume { width: 80px; }
.player .sync { display: inline-flex; align-items: center; gap: .1rem; background: rgb(255 255 255 / 10%); border-radius: 8px; }
.player .sync span { font: 600 .75rem/1 ui-monospace, Consolas, monospace; min-width: 4.6em; text-align: center; }
@media (max-width: 560px) {
  .player .volume, .player .hide-sm { display: none; }
  .player button.ctl { min-width: 36px; }
}
.player .msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; background: rgb(0 0 0 / 70%); }

.vote-box h2 { font-size: 1.1rem; }
.vote-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .75rem 0; }
.tally { display: flex; gap: .5rem; flex-wrap: wrap; }

/* admin */
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.stack { display: grid; gap: 1rem; }
details.card > summary { cursor: pointer; list-style: none; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; font-weight: 700; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: "▸"; color: var(--muted); }
details.card[open] > summary::before { content: "▾"; }
.video-row { border-top: 1px solid var(--border); padding: .9rem 0; }
.video-row:first-of-type { border-top: 0; }
.sub-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .35rem; }
.sub-list li { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; background: var(--surface-2); border-radius: 10px; padding: .4rem .6rem; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .5rem 0; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .7rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow); z-index: 20; max-width: calc(100vw - 32px); }
.row > select, .row > input:not([type="checkbox"]) { width: auto; flex: 1 1 200px; }
.row > label { margin: 0; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Phones: controls sit below the picture instead of covering it. */
@media (max-width: 560px) {
  .player { aspect-ratio: auto; display: flex; flex-direction: column; }
  .player video { aspect-ratio: 16 / 9; height: auto; }
  .player .controls { position: static; background: #000; padding: .35rem .4rem .45rem; }
  .player.idle.playing .controls { opacity: 1; pointer-events: auto; }
  .player.idle.playing { cursor: auto; }
  .player .big-play { display: none; }
  .player:fullscreen video { flex: 1; min-height: 0; aspect-ratio: auto; }
}

/* Google sign-in + Drive */
.login-card { max-width: 460px; margin: 2rem auto; }
.google-btn { min-height: 44px; margin: .75rem 0; }
.drive-status { margin: .25rem 0 1rem; }
.drive-player .drive-modes { margin-bottom: .5rem; }
.drive-player .btn[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.player.drive-frame { aspect-ratio: 16 / 9; display: block; }
.drive-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.drive-help { margin-top: .5rem; }
.player .msg .btn { color: var(--text); }
.player .msg .row { justify-content: center; margin-top: .75rem; }
.signed-out { max-width: 640px; margin: 1rem auto; }
.signed-out ol { padding-left: 1.25rem; }
@media (max-width: 560px) {
  .player .msg:only-child { position: static; min-height: 210px; }
}

/* A quiet classroom library with a touch of space. */
body { background-image: radial-gradient(ellipse at 90% 0%, rgb(8 127 140 / 7%), transparent 45%); }
.brand { letter-spacing: -.04em; font-size: 1.35rem; }
.topbar { padding-top: 1rem; padding-bottom: 1rem; }
.topnav a { font-size: .9rem; }
main { padding-top: 1.75rem; }
.btn { transition: background .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.6rem, 5vw, 3.5rem); margin: 0 0 2.5rem; border-radius: 24px; color: #f5fcff; background: radial-gradient(ellipse at 90% 80%, #135869 0%, transparent 52%), linear-gradient(120deg, #101d32, #182e48); box-shadow: 0 18px 45px rgb(16 29 50 / 14%); }
.hero::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; border: 1px solid rgb(133 221 230 / 24%); border-radius: 50%; right: -80px; top: -110px; box-shadow: 0 0 0 55px rgb(133 221 230 / 5%), 0 0 0 110px rgb(133 221 230 / 4%), 0 0 0 165px rgb(133 221 230 / 3%); }
.hero::after { content: ''; position: absolute; z-index: -1; width: 10px; height: 10px; background: #a9eeeb; border-radius: 50%; right: 20%; top: 26%; box-shadow: 90px 170px 0 -3px #b5d6e5, -50px 220px 0 -3px #b5d6e5, 120px -20px 0 -2px #b5d6e5; }
.hero-kicker { display: block; color: #a1dedf; font-size: .7rem; letter-spacing: .16em; font-weight: 700; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -.045em; line-height: 1.08; max-width: 750px; margin-bottom: 1.2rem; }
.hero > p { color: #c3d2e0; max-width: 480px; margin-bottom: 1.5rem; }
.hero .btn.primary { color: #112d39; background: #a2ebe3; border-color: #a2ebe3; }
.hero .btn:not(.primary) { color: #e8f4fb; background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 25%); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #c0d6df; margin-top: 1.8rem; font-size: .78rem; }
.hero-tags span::before { content: '•'; color: #a2ebe3; margin-right: .5rem; }
.collection-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
.collection-heading h2 { font-size: 1.45rem; letter-spacing: -.025em; }
.toolbar { padding: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.search input { background: var(--bg); border-color: transparent; }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.vcard { max-width: 380px; border-radius: 18px; }
.vcard .poster { aspect-ratio: 16 / 10; font-size: 3.5rem; letter-spacing: -.06em; background: radial-gradient(circle at 75% 25%, rgb(94 224 212 / 35%), transparent 45%), linear-gradient(135deg, #183448, #21677a); position: relative; }
.vcard .poster::after { content: ''; position: absolute; width: 190px; height: 190px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 50%; right: -55px; top: -75px; box-shadow: 0 0 0 25px rgb(255 255 255 / 5%); pointer-events: none; }
.vcard .body { padding: 1.1rem 1.2rem 1.2rem; gap: .6rem; }
.vcard .name { font-size: 1.2rem; letter-spacing: -.02em; }
.episode { transition: background .18s ease, border-color .18s ease; border-radius: 14px; padding: 1rem; }
.episode:hover { border-color: var(--accent); }
.episode .num { background: var(--surface-2); border-radius: 10px; padding: .45rem 0; }
.title-head { padding: 1.4rem; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.login-card { padding: 2rem; border-radius: 20px; margin-top: 3rem; }
.drive-help { padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-top: .8rem; }
.drive-help p:last-child { margin-bottom: 0; }
.footer { padding: 1.5rem 16px; margin-top: 1rem; }
@media (max-width: 560px) {
  main { padding-top: 1rem; }
  .hero { border-radius: 18px; margin-bottom: 1.8rem; }
  .hero-kicker { letter-spacing: .08em; font-size: .62rem; }
  .hero-tags { gap: .5rem 1rem; }
  .hero::before { right: -300px; }
  .hero::after { display: none; }
  .cards { grid-template-columns: 1fr; }
  .vcard { max-width: none; }
  .filters button { padding: .4rem .7rem; font-size: .85rem; }
  .title-head { padding: 1rem; }
  .episode { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .episode > .row { grid-column: 2; }
  .login-card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:hover, .vcard:hover { transform: none; }
}
.upload-overview { margin: 1rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.upload-overview p { margin: .4rem 0 0; }
.upload-status:empty { display: none; }
.youtube-collection { margin: 1.5rem 0 2rem; }
.youtube-collection h2 { margin-bottom: 1rem; }
.youtube-card { display: flex; max-width: 760px; }
.youtube-card .poster { flex: 0 0 180px; display: grid; place-items: center; }
.youtube-heading { margin: 1rem 0; }
.youtube-stage { margin-bottom: 1rem; min-height: 200px; }
.youtube-episode-list { display: grid; gap: .5rem; max-height: 420px; overflow: auto; margin-top: 1rem; }
.episode-choice { display: flex; gap: 1rem; align-items: center; justify-content: space-between; text-align: left; padding: .8rem; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); cursor: pointer; }
.episode-choice[aria-pressed="true"] { border-color: var(--accent); }
.episode-choice .chip { flex-shrink: 0; }
@media (max-width: 560px) {
  .youtube-card { display: block; }
  .youtube-card .poster { min-height: 160px; }
}

/* Scenes to skip */
.player .seek-wrap { position: relative; }
.player .skip-markers { position: absolute; left: 0; right: 0; top: 50%; height: 6px; transform: translateY(-50%); pointer-events: none; }
.player .skip-marker { position: absolute; top: 0; height: 100%; background: #f59e0b; border-radius: 3px; opacity: .9; }
.player .skip-note { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgb(0 0 0 / 78%); color: #fff; padding: .45rem .8rem; border-radius: 10px; font: 600 .85rem/1.3 system-ui, sans-serif; z-index: 3; max-width: 90%; text-align: center; }
.player .skip-toggle { font-size: .8rem; }
.player .skip-toggle[aria-pressed="false"] { opacity: .7; text-decoration: line-through; }

.scene-suggestion { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 1rem; align-items: start; }
.scene-suggestion img { width: 100%; border-radius: 10px; }
@media (max-width: 560px) { .scene-suggestion { grid-template-columns: 1fr; } }
.scene-suggestion .scene-preview { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; }

.player .skip-marker.personal { background: #38bdf8; }
.player .mark-skip[aria-pressed="true"] { background: rgb(56 189 248 / 30%); }
.my-skips { display: grid; gap: .5rem; }
.my-skips .row { gap: .5rem; }
