:root {
  color-scheme: dark;
  --bg: #0b0d13;
  --surface: #121620;
  --panel: #161b27;
  --panel-2: #1d2333;
  --edge: rgba(255, 255, 255, 0.09);
  --edge-strong: rgba(255, 255, 255, 0.18);
  --ink: #f4f6fa;
  --muted: #9aa4b8;
  --brand: #f47521;
  --brand-hover: #ff8638;
  --accent: #7ee2c6;
  --gold: #f0c96e;
  --danger: #ff7b8a;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 500px at 20% -10%, rgba(244, 117, 33, 0.09), transparent 60%), var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a, input, select { outline-offset: 3px; }
[hidden] { display: none !important; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 70px;
  padding: 12px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(11, 13, 19, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge);
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 700;
  color: #140a02;
  background: linear-gradient(135deg, #ff8f45, #f47521);
  box-shadow: 0 6px 18px rgba(244, 117, 33, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-sub { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: var(--brand); margin-top: 2px; }

/* Buttons */
button {
  border: 1px solid var(--edge-strong);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, filter 0.15s ease;
}
button:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.28); background: #252c3f; }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; }

.cta-btn {
  border: 0;
  background: linear-gradient(180deg, #ff883b, #f47521);
  color: #160a02;
  font-weight: 750;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(244, 117, 33, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.cta-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #ff9652, #ff7e29);
  filter: brightness(1.03);
}
.secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
  color: var(--ink);
}

.source-note {
  margin: 10px 4vw 0;
  padding: 10px 13px;
  border: 1px solid rgba(240, 201, 110, 0.28);
  border-radius: 10px;
  background: rgba(240, 201, 110, 0.08);
  color: #e8d8a8;
  font-size: 12.5px;
  line-height: 1.45;
}
.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
  font-size: 16px;
}

/* Auth & Account Pill (Airbnb / Crunchyroll style) */
.auth { display: flex; align-items: center; gap: 10px; }
.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: #ffffff;
  color: #16181d;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}
.google-btn:hover:not(:disabled) {
  background: #f3f5f8;
  border-color: #ffffff;
}
.google-glyph {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--panel);
}
.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #2d384f, #1d2434);
  color: var(--ink);
  border: 1px solid var(--edge-strong);
}
.avatar-circle.pro {
  background: linear-gradient(135deg, #ff8f45, #f47521);
  color: #160a02;
  border-color: transparent;
}
.auth-email {
  font-size: 12.5px;
  color: var(--ink);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tier-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.tier-tag.pro {
  background: rgba(244, 117, 33, 0.18);
  color: #ff9c59;
  border: 1px solid rgba(244, 117, 33, 0.4);
}
.auth-out, .billing-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Episode picker */
.episode-picker { position: relative; display: flex; align-items: center; gap: 6px; }
.episode-step {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}
.episode-step:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); border-color: var(--edge); color: var(--ink); }
.episode-button {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}
.episode-button-label { font-size: 9px; letter-spacing: 0.12em; color: var(--brand); font-weight: 800; }
#episode-button-value { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.episode-chevron { color: var(--muted); transition: transform 0.2s ease; }
.episode-button[aria-expanded=true] .episode-chevron { transform: rotate(180deg); }

.episode-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 396px;
  max-width: calc(100vw - 24px);
  max-height: min(72vh, 520px);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--edge-strong);
  background: #131823;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
}
.episode-menu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 6px 8px 12px; }
.episode-kicker { display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; font-weight: 700; }
.episode-menu-head strong { font-size: 20px; font-weight: 750; }
.episode-menu-count { font-size: 11px; color: var(--muted); }
.episode-search-wrap { position: relative; margin: 0 2px 8px; }
.episode-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.episode-search {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border-radius: 10px;
  border: 1px solid var(--edge);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
}
.episode-search:focus { outline: none; border-color: var(--brand); }
.episode-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.episode-group-head {
  position: sticky;
  top: 0;
  padding: 9px 10px 5px;
  background: #131823;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.episode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
}
.episode-row:hover { background: rgba(255, 255, 255, 0.05); border-color: transparent; }
.episode-row[aria-selected=true] { background: rgba(244, 117, 33, 0.14); border-color: rgba(244, 117, 33, 0.45); }
.episode-row-title { font-size: 13.5px; font-weight: 600; }
.episode-row-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.episode-watching { font-size: 9.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.episode-empty { padding: 28px 14px; text-align: center; color: var(--muted); font-size: 13px; }

/* Main layout */
main { max-width: 1520px; margin: 0 auto; padding: 24px 4vw 40px; }
.hero-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.series-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}
h1 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 16px; font-weight: 700; margin: 0; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pass-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(126, 226, 198, 0.35);
  background: rgba(126, 226, 198, 0.08);
  color: var(--accent);
  white-space: nowrap;
}

#message {
  margin: 0 0 14px;
  padding: 11px 15px;
  border-radius: 10px;
  background: rgba(126, 226, 198, 0.1);
  border: 1px solid rgba(126, 226, 198, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
#message.error {
  background: rgba(255, 123, 138, 0.1);
  border-color: rgba(255, 123, 138, 0.35);
  color: var(--danger);
}

/* Preview / Upgrade Banner */
.preview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(244, 117, 33, 0.35);
  background: linear-gradient(90deg, rgba(244, 117, 33, 0.12), rgba(22, 27, 39, 0.92));
}
.preview-banner-copy { display: flex; align-items: center; gap: 14px; min-width: 0; }
.preview-banner-copy strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.preview-banner-copy p { margin: 0; font-size: 12.5px; color: var(--muted); }
.preview-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(244, 117, 33, 0.2);
  color: #ff9c59;
  border: 1px solid rgba(244, 117, 33, 0.45);
  white-space: nowrap;
}
.preview-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }

/* Workspace */
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.stage { min-width: 0; }

.player-shell { position: relative; background: #000; border: 1px solid var(--edge); border-radius: 14px 14px 0 0; overflow: hidden; }
video { display: block; width: 100%; max-height: 58vh; background: #000; }

.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 11, 16, 0.86);
  backdrop-filter: blur(8px);
}
.paywall-card {
  max-width: 440px;
  text-align: center;
  padding: 26px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--edge-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.paywall-card h2 { font-size: 20px; margin: 12px 0 8px; }
.paywall-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0 0 18px; }
.paywall-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-top: 0;
  font-size: 12.5px;
}
.transport-check, .transport-speed { display: flex; align-items: center; gap: 7px; color: var(--muted); }
input[type=checkbox] { accent-color: var(--brand); }
select { background: var(--bg); color: var(--ink); border: 1px solid var(--edge); border-radius: 7px; padding: 5px 8px; }
.transport-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.transport-actions button { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.skip-intro {
  color: #ffad73;
  border-color: rgba(244, 117, 33, 0.5);
  background: rgba(244, 117, 33, 0.12);
  font-weight: 750;
}
.skip-intro:hover:not(:disabled) { background: rgba(244, 117, 33, 0.2); border-color: var(--brand); }

.subtitle {
  min-height: 170px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  text-align: center;
}
.cells { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 3px; }
.cell { display: flex; flex-direction: column; align-items: center; min-width: 28px; padding: 3px 4px; border-radius: 4px; }
.cell .pinyin { font-size: 13px; color: var(--accent); min-height: 20px; white-space: nowrap; }
.cell .hanzi { font-size: 28px; line-height: 1.25; }
.english { font-size: 17.5px; line-height: 1.65; margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }

.learning-unit { display: inline-flex; flex-wrap: nowrap; align-items: stretch; border-radius: 6px; }
.linked { cursor: pointer; border-bottom: 2px solid var(--pair-color); border-radius: 3px; color: var(--pair-color); }
.cell.linked .pinyin, .cell.linked .hanzi, .learning-unit.linked .pinyin, .learning-unit.linked .hanzi { color: var(--pair-color); }
.linked.highlight, .pair-row.highlight { background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 2px var(--pair-color); }

/* Breakdown table */
.pairings { margin-top: 24px; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 18px 20px; }
.section-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13.5px; }
th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--edge); }
td { padding: 10px 8px; border-bottom: 1px solid var(--edge); overflow-wrap: anywhere; }
.pair-row { cursor: pointer; }
.pair-row td { color: var(--pair-color); }
.pair-word .pair-pinyin { display: block; font-size: 11px; color: var(--accent); margin-bottom: 2px; }
.pair-word .pair-zh { display: block; font-size: 20px; white-space: nowrap; }
.pair-meaning { vertical-align: middle; font-size: 14.5px; line-height: 1.5; }

/* Transcript sidebar */
.review { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; }
.review-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.cue-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#search {
  display: block;
  width: calc(100% - 36px);
  margin: 0 18px 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 10px;
}
#search:focus { outline: none; border-color: var(--brand); }
.cue-list { max-height: 820px; overflow-y: auto; }
.cue { border-top: 1px solid var(--edge); padding: 14px 18px; cursor: pointer; transition: background 0.14s ease; }
.cue:hover { background: rgba(255, 255, 255, 0.03); }
.cue.selected { background: rgba(244, 117, 33, 0.12); border-left: 3px solid var(--brand); padding-left: 15px; }
.cue-reading { display: flex; flex-wrap: wrap; gap: 0 1px; margin-bottom: 5px; }
.cue-char { display: inline-flex; flex-direction: column; align-items: center; min-width: 17px; }
.cue-pinyin { font-size: 9.5px; color: var(--accent); min-height: 12px; white-space: nowrap; }
.cue-hanzi { font-size: 17.5px; line-height: 1.3; }
.cue-en { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.empty { padding: 20px; text-align: center; }

@media (max-width: 960px) {
  .workspace { grid-template-columns: 1fr; }
  .cue-list { max-height: 520px; }
  video { max-height: none; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; padding: 10px 4vw; }
  .topbar-left { width: 100%; justify-content: space-between; gap: 8px; }
  .topbar-right { width: 100%; justify-content: flex-end; }
  .episode-picker { gap: 2px; }
  .episode-button { height: 36px; padding: 0 10px; gap: 6px; font-size: 12.5px; }
  .episode-step { width: 28px; height: 28px; }
  .episode-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
  }
  .auth-email { max-width: 110px; }
  .transport-actions { width: 100%; margin-left: 0; justify-content: flex-start; }
  .preview-banner-copy { flex-direction: column; align-items: flex-start; gap: 6px; }
  .preview-banner-actions { width: 100%; margin-left: 0; }
}

/* Browse (home + series) */
.browse-mode .episode-picker, .browse-mode #reload { display: none; }
.browse { padding: 28px 4vw 48px; max-width: 1400px; margin: 0 auto; }
.browse-hero { padding: 18px 0 8px; }
.browse-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--brand); }
.browse-hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 6px; letter-spacing: -0.02em; }
.browse-hero p { color: var(--muted); margin: 0; max-width: 640px; }
.browse-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 14px; }
.browse-head h2 { margin: 0; font-size: 20px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.series-card { padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.series-card:hover:not(:disabled) { background: var(--panel); border-color: var(--edge-strong); transform: translateY(-3px); }
.poster { position: relative; aspect-ratio: 2 / 3; display: grid; place-items: center; width: 100%; }
.poster-zh { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: 0.08em; color: rgba(255,255,255,0.92); text-shadow: 0 4px 24px rgba(0,0,0,0.5); padding: 0 10px; text-align: center; }
.poster-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; background: rgba(0,0,0,0.35); opacity: 0; transition: opacity 0.15s ease; }
.series-card:hover .poster-play { opacity: 1; }
.card-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.card-title-row { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.card-zh { font-size: 19px; font-weight: 800; line-height: 1.2; }
.card-title { font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--muted); min-width: 0; }
.card-sub { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.card-count { white-space: nowrap; }
.card-tag { color: var(--accent); font-size: 12.5px; }
.back-btn { margin-bottom: 18px; }
.series-hero { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.series-poster { width: 150px; flex-shrink: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge); }
.series-poster .poster { aspect-ratio: 2 / 3; }
.series-poster .poster-play { display: none; }
.series-hero-meta { flex: 1 1 260px; min-width: 0; }
.series-hero-meta h1 { margin: 6px 0 4px; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.series-hero-meta p { margin: 0 0 14px; }
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ep-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 12px; background: var(--panel); text-align: left; }
.ep-tile:hover:not(:disabled) { background: var(--panel-2); }
.ep-tile-num { font-size: 22px; font-weight: 800; color: var(--brand); line-height: 1; }
.ep-tile-label { font-weight: 650; }
.ep-tile-dur { color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  .series-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .series-poster { width: 110px; }
}

/* Real series banners */
.series-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.poster { aspect-ratio: 16 / 9; }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-zh { display: none; }
.series-poster { width: 340px; }
.series-poster .poster { aspect-ratio: 16 / 9; }
@media (max-width: 560px) {
  .series-poster { width: 100%; }
  .series-hero-meta h1 { font-size: 28px; line-height: 1.15; }
}

/* Episode list rows */
.episode-grid { display: flex; flex-direction: column; gap: 10px; }
.ep-row { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--panel); text-align: left; }
.ep-row:hover:not(:disabled) { background: var(--panel-2); }
.ep-row-num { font-size: 24px; font-weight: 800; color: var(--brand); min-width: 44px; text-align: center; line-height: 1; }
.ep-row-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ep-row-title-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ep-row-title { font-weight: 700; }
.ep-row-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(244, 117, 33, 0.16); color: #ffad73; border: 1px solid rgba(244, 117, 33, 0.35); }
.ep-row-badge.done { background: rgba(126, 226, 198, 0.12); color: var(--accent); border-color: rgba(126, 226, 198, 0.32); }
.ep-row-progress { display: block; width: 100%; max-width: 240px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 5px; }
.ep-row-progress-fill { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.ep-row-syn { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.ep-row-syn-zh { color: var(--ink); font-size: 15px; line-height: 1.55; }
.ep-row-syn-pinyin { color: var(--accent); font-size: 12px; line-height: 1.5; }
.ep-row-syn-en { margin-top: 3px; }
.ep-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ep-row-dur { color: var(--muted); font-size: 12px; }
.ep-row-play { color: var(--brand); font-size: 15px; }
