:root {
  color-scheme: dark;
  --bg: #080d13;
  --panel: #101820;
  --panel-raised: #151f28;
  --panel-soft: #0c131a;
  --line: #26343f;
  --line-strong: #354854;
  --ink: #eef3f5;
  --muted: #95a4ad;
  --quiet: #65747e;
  --signal: #c5f36a;
  --signal-ink: #14200a;
  --cyan: #76d7d0;
  --amber: #efbd64;
  --danger: #ff8179;
  --radius: 10px;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.site-shell { width: min(1320px, calc(100% - 56px)); margin: 0 auto; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--signal); }
.brand-mark svg { width: 36px; height: 36px; }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: -.035em; }
.topbar-right { display: flex; align-items: center; gap: 26px; }
.node-label { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.node-dot, .state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); }
.node-dot { background: var(--signal); box-shadow: 0 0 0 3px rgba(197,243,106,.1); }
.quiet-link { color: var(--muted); font-size: 13px; transition: color .18s ease; }
.quiet-link:hover { color: var(--signal); }

.player-main { padding: 48px 0 38px; }
.player-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 21px; }
.heading-text { min-width: 0; flex: 1 1 320px; }
.player-heading h1 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; line-height: 1.5; letter-spacing: .025em; }
.eyebrow span { margin-left: 9px; color: var(--quiet); }
h1, h2, h3, p { margin-top: 0; }
.player-heading h1, .admin-heading h1, .login-panel h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.045em; }
.signal-state { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.signal-state[data-state="ready"] { color: var(--signal); border-color: rgba(197,243,106,.35); }
.signal-state[data-state="error"] { color: var(--danger); border-color: rgba(255,129,121,.35); }
.signal-state[data-state="ready"] .state-dot { background: var(--signal); box-shadow: 0 0 0 3px rgba(197,243,106,.1); }
.signal-state[data-state="error"] .state-dot { background: var(--danger); }
.view-column { min-width: 0; }
.pill-row { display: flex; align-items: center; gap: 9px; }
.viewer-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 12px; white-space: nowrap; }
.viewer-mark { display: grid; place-items: center; width: 15px; height: 15px; color: var(--cyan); }
.viewer-mark svg { width: 15px; height: 15px; }
.video-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; min-height: 240px; background: #030609; border: 1px solid #202d37; border-radius: 8px; box-shadow: 0 22px 55px rgba(0,0,0,.23); }
.video-stage::before { position: absolute; z-index: 0; inset: 0; background: radial-gradient(ellipse at 50% 56%, rgba(36,58,63,.28), transparent 55%), linear-gradient(145deg, rgba(255,255,255,.018), transparent 48%); content: ''; pointer-events: none; }
.art-host { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; }
.art-host .artplayer-app, .art-host .artplayer { width: 100%; height: 100%; }
.empty-state { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 18px; border: 1px solid #31414a; border-radius: 50%; color: var(--signal); background: rgba(197,243,106,.035); }
.empty-mark svg { width: 44px; height: 44px; }
.empty-kicker { margin: 0 0 8px; color: var(--signal); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.empty-state h2 { margin: 0; font-size: clamp(18px, 2vw, 23px); font-weight: 600; letter-spacing: -.025em; }
.empty-copy { max-width: 380px; margin: 9px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.player-error { position: absolute; z-index: 4; right: 16px; bottom: 62px; left: 16px; padding: 12px 14px; border: 1px solid rgba(255,129,121,.45); border-radius: 6px; background: rgba(19,12,13,.92); color: #ffd6d3; font-size: 13px; line-height: 1.5; }
.stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 43px; padding: 0 3px; color: var(--quiet); font-size: 11px; }
.stage-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.live-glyph { width: 7px; height: 7px; border: 1px solid var(--signal); border-radius: 2px; transform: rotate(45deg); }
.stage-hint { text-align: right; }
.lock-state { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; background: rgba(4,8,11,.86); }
.lock-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 17px; border: 1px solid #3d4b3a; border-radius: 50%; background: rgba(197,243,106,.05); color: var(--signal); }
.lock-mark svg { width: 42px; height: 42px; }
.lock-state h2 { margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -.02em; }
.lock-form { display: flex; gap: 9px; width: min(400px, 100%); margin-top: 4px; }
.lock-form .text-input { flex: 1 1 auto; }
.lock-error { margin-top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.key-badge { border-color: rgba(118,215,208,.35); color: var(--cyan); font-family: var(--mono); font-size: 9px; }
.lock-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; padding: 3px 7px; border: 1px solid rgba(239,189,100,.35); border-radius: 999px; color: var(--amber); font-size: 10px; }
.lock-badge svg { width: 12px; height: 12px; }
.source-viewers { color: var(--cyan); }
.source-slug { color: var(--quiet); font-family: var(--mono); font-size: 10px; letter-spacing: .02em; }
.source-hidden { color: var(--amber); }
.footer-link { color: var(--muted); transition: color .18s ease; }
.footer-link:hover { color: var(--signal); }
.toast { position: fixed; z-index: 20; bottom: 26px; left: 50%; transform: translateX(-50%); padding: 11px 18px; border: 1px solid rgba(197,243,106,.4); border-radius: 6px; background: rgba(12,20,16,.96); color: var(--signal); font-size: 12px; }
.site-footer { display: flex; align-items: center; gap: 11px; padding: 19px 0 25px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; }
.footer-separator { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 700; text-align: center; transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--signal); color: var(--signal-ink); }
.button-primary:hover { background: #d7fb91; }
.button-outline { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.button-outline:hover, .button-quiet:hover { border-color: var(--signal); color: var(--signal); }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button-wide { width: 100%; margin-top: 18px; }

/* Admin */
.admin-main { min-height: calc(100vh - 139px); padding: 42px 0 56px; }
.admin-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.admin-intro { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.admin-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.admin-summary { display: flex; align-items: center; gap: 17px; min-height: 89px; margin-bottom: 18px; padding: 17px 21px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-soft); }
.summary-mark { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #3b4a3a; border-radius: 7px; background: rgba(197,243,106,.06); color: var(--signal); }
.summary-mark svg { width: 30px; height: 30px; }
.admin-summary > div:not(.summary-mark) { display: flex; flex-direction: column; gap: 4px; min-width: 59px; }
.summary-label { color: var(--muted); font-size: 11px; }
.admin-summary strong { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.summary-divider { width: 1px; height: 34px; background: var(--line); }
.summary-note { margin-left: auto; color: var(--quiet); font-size: 11px; text-align: right; }
.manager-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 18px; align-items: start; }
.source-panel, .editor-panel, .password-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.source-panel, .editor-panel { padding: 21px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-heading .eyebrow { margin-bottom: 5px; }
.panel-heading h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.025em; }
.source-list { display: grid; gap: 8px; margin-top: 20px; }
.source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 82px; padding: 13px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-soft); }
.source-row[data-selected="true"] { border-color: rgba(197,243,106,.45); box-shadow: inset 2px 0 0 var(--signal); }
.source-main { min-width: 0; }
.source-titleline { display: flex; align-items: center; gap: 9px; min-width: 0; }
.source-titleline h3 { overflow: hidden; margin: 0; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.source-indicator { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); }
.source-indicator[data-enabled="true"] { background: var(--signal); box-shadow: 0 0 0 3px rgba(197,243,106,.1); }
.source-meta { display: flex; align-items: center; gap: 8px; margin: 7px 0 0 16px; color: var(--quiet); font-family: var(--mono); font-size: 10px; }
.source-domain { overflow: hidden; max-width: 170px; text-overflow: ellipsis; white-space: nowrap; }
.source-status { color: var(--muted); font-family: var(--sans); font-size: 10px; }
.source-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.small-action { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.small-action:hover { border-color: var(--line-strong); color: var(--ink); }
.small-action.danger:hover { border-color: rgba(255,129,121,.4); color: var(--danger); }
.small-action:disabled { cursor: not-allowed; opacity: .45; }
.empty-list { display: grid; justify-items: center; padding: 42px 16px 35px; color: var(--muted); text-align: center; }
.empty-list-mark { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--signal); font-size: 22px; }
.empty-list p { margin: 0 0 5px; color: var(--ink); font-size: 14px; }
.empty-list span:last-child { color: var(--quiet); font-size: 12px; }
.editor-id { color: var(--quiet); font-family: var(--mono); font-size: 10px; }
.editor-panel form { margin-top: 22px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span, .field-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.field small { margin-top: -2px; color: var(--quiet); font-size: 11px; line-height: 1.5; }
.text-input { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 5px; background: #0a1117; color: var(--ink); outline: none; font-size: 13px; transition: border-color .16s ease, box-shadow .16s ease; }
.text-input::placeholder { color: #586771; }
.text-input:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(197,243,106,.1); }
.mono-input { font-family: var(--mono); font-size: 12px; }
.parse-status { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 18px; padding: 10px 12px; border: 1px solid rgba(197,243,106,.3); border-radius: 5px; background: rgba(197,243,106,.05); color: var(--signal); font-size: 11px; line-height: 1.6; }
.parse-status[data-tone="warn"] { border-color: rgba(239,189,100,.34); background: rgba(239,189,100,.06); color: #e6cd9b; }
.key-input { min-height: 72px; resize: vertical; font-family: var(--mono); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; letter-spacing: .02em; }
.toggle-row { display: flex; align-items: center; gap: 15px; min-height: 53px; margin: 1px 0 16px; cursor: pointer; }
.toggle-row > span:first-child { display: grid; gap: 4px; margin-right: auto; }
.toggle-row strong { font-size: 12px; font-weight: 600; }
.toggle-row small { color: var(--quiet); font-size: 10px; line-height: 1.4; }
.toggle-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-ui { position: relative; flex: 0 0 auto; width: 39px; height: 22px; border: 1px solid var(--line-strong); border-radius: 999px; background: #19232b; transition: background .16s ease, border-color .16s ease; }
.toggle-ui::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #a3afb6; content: ''; transition: transform .16s ease, background .16s ease; }
.toggle-row input:checked + .toggle-ui { border-color: var(--signal); background: rgba(197,243,106,.24); }
.toggle-row input:checked + .toggle-ui::after { transform: translateX(17px); background: var(--signal); }
.toggle-row input:focus-visible + .toggle-ui { outline: 2px solid var(--signal); outline-offset: 3px; }
.url-warning { display: flex; align-items: flex-start; gap: 10px; margin: 15px 0 4px; padding: 11px; border: 1px solid rgba(239,189,100,.26); border-radius: 5px; background: rgba(239,189,100,.045); }
.warning-mark { display: grid; flex: 0 0 auto; place-items: center; width: 17px; height: 17px; border: 1px solid var(--amber); border-radius: 50%; color: var(--amber); font-family: var(--mono); font-size: 10px; }
.url-warning p { margin: 0; color: #d3c19e; font-size: 10px; line-height: 1.65; }
.form-error { margin: 0 0 10px; color: var(--danger); font-size: 12px; line-height: 1.5; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.editor-actions { padding-top: 13px; border-top: 1px solid var(--line); }
.password-panel { margin: -7px 0 18px; padding: 20px 21px; }
.password-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.password-form .field { margin: 0; }
.password-form .form-actions { grid-column: 1 / -1; justify-content: space-between; margin-top: 0; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 23px; }
.icon-button:hover { border-color: var(--line-strong); color: var(--ink); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); max-width: 940px; min-height: 500px; margin: 35px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.login-art { position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(ellipse at 50% 48%, rgba(197,243,106,.09), transparent 48%), repeating-linear-gradient(0deg, transparent 0 41px, rgba(149,164,173,.045) 42px), repeating-linear-gradient(90deg, transparent 0 41px, rgba(149,164,173,.045) 42px), #0b1218; }
.login-art::before, .login-art::after { position: absolute; width: 250px; height: 250px; border: 1px solid rgba(197,243,106,.12); border-radius: 50%; content: ''; }
.login-art::after { width: 360px; height: 360px; border-color: rgba(197,243,106,.06); }
.login-wave { z-index: 1; display: flex; align-items: center; gap: 8px; height: 70px; color: var(--signal); }
.login-wave i { width: 3px; height: 16px; border-radius: 3px; background: currentColor; opacity: .85; }
.login-wave i:nth-child(2), .login-wave i:nth-child(10) { height: 30px; }
.login-wave i:nth-child(3), .login-wave i:nth-child(9) { height: 46px; }
.login-wave i:nth-child(4), .login-wave i:nth-child(8) { height: 63px; }
.login-wave i:nth-child(5), .login-wave i:nth-child(7) { height: 38px; }
.login-wave i:nth-child(6) { height: 22px; }
.login-panel { align-self: center; padding: 44px 39px; }
.login-panel h1 { font-size: 28px; }
.login-copy { margin: 11px 0 29px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.login-panel .field-label { display: block; margin-bottom: 9px; }
.login-footnote { margin: 19px 0 0; color: var(--quiet); font-size: 10px; line-height: 1.6; }

@media (max-width: 900px) {
  .manager-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .site-shell { width: min(100% - 30px, 1320px); }
  .topbar { height: 64px; }
  .brand-name { font-size: 14px; }
  .brand-mark, .brand-mark svg { width: 32px; height: 32px; }
  .topbar-right { gap: 14px; }
  .node-label { display: none; }
  .player-main { padding: 31px 0 27px; }
  .player-heading { align-items: stretch; flex-direction: column; gap: 11px; margin-bottom: 15px; }
  .heading-text { flex: 0 0 auto; }
  .player-heading h1 { font-size: 21px; line-height: 1.35; -webkit-line-clamp: 3; }
  .pill-row { flex-wrap: wrap; row-gap: 7px; }
  .signal-state { padding: 7px 9px; font-size: 10px; }
  .video-stage { min-height: 190px; border-radius: 5px; }
  .empty-state { padding: 16px; }
  .empty-mark { width: 50px; height: 50px; margin-bottom: 13px; }
  .empty-mark svg { width: 37px; height: 37px; }
  .empty-copy { max-width: 310px; margin: 7px 0 15px; font-size: 12px; }
  .stage-footer { flex-wrap: wrap; gap: 6px; }
  .stage-hint { max-width: 100%; font-size: 10px; text-align: left; }
  .pill-row { gap: 7px; }
  .viewer-pill, .signal-state { padding: 7px 9px; font-size: 10px; }
  .lock-form { flex-direction: column; }
  .lock-form .button { width: 100%; }
  .stage-footer { min-height: 38px; }
  .site-footer { flex-wrap: wrap; font-size: 10px; }
  .admin-main { min-height: calc(100vh - 127px); padding: 30px 0 38px; }
  .admin-heading { gap: 17px; margin-bottom: 19px; }
  .admin-heading h1 { font-size: 29px; }
  .admin-actions { width: 100%; gap: 4px; }
  .admin-actions .button { flex: 1 1 auto; padding: 0 10px; font-size: 11px; }
  .admin-summary { gap: 11px; min-height: 77px; padding: 12px; }
  .summary-mark { width: 38px; height: 38px; }
  .summary-note { max-width: 100px; font-size: 9px; }
  .summary-label { font-size: 10px; }
  .admin-summary strong { font-size: 17px; }
  .source-panel, .editor-panel { padding: 15px; }
  .panel-heading h2 { font-size: 15px; }
  .source-row { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px 10px; }
  .source-actions { justify-content: flex-start; flex-wrap: wrap; padding-left: 13px; }
  .small-action { min-height: 40px; }
  .source-domain { max-width: 145px; }
  .password-form { grid-template-columns: minmax(0, 1fr); }
  .password-form .form-actions { grid-column: auto; align-items: flex-start; flex-direction: column; }
  .login-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; margin: 24px auto; }
  .login-art { min-height: 125px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-art::before { width: 130px; height: 130px; }
  .login-art::after { width: 210px; height: 210px; }
  .login-wave { height: 44px; transform: scale(.72); }
  .login-panel { padding: 26px 22px 30px; }
  .login-panel h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Home / channel list */
.home-main { min-height: calc(100vh - 139px); padding: 46px 0 52px; }
.home-heading { max-width: 620px; margin-bottom: 30px; }
.home-heading h1 { margin: 0; font-size: clamp(27px, 3.4vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.home-intro { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.channel-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.channel-card:hover { border-color: rgba(197,243,106,.45); background: var(--panel-raised); transform: translateY(-2px); }
.channel-card:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.channel-screen { position: relative; display: grid; place-items: center; height: 130px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 60%, rgba(197,243,106,.08), transparent 62%), repeating-linear-gradient(0deg, transparent 0 25px, rgba(149,164,173,.05) 26px), repeating-linear-gradient(90deg, transparent 0 25px, rgba(149,164,173,.05) 26px), #0a1117; }
.channel-wave { display: flex; align-items: center; gap: 6px; height: 42px; color: rgba(197,243,106,.5); }
.channel-wave i { width: 3px; height: 12px; border-radius: 2px; background: currentColor; }
.channel-wave i:nth-child(2), .channel-wave i:nth-child(8) { height: 22px; }
.channel-wave i:nth-child(3), .channel-wave i:nth-child(7) { height: 32px; }
.channel-wave i:nth-child(4), .channel-wave i:nth-child(6) { height: 20px; }
.channel-wave i:nth-child(5) { height: 38px; }
.channel-play { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(8,13,19,.72); color: var(--signal); opacity: 0; transition: opacity .18s ease; }
.channel-play svg { width: 34px; height: 34px; }
.channel-card:hover .channel-play, .channel-card:focus-visible .channel-play { opacity: 1; }
.channel-body { display: flex; flex-direction: column; gap: 9px; padding: 15px 16px 17px; }
.channel-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--quiet); }
.channel-watchers { color: var(--cyan); font-size: 11px; }
.channel-body h2 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.45; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.channel-flags { display: flex; align-items: center; gap: 7px; min-height: 20px; }
.channel-flags .lock-badge { margin-left: 0; }
.home-empty { max-width: 460px; margin: 0 auto; }
.home-empty .empty-list-mark svg { width: 26px; height: 26px; }

@media (max-width: 640px) {
  .home-main { min-height: calc(100vh - 127px); padding: 30px 0 38px; }
  .home-heading { margin-bottom: 22px; }
  .channel-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .channel-screen { height: 108px; }
  .channel-play { opacity: 1; }
}
