/* 小蓝视频官网 — Minimalist design system */
/* 单强调色：#1f5eff；其余为黑 / 白 / 灰。上线前可统一修改 --accent。 */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f5;
  --bg-soft-2: #efefed;
  --ink: #121212;
  --ink-2: #3d3d3d;
  --muted: #777777;
  --line: #e6e6e3;
  --line-strong: #cfcfcb;
  --accent: #1f5eff;
  --accent-ink: #1747c4;
  --accent-soft: #eef3ff;

  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section: clamp(76px, 10vw, 136px);
  --header-h: 72px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(52px, 7vw, 88px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
  display: grid; place-items: center; flex: none;
}
.brand-mark span { display: block; width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.brand small { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .08em; margin-left: 2px; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.site-nav a {
  font-size: 14px; color: var(--ink-2); position: relative; padding-block: 6px;
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-login { font-size: 14px; color: var(--ink-2); padding: 8px 4px; }
.header-login:hover { color: var(--accent); }

.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--ink);
}
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s ease; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor; transition: transform .25s ease, top .25s ease;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: var(--bg); padding: 28px var(--pad) 48px; overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { margin-top: 28px; width: 100%; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--accent); padding-inline: 12px; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.text-link { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.text-link:hover { color: var(--accent-ink); }
.text-link .arrow { transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.035em; line-height: 1.18; }
h1 { font-size: clamp(2.55rem, 6.1vw, 5rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; }
p { margin: 0; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--ink-2); line-height: 1.9; }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(84px, 12vw, 158px) clamp(72px, 10vw, 128px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.hero h1 { margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 560px; margin-top: 28px; }
.hero-actions { margin-top: 40px; }
.hero-note { margin-top: 26px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.hero-visual {
  position: relative; aspect-ratio: 4 / 4.4; border: 1px solid var(--line); background: var(--bg-soft);
  display: grid; place-items: center; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5;
}
.hero-visual::after { content: ""; position: absolute; inset: 12% 12% 12% 12%; border: 1px solid var(--line-strong); }
.hero-frame {
  position: relative; z-index: 1; width: 72%; aspect-ratio: 16 / 10;
  background: var(--ink); display: grid; place-items: center;
}
.hero-frame .play-glyph {
  width: 66px; height: 66px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center;
}
.hero-frame .play-glyph span { width: 0; height: 0; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.hero-caption {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 18px; font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase;
  background: rgba(255,255,255,.86); border-top: 1px solid var(--line);
}

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature {
  padding: clamp(28px, 3.6vw, 46px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 230px; display: flex; flex-direction: column; transition: background .2s ease;
}
.feature:hover { background: var(--bg-soft); }
.feature-index { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }
.feature h3 { margin-top: auto; }
.feature p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.85; }
.feature-icon { width: 30px; height: 30px; color: var(--ink); margin-bottom: 32px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
  overflow: hidden;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-media { aspect-ratio: 16 / 10; background: var(--bg-soft-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.35)); }
.card-media span { font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--muted); z-index: 1; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 17px; }
.card-body p { font-size: 13px; color: var(--muted); }
.card-meta { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

/* ---------- Steps / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 92px); align-items: center; }
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.step { counter-increment: step; display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step::before { content: "0" counter(step); color: var(--accent); font-size: 13px; font-weight: 700; padding-top: 5px; }
.step h3 { font-size: 17px; }
.step p { margin-top: 7px; font-size: 14px; color: var(--muted); }

.quote-panel { background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 60px); }
.quote-panel p { font-size: clamp(1.25rem, 2.4vw, 1.85rem); line-height: 1.55; letter-spacing: -.02em; }
.quote-panel small { display: block; margin-top: 28px; color: #a9a9a9; font-size: 12px; letter-spacing: .1em; }

/* ---------- Closing CTA ---------- */
.cta-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding-block: clamp(64px, 8vw, 104px); }
.cta-band h2 { max-width: 760px; margin-inline: auto; }
.cta-band p { margin-top: 18px; color: var(--muted); }
.cta-band .btn-row { justify-content: center; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(60px, 7vw, 92px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 64px; }
.footer-about p { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 290px; }
.footer-col h4 { font-size: 13px; letter-spacing: .06em; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; color: var(--muted); padding-block: 6px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 12px; color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(44px, 6vw, 72px); }
.breadcrumb { font-size: 12px; color: var(--muted); display: flex; gap: 9px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.page-intro h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); margin-top: 24px; }
.page-intro .lead { margin-top: 22px; max-width: 680px; }
.page-intro-actions { margin-top: 32px; }

/* ---------- Player ---------- */
.player-shell { border: 1px solid var(--line); background: var(--bg); }
.player {
  position: relative; aspect-ratio: 16 / 9; background: #0d0d0d; overflow: hidden; color: #fff;
}
.player-stage { position: absolute; inset: 0; }
.player-stage .stage-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
}
.player-stage .orb {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .85;
}
.orb-1 { width: 46%; aspect-ratio: 1; background: #1f5eff; left: 12%; top: 10%; }
.orb-2 { width: 34%; aspect-ratio: 1; background: #2b2b2b; right: 10%; bottom: 8%; }
.orb-3 { width: 18%; aspect-ratio: 1; background: #fff; opacity: .32 !important; right: 28%; top: 22%; }
.player.is-playing .orb-1 { animation: drift1 12s ease-in-out infinite alternate; }
.player.is-playing .orb-2 { animation: drift2 16s ease-in-out infinite alternate; }
.player.is-playing .orb-3 { animation: drift3 9s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18%, 12%) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-14%, -16%) scale(.88); } }
@keyframes drift3 { to { transform: translate(-30%, 24%) scale(1.2); } }

.stage-label { position: absolute; left: 26px; top: 24px; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.65); }
.stage-title { position: absolute; left: 26px; bottom: 84px; font-size: clamp(1.1rem, 2.6vw, 1.9rem); font-weight: 650; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0,0,0,.4); }
.big-play {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.1); color: #fff;
  display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s ease, transform .2s ease;
}
.big-play:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.big-play span { width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.player.is-playing .big-play { opacity: 0; pointer-events: none; }

.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 24px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0));
  display: flex; flex-direction: column; gap: 10px;
}
.progress { width: 100%; height: 4px; appearance: none; background: rgba(255,255,255,.28); border-radius: 99px; cursor: pointer; }
.progress::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 0; }
.progress::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 0; }
.player-controls { display: flex; align-items: center; gap: 16px; font-size: 12px; }
.control-btn { background: none; border: 0; color: #fff; padding: 4px; display: grid; place-items: center; opacity: .9; }
.control-btn:hover { opacity: 1; color: var(--accent); }
.control-btn svg { width: 18px; height: 18px; }
.player-time { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.8); }
.player-spacer { flex: 1; }
.player-volume { width: 80px; height: 3px; accent-color: var(--accent); }
.speed-btn { background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 3px; }
.speed-btn:hover { background: var(--accent); }

.player-info { padding: clamp(22px, 3vw, 34px); display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.player-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.player-meta { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.action-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 15px;
  border: 1px solid var(--line); background: #fff; border-radius: 4px; font-size: 13px; color: var(--ink-2);
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.panel { border: 1px solid var(--line); background: #fff; }
.panel-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h2 { font-size: 16px; letter-spacing: 0; }
.panel-body { padding: 22px; }
.episode-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.episode {
  text-align: left; border: 1px solid var(--line); background: #fff; padding: 12px 13px; border-radius: 4px;
  font-size: 13px; line-height: 1.4; transition: border-color .2s ease, background .2s ease;
}
.episode:hover { border-color: var(--accent); }
.episode.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.episode small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; font-weight: 400; }

.side-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.side-item:first-child { padding-top: 0; }
.side-thumb { width: 104px; aspect-ratio: 16 / 10; flex: none; background: var(--bg-soft-2); display: grid; place-items: center; font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.side-item h3 { font-size: 14px; line-height: 1.5; }
.side-item p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.side-item:hover h3 { color: var(--accent); }

.search-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; min-height: 42px; gap: 8px; }
.search-field input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; }
.search-field svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

.comments { margin-top: 28px; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form textarea, .form-control {
  width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 12px 14px; font-size: 14px; color: var(--ink); outline: 0;
  transition: border-color .2s ease;
}
.comment-form textarea:focus, .form-control:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 88px; resize: vertical; }
.comment { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--bg-soft-2); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.comment-body { flex: 1; }
.comment-body strong { font-size: 13px; }
.comment-body time { font-size: 11px; color: var(--muted); margin-left: 10px; }
.comment-body p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.empty-note { font-size: 13px; color: var(--muted); padding: 16px 0; }

/* ---------- Download ---------- */
.platform-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); }
.platform-tab { border: 0; background: transparent; padding: 14px 20px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.platform-tab:hover { color: var(--ink); }
.platform-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.download-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.download-card { border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.download-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.download-card .lead { margin-top: 18px; }
.download-version { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.device-art { aspect-ratio: 1 / 1.05; border: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; position: relative; overflow: hidden; }
.device-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 52px 52px; opacity: .6; }
.phone-frame { position: relative; z-index: 1; width: 48%; aspect-ratio: 9 / 17; border: 1px solid var(--ink); border-radius: 20px; background: #fff; padding: 10px; }
.phone-screen { width: 100%; height: 100%; background: var(--ink); border-radius: 12px; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; gap: 8px; }
.phone-screen .bar { height: 5px; background: rgba(255,255,255,.22); border-radius: 9px; }
.phone-screen .bar.w1 { width: 70%; }
.phone-screen .bar.w2 { width: 45%; }
.phone-screen .bar.accent { background: var(--accent); width: 38%; }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 42%; height: 5px; background: var(--line); border-radius: 9px; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mini-item { background: #fff; padding: 28px; }
.mini-item h3 { font-size: 16px; }
.mini-item p { margin-top: 10px; font-size: 13px; color: var(--muted); }

.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 24px; color: var(--muted); font-size: 14px; max-width: 700px; }

/* ---------- Publish ---------- */
.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 11px; color: var(--muted); }
.field .error { font-size: 12px; color: #c0392b; min-height: 16px; }
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: #c0392b; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.checkbox-row input { accent-color: var(--accent); margin-top: 4px; }

.dropzone {
  border: 1px dashed var(--line-strong); background: var(--bg-soft); padding: 46px 24px; text-align: center;
  border-radius: 4px; transition: border-color .2s ease, background .2s ease; cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 34px; height: 34px; color: var(--accent); margin: 0 auto 16px; }
.dropzone strong { display: block; font-size: 15px; }
.dropzone span { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.file-chip { border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; font-size: 12px; display: inline-flex; gap: 10px; align-items: center; }
.file-chip button { border: 0; background: transparent; color: var(--muted); font-size: 16px; line-height: 1; }
.file-chip button:hover { color: #c0392b; }

.guideline { border-top: 1px solid var(--line); padding: 20px 0; }
.guideline h3 { font-size: 15px; }
.guideline p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.draft-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.draft-item strong { font-size: 13px; display: block; }
.draft-item small { font-size: 11px; color: var(--muted); }
.draft-item button { border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.draft-item button:hover { color: #c0392b; }

.success-panel { border: 1px solid var(--accent); background: var(--accent-soft); padding: 22px; }
.success-panel h3 { color: var(--accent); }
.success-panel p { font-size: 13px; margin-top: 8px; color: var(--ink-2); }
[hidden] { display: none !important; }

/* ---------- Login ---------- */
.auth-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.auth-card { border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.auth-tab { flex: 1; border: 0; background: transparent; padding: 12px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.code-row { display: flex; gap: 10px; }
.code-row .form-control { flex: 1; }
.code-btn { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 4px; padding: 0 14px; font-size: 13px; color: var(--accent); }
.code-btn:hover { border-color: var(--accent); }
.notice { font-size: 12px; color: var(--muted); background: var(--bg-soft); padding: 12px 14px; border-radius: 4px; }
.session-box { border: 1px solid var(--accent); background: var(--accent-soft); padding: 24px; }
.session-box h3 { color: var(--accent); }
.session-box p { font-size: 13px; margin-top: 8px; }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.entry-card { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 170px; }
.entry-card:hover { border-color: var(--accent); }
.entry-card h3 { font-size: 17px; }
.entry-card p { font-size: 13px; color: var(--muted); }
.entry-card .text-link { margin-top: auto; }

/* ---------- Reveal & toast ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 500;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 4px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .watch-layout, .publish-layout { grid-template-columns: 1fr; }
  .watch-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2; }
}

@media (max-width: 860px) {
  .site-nav, .header-login, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split, .download-grid, .auth-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; }
  .feature-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
  .device-art { max-width: 420px; width: 100%; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; }
  h1 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .feature-grid, .card-grid, .watch-aside, .form-grid, .mini-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .hero { padding-top: 68px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-note { flex-direction: column; gap: 6px; }
  .episode-list { grid-template-columns: 1fr; }
  .player-bar { padding: 14px 14px 10px; }
  .player-controls { gap: 11px; }
  .player-volume { display: none; }
  .stage-label { left: 16px; top: 16px; }
  .stage-title { left: 16px; bottom: 72px; }
  .big-play { width: 64px; height: 64px; }
  .player-info { flex-direction: column; }
  .action-row { width: 100%; }
  .action-btn { flex: 1; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: auto; }
  .side-thumb { width: 88px; }
  .platform-tab { flex: 1; padding-inline: 8px; font-size: 12px; }
  .code-row { flex-direction: column; }
  .code-btn { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
}
