:root {
  --bg: #0E0F13; --panel: #171920; --panel-2: #1F222B; --line: #2A2E39;
  --text: #ECEEF3; --muted: #9AA1AF; --accent: #E5384F; --accent-2: #FF5E73; --ok: #3CCB7F;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: rgba(14, 15, 19, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.search { flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 38px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.search:focus-within { border-color: var(--accent-2); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.bar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.search + .bar-right { margin-left: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-weight: 550; white-space: nowrap; }
.btn:hover { background: #282C37; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: #FF8A98; }
.btn.primary.danger { color: #fff; }
.btn.small { height: 30px; padding: 0 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.google { height: 48px; padding: 0 22px; background: #fff; color: #1F1F1F; border: 0; font-size: 16px; border-radius: 999px; }
.btn.google:hover { background: #F1F3F6; }

.account { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); padding: 0; cursor: pointer; overflow: hidden; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu { position: absolute; right: 0; top: 46px; width: 280px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: grid; gap: 10px; }
.menu-who { display: grid; }
.menu-who span, .quota span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.quota-bar, .q-bar { height: 5px; background: var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 5px; }
.quota-bar i, .q-bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.menu-item:hover { background: var(--panel-2); }

.notice { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 20px; background: #3A2A12; color: #FFD79A; border-bottom: 1px solid #5A421B; }

main { max-width: 1500px; margin: 0 auto; padding: 24px 20px 120px; }

/* welcome */
.welcome { max-width: 760px; margin: 8vh auto 0; text-align: center; display: grid; gap: 22px; justify-items: center; }
.welcome h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.welcome h1 em { font-style: normal; color: var(--accent-2); }
.welcome > p { color: var(--muted); font-size: 17px; max-width: 560px; text-wrap: pretty; }
.welcome .error, .error { color: #FF8A98; font-size: 14px; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; width: 100%; text-align: left; }
.points li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--muted); font-size: 14px; }
.points strong { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }

/* library */
.lib-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lib-head h2 { font-size: 20px; letter-spacing: -.01em; }
select { height: 36px; padding: 0 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #232733, #171920) center / cover; border: 1px solid var(--line); }
.thumb::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 18px solid #3A404E; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.card:hover .thumb img { transform: scale(1.04); }
.card:hover .thumb { border-color: #454B5C; }
.dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; background: rgba(0, 0, 0, .8); border-radius: 5px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seen { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.seen i { display: block; height: 100%; background: var(--accent); }
.card-text { display: grid; min-width: 0; }
.card-text strong { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-text span { color: var(--muted); font-size: 13px; }
.card.compact { grid-template-columns: 150px 1fr; gap: 10px; margin-bottom: 12px; }
.card.compact .thumb { border-radius: 8px; }
.card.compact strong { font-size: 14px; }

.empty { display: grid; justify-items: center; gap: 10px; padding: 10vh 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 18px; }
.empty h3 { color: var(--text); font-size: 20px; }
.empty .btn { margin-top: 8px; }

/* player */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.stage { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-height: calc(100vh - 150px); width: 100%; }
.stage video { width: 100%; height: 100%; display: block; background: #000; }
.stage-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(0, 0, 0, .78); color: #DDE1EA; pointer-events: none; }
.watch-info { display: grid; gap: 10px; padding-top: 16px; }
.watch-info h2 { font-size: 22px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.meta, .keys { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; }
.speed { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-right: auto; }
kbd { display: inline-block; min-width: 20px; padding: 0 5px; margin: 0 1px; text-align: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; font: 12px/1.6 ui-monospace, monospace; color: var(--text); }
.upnext h3 { font-size: 15px; margin-bottom: 12px; color: var(--muted); font-weight: 600; }

/* upload queue */
.queue { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: min(380px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); overflow: hidden; }
.queue-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--panel-2); }
.queue-head button, .q-x { background: none; border: 0; cursor: pointer; font-size: 20px; line-height: 1; color: var(--muted); padding: 2px 6px; border-radius: 6px; }
.queue-head button:hover, .q-x:hover { color: var(--text); background: var(--line); }
.queue ul { list-style: none; margin: 0; padding: 4px 14px; max-height: 300px; overflow: auto; }
.queue li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.queue li:last-child { border: 0; }
.q-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.q-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.q-line { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.q-retry { background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 12.5px; padding: 2px 8px; }
.queue li.done .q-bar i { background: var(--ok); }
.queue li.done .q-line { color: var(--ok); }
.queue li.error .q-line { color: #FF8A98; }
.queue li.cancelled { opacity: .55; }

.drop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(14, 15, 19, .86); pointer-events: none; }
.drop div { display: grid; justify-items: center; gap: 12px; padding: 48px 64px; border: 3px dashed var(--accent-2); border-radius: 24px; font-size: 22px; font-weight: 650; }

dialog { width: min(440px, calc(100vw - 32px)); padding: 22px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px; }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog form { display: grid; gap: 12px; }
dialog p { color: var(--muted); }
dialog input { height: 40px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; width: 100%; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 10px 16px; background: #F1F3F6; color: #14161B; border-radius: 10px; font-weight: 550; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }

@media (max-width: 1000px) {
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bar { padding: 10px 14px; gap: 10px; }
  .brand span, #upload-btn span { display: none; }
  #upload-btn { padding: 0 11px; }
  main { padding: 16px 14px 120px; }
  .grid { grid-template-columns: 1fr; }
  .watch { margin: -16px -14px 0; }
  .stage { border-radius: 0; }
  .watch-info, .upnext { padding-left: 14px; padding-right: 14px; }
  .speed { width: 100%; }
  .keys { display: none; }
}

/* shared link */
.shared { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.shared iframe { width: 100%; height: 100%; border: 0; display: block; }
.btn.on { border-color: var(--ok); color: var(--ok); }
dialog input[readonly] { color: var(--muted); }

/* ---------- custom player ---------- */
.btn.ghost { background: none; border-color: transparent; color: var(--muted); font-weight: 500; }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }
.stage { outline: 0; user-select: none; -webkit-user-select: none; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 4; }
.stage.is-fs { border-radius: 0; max-height: none; aspect-ratio: auto; width: 100vw; height: 100vh; }
.stage.idle { cursor: none; }
.stage.drive-mode .controls, .stage.drive-mode .big-play, .stage.drive-mode .spinner { display: none; }
video::cue { background: rgba(0, 0, 0, .72); color: #fff; font: 600 1em/1.35 system-ui, sans-serif; }
.stage:not(.idle) video::-webkit-media-text-track-container { transform: translateY(-64px); }

.pill { position: absolute; left: 12px; top: 12px; z-index: 6; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(20, 22, 27, .9); color: #fff; cursor: pointer; font-weight: 550; }
.pill:hover { background: var(--accent); }

.big-play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .15s, transform .15s; z-index: 2; }
.big-play:hover { background: var(--accent); transform: scale(1.06); }
.stage.is-playing .big-play { opacity: 0; pointer-events: none; }
.spinner { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; pointer-events: none; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-msg { z-index: 3; }

.controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 28px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); transition: opacity .2s; }
.stage.idle .controls { opacity: 0; pointer-events: none; }
.ctl-row { display: flex; align-items: center; gap: 2px; }
.ctl-gap { flex: 1; }
.ctl { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: #fff; cursor: pointer; padding: 0; }
.ctl:hover { background: rgba(255, 255, 255, .16); }
.ctl svg { width: 24px; height: 24px; }
.ctl.text { width: auto; min-width: 42px; padding: 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.ctl.on { color: var(--accent-2); box-shadow: inset 0 -3px 0 var(--accent); }
.i-pause, .i-muted, .i-fsx { display: none; }
.stage.is-playing .i-play, .stage.is-muted .i-vol, .stage.is-fs .i-fs { display: none; }
.stage.is-playing .i-pause, .stage.is-muted .i-muted, .stage.is-fs .i-fsx { display: block; }
.time { margin-left: 8px; font-size: 13px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }

.seek-wrap { position: relative; padding: 0 4px; }
input.seek, input.vol { -webkit-appearance: none; appearance: none; display: block; margin: 0; background: none; cursor: pointer; --p: 0%; --b: 0%; }
input.seek { width: 100%; height: 18px; }
input.vol { width: 76px; height: 18px; flex: none; }
input.seek::-webkit-slider-runnable-track { height: 5px; border-radius: 9px; background: linear-gradient(to right, var(--accent) var(--p), rgba(255, 255, 255, .55) var(--p), rgba(255, 255, 255, .55) var(--b), rgba(255, 255, 255, .22) var(--b)); }
input.seek::-moz-range-track { height: 5px; border-radius: 9px; background: linear-gradient(to right, var(--accent) var(--p), rgba(255, 255, 255, .55) var(--p), rgba(255, 255, 255, .55) var(--b), rgba(255, 255, 255, .22) var(--b)); }
input.vol::-webkit-slider-runnable-track { height: 4px; border-radius: 9px; background: linear-gradient(to right, #fff var(--p), rgba(255, 255, 255, .3) var(--p)); }
input.vol::-moz-range-track { height: 4px; border-radius: 9px; background: linear-gradient(to right, #fff var(--p), rgba(255, 255, 255, .3) var(--p)); }
input.seek::-webkit-slider-thumb, input.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; margin-top: -4.5px; }
input.vol::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; }
input.seek::-moz-range-thumb, input.vol::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
input.seek::-webkit-slider-thumb { background: var(--accent-2); }
.seek-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 2px 7px; border-radius: 6px; background: rgba(20, 22, 27, .95); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; pointer-events: none; white-space: nowrap; }

.pmenu { position: absolute; bottom: 62px; z-index: 6; width: 250px; max-width: calc(100% - 16px); max-height: calc(100% - 78px); overflow: auto; padding: 8px; border-radius: 12px; background: rgba(23, 25, 32, .97); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
.pmenu h4 { margin: 2px 8px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pmenu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; background: none; border: 0; border-radius: 7px; color: var(--text); cursor: pointer; text-align: left; font-size: 14px; }
.pmenu-item::before { content: ""; width: 14px; flex: none; }
.pmenu-item[aria-checked="true"]::before { content: "✓"; color: var(--accent-2); font-weight: 700; }
.pmenu-item:hover { background: var(--panel-2); }
.pmenu p { margin: 6px 8px 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }

@media (max-width: 640px) {
  input.vol, #c-back, #c-fwd { display: none; }
  .ctl { width: 34px; }
  .ctl.text { min-width: 36px; padding: 0 5px; }
  .time { font-size: 12px; margin-left: 4px; }
}
@media (hover: none) { input.vol { display: none; } }

/* ---------- manage page ---------- */
.gate { max-width: 380px; margin: 10vh auto 0; display: grid; gap: 12px; text-align: center; justify-items: stretch; }
.gate p { color: var(--muted); }
.gate input { height: 44px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.gate .btn { height: 44px; }
.setup { margin-bottom: 18px; padding: 12px 14px; background: #3A2A12; color: #FFD79A; border: 1px solid #5A421B; border-radius: var(--radius); font-size: 14px; }
.setup code { user-select: all; background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 5px; }
.admin-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-row .card-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80ch; }
#edit { display: none; gap: 14px; }
#edit[open] { display: grid; }
#edit label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
#edit textarea { padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; font: inherit; color: inherit; resize: vertical; }
.e-thumb { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; }
.e-thumb > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.e-thumb strong { width: 100%; }
#e-subs { list-style: none; margin: 6px 0; padding: 0; }
#e-subs li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
@media (max-width: 640px) {
  .admin-row { grid-template-columns: 110px minmax(0, 1fr); }
  .admin-row .actions { grid-column: 1 / -1; }
}

/* ---------- home: featured video and shelves ---------- */
.hero { position: relative; margin: -24px -20px 26px; min-height: min(56vh, 520px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, rgba(14, 15, 19, .55) 45%, rgba(14, 15, 19, .1)), linear-gradient(to right, rgba(14, 15, 19, .8), transparent 65%); }
.hero-text { position: relative; z-index: 1; padding: 28px 20px 34px; max-width: 640px; display: grid; gap: 12px; }
.hero-text h1 { font-size: clamp(28px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; overflow-wrap: anywhere; }
.hero-text p { color: #D5D9E2; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { justify-self: start; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero .btn { height: 44px; padding: 0 22px; font-size: 16px; }
.hero-play { background: #fff; color: #111; border-color: #fff; }
.hero-play:hover { background: #E3E6EC; }
.hero-list { background: rgba(60, 64, 76, .75); }

.row { position: relative; margin-bottom: 26px; }
.row h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: -.01em; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 290px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 0 8px; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .card { scroll-snap-align: start; }
.row-nav { position: absolute; top: 38px; z-index: 2; width: 38px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: rgba(23, 25, 32, .92); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.row-nav.prev { left: -8px; } .row-nav.next { right: -8px; }
.row:hover .row-nav { opacity: 1; }
.row-nav:hover { background: var(--accent); }
@media (hover: none) { .row-nav { display: none; } }

/* play badge on hover */
.thumb::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; color: #fff; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s; pointer-events: none; }
.card:hover .thumb::after { opacity: 1; }
.card { transition: transform .15s; }
.row .card:hover { transform: translateY(-3px); }

.next-card { position: absolute; right: 16px; bottom: 84px; z-index: 6; width: min(300px, calc(100% - 32px)); display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(23, 25, 32, .96); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
.next-card span { color: var(--muted); font-size: 13px; }
.next-card div { display: flex; gap: 8px; }
#edit label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
#edit input[type="text"] { height: 40px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; width: 100%; }
@media (max-width: 640px) { .hero { margin: -16px -14px 20px; min-height: 46vh; } .hero-text { padding: 20px 14px 24px; } }

/* ---------- series ---------- */
.thumb.stack { box-shadow: 6px -6px 0 -1px var(--panel-2), 6px -6px 0 0 var(--line), 12px -12px 0 -1px var(--panel), 12px -12px 0 0 var(--line); margin: 12px 12px 0 0; }
.series { max-width: 900px; margin: 0 auto; }
.series-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 26px; }
.series-head > div { display: grid; gap: 8px; }
.series-head h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.series-head .btn { height: 44px; padding: 0 22px; font-size: 16px; }
#series-list h3 { font-size: 18px; margin: 22px 0 12px; }
#series-list .card.compact { grid-template-columns: 200px 1fr; align-items: center; padding: 10px; margin: 0 -10px 4px; border-radius: var(--radius); }
#series-list .card.compact:hover { background: var(--panel); }
#series-list .card.compact strong { font-size: 16px; }
#series-list .card-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.series-link { justify-self: start; color: var(--accent-2); font-weight: 650; font-size: 14px; }
.series-link:hover { text-decoration: underline; }
.card.now { background: var(--panel); border-radius: 8px; box-shadow: 0 0 0 6px var(--panel); }
.card.now strong { color: var(--accent-2); }
.e-series { display: grid; grid-template-columns: 1fr 84px 84px; gap: 10px; }
#edit input[type="number"] { height: 40px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; width: 100%; }
@media (max-width: 640px) { #series-list .card.compact { grid-template-columns: 130px 1fr; } }
