@font-face {
  font-family: "Smiley Sans Local";
  src: url("./assets/fonts/smiley-sans-oblique.woff2") format("woff2");
  font-display: block;
  font-weight: 400;
  font-style: normal;
}

/* 主题切换：默认深色；浅色使用方案 D，保留黑橙品牌强调。 */
.theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--line-warm);
  color: var(--orange);
}

.theme-toggle-icon {
  color: var(--orange);
  font-size: 18px;
  line-height: 1;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8f3;
  --panel: #ffffff;
  --panel-2: #f3f0ea;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: rgba(42, 37, 32, 0.13);
  --line-warm: rgba(255, 114, 0, 0.42);
  --text: #181818;
  --muted: #77736d;
  --orange: #ff7200;
  --orange-2: #c25200;
  --expression-paper: #fffdf9;
  --expression-header: #fff0e6;
  --expression-icon-surface: #fff0e6;
  --expression-content: #ffffff;
  --expression-ink: #252525;
  --expression-muted: #625e58;
  --expression-rail: #ff7200;
  --expression-chip: #fff7f1;
  --expression-chip-border: rgba(255, 114, 0, 0.18);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 48% -8%, rgba(255, 114, 0, 0.1), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, #faf8f3 58%, #f3f0ea 100%);
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #fffdf9, #f3f0ea);
}

html[data-theme="light"] .main {
  background: transparent;
}

html[data-theme="light"] .search-box,
html[data-theme="light"] .streak-badge,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .home-filter-toggle,
html[data-theme="light"] .home-filters,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .video-card,
html[data-theme="light"] .learning-panel,
html[data-theme="light"] .setting-row {
  border-color: rgba(42, 37, 32, 0.13);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(73, 57, 38, 0.08);
}

html[data-theme="light"] .search-box {
  color: var(--muted);
}

html[data-theme="light"] .search-box input,
html[data-theme="light"] .home-filter-choice,
html[data-theme="light"] .nav-item,
html[data-theme="light"] .ghost-btn,
html[data-theme="light"] .text-btn {
  color: var(--text);
}

html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .nav-item:hover {
  color: var(--text);
  background: linear-gradient(90deg, rgba(255, 114, 0, 0.16), rgba(255, 114, 0, 0.06), transparent);
}

html[data-theme="light"] .home-filter-choice:hover,
html[data-theme="light"] .home-filter-choice.active {
  background-color: rgba(255, 114, 0, 0.12);
  color: var(--text);
}

html[data-theme="light"] .video-card:hover {
  box-shadow: 0 20px 46px rgba(73, 57, 38, 0.14);
}

html[data-theme="light"] .learning-panel {
  background:
    linear-gradient(180deg, rgba(255, 114, 0, 0.06), transparent 22%),
    #fffdf9;
}

html[data-theme="light"] .tabs,
html[data-theme="light"] .tab,
html[data-theme="light"] .subtitle-row,
html[data-theme="light"] .setting-options.compact,
html[data-theme="light"] .stat-mini-icon {
  border-color: rgba(42, 37, 32, 0.1);
  background: rgba(42, 37, 32, 0.035);
  color: var(--text);
}

html[data-theme="light"] .subtitle-row:hover {
  background:
    radial-gradient(circle at 20% 0, rgba(255, 114, 0, 0.08), transparent 46%),
    rgba(42, 37, 32, 0.045);
}

html[data-theme="light"] .subtitle-row.active {
  background:
    linear-gradient(90deg, rgba(255, 114, 0, 0.15), rgba(255, 114, 0, 0.04)),
    #fffdf9;
}

html[data-theme="light"] .auth-shell {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 114, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #faf8f3 56%, #f3f0ea 100%);
}

html[data-theme="light"] .auth-card,
html[data-theme="light"] .auth-panel,
html[data-theme="light"] .auth-field input,
html[data-theme="light"] .auth-message {
  border-color: rgba(42, 37, 32, 0.13);
  background: #ffffff;
  color: var(--text);
}

html[data-theme="light"] .auth-hero-copy h1,
html[data-theme="light"] .auth-brand,
html[data-theme="light"] .auth-field span {
  color: var(--text);
}

html[data-theme="light"] .mobile-tabbar {
  border-top-color: rgba(42, 37, 32, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 240, 234, 0.98));
}

@media (max-width: 820px) {
  .theme-toggle {
    min-width: 44px;
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .theme-toggle-icon {
    font-size: 20px;
  }
}
body[data-auth="landing"] .hero-copy h1 .hero-emphasis-action::after {
  content: none !important;
  display: none !important;
}

@font-face {
  font-family: "Hugeicons Stroke Rounded Local";
  src: url("./assets/fonts/hgi-stroke-rounded.woff2") format("woff2");
  font-display: block;
  font-weight: 400;
  font-style: normal;
}

:root {
  color-scheme: dark;
  --bg: #060606;
  --panel: #101111;
  --panel-2: #171818;
  --surface: rgba(18, 19, 19, 0.92);
  --surface-strong: rgba(24, 25, 25, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --line-warm: rgba(255, 106, 0, 0.26);
  --text: #f7f8ff;
  --muted: #9ca7be;
  --orange: #ff6a00;
  --orange-2: #b94b00;
  --green: #50e3c2;
  --violet: #8f6bff;
  --blue: #5aa7ff;
  --pink: #ff9ccf;
  --expression-paper: #121313;
  --expression-header: rgba(255, 106, 0, 0.12);
  --expression-icon-surface: rgba(255, 106, 0, 0.14);
  --expression-content: rgba(255, 255, 255, 0.06);
  --expression-ink: #f7f8fc;
  --expression-muted: rgba(255, 255, 255, 0.74);
  --expression-rail: rgba(255, 106, 0, 0.78);
  --expression-chip: rgba(255, 106, 0, 0.09);
  --expression-chip-border: rgba(255, 106, 0, 0.22);
  --vocab-check-size: 16px;
  --vocab-action-height: 34px;
  --vocab-action-font: 14px;
  --vocab-action-pad-x: 12px;
  --vocab-action-gap: 8px;
  --tune-controls-height: 64px;
  --tune-controls-radius: 14px;
  --tune-controls-pad-y: 6px;
  --tune-controls-pad-x: 10px;
  --tune-controls-gap: 8px;
  --tune-controls-width: 680px;
  --tune-play-size: 31px;
  --tune-play-button-x: 0px;
  --tune-play-button-y: 0px;
  --tune-play-icon-size: 29px;
  --tune-play-icon-x: 0px;
  --tune-play-icon-y: 1px;
  --tune-pause-icon-x: 1px;
  --tune-pause-icon-y: 0px;
  --tune-time-size: 15px;
  --tune-toolbar-y: 0px;
  --tune-time-y: 0px;
  --tune-progress-width: 303px;
  --tune-progress-height: 6px;
  --tune-progress-thumb: 17px;
  --tune-progress-x: 0px;
  --tune-progress-y: 0px;
  --tune-speed-height: 22px;
  --tune-speed-width: 47px;
  --tune-speed-font: 14px;
  --tune-speed-radius: 8px;
  --tune-speed-y: -4.5px;
  --tune-icon-button: 43px;
  --tune-actions-gap: 8px;
  --tune-icon-size: 22px;
  --tune-subtitle-time-width: 38px;
  --tune-subtitle-gap: 7px;
  --tune-subtitle-pad-y: 12px;
  --tune-subtitle-pad-x: 18px;
  --tune-subtitle-en-size: 17px;
  --tune-subtitle-en-line: 23px;
  --tune-subtitle-zh-size: 14px;
  --tune-subtitle-zh-line: 20px;
}

/* Keep the desktop player and learning panel side by side in a resized window. */
@media (min-width: 821px) and (max-width: 1180px) {
  body[data-view="watch"] .watch-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    max-width: none;
    height: calc(100dvh - 88px);
    overflow: hidden;
  }

  body[data-view="watch"] .learning-panel {
    height: 100%;
    min-height: 0;
  }
}

/* 顶层规则：兼容部分安卓浏览器，且仅由 app.js 为窄屏安卓添加 class 后生效。 */
@media (max-width: 430px) {
  html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy strong {
    font-size: clamp(17px, 4.7vw, 18px);
    line-height: 1.11;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row {
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas:
      "time actions"
      "copy copy";
    gap: 8px 5px;
    padding: 8px 4px 14px 10px;
    margin-bottom: 7px;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row .time {
    font-size: 14px;
    line-height: 1.26;
    white-space: nowrap;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy {
    gap: 9px;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row .time,
  html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy strong,
  html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy em {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row-actions,
  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row-actions button {
    width: 32px;
    height: 32px;
  }
}

.auth-shell.landing-shell {
  display: block;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 106, 0, 0.14), transparent 18%),
    radial-gradient(circle at 80% 14%, rgba(255, 106, 0, 0.08), transparent 18%),
    linear-gradient(180deg, #080808 0%, #050505 44%, #040404 100%);
}

body[data-auth="authed"] .auth-shell.landing-shell {
  display: none;
}

.auth-shell.landing-shell > .auth-shell-header,
.auth-shell.landing-shell > .auth-shell-footer,
.auth-shell.landing-shell > .auth-card {
  display: none;
}

.landing-header,
.landing-main,
.landing-footer {
  width: min(1440px, calc(100% - 80px));
  margin: 0 auto;
}

.landing-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px 0 18px;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.landing-brand {
  font-size: 22px;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.landing-login-entry {
  padding: 9px 15px;
  border: 1px solid #ff8a24;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ff922f);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.landing-header-trial {
  width: 158px;
  min-height: 48px;
  padding: 0;
  font-size: 14px;
}

.landing-header-actions .landing-login-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 158px;
  height: 48px;
  padding: 0;
}

.landing-login-entry:hover {
  border-color: #ffb067;
  background: linear-gradient(135deg, #ff7410, #ffa347);
  transform: translateY(-1px);
}

.landing-main-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 158px;
  min-width: 158px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #ff8a24;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ff922f);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.landing-main-entry:hover,
.landing-main-entry:focus-visible {
  border-color: #ffb067;
  background: linear-gradient(135deg, #ff7410, #ffa347);
  color: #fff;
  transform: translateY(-1px);
}

/* 顶部三个主入口使用同一套按钮规格，避免视觉层级和点击区域不一致。 */
.landing-header-actions .landing-header-trial,
.landing-header-actions .landing-login-entry,
.landing-header-actions .landing-main-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 158px;
  min-width: 158px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid #ff8a24;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ff8f1f);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.landing-header-actions .landing-header-trial:hover,
.landing-header-actions .landing-header-trial:focus-visible,
.landing-header-actions .landing-login-entry:hover,
.landing-header-actions .landing-login-entry:focus-visible,
.landing-header-actions .landing-main-entry:hover,
.landing-header-actions .landing-main-entry:focus-visible {
  border-color: #ffb067;
  background: linear-gradient(135deg, #ff7410, #ffa347);
  color: #fff;
  transform: translateY(-1px);
}

.landing-nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.landing-nav-link:hover,
.landing-nav-link.active {
  color: #fff;
}

.landing-nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.15), var(--orange), rgba(255, 106, 0, 0.15));
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, filter 180ms ease;
}

.landing-action:hover {
  transform: translateY(-1px);
}

.landing-action.ghost {
  min-width: 92px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.landing-action.primary {
  background: linear-gradient(135deg, #ff6a00, #ff8f1f);
  box-shadow: 0 14px 34px rgba(255, 106, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.landing-action.secondary {
  padding-left: 18px;
  gap: 10px;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.02);
}

.landing-action-xl {
  min-height: 58px;
  padding-inline: 28px;
  font-size: 16px;
}

.play-ring {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  font-size: 11px;
}

.landing-main {
  display: grid;
  padding-bottom: 28px;
}

.landing-section {
  position: relative;
  padding-top: 8px;
}

.landing-main .landing-section + .landing-section {
  margin-top: 48px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  min-height: 620px;
  align-items: start;
  padding-top: 0;
}

@media (min-width: 821px) {
  body[data-auth="landing"] .hero-section { min-height: 430px; }
  body[data-auth="landing"] .landing-main .trial-section { margin-top: 12px; }
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h1 {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

body[data-auth="landing"] .hero-copy h1 {
  overflow: visible;
}

.hero-title-image {
  display: block;
  width: 100%;
  max-width: 680px;
  margin-left: 0;
  margin-right: auto;
  height: auto;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.24));
}

@media (min-width: 821px) {
body[data-auth="landing"] .hero-copy h1 {
    font-family: inherit;
    font-weight: 400;
    line-height: 0;
    letter-spacing: 0;
  }

  body[data-auth="landing"] .hero-copy h1 .hero-emphasis {
    display: inline-block;
    background: linear-gradient(158deg, #ff9b3b 0%, #ff7918 44%, #f15f05 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: inherit;
    padding-right: 0.08em;
    text-shadow: 0 3px 14px rgba(255, 106, 0, 0.12);
  }

  body[data-auth="landing"] .hero-copy h1 .hero-emphasis-action {
    position: relative;
  }

  body[data-auth="landing"] .hero-copy h1 .hero-emphasis-action::after {
    position: absolute;
    right: -8%;
    bottom: -0.17em;
    left: -5%;
    height: 0.24em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 30' preserveAspectRatio='none'%3E%3Cpath d='M7 18 C31 11 48 18 69 16 C91 13 110 18 129 15 C146 12 160 15 174 13' fill='none' stroke='%23ff7418' stroke-width='5.2' stroke-linecap='round'/%3E%3Cpath d='M18 22 C46 18 81 21 112 19' fill='none' stroke='%23ffad58' stroke-opacity='.52' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    filter: drop-shadow(0 3px 6px rgba(255, 106, 0, 0.2));
    content: "";
  }
}

.hero-subtitle {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  line-height: 1.5;
}

.hero-proof {
  max-width: 680px;
  margin-top: 22px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 18px;
  background: rgba(255, 106, 0, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-proof-item { min-width: 0; padding: 2px 14px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.hero-proof-item:first-child { padding-left: 0; }
.hero-proof-item:last-child { padding-right: 0; border-right: 0; }
.hero-proof-item strong { display: block; color: #ff7a18; font-size: clamp(21px, 2vw, 29px); line-height: 1; letter-spacing: -0.04em; }
.hero-proof-item span { display: block; margin-top: 7px; color: rgba(255, 255, 255, 0.68); font-size: 12px; line-height: 1.25; white-space: nowrap; }
.hero-proof-note { margin: 11px 0 0; color: rgba(255, 255, 255, 0.46); font-size: 12px; line-height: 1.4; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.68);
}

.hero-social-proof strong {
  color: #fff;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack span {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 2px solid #050505;
  border-radius: 50%;
  background: hsl(var(--avatar-hue) 72% 60%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.avatar-stack span:first-child {
  margin-left: 0;
}

.hero-player-card {
  justify-self: end;
  align-self: start;
  width: min(100%, 754px);
}

.hero-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2560 / 1354;
  border: 1px solid rgba(255, 106, 0, 0.7);
  border-radius: 28px;
  background: #120a08;
  box-shadow:
    0 0 0 1px rgba(255, 106, 0, 0.1),
    0 24px 80px rgba(255, 106, 0, 0.12),
    0 30px 120px rgba(0, 0, 0, 0.42);
}

.hero-player::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.05)),
    radial-gradient(circle at 78% 36%, rgba(255, 166, 92, 0.03), transparent 22%);
  z-index: 1;
  pointer-events: none;
}

.hero-shot-frame::before {
  content: none;
}

.hero-shot-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b0706;
}

.multi-device-stage {
  display: block;
  background:
    radial-gradient(circle at 50% 68%, rgba(255, 106, 0, 0.12), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 180, 120, 0.04), transparent 52%),
    #0e0a09;
}

.multi-device-glow {
  position: absolute;
  inset: 14% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.12), transparent 65%);
  filter: blur(18px);
  opacity: 0.72;
}

.device-surface {
  position: absolute;
  z-index: 2;
}

.device-bezel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(9, 9, 9, 0.88);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.device-bezel img {
  width: 100%;
  height: calc(100% - 16px);
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.04) brightness(0.98);
}

.device-status {
  height: 16px;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.92) 0 20px, rgba(255, 255, 255, 0) 20px 100%),
    rgba(255, 255, 255, 0.02);
}

.device-overlay,
.tablet-note {
  position: absolute;
  inset: auto 14px 14px 14px;
  z-index: 3;
}

.device-caption {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.device-phone {
  left: 2%;
  bottom: 4%;
  width: 26%;
  height: 74%;
  transform: rotate(0deg);
}

.device-phone .device-bezel {
  border-radius: 38px;
}

.device-phone img {
  height: calc(100% - 18px);
}

.device-desktop {
  left: 24%;
  top: 16%;
  width: 52%;
  height: 44%;
}

.device-desktop .device-bezel {
  border-radius: 22px;
}

.desktop-topbar {
  height: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.desktop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: calc(100% - 22px);
  padding: 14px;
}

.desktop-mini-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.desktop-mini-card img {
  width: 100%;
  height: calc(100% - 46px);
  object-fit: cover;
}

.desktop-mini-card span {
  display: block;
  padding: 12px 14px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.device-tablet {
  right: 3%;
  bottom: 3%;
  width: 36%;
  height: 60%;
  transform: rotate(8deg);
}

.device-tablet .device-bezel {
  border-radius: 28px;
}

.tablet-note {
  display: grid;
  gap: 6px;
  padding: 0;
}

.tablet-note strong {
  display: block;
  max-width: 280px;
  color: #fff;
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1.02;
  font-weight: 800;
}

.tablet-note span {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.section-head,
.results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h2,
.results-header h2 {
  margin: 0;
  font-size: clamp(30px, 2.4vw, 44px);
  line-height: 1.08;
  font-weight: 800;
}

.section-head p,
.results-header p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 1.55;
}

.section-link {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.trial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trial-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #111;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.trial-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) saturate(1.03);
}

.trial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3), transparent 55%);
}

.trial-card-badge,
.theme-card,
.tool-card,
.result-card,
.faq-item {
  backdrop-filter: blur(14px);
}

.trial-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.trial-card-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 29px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.02);
}

.trial-card-copy {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
}

.trial-card-copy h3 {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 32px);
  line-height: 1.12;
  font-weight: 700;
}

.trial-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.trial-tag {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ff8f1f);
  color: #fff;
  font-weight: 700;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  color: #fff;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.theme-card:hover,
.tool-card:hover,
.result-card:hover,
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.theme-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.theme-copy strong {
  font: inherit;
}

.theme-copy small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.theme-icon,
.tool-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.theme-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.theme-icon svg,
.tool-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon.orange { color: #ff9b35; background: rgba(255, 155, 53, 0.12); }
.theme-icon.red { color: #ff6666; background: rgba(255, 102, 102, 0.12); }
.theme-icon.blue { color: #6d9fff; background: rgba(109, 159, 255, 0.12); }
.theme-icon.purple { color: #a96dff; background: rgba(169, 109, 255, 0.12); }
.theme-icon.indigo { color: #7a8cff; background: rgba(122, 140, 255, 0.12); }
.theme-icon.cyan { color: #60d8ff; background: rgba(96, 216, 255, 0.12); }
.theme-icon.pink { color: #ff678a; background: rgba(255, 103, 138, 0.12); }
.theme-icon.lime { color: #a7f15a; background: rgba(167, 241, 90, 0.12); }

.tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 16px;
  align-items: center;
}

.tools-copy { min-width: 0; }
.tools-proof { max-width: none; margin-top: 14px; }
.tools-proof-note { margin-top: 8px; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--orange);
  background: rgba(255, 106, 0, 0.08);
}

.tool-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.tool-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

.device-showcase {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 106, 0, 0.16), transparent 48%),
    radial-gradient(circle at 60% 60%, rgba(255, 106, 0, 0.08), transparent 60%);
}

.device-showcase-shell {
  position: relative;
  min-height: 460px;
  padding-bottom: 26px;
}

.device-showcase-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 8px 2% 18px;
  border-radius: 28px;
  box-shadow:
    0 20px 22px rgba(0, 0, 0, 0.3),
    0 34px 54px rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.device-showcase-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  bottom: -10px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0) 78%);
  filter: blur(4px);
  pointer-events: none;
}

.device-showcase-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 106, 0, 0.14), transparent 40%),
    radial-gradient(circle at 50% 82%, rgba(255, 106, 0, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.96), rgba(10, 10, 10, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  filter:
    drop-shadow(0 24px 80px rgba(255, 106, 0, 0.12))
    drop-shadow(0 30px 120px rgba(0, 0, 0, 0.42));
}

.device-showcase-image img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.38));
}

.device {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(15, 15, 15, 0.92);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.05);
}

.phone-device {
  left: 60px;
  top: 88px;
  width: 120px;
  height: 340px;
  border-radius: 28px;
}

.phone-device .device-screen {
  border-radius: inherit;
}

.device-caption,
.device-sentence {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.54);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.desktop-device {
  left: 166px;
  top: 18px;
  width: 386px;
  height: 240px;
  border-radius: 18px;
}

.desktop-ui {
  display: grid;
  gap: 12px;
  height: 100%;
  padding: 14px;
}

.desktop-ui-topbar {
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.85) 0 10px, transparent 10px 100%),
    rgba(255, 255, 255, 0.08);
}

.desktop-ui-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: 100%;
}

.desktop-ui-grid article {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.desktop-ui-grid img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.desktop-ui-grid span {
  display: block;
  padding: 8px 10px 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
}

.tablet-device {
  right: 26px;
  top: 92px;
  width: 210px;
  height: 250px;
  border-radius: 22px;
  transform: rotate(7deg);
}

.tablet-device .device-sentence {
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 16px;
  align-items: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.result-stage {
  position: relative;
  z-index: 1;
}

.result-number {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--orange);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.result-number span {
  font-size: 20px;
}

.result-stage h3 {
  margin: 12px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.result-stage p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.result-chart {
  display: block;
  width: 62%;
  height: 62px;
  margin: 20px 0 0 auto;
}

.result-chart path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.faq-price {
  color: var(--orange);
  font-size: 1.18em;
  font-weight: 800;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 18px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.wechat-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 106, 0, 0.16), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(255, 106, 0, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.28);
}

.wechat-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.wechat-eyebrow {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 106, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.1);
  color: #ff9b35;
  font-size: 13px;
  font-weight: 800;
}

.wechat-copy h2 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(32px, 2.8vw, 52px);
  line-height: 1.08;
}

.wechat-copy > p {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 17px;
  line-height: 1.65;
}

.wechat-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.wechat-step {
  min-height: 144px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.wechat-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.14);
  color: var(--orange);
  font-weight: 800;
}

.wechat-step h3 {
  margin: 16px 0 0;
  font-size: 18px;
}

.wechat-step p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
  line-height: 1.55;
}

.wechat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.wechat-device-note {
  margin-top: 16px !important;
  color: rgba(255, 155, 53, 0.82) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.wechat-consider-note {
  max-width: 680px;
  margin: 18px 0 0 !important;
  color: #ff9b35 !important;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.5 !important;
}

.wechat-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 420px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    #111;
}

.wechat-qr-image {
  display: block;
  width: min(320px, 76vw);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.wechat-card strong {
  color: #fff;
  font-size: 20px;
}

.wechat-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.wechat-copy-button {
  appearance: none;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wechat-copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
}

.wechat-card p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.landing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 28px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.56);
}

.landing-footer p {
  margin: 0;
}

.landing-footer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal.hidden {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.auth-modal-card {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
}

@media (max-width: 1180px) {
  .landing-header,
  .landing-main,
  .landing-footer {
    width: min(100%, calc(100% - 48px));
  }

  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-nav {
    display: none;
  }

  .hero-section,
  .tools-layout,
  .results-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    gap: 20px;
  }

  .hero-player-card {
    justify-self: stretch;
    width: 100%;
    max-width: 754px;
  }

  .device-showcase {
    min-height: 500px;
  }

  .device-showcase-shell {
    min-height: 500px;
    padding-bottom: 26px;
  }

  .results-copy {
    display: none;
  }
}

/* 网页端收窄时始终保留右侧学习栏，优先压缩卡片列宽。 */
@media (min-width: 1100px) and (max-width: 1280px) {
  body[data-view="home"] .app-shell {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
  }

  body[data-view="home"] .rightbar {
    display: grid;
  }

  body[data-view="home"] .video-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1099px) {
  body[data-view="home"] .app-shell {
    grid-template-columns: 180px minmax(0, 1fr) 240px;
  }

  body[data-view="home"] .rightbar {
    display: grid;
    padding: 58px 16px 20px 0;
  }

  body[data-view="home"] .video-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 820px) {
  /* 临时对比版：手机端降低暖色背景叠加，减少安卓与 iPhone 的显示差异。 */
  body[data-auth="landing"] .auth-shell.landing-shell {
    background: linear-gradient(180deg, #080808 0%, #060505 42%, #040404 100%);
  }

  body[data-auth="landing"] .wechat-panel {
    background:
      radial-gradient(circle at 82% 18%, rgba(255, 106, 0, 0.08), transparent 24%),
      radial-gradient(circle at 18% 78%, rgba(255, 106, 0, 0.04), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  }

  /* 手机端标题只让两条主文案换行，重点词保持在句内。 */
  body[data-auth="landing"] .hero-copy h1 > span {
    display: block;
  }

  body[data-auth="landing"] .hero-copy h1 {
    font-family: inherit;
    font-style: normal;
    letter-spacing: 0;
    transform: none;
  }

  body[data-auth="landing"] .hero-copy h1 .hero-emphasis {
    display: inline-block;
    background: linear-gradient(158deg, #ff9b3b 0%, #ff7918 44%, #f15f05 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: inherit;
    padding-right: 0.08em;
    text-shadow: 0 3px 14px rgba(255, 106, 0, 0.12);
  }

  body[data-auth="landing"] .hero-copy h1 .hero-emphasis-action {
    position: relative;
  }

  body[data-auth="landing"] .hero-copy h1 .hero-emphasis-action::after {
    position: absolute;
    right: -8%;
    bottom: -0.18em;
    left: -5%;
    height: 0.24em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 30' preserveAspectRatio='none'%3E%3Cpath d='M7 18 C31 11 48 18 69 16 C91 13 110 18 129 15 C146 12 160 15 174 13' fill='none' stroke='%23ff7418' stroke-width='5.2' stroke-linecap='round'/%3E%3Cpath d='M18 22 C46 18 81 21 112 19' fill='none' stroke='%23ffad58' stroke-opacity='.52' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    content: "";
  }

  .landing-header {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 8px;
  }

  .landing-header-actions {
    justify-self: stretch;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .landing-header-actions .landing-header-trial,
  .landing-header-actions .landing-login-entry,
  .landing-header-actions .landing-main-entry {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }

  .landing-actions {
    width: 100%;
    justify-content: space-between;
  }

  .landing-action {
    flex: 1;
  }

  body[data-auth="landing"] .hero-copy h1 {
    font-size: 0;
    line-height: 0;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-proof { margin-top: 16px; padding: 11px 7px 10px; }
  .hero-proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-proof-item { padding: 2px 4px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.1); }
  .hero-proof-item:first-child { padding-left: 0; }
  .hero-proof-item:last-child { padding-right: 0; border-right: 0; }
  .hero-proof-item strong { font-size: clamp(15px, 4.8vw, 19px); line-height: 1.05; }
  .hero-proof-item span { margin-top: 5px; font-size: 9px; line-height: 1.15; white-space: nowrap; }
  .hero-proof-note { font-size: 11px; }

  .trial-grid,
  .theme-grid,
  .tools-grid,
  .results-grid,
  .faq-grid,
  .wechat-panel,
  .wechat-steps {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-social-proof {
    align-items: center;
  }

  .trial-grid,
  .theme-grid,
  .tools-grid,
  .results-grid,
  .faq-grid {
    display: grid;
  }

  body[data-auth="landing"] .landing-main .landing-section + .landing-section {
    margin-top: 16px;
  }

  body[data-auth="landing"] .section-head {
    margin-bottom: 10px;
  }

  body[data-auth="landing"] .section-head p {
    margin-top: 6px;
  }

  body[data-auth="landing"] .theme-grid,
  body[data-auth="landing"] .tools-grid,
  body[data-auth="landing"] .results-grid,
  body[data-auth="landing"] .faq-grid {
    gap: 8px;
  }

  body[data-auth="landing"] .theme-card {
    min-height: 56px;
    padding: 0 14px;
    gap: 10px;
  }

  body[data-auth="landing"] .theme-copy small {
    font-size: 10px;
  }

  body[data-auth="landing"] .tool-card {
    min-height: 72px;
    padding: 10px 14px;
  }

  body[data-auth="landing"] .tool-card p {
    margin-top: 3px;
  }

  body[data-auth="landing"] .faq-item summary {
    padding: 14px 16px;
  }

  .trial-card {
    min-height: 272px;
  }

  /* Keep trial covers readable on mobile without over-darkening the image. */
  .trial-card img {
    filter: brightness(0.78) saturate(1.03);
  }

  .trial-card::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.44)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 55%);
  }

  /* Mobile cards leave a clearer gap beneath the centered play button. */
  .trial-card-copy {
    bottom: 14px;
  }

  body[data-auth="landing"] .device-showcase {
    min-height: 320px;
  }

  body[data-auth="landing"] .device-showcase-image {
    padding: 12px 12px 8px;
  }

  body[data-auth="landing"] .result-card {
    min-height: 118px;
    padding: 10px;
  }

  body[data-auth="landing"] .result-number {
    gap: 2px;
    margin-left: 4px;
    font-size: 24px;
  }

  body[data-auth="landing"] .result-number span {
    font-size: 10px;
  }

  body[data-auth="landing"] .result-stage h3 {
    margin-top: 6px;
    font-size: 22px;
  }

  body[data-auth="landing"] .result-stage p {
    margin-top: 5px;
    font-size: 10px;
  }

  body[data-auth="landing"] .result-chart {
    width: 58%;
    height: 32px;
    margin: 8px 0 0 auto;
  }

  .theme-card {
    font-size: 16px;
  }

  .device-showcase {
    min-height: 480px;
  }

  .wechat-panel {
    padding: 20px;
  }

  .wechat-copy,
  .wechat-card {
    min-height: auto;
  }

  .desktop-device {
    left: 106px;
    width: calc(100% - 132px);
    max-width: 330px;
  }

  .tablet-device {
    right: 0;
    width: 160px;
  }

  .phone-device {
    left: 0;
  }

  .landing-footer {
    align-items: start;
    flex-direction: column;
  }

  .auth-modal {
    padding: 14px;
  }
}

/* Hugeicons 免费 Stroke Rounded：控制栏仅显示这一套图标。 */
body[data-view="watch"] .toolbar-hugeicon {
  display: block;
  width: 1em;
  height: 1em;
  font-size: 28px;
  line-height: 1;
  font-style: normal;
  color: currentColor;
}

body[data-view="watch"] .toolbar-hugeicon.hgi-stroke {
  font-family: "Hugeicons Stroke Rounded Local" !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-view="watch"] .toolbar-hugeicon.hgi-play::before { content: "䔻"; }

body[data-view="watch"] .toolbar-hugeicon.hgi-pause::before { content: "䓩"; }
body[data-view="watch"] .toolbar-hugeicon.hgi-dashboard-speed-01::before { content: "㻠"; }
body[data-view="watch"] .toolbar-hugeicon.hgi-subtitle::before { content: "䠝"; }
body[data-view="watch"] .toolbar-hugeicon.hgi-repeat::before { content: "䘁"; }
body[data-view="watch"] .toolbar-hugeicon.hgi-previous::before { content: "䖌"; }
body[data-view="watch"] .toolbar-hugeicon.hgi-next::before { content: "䑮"; }
body[data-view="watch"] .toolbar-hugeicon.hgi-favourite::before { content: "㿲"; }

body[data-view="watch"] #playToggleBtn .toolbar-hugeicon {
  font-size: 27px;
}

body[data-view="watch"] #speedMenuBtn .toolbar-hugeicon,
body[data-view="watch"] #mobileSubtitleModeBtn .toolbar-hugeicon,
body[data-view="watch"] #loopToggleBtn .toolbar-hugeicon,
body[data-view="watch"] #mobilePrevVideoBtn .toolbar-hugeicon,
body[data-view="watch"] #mobileNextVideoBtn .toolbar-hugeicon,
body[data-view="watch"] #mobileFavoriteBtn .toolbar-hugeicon {
  font-size: 26px;
}

/* Lucide：不依赖外网字体，所有图标以同一组 SVG 输出。 */
body[data-view="watch"] .toolbar-lucide-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 821px) {
  body[data-view="watch"] .player-tools {
    grid-template-columns: 44px minmax(0, 1fr) minmax(276px, 0.58fr);
    column-gap: 8px;
  }

  body[data-view="watch"] #watchTransportButtons,
  body[data-view="watch"] #playToggleBtn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-basis: 44px;
  }

  body[data-view="watch"] #watchTimeline {
    gap: 12px;
  }

  body[data-view="watch"] #watchActionButtons {
    width: 100%;
    height: 44px;
    display: grid !important;
    grid-template-columns: repeat(6, 38px);
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  body[data-view="watch"] #watchActionButtons > *,
  body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn,
  body[data-view="watch"] #speedButtons,
  body[data-view="watch"] #speedMenuBtn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn {
    display: inline-grid;
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: text;
  -webkit-user-select: text;
  caret-color: transparent;
  background:
    radial-gradient(circle at 48% -8%, rgba(255, 106, 0, 0.18), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 106, 0, 0.08), transparent 22%),
    linear-gradient(180deg, #090909 0%, #050606 58%, #030303 100%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
svg,
img,
video,
[role="button"] {
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  caret-color: auto;
}

body[data-auth="locked"],
body[data-auth="checking"] {
  overflow: hidden;
}

@media (min-width: 821px) {
  html:has(body[data-auth="locked"]),
  html:has(body[data-auth="checking"]) {
    height: 100%;
    overflow: hidden;
  }

  body[data-auth="locked"],
  body[data-auth="checking"] {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body[data-auth="locked"] .auth-shell,
  body[data-auth="checking"] .auth-shell {
    height: 100dvh;
    min-height: 0;
    margin-top: 0;
  }

  body[data-auth="locked"] .auth-card,
  body[data-auth="checking"] .auth-card,
  body[data-auth="locked"] .auth-hero,
  body[data-auth="checking"] .auth-hero {
    min-height: 0;
  }
}

body[data-auth="locked"] .app-shell {
  display: none;
}

body[data-auth="public"] .auth-shell {
  display: none;
}

body[data-auth="public"] .app-shell {
  display: grid;
}

/* 首页启动时先完成首批数据渲染，避免空应用壳短暂闪出。 */
html:not([data-app-ready]) .app-shell {
  visibility: hidden;
}

/* 试看路由在首帧先隐藏登录壳，等待现有试看逻辑切换到学习页面。 */
html[data-route="preview"] body[data-auth="locked"] .auth-shell,
html[data-route="preview"] body[data-auth="checking"] .auth-shell {
  display: none;
}

body[data-auth="checking"] .app-shell {
  display: none;
}

body[data-auth="authed"] .auth-shell {
  display: none;
}

body[data-auth="checking"] .auth-submit {
  pointer-events: none;
  opacity: 0.85;
}

html[data-view="watch"],
body[data-view="watch"] {
  height: 100vh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(255, 106, 0, 0.82);
  outline-offset: 3px;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

body[data-view="watch"] .app-shell {
  grid-template-columns: minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.auth-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 100vh;
  padding: 24px 36px 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 122, 24, 0.18), transparent 24%),
    radial-gradient(circle at 80% 16%, rgba(90, 167, 255, 0.12), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 106, 0, 0.08), transparent 32%),
    linear-gradient(180deg, #090b10 0%, #050608 56%, #030406 100%);
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-shell::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 90px),
    radial-gradient(circle at 32% 50%, rgba(255, 126, 31, 0.12), transparent 22%),
    radial-gradient(circle at 70% 42%, rgba(255, 180, 88, 0.06), transparent 25%);
  opacity: 0.95;
}

.auth-shell::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.02));
  opacity: 0.3;
}

.auth-shell-header,
.auth-shell-footer,
.auth-card {
  position: relative;
  z-index: 1;
}

.auth-shell-header,
.auth-shell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.auth-shell-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-shell-footer {
  color: rgba(186, 197, 219, 0.84);
  font-size: 13px;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.auth-shell-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(247, 248, 255, 0.88);
}

.auth-home-link,
.auth-home-utility {
  color: inherit;
  text-decoration: none;
}

.auth-home-link {
  transition: transform 160ms ease, opacity 160ms ease;
}

.auth-home-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.auth-home-utility {
  border-color: rgba(255, 106, 0, 0.22);
}

.auth-utility {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 700;
}

.auth-utility-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.auth-card {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 24px;
  padding: 22px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 106, 0, 0.08), rgba(90, 167, 255, 0.05)),
    rgba(8, 9, 10, 0.92);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 580px;
  padding: 30px 32px 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 140, 54, 0.18), transparent 18%),
    radial-gradient(circle at 76% 30%, rgba(255, 140, 54, 0.08), transparent 22%),
    radial-gradient(circle at 16% 80%, rgba(255, 140, 54, 0.18), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014));
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 44%, rgba(255, 155, 54, 0.28), transparent 10%),
    radial-gradient(circle at 74% 48%, rgba(255, 205, 130, 0.12), transparent 17%),
    radial-gradient(circle at 70% 56%, rgba(255, 106, 0, 0.16), transparent 28%);
  opacity: 0.9;
  pointer-events: none;
}

.auth-brand {
  font-size: 20px;
}

.auth-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  flex: 1;
  align-items: center;
  justify-items: center;
  padding: 24px 0 22px;
  text-align: center;
}

.auth-hero-copy::before,
.auth-hero-copy::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 126, 31, 0.92);
  pointer-events: none;
}

.auth-hero-copy::before {
  top: 28px;
  left: 86px;
  border-right: 0;
  border-bottom: 0;
}

.auth-hero-copy::after {
  right: 82px;
  bottom: 28px;
  border-left: 0;
  border-top: 0;
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(58px, 5.8vw, 84px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  font-weight: 900;
  text-rendering: geometricPrecision;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.26);
}

.auth-hero h1 span {
  display: block;
}

.auth-hero h1 span:last-child {
  color: var(--orange);
}

.auth-hero h1 + p {
  margin-top: 22px;
  max-width: 17rem;
  color: rgba(247, 248, 255, 0.72);
}

.auth-hero-copy p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(247, 248, 255, 0.8);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.auth-hero p {
  max-width: 32rem;
}

.auth-panel {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px 22px 20px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(18, 19, 25, 0.94), rgba(13, 14, 19, 0.94)),
    rgba(13, 14, 15, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.28);
}

.auth-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 125, 32, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(90, 167, 255, 0.05), transparent 24%);
  pointer-events: none;
}

.auth-panel > * {
  position: relative;
  z-index: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab,
.auth-submit {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.auth-tab {
  background: transparent;
  color: rgba(247, 248, 255, 0.58);
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.98), rgba(255, 154, 61, 0.96));
  color: #fff;
  box-shadow: 0 14px 32px rgba(255, 106, 0, 0.22);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 10px;
}

.auth-field span {
  color: rgba(219, 227, 246, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-field input {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-field input:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.auth-field input::placeholder {
  color: rgba(156, 167, 190, 0.66);
}

.auth-field input:focus-visible {
  outline-offset: 2px;
  border-color: rgba(255, 141, 55, 0.8);
  box-shadow:
    0 0 0 1px rgba(255, 141, 55, 0.28),
    0 0 0 4px rgba(255, 106, 0, 0.12);
}

.auth-submit {
  margin-top: 6px;
  background: linear-gradient(135deg, #ff6a00, #ff9a3d);
  color: #fff;
  box-shadow:
    0 16px 32px rgba(255, 106, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.auth-home-action {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid rgba(255, 137, 35, 0.72);
  border-radius: 14px;
  background: rgba(255, 112, 15, 0.08);
  color: #ff9a3d;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.auth-home-action:hover,
.auth-home-action:focus-visible {
  border-color: rgba(255, 154, 61, 0.95);
  background: rgba(255, 112, 15, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.auth-register-link {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: rgba(219, 227, 246, 0.7);
  font-size: 13px;
  text-decoration: none;
}

.auth-register-link span {
  color: var(--orange);
  font-weight: 800;
}

.auth-register-link:hover,
.auth-register-link:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.auth-message {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  color: rgba(247, 248, 255, 0.9);
  line-height: 1.5;
}

.auth-message.success {
  border-color: rgba(61, 217, 167, 0.3);
  color: #adffe3;
}

.auth-message.warn,
.auth-message.error {
  border-color: rgba(255, 106, 0, 0.32);
  color: #ffd6bf;
}

.auth-footnote {
  margin: 0;
  color: rgba(156, 167, 190, 0.82);
  font-size: 12px;
  line-height: 1.6;
}

body[data-view="categories"] .app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
}

body[data-view="categories"] .rightbar {
  display: none;
}

body[data-view="settings"] .rightbar {
  pointer-events: none;
}

body[data-view="watch"] .rightbar {
  display: none;
}

body[data-view="watch"] .sidebar,
body[data-view="watch"] .topbar {
  display: none;
}

body[data-view="watch"] .mobile-tabbar {
  display: none;
}

body[data-view="watch"] .main {
  height: 100vh;
  overflow: hidden;
  padding: 20px 32px 18px;
}

body[data-view="watch"] #backHomeBtn {
  position: absolute;
  top: 20px;
  left: 32px;
  z-index: 5;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

body[data-view="watch"] #backHomeBtn:hover,
body[data-view="watch"] #backHomeBtn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 12, 0.96), rgba(5, 6, 6, 0.96)),
    rgba(7, 8, 8, 0.9);
  box-shadow: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 9px;
  background: transparent;
  box-shadow: 0 0 22px rgba(255, 106, 0, 0.38);
}

.nav-list {
  display: grid;
  gap: 10px;
  margin-top: 42px;
}

.nav-item,
.ghost-btn,
.text-btn {
  border: 0;
  color: var(--text);
  background: transparent;
}

.nav-item {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 12px 13px;
  border-radius: 10px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-item span {
  font-size: 14px;
}

.nav-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  color: currentColor;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(90deg, rgba(255, 106, 0, 0.34), rgba(255, 106, 0, 0.12), rgba(255, 106, 0, 0.02));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.22), 0 12px 30px rgba(255, 106, 0, 0.1);
}

.nav-item.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: -13px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a1c, var(--orange));
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.62);
  content: "";
}

.nav-item:hover {
  transform: translateX(2px);
}

.mobile-tabbar {
  display: none;
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.muted {
  color: var(--muted);
}

.main {
  position: relative;
  z-index: 1;
  padding: 22px 30px 44px;
  min-width: 0;
}

.site-compliance-footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

body[data-view="watch"] .site-compliance-footer {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

body[data-view]:not([data-view="home"]) .topbar {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 520px;
  max-width: 620px;
  height: 48px;
  padding: 0 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 15, 15, 0.9);
  color: var(--muted);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.streak-badge {
  flex: 0 0 auto;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.home-filter-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.home-filter-toggle:hover,
.home-filter-toggle:focus-visible,
.home-filter-toggle.active {
  border-color: var(--line-warm);
  color: var(--orange);
}

.home-filter-toggle-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-filters {
  display: grid;
  gap: 0;
  margin: 16px 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(25, 18, 15, 0.78);
  box-sizing: border-box;
}

.home-filters[hidden] {
  display: none !important;
}

.home-filter-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 8px 0;
}

.home-filter-row + .home-filter-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-filter-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 32px;
  white-space: nowrap;
}

.home-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.home-filter-choice {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.home-filter-choice:hover,
.home-filter-choice.active {
  border-color: rgba(255, 106, 0, 0.35);
  background: rgba(255, 106, 0, 0.16);
  color: var(--text);
}

.home-filter-count { color: var(--muted); font-size: 13px; }
.home-filter-clear { border: 0; background: transparent; color: #ff8a3d; font: inherit; font-size: 13px; cursor: pointer; }
.home-filter-clear.hidden { display: none; }

@media (min-width: 821px) {
  .search-box {
    position: relative;
  }

  .search-history-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: grid;
    width: 100%;
    max-height: 320px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(28, 26, 31, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  }

  .search-history-menu[hidden] {
    display: none;
  }

  .search-history-item {
    width: 100%;
    padding: 12px 14px;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }

  .search-history-item:hover,
  .search-history-item:focus-visible {
    background: rgba(255, 106, 0, 0.12);
    color: #fff;
    outline: none;
  }
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.home-heading {
  margin-top: -6px;
  margin-bottom: 2px;
}

.home-heading h1 {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.06;
}

.home-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.rightbar-home-heading {
  display: none;
}

@media (min-width: 1181px) {
  body[data-view="home"] .main .home-greeting {
    display: none;
  }

  body[data-view="home"] .rightbar .rightbar-home-heading {
    display: block;
    margin: 0;
  }
}

.hero {
  min-height: 315px;
  padding: 68px 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero h1 {
  margin: 0;
  font-size: 44px;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  margin: 16px 0 28px;
  font-size: 19px;
}

.primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--orange), #ff8b1a);
  color: white;
  font-weight: 800;
}

.time-picks,
.categories,
section {
  margin-top: 24px;
}

.home-categories {
  position: relative;
  z-index: 3;
  margin-top: 22px;
  pointer-events: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: 19px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
}

.time-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 1px 9px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 18, 19, 0.9);
  color: var(--text);
  text-align: left;
}

.time-card span {
  color: var(--muted);
}

.time-card .time-icon {
  grid-row: span 2;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 106, 0, 0.13);
  color: var(--orange);
  font-size: 9px;
}

.time-card.highlight {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
}

.time-card.active {
  border-color: rgba(255, 106, 0, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.18);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.video-count-title {
  justify-content: flex-end;
}

.text-btn {
  color: var(--muted);
}

.category-rail {
  display: grid;
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  pointer-events: auto;
}

.category-page {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1040px;
  margin-top: 18px;
}

.category-pill,
.large-category {
  position: relative;
  z-index: 3;
  min-width: 0;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--surface);
  color: var(--text);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.category-pill {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
}

.large-category {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 22px auto;
  justify-items: center;
  align-items: center;
  min-height: 92px;
  padding: 14px 12px 12px;
  font-weight: 800;
  text-align: center;
}

.category-pill.active,
.large-category.active {
  border-color: rgba(255, 106, 0, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 106, 0, 0.18), rgba(255, 106, 0, 0.06)),
    rgba(17, 18, 19, 0.95);
  color: #fff;
}

.category-pill:hover,
.large-category:hover {
  border-color: var(--line-warm);
  transform: translateY(-1px);
}

.category-name {
  grid-column: auto;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-icon {
  grid-column: 1;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.large-category .category-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
}

.category-icon svg {
  width: 11px;
  height: 11px;
  fill: none;
  color: var(--orange);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.large-category .category-icon svg {
  width: 16px;
  height: 16px;
}

.category-arrow {
  display: none;
  color: var(--muted);
  font-size: 14px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
}

.home-categories {
  margin-top: 14px;
}

.home-categories .section-title {
  display: none;
}

.home-categories .category-rail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(8px, 1.15vw, 24px);
  overflow: hidden;
  padding: 6px 0 2px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-categories .category-rail::-webkit-scrollbar {
  display: none;
}

.home-categories .category-pill {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 28px auto;
  justify-items: center;
  align-items: center;
  min-width: 0;
  min-height: 74px;
  padding: 10px 8px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.home-categories .category-pill + .category-pill {
  box-shadow: none;
}

.home-categories .category-pill.active {
  color: var(--orange);
  background: transparent;
  box-shadow: none;
  position: relative;
}

.home-categories .category-pill.active::after {
  position: absolute;
  right: clamp(12px, 1.1vw, 22px);
  bottom: 1px;
  left: clamp(12px, 1.1vw, 22px);
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  content: "";
}

.home-categories .category-pill .category-arrow {
  display: none;
}

.home-categories .category-pill .category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 3px;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.home-categories .category-pill .category-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  color: rgba(0, 0, 0, 0.92);
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.home-categories .category-pill .category-icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: saturate(1.16) contrast(1.03);
}

/* 分类图片的透明留白不同；按有效图形尺寸做视觉归一，和职场图标对齐。 */
.home-categories .category-pill .category-icon img[data-category-icon="all.png"],
.home-categories .category-pill .category-icon img[data-category-icon="daily.png"] {
  transform: scale(1.55);
}

.home-categories .category-pill .category-icon img[data-category-icon="interview.png"] {
  transform: scale(1.45);
}

.home-categories .category-pill .category-icon img[data-category-icon="scene.png"] {
  transform: scale(1.46);
}

.home-categories .category-pill .category-icon img[data-category-icon="topic.png"] {
  transform: scale(1.27);
}

.home-categories .category-pill .category-icon img[data-category-icon="travel.png"] {
  transform: scale(1.31);
}

.home-categories .category-pill .category-icon img[data-category-icon="viewpoint.png"] {
  transform: scale(1.4);
}

.home-categories .category-pill .category-icon img[data-category-icon="workplace.png"] {
  transform: scale(1);
}

.home-categories .category-pill .category-name {
  grid-column: auto;
  font-weight: inherit;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  font-size: 12px;
  color: #fff;
}

.video-grid-sentinel {
  height: 1px;
  margin-top: 1px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

.video-card:hover {
  border-color: rgba(255, 106, 0, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10.4;
  background: #222;
}

.public-open-badge,
.public-login-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.28);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(255, 106, 0, 0.52);
  border-radius: 8px;
  background: rgba(18, 13, 10, 0.76);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 821px) {
  .video-card {
    border-color: rgba(255, 255, 255, 0.18);
  }

  .video-card:hover {
    border-color: rgba(255, 255, 255, 0.32);
  }

  .episode-badge {
    border-color: rgba(255, 255, 255, 0.52);
  }
}

.thumb .duration-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  box-sizing: border-box;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.72);
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.card-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.card-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ff9638);
}

.video-favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.video-favorite.active {
  border-color: rgba(255, 106, 0, 0.66);
  background: rgba(255, 106, 0, 0.18);
  color: var(--orange);
}

.video-info {
  padding: 10px 12px 12px;
}

.video-info h3 {
  min-height: 34px;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.25;
}

.video-info p,
.video-info .meta-row {
  color: var(--muted);
  font-size: 11px;
}

.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.tag,
.meta-row span {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 10px;
}

.tag {
  color: #93b7ff;
  border: 1px solid rgba(93, 146, 255, 0.35);
  background: rgba(72, 130, 255, 0.12);
}

.tag-row .tag:nth-child(2n) {
  color: #ffc48d;
  border-color: rgba(255, 154, 61, 0.35);
  background: rgba(255, 106, 0, 0.13);
}

.tag-row .tag:nth-child(3n) {
  color: #aeeecf;
  border-color: rgba(80, 227, 194, 0.35);
  background: rgba(80, 227, 194, 0.11);
}

.tag-row .tag:nth-child(4n) {
  color: #ffb8d7;
  border-color: rgba(255, 156, 207, 0.34);
  background: rgba(255, 156, 207, 0.1);
}

.author-tag {
  color: #5ea0ff;
}

.difficulty-tag {
  color: #ffd16b;
  border-color: rgba(255, 193, 71, 0.35);
  background: rgba(255, 193, 71, 0.13);
}

.rightbar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 72px 24px 24px 0;
}

.stat-card {
  padding: 18px;
}

.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-head h3 {
  margin: 0;
}

.stat-mini-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.stat-mini-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.stat-card:first-child {
  background:
    radial-gradient(circle at 66% 44%, rgba(255, 106, 0, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    var(--surface);
  border-color: rgba(255, 106, 0, 0.18);
}

.ring {
  display: grid;
  position: relative;
  width: 124px;
  height: 124px;
  margin: 16px auto 14px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(18, 19, 19, 0.95) 54%, transparent 56%),
    conic-gradient(var(--orange) var(--ring-progress, 0deg), rgba(255, 106, 0, 0.18) 0);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.32), 0 0 22px rgba(255, 106, 0, 0.12);
}

.ring.empty {
  background:
    radial-gradient(circle at center, rgba(18, 19, 19, 0.95) 54%, transparent 56%),
    conic-gradient(rgba(255, 106, 0, 0.18) 0deg, rgba(255, 106, 0, 0.18) 360deg);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.32);
}

.ring::before {
  position: absolute;
  inset: -22px;
  border: 1px dashed rgba(255, 106, 0, 0.24);
  border-radius: 50%;
  content: "";
}

.ring span {
  font-size: 32px;
  font-weight: 800;
}

.ring small {
  color: var(--muted);
}

/* Web 端：将学习分钟数和单位视为一个居中的整体，避免网格行将两者拉开。 */
@media (min-width: 821px) {
  .ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .ring span {
    line-height: 1;
  }

  .ring small {
    margin-top: 6px;
    line-height: 1;
  }
}

.daily-progress {
  height: 7px;
  margin: 12px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.daily-progress span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ff8f28);
  box-shadow: 0 0 18px rgba(255, 106, 0, 0.5);
}

.weekly-line {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.week-dots {
  display: flex;
  gap: 10px;
}

.week-dots i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.week-dots i.done {
  border-color: rgba(255, 106, 0, 0.86);
  background: linear-gradient(135deg, var(--orange), #ff8f28);
  box-shadow: 0 0 16px rgba(255, 106, 0, 0.34);
}

.week-dots i.done::before {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  content: "✓";
}

.recent-list {
  display: grid;
  gap: 12px;
}

.recent-list button {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.recent-list img {
  width: 62px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1.18fr) minmax(480px, 0.82fr);
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 48px auto 0;
  height: calc(100vh - 88px);
  align-items: stretch;
  overflow: hidden;
}

.player-column {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.player-stage {
  position: relative;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}

.sentence-counter {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  pointer-events: none;
  color: #fff;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.72);
}

.watch-episode-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid rgba(255, 106, 0, 0.52);
  border-radius: 8px;
  background: rgba(18, 13, 10, 0.76);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.sentence-counter b {
  color: var(--orange);
  font-weight: 900;
}

.player-tools {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  margin-inline: 0;
  min-height: 68px;
  padding: 8px 16px;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(22, 24, 25, 0.78);
  color: var(--muted);
  font-size: 14px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.play-toggle {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.time-readout {
  min-width: 38px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.progress-bar {
  flex: 1 1 260px;
  min-width: 120px;
  --progress-fill: 0%;
  appearance: none;
  cursor: pointer;
  touch-action: pan-x;
  accent-color: var(--orange);
  background: linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) var(--progress-fill),
    rgba(255, 255, 255, 0.18) var(--progress-fill),
    rgba(255, 255, 255, 0.18) 100%
  );
}

.progress-bar::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) var(--progress-fill),
    rgba(255, 255, 255, 0.18) var(--progress-fill),
    rgba(255, 255, 255, 0.18) 100%
  );
}

.progress-bar::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  appearance: none;
  -webkit-appearance: none;
}

.progress-bar::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) var(--progress-fill),
    rgba(255, 255, 255, 0.18) var(--progress-fill),
    rgba(255, 255, 255, 0.18) 100%
  );
}

.progress-bar::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  -moz-appearance: none;
}

.speed-menu {
  position: relative;
  flex: 0 0 auto;
}

.subtitle-mode-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.speed-menu-trigger,
.speed-menu-options button,
.subtitle-mode-buttons button,
.player-icon-btn {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.mobile-video-step,
.mobile-subtitle-mode,
.mobile-video-favorite {
  display: none;
}

.speed-menu-trigger {
  min-width: 42px;
  padding: 0 4px;
  white-space: nowrap;
  color: var(--orange);
}

.speed-menu-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  display: grid;
  min-width: 92px;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 18, 19, 0.98);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.speed-menu-options button {
  width: 100%;
  padding: 0 12px;
  text-align: center;
}

.player-icon-btn {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  font-size: 20px;
}

.loop-toggle {
  width: auto;
  min-width: 46px;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.player-icon-btn:hover,
.speed-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.speed-menu-trigger,
.speed-menu-options button.active,
.subtitle-mode-buttons button.active,
.loop-toggle.active {
  color: var(--orange);
}

@media (min-width: 769px) {
  body[data-view="watch"] {
    --tune-controls-height: 50px;
    --tune-controls-pad-x: 9px;
    --tune-controls-pad-y: 5px;
    --tune-controls-gap: 16px;
    --tune-controls-radius: 13px;
    --tune-controls-width: 100%;
    --tune-play-size: 28px;
    --tune-play-button-y: 0px;
    --tune-play-icon-size: 25px;
    --tune-play-icon-x: 1px;
    --tune-play-icon-y: 0px;
    --tune-pause-icon-x: 0px;
    --tune-pause-icon-y: 0px;
    --tune-progress-width: 100%;
    --tune-progress-height: 5px;
    --tune-progress-thumb: 14px;
    --tune-time-size: 14px;
    --tune-toolbar-y: 0px;
    --tune-time-y: 0px;
    --tune-speed-width: 31px;
    --tune-speed-height: 20px;
    --tune-speed-font: 10px;
    --tune-speed-radius: 7px;
    --tune-speed-y: -2px;
    --tune-icon-button: 31px;
    --tune-actions-gap: 5px;
  }

  body[data-view="watch"] .app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  body[data-view="watch"] .main {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
  }

  body[data-view="watch"] .watch-layout {
    width: 100%;
    max-width: none;
    height: calc(100vh - 88px);
    margin: 76px 0 0;
    align-items: start;
    overflow: hidden;
  }

  body[data-view="watch"] .player-column,
  body[data-view="watch"] .player-stage {
    overflow: hidden;
  }

  body[data-view="watch"] #backHomeBtn {
    display: inline-flex;
    align-items: center;
    max-width: min(520px, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0;
  }

  body[data-view="watch"] #backHomeBtn::before {
    content: "←";
    flex: 0 0 auto;
    margin-right: 8px;
    font-size: 14px;
    line-height: 1;
  }

  body[data-view="watch"] #backHomeBtn::after {
    content: attr(data-watch-title);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1;
  }

  body[data-view="watch"] .video-stepper {
    display: none;
  }

  body[data-view="watch"] .player-tools {
    width: min(100%, var(--tune-controls-width));
    max-width: var(--tune-controls-width);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) max-content;
    gap: var(--tune-controls-gap);
    align-items: center;
    padding: var(--tune-controls-pad-y) var(--tune-controls-pad-x);
    height: var(--tune-controls-height);
    min-height: var(--tune-controls-height);
    border-radius: var(--tune-controls-radius);
    background: rgba(17, 18, 19, 0.92);
    overflow: visible;
    transform: translateY(var(--tune-toolbar-y));
  }

  body[data-view="watch"] #watchTransportButtons {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--tune-play-size);
    min-width: 0;
  }

  body[data-view="watch"] #watchTimeline {
    order: 2;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: var(--tune-controls-gap);
    align-items: center;
    height: var(--tune-play-size);
    min-width: 0;
  }

  body[data-view="watch"] #playToggleBtn {
    width: var(--tune-play-size);
    height: var(--tune-play-size);
    min-width: var(--tune-play-size);
    flex: 0 0 var(--tune-play-size);
    display: inline-grid;
    place-items: center;
    align-self: center;
    padding: 0;
    box-sizing: border-box;
    font-size: 0;
    position: relative;
    line-height: 1;
    transform: translate(var(--tune-play-button-x), var(--tune-play-button-y));
  }

  body[data-view="watch"] #currentTimeText {
    order: 1;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--tune-time-size);
    font-weight: 500;
    min-width: 41px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transform: translateY(var(--tune-time-y));
  }

  body[data-view="watch"] #progressBar {
    order: 2;
    width: var(--tune-progress-width);
    height: var(--tune-play-size);
    min-width: 0;
    max-width: none;
    justify-self: center;
    align-self: center;
    display: block;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    touch-action: pan-x;
    accent-color: var(--orange);
    transform: translate(var(--tune-progress-x), var(--tune-progress-y));
  }

  body[data-view="watch"] #durationTimeText {
    order: 3;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--tune-time-size);
    font-weight: 500;
    min-width: 41px;
    text-align: left;
    font-variant-numeric: tabular-nums;
    transform: translateY(var(--tune-time-y));
  }

  body[data-view="watch"] #watchActionButtons {
    order: 3;
    display: flex;
    gap: var(--tune-actions-gap);
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    align-self: center;
    transform: none;
  }

  body[data-view="watch"] #watchActionButtons > *,
  body[data-view="watch"] #watchTransportButtons > * {
    height: var(--tune-icon-button);
    align-items: center;
    justify-content: center;
  }

  body[data-view="watch"] #watchActionButtons > button,
  body[data-view="watch"] #watchTransportButtons > button {
    display: inline-grid;
  }

  body[data-view="watch"] #speedButtons {
    order: 1;
    width: var(--tune-speed-width);
    height: var(--tune-icon-button);
    min-width: 0;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    transform: none;
  }

  body[data-view="watch"] #speedMenuBtn {
    width: var(--tune-speed-width);
    min-width: 0;
    min-height: var(--tune-speed-height);
    height: var(--tune-speed-height);
    padding: 0;
    display: inline-grid;
    place-items: center;
    align-self: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--tune-speed-radius);
    color: #fff;
    font-size: var(--tune-speed-font);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    background: transparent;
    transform: translateY(var(--tune-speed-y));
  }

  body[data-view="watch"] #mobileSubtitleModeBtn {
    order: 2;
    display: inline-grid;
    place-items: center;
    width: var(--tune-icon-button);
    min-width: 0;
    height: var(--tune-icon-button);
    padding: 0;
    font-size: 0;
    line-height: 1;
    flex: 0 0 auto;
    transform: none;
  }

  body[data-view="watch"] #loopToggleBtn {
    order: 3;
    display: inline-grid;
    place-items: center;
    font-size: 0;
    min-width: 0;
    width: var(--tune-icon-button);
    height: var(--tune-icon-button);
    padding: 0;
    line-height: 1;
    flex: 0 0 auto;
    transform: none;
  }

  body[data-view="watch"] #mobilePrevVideoBtn {
    order: 4;
    display: inline-grid;
    place-items: center;
    width: var(--tune-icon-button);
    min-width: 0;
    height: var(--tune-icon-button);
    font-size: 0;
    line-height: 1;
    flex: 0 0 auto;
    transform: none;
  }

  body[data-view="watch"] #mobileNextVideoBtn {
    order: 5;
    display: inline-grid;
    place-items: center;
    width: var(--tune-icon-button);
    min-width: 0;
    height: var(--tune-icon-button);
    font-size: 0;
    line-height: 1;
    flex: 0 0 auto;
    transform: none;
  }

  body[data-view="watch"] #watchFavoriteBtn {
    order: 6;
    display: inline-grid;
    place-items: center;
    width: var(--tune-icon-button);
    min-width: 0;
    height: var(--tune-icon-button);
    font-size: 0;
    line-height: 1;
    flex: 0 0 auto;
    transform: none;
  }

  body[data-view="watch"] #fullscreenBtn {
    order: 7;
    display: inline-grid;
    place-items: center;
    width: var(--tune-icon-button);
    min-width: 0;
    height: var(--tune-icon-button);
    font-size: 0;
    line-height: 1;
    flex: 0 0 auto;
    transform: translateY(var(--tune-toolbar-y));
  }

  body[data-view="watch"] #playToggleBtn::before,
  body[data-view="watch"] #mobileSubtitleModeBtn::before,
  body[data-view="watch"] #loopToggleBtn::before,
  body[data-view="watch"] #mobilePrevVideoBtn::before,
  body[data-view="watch"] #mobileNextVideoBtn::before,
  body[data-view="watch"] #watchFavoriteBtn::before {
    content: "";
    display: block;
    width: var(--tune-icon-size);
    height: var(--tune-icon-size);
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }

  body[data-view="watch"] #playToggleBtn::before {
    width: var(--tune-play-icon-size);
    height: var(--tune-play-icon-size);
    margin-left: 0;
    color: #fff;
    transform: translate(0, 0);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #playToggleBtn[aria-label="暂停"]::before {
    margin-left: 0;
    transform: translate(0, 0);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 5h4v14H7zM13 5h4v14h-4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 5h4v14H7zM13 5h4v14h-4z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #mobileSubtitleModeBtn::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm0 2v10h16V7H4zm3 6h5v2H7v-2zm7 0h3v2h-3v-2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm0 2v10h16V7H4zm3 6h5v2H7v-2zm7 0h3v2h-3v-2z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #loopToggleBtn::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7h9.2l-2.1-2.1L15.5 3.5 20 8l-4.5 4.5-1.4-1.4L16.2 9H7a3 3 0 0 0-3 3v1H2v-1a5 5 0 0 1 5-5zm10 10H7.8l2.1 2.1-1.4 1.4L4 16l4.5-4.5 1.4 1.4L7.8 15H17a3 3 0 0 0 3-3v-1h2v1a5 5 0 0 1-5 5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 7h9.2l-2.1-2.1L15.5 3.5 20 8l-4.5 4.5-1.4-1.4L16.2 9H7a3 3 0 0 0-3 3v1H2v-1a5 5 0 0 1 5-5zm10 10H7.8l2.1 2.1-1.4 1.4L4 16l4.5-4.5 1.4 1.4L7.8 15H17a3 3 0 0 0 3-3v-1h2v1a5 5 0 0 1-5 5z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #loopToggleBtn[data-playback-mode="single"]::after {
    content: "1";
    position: absolute;
    right: 2px;
    bottom: 1px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    font-weight: 900;
  }

  body[data-view="watch"] #loopToggleBtn[data-playback-mode="shuffle"]::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 3h5v5h-2V6.4l-4.9 4.9-1.4-1.4L18.6 5H17V3zM2 7h3.5c2.2 0 3.5 1.1 4.8 2.7l-1.4 1.4C7.8 9.7 6.9 9 5.5 9H2V7zm12.7 7.3 1.4-1.4 4 4V15h2v5h-5v-2h1.8l-4.2-3.7zM2 17h3.5c1.4 0 2.4-.7 3.5-2.1l5.7-7.2C16 6.1 17.4 5 19.5 5H22v2h-2.5c-1.3 0-2.2.7-3.4 2.1l-5.7 7.2C9.1 17.9 7.7 19 5.5 19H2v-2z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 3h5v5h-2V6.4l-4.9 4.9-1.4-1.4L18.6 5H17V3zM2 7h3.5c2.2 0 3.5 1.1 4.8 2.7l-1.4 1.4C7.8 9.7 6.9 9 5.5 9H2V7zm12.7 7.3 1.4-1.4 4 4V15h2v5h-5v-2h1.8l-4.2-3.7zM2 17h3.5c1.4 0 2.4-.7 3.5-2.1l5.7-7.2C16 6.1 17.4 5 19.5 5H22v2h-2.5c-1.3 0-2.2.7-3.4 2.1l-5.7 7.2C9.1 17.9 7.7 19 5.5 19H2v-2z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #mobilePrevVideoBtn::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 5h2v14H6V5zm3 7 9-7v14l-9-7z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 5h2v14H6V5zm3 7 9-7v14l-9-7z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #mobileNextVideoBtn::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 5h2v14h-2V5zM6 5l9 7-9 7V5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 5h2v14h-2V5zM6 5l9 7-9 7V5z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #watchFavoriteBtn::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.7 1.1 6.6L12 17.6l-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2.5zm0 4.6-1.6 3.2-3.5.5 2.6 2.5-.6 3.5 3.1-1.7 3.1 1.7-.6-3.5 2.6-2.5-3.5-.5L12 7.1z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.7 1.1 6.6L12 17.6l-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2.5zm0 4.6-1.6 3.2-3.5.5 2.6 2.5-.6 3.5 3.1-1.7 3.1 1.7-.6-3.5 2.6-2.5-3.5-.5L12 7.1z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #watchFavoriteBtn.active::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.7 1.1 6.6L12 17.6l-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2.5z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 2.5 2.9 6 6.6.9-4.8 4.7 1.1 6.6L12 17.6l-5.8 3.1 1.1-6.6-4.8-4.7 6.6-.9L12 2.5z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #playToggleBtn::before,
  body[data-view="watch"] #mobileSubtitleModeBtn::before,
  body[data-view="watch"] #loopToggleBtn::before,
  body[data-view="watch"] #mobilePrevVideoBtn::before,
  body[data-view="watch"] #mobileNextVideoBtn::before,
  body[data-view="watch"] #watchFavoriteBtn::before {
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  body[data-view="watch"] #playToggleBtn::before {
    width: var(--tune-play-icon-size);
    height: var(--tune-play-icon-size);
    margin: 0;
    background-size: var(--tune-play-icon-size) var(--tune-play-icon-size);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 6.25v11.5L17.7 12 9 6.25z'/%3E%3C/svg%3E");
    transform: translate(var(--tune-play-icon-x), var(--tune-play-icon-y));
  }

  body[data-view="watch"] #playToggleBtn[aria-label="暂停"]::before {
    width: var(--tune-play-icon-size);
    height: var(--tune-play-icon-size);
    margin: 0;
    background-size: var(--tune-play-icon-size) var(--tune-play-icon-size);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23ffffff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5 5.8h3.4v12.4H7.5V5.8zm5.6 0h3.4v12.4h-3.4V5.8z'/%3E%3C/svg%3E");
    transform: translate(var(--tune-pause-icon-x), var(--tune-pause-icon-y));
  }

  body[data-view="watch"] #mobileSubtitleModeBtn::before {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23e8ebf2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='5' width='16' height='14' rx='2.5'/%3E%3Cpath d='M8 11h8M8 15h5'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #loopToggleBtn::before {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23e8ebf2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 2.8 21.2 7 17 11.2'/%3E%3Cpath d='M3 11V9a2 2 0 0 1 2-2h16'/%3E%3Cpath d='M7 21.2 2.8 17 7 12.8'/%3E%3Cpath d='M21 13v2a2 2 0 0 1-2 2H3'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #loopToggleBtn[data-playback-mode="shuffle"]::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23e8ebf2' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 3h3v3'/%3E%3Cpath d='m21 3-6.8 6.8'/%3E%3Cpath d='M3 7h3.5c1.7 0 2.8.8 3.8 2.2'/%3E%3Cpath d='M3 17h3.5c1.7 0 2.8-.8 3.8-2.2l3.4-4.6C14.7 8.8 15.8 8 17.5 8H21'/%3E%3Cpath d='M18 18h3v3'/%3E%3Cpath d='m15 14.5 6 6'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #mobilePrevVideoBtn::before {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23e8ebf2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 5h2.1v14H6.5V5zm4.1 7 7.1-6.1v12.2L10.6 12z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #mobileNextVideoBtn::before {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23e8ebf2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.4 5h2.1v14h-2.1V5zM6.3 5.9l7.1 6.1-7.1 6.1V5.9z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #watchFavoriteBtn::before {
    width: 21px;
    height: 21px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23e8ebf2' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3.2 2.8 5.7 6.3.9-4.5 4.4 1.1 6.2L12 17.5l-5.6 2.9 1.1-6.2L3 9.8l6.2-.9L12 3.2z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #watchFavoriteBtn.active::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='%23ff6a00' stroke='%23ff6a00' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3.2 2.8 5.7 6.3.9-4.5 4.4 1.1 6.2L12 17.5l-5.6 2.9 1.1-6.2L3 9.8l6.2-.9L12 3.2z'/%3E%3C/svg%3E");
  }

  body[data-view="watch"] #speedButtons,
  body[data-view="watch"] #mobileSubtitleModeBtn,
  body[data-view="watch"] #loopToggleBtn,
  body[data-view="watch"] #mobilePrevVideoBtn,
  body[data-view="watch"] #mobileNextVideoBtn,
  body[data-view="watch"] #watchFavoriteBtn,
  body[data-view="watch"] #fullscreenBtn {
    position: relative;
  }

  body[data-view="watch"] #progressBar::-webkit-slider-runnable-track {
    height: var(--tune-progress-height);
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      var(--orange) 0,
      var(--orange) var(--progress-fill),
      rgba(255, 255, 255, 0.18) var(--progress-fill),
      rgba(255, 255, 255, 0.18) 100%
    );
  }

  body[data-view="watch"] #progressBar::-webkit-slider-thumb {
    width: calc(var(--tune-progress-thumb) - 1px);
    height: calc(var(--tune-progress-thumb) - 1px);
    margin-top: calc((var(--tune-progress-height) - (var(--tune-progress-thumb) - 1px)) / 2 - 1px);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
    appearance: none;
    -webkit-appearance: none;
  }

  body[data-view="watch"] #progressBar::-moz-range-track {
    height: var(--tune-progress-height);
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      var(--orange) 0,
      var(--orange) var(--progress-fill),
      rgba(255, 255, 255, 0.18) var(--progress-fill),
      rgba(255, 255, 255, 0.18) 100%
    );
  }

  body[data-view="watch"] #progressBar::-moz-range-thumb {
    width: calc(var(--tune-progress-thumb) - 1px);
    height: calc(var(--tune-progress-thumb) - 1px);
    transform: translateY(-1px);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
    -moz-appearance: none;
  }
}

.subtitle-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 14px 10px;
}

.subtitle-qa-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

.subtitle-qa-summary .qa-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.subtitle-qa-summary .qa-chip.warn {
  background: rgba(255, 106, 0, 0.14);
  color: #ffb067;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.24);
}

.subtitle-actions button {
  height: 32px;
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.09);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.video-essence {
  margin-top: 22px;
}

.compact-title {
  margin-bottom: 12px;
}

.compact-title h2 {
  font-size: 20px;
}

.essence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.essence-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 112px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.essence-card-word {
  color: #f7f8fc;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.essence-card-meaning {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.essence-card-example {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.essence-card-emphasis {
  color: var(--orange);
  font-weight: 900;
}

.essence-card-example-zh {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.essence-card-analysis {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 2px;
}

.essence-card-analysis-title {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.essence-card-analysis-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.essence-card-analysis-label {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.essence-card-analysis-value {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.essence-card-expression {
  gap: 10px;
}

.essence-card-expression-compact {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-color: var(--line);
  border-radius: 18px;
  background: var(--expression-paper);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

#expressionList {
  grid-template-columns: 1fr;
  align-content: start;
}

.essence-card-compact-header {
  position: relative;
  display: flex;
  min-height: 70px;
  align-items: center;
  padding: 18px 54px 18px 20px;
  border-radius: 14px;
  background: var(--expression-header);
  overflow: hidden;
}

.essence-card-compact-header .essence-card-word {
  position: relative;
  z-index: 1;
  color: var(--expression-ink);
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 1.25;
  text-wrap: balance;
}

.essence-card-compact-ribbon {
  display: none;
  position: absolute;
  top: 0;
  left: 22px;
  display: none;
  width: 34px;
  height: 58px;
  place-items: center;
  color: #fff;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.essence-card-compact-ribbon svg {
  width: 21px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.essence-card-compact-flow {
  position: relative;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 8px 8px 8px;
}

.essence-card-compact-flow::before {
  display: none;
  position: absolute;
  top: 42px;
  bottom: 48px;
  left: 24px;
  width: 2px;
  border-radius: 999px;
  background: var(--expression-rail);
  content: "";
}

.essence-card-section {
  position: relative;
  display: grid;
  grid-template-columns: 46px 126px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  align-items: start;
  padding: 12px 0;
}

.essence-card-timeline-dot {
  display: none;
  z-index: 1;
  display: none;
  width: 15px;
  height: 15px;
  margin: 14px auto 0;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: var(--expression-paper);
  box-shadow: 0 0 0 4px var(--expression-paper);
}

.essence-card-section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--expression-icon-surface);
  color: var(--expression-ink);
}

.essence-card-section-icon-svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.essence-card-section-label {
  padding-top: 10px;
  color: var(--expression-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}

.essence-card-section-content {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding-top: 9px;
}

.essence-card-source-text,
.essence-card-meaning-text,
.essence-card-section-text,
.essence-card-usage-pattern,
.essence-card-usage-example-en,
.essence-card-usage-example-zh {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.essence-card-source-text,
.essence-card-usage-example-en {
  color: var(--expression-ink);
  font-size: 14px;
  line-height: 1.55;
}

.essence-card-meaning-text,
.essence-card-section-text,
.essence-card-usage-example-zh {
  color: var(--expression-muted);
  font-size: 13px;
  line-height: 1.55;
}

.essence-card-usage-pattern {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.essence-card-usage-examples {
  display: grid;
  gap: 8px;
}

.essence-card-usage-example {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.essence-card-usage-example-index {
  display: grid;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.essence-card-usage-example-body {
  display: grid;
  min-width: 0;
  gap: 2px;
}

/* Web 窄宽实用表达适配：开始。 */
@media (min-width: 821px) and (max-width: 1180px) {
  body[data-view="watch"] #expressionList:not(.hidden) {
    display: block;
    align-content: start;
  }

  body[data-view="watch"] .essence-card-expression-compact {
    gap: 0;
    padding: 4px;
    border-radius: 14px;
  }

  body[data-view="watch"] .essence-card-compact-header {
    min-height: 48px;
    padding: 8px 40px 8px 16px;
    border-radius: 10px;
  }

  body[data-view="watch"] .essence-card-compact-header .essence-card-word {
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.28;
  }

  body[data-view="watch"] .essence-card-compact-ribbon {
    left: 12px;
    width: 24px;
    height: 38px;
  }

  body[data-view="watch"] .essence-card-compact-ribbon svg {
    width: 16px;
    height: 21px;
  }

  body[data-view="watch"] .essence-card-compact-flow {
    grid-auto-rows: max-content;
    align-content: start;
    min-height: 0;
    gap: 0;
    padding: 0 0 8px 8px;
  }

  body[data-view="watch"] .essence-card-compact-flow::before {
    display: none;
    top: 14px;
    bottom: 8px;
    left: 10px;
  }

  body[data-view="watch"] .essence-card-section {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    align-self: start;
    padding: 0;
  }

  body[data-view="watch"] .essence-card-timeline-dot {
    display: none;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 8px;
    height: 8px;
    margin-top: 6px;
  }

  body[data-view="watch"] .essence-card-section-icon {
    grid-column: 1;
    grid-row: 1;
    width: 24px;
    height: 24px;
  }

  body[data-view="watch"] .essence-card-section-icon-svg {
    width: 16px;
    height: 16px;
  }

  body[data-view="watch"] .essence-card-section-label {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
    font-size: 12px;
    white-space: normal;
  }

  body[data-view="watch"] .essence-card-section-content {
    grid-column: 2;
    grid-row: 2;
    gap: 0;
    padding-top: 0;
  }

  body[data-view="watch"] .essence-card-section-source .essence-card-section-content {
    margin-top: -4px;
  }

  body[data-view="watch"] .essence-card-source-text,
  body[data-view="watch"] .essence-card-usage-example-en {
    font-size: 13px;
    line-height: 1.4;
  }

  body[data-view="watch"] .essence-card-meaning-text,
  body[data-view="watch"] .essence-card-section-text,
  body[data-view="watch"] .essence-card-usage-example-zh {
    font-size: 12px;
    line-height: 1.4;
  }

  body[data-view="watch"] .essence-card-usage-pattern {
    padding: 0;
    font-size: 11px;
  }

  body[data-view="watch"] .essence-card-usage-examples {
    gap: 2px;
  }

  body[data-view="watch"] .essence-card-usage-example {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 2px;
    padding: 2px 5px;
  }

  body[data-view="watch"] .essence-card-usage-example-index {
    width: 7px;
    height: 7px;
    margin-top: 6px;
  }
}
/* Web 窄宽实用表达适配：结束。 */

/* Web 播放页：按学习面板宽度切换实用表达布局，避免浏览器缩放时正文被挤窄。 */
@media (min-width: 821px) {
  body[data-view="watch"] .learning-panel {
    container-type: inline-size;
    container-name: learning-panel;
  }

  @container learning-panel (max-width: 760px) {
    body[data-view="watch"] #expressionList:not(.hidden) {
      display: block;
      align-content: start;
    }

    body[data-view="watch"] .essence-card-expression-compact {
      gap: 0;
      padding: 4px;
      border-radius: 14px;
    }

    body[data-view="watch"] .essence-card-compact-header {
      min-height: 48px;
      padding: 8px 40px 8px 16px;
      border-radius: 10px;
    }

    body[data-view="watch"] .essence-card-compact-header .essence-card-word {
      font-size: clamp(17px, 2.2vw, 22px);
      line-height: 1.28;
    }

    body[data-view="watch"] .essence-card-compact-ribbon {
      left: 12px;
      width: 24px;
      height: 38px;
    }

    body[data-view="watch"] .essence-card-compact-ribbon svg {
      width: 16px;
      height: 21px;
    }

    body[data-view="watch"] .essence-card-compact-flow {
      grid-auto-rows: max-content;
      align-content: start;
      min-height: 0;
      gap: 0;
      padding: 0 0 8px 8px;
    }

    body[data-view="watch"] .essence-card-compact-flow::before {
      display: none;
      top: 14px;
      bottom: 8px;
      left: 10px;
    }

    body[data-view="watch"] .essence-card-section {
      grid-template-columns: 32px minmax(0, 1fr);
      gap: 0;
      min-height: 0;
      align-self: start;
      padding: 0;
    }

    body[data-view="watch"] .essence-card-timeline-dot {
      display: none;
      grid-column: 1;
      grid-row: 1 / span 2;
      width: 8px;
      height: 8px;
      margin-top: 6px;
    }

    body[data-view="watch"] .essence-card-section-icon {
      grid-column: 1;
      grid-row: 1;
      width: 24px;
      height: 24px;
    }

    body[data-view="watch"] .essence-card-section-icon-svg {
      width: 16px;
      height: 16px;
    }

    body[data-view="watch"] .essence-card-section-label {
      grid-column: 2;
      grid-row: 1;
      padding-top: 0;
      font-size: 12px;
      white-space: normal;
    }

    body[data-view="watch"] .essence-card-section-content {
      grid-column: 2;
      grid-row: 2;
      gap: 0;
      padding-top: 0;
    }

    body[data-view="watch"] .essence-card-section-source .essence-card-section-content {
      margin-top: -4px;
    }

    body[data-view="watch"] .essence-card-source-text,
    body[data-view="watch"] .essence-card-usage-example-en {
      font-size: 13px;
      line-height: 1.4;
    }

    body[data-view="watch"] .essence-card-meaning-text,
    body[data-view="watch"] .essence-card-section-text,
    body[data-view="watch"] .essence-card-usage-example-zh {
      font-size: 12px;
      line-height: 1.4;
    }

    body[data-view="watch"] .essence-card-usage-pattern {
      padding: 0;
      font-size: 11px;
    }

    body[data-view="watch"] .essence-card-usage-examples {
      gap: 2px;
    }

    body[data-view="watch"] .essence-card-usage-example {
      grid-template-columns: 12px minmax(0, 1fr);
      gap: 2px;
      padding: 2px 5px;
    }

    body[data-view="watch"] .essence-card-usage-example-index {
      width: 7px;
      height: 7px;
      margin-top: 6px;
    }
  }
}
/* Web 播放页面板宽度适配：结束。 */

.essence-save-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  line-height: 1;
}

.essence-save-toggle.saved {
  color: var(--orange);
  background: rgba(255, 106, 0, 0.16);
}

.control-btn {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.progress-slider {
  width: 100%;
  accent-color: var(--orange);
}

.speed-select {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font-size: 12px;
}

.video-meta {
  margin-top: 18px;
  min-width: 0;
}

.video-chapters {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.video-chapters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.video-chapters-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.video-chapters-heading span {
  color: var(--muted);
  font-size: 12px;
}

.video-chapter-list {
  display: grid;
  grid-template-columns: repeat(var(--chapter-count, 3), minmax(0, 1fr));
  gap: 10px;
}

.video-chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 68px;
  align-content: center;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.video-chapter:hover,
.video-chapter.active {
  border-color: var(--line-warm);
  background: rgba(255, 106, 0, 0.1);
}

.video-chapter-time {
  color: var(--orange);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.video-chapter-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 820px) {
  .video-chapters {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .video-chapter-list {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 8px;
  }
}

@media (min-width: 821px) {
  /* Web 播放页：视口锁定，内部滚动。 */
  html[data-view="watch"] {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body[data-view="watch"] {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body[data-view="watch"] .app-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body[data-view="watch"] .main {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body[data-view="watch"] .watch-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
    gap: 20px;
    height: calc(100dvh - 90px);
    min-height: 0;
    max-height: none;
    margin-top: 52px;
    align-items: stretch;
    overflow: hidden;
  }

  body[data-view="watch"] .player-column {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    align-self: start;
    height: fit-content;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(14, 15, 15, 0.94);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 18px 48px rgba(0, 0, 0, 0.28);
  }

  body[data-view="watch"] .player-stage {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
  }

  body[data-view="watch"] .player-frame {
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  body[data-view="watch"] .player-frame video {
    object-fit: contain;
  }

  body[data-view="watch"] .player-tools {
    flex: 0 0 auto;
    margin-top: 8px;
    border-radius: 14px;
    box-shadow: none;
  }

  body[data-view="watch"] #mobilePanelToggleBtn {
    display: none !important;
  }

  body[data-view="watch"] #subtitleModeButtons {
    order: 0;
    display: inline-flex;
    width: auto;
    height: var(--tune-icon-button);
    min-width: 0;
    flex: 0 0 auto;
    align-items: center;
    padding: 0;
    border: 0;
  }

  body[data-view="watch"] #subtitleModeButtons .panel-menu {
    position: relative;
  }

  body[data-view="watch"] #subtitleModeMenuBtn {
    display: inline-grid;
    width: var(--tune-icon-button);
    min-width: var(--tune-icon-button);
    height: var(--tune-icon-button);
    min-height: var(--tune-icon-button);
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f3f5ff;
  }

  body[data-view="watch"] #subtitleModeMenuBtn:hover,
  body[data-view="watch"] #subtitleModeMenuBtn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
  }

  body[data-view="watch"] #subtitleModeMenuBtn .toolbar-lucide-icon {
    width: 22px;
    height: 22px;
  }

  body[data-view="watch"] #subtitleModeMenu {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
  }

  body[data-view="watch"] .learning-panel {
    height: 100%;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 22px;
    position: relative;
    top: auto;
    align-self: stretch;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 18px 48px rgba(0, 0, 0, 0.28);
  }

  body[data-view="watch"] .subtitle-panel-tools {
    position: absolute;
    top: 74px;
    right: 4px;
    z-index: 6;
    width: 20px;
    height: 20px;
  }

  body[data-view="watch"] .subtitle-panel-tools .study-marker-help {
    margin: 0;
  }

  body[data-view="watch"] .video-meta {
    box-sizing: border-box;
    flex: 0 0 auto;
    margin-top: 8px;
    padding: 12px 16px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
  }

  body[data-view="watch"] .video-chapters {
    margin-top: 0;
    padding: 0 16px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-view="watch"] .video-chapters .video-chapters-heading {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  body[data-view="watch"] .video-meta h1 {
    font-size: 16px;
    line-height: 1.25;
  }

  body[data-view="watch"] .subtitle-list {
    scrollbar-gutter: stable;
  }

  body[data-view="watch"] .subtitle-actions:empty {
    display: none;
  }

  html[data-theme="light"] body[data-view="watch"] .player-column {
    background: #fffdf9;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 1px 2px -1px rgba(0, 0, 0, 0.06),
      0 10px 30px rgba(73, 57, 38, 0.08);
  }

  html[data-theme="light"] body[data-view="watch"] .learning-panel {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 1px 2px -1px rgba(0, 0, 0, 0.06),
      0 10px 30px rgba(73, 57, 38, 0.08);
  }

  html[data-theme="light"] body[data-view="watch"] .video-meta {
    background: transparent;
    box-shadow: none;
  }

  html[data-theme="light"] body[data-view="watch"] #subtitleModeMenuBtn {
    border: 0;
    background: transparent;
    color: #2b2926;
  }

  html[data-theme="light"] body[data-view="watch"] #subtitleModeMenuBtn:hover,
  html[data-theme="light"] body[data-view="watch"] #subtitleModeMenuBtn[aria-expanded="true"] {
    background: rgba(42, 37, 32, 0.08);
  }

  html[data-theme="light"] body[data-view="watch"] .player-frame {
    border: 0;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
  }
}

.watch-difficulty-badge {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.9);
  color: #d7dbe6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.watch-difficulty-label {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.watch-difficulty-stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.rating-star {
  color: rgba(255, 255, 255, 0.24);
  font-size: 16px;
  line-height: 1;
}

.rating-star.full {
  color: var(--orange);
}

.rating-star.half {
  background: linear-gradient(90deg, var(--orange) 50%, rgba(255, 255, 255, 0.24) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rating-star.empty {
  color: rgba(255, 255, 255, 0.24);
}

.watch-difficulty-text {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 700;
}

.watch-difficulty-info {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.watch-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.watch-title-row .watch-title-favorite {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f5ff;
  font-size: 20px;
  line-height: 1;
}

.watch-title-row .watch-title-favorite.active {
  color: var(--orange);
  border-color: rgba(255, 106, 0, 0.5);
  background: rgba(255, 106, 0, 0.1);
}

.video-meta h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: normal;
}

.video-meta h1 .watch-title-zh,
.video-meta h1 .watch-title-en {
  display: block;
  min-width: 0;
}

.video-meta h1 .watch-title-en {
  margin-top: 4px;
}

.video-stepper {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  padding-top: 2px;
}

.video-stepper button {
  height: 40px;
  border: 1px solid rgba(255, 106, 0, 0.34);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

.video-stepper button:disabled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.32);
  cursor: not-allowed;
}

.video-meta p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.watch-intro {
  display: none;
  max-width: 780px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: normal;
}

.watch-attribution {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  max-width: 880px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.watch-attribution-label {
  color: #ffd36e;
  font-weight: 800;
}

.watch-attribution-text {
  color: rgba(255, 255, 255, 0.84);
}

.watch-attribution a {
  color: var(--orange);
  font-weight: 800;
  text-decoration: none;
}

.watch-attribution-separator {
  color: rgba(255, 255, 255, 0.34);
}

.source-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--orange);
  font-weight: 800;
  text-decoration: none;
}

.word-quick {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 106, 0, 0.34);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(18, 18, 18, 0.92);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
}

.learning-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 106, 0, 0.06), transparent 22%),
    rgba(14, 15, 15, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.tabs {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 24px 0 16px;
  min-height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  align-items: center;
  overflow: visible;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  position: relative;
  white-space: nowrap;
  overflow: visible;
}

.tab.active {
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.2), rgba(255, 106, 0, 0.1));
  color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.45), 0 14px 34px rgba(255, 106, 0, 0.08);
}

.tab svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab em {
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.tab.active em {
  background: rgba(255, 106, 0, 0.2);
  color: var(--orange);
}

.subtitle-mode-buttons {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px 8px;
}

.panel-menu {
  position: relative;
  flex: 1;
}

.panel-menu-btn,
.panel-menu > button {
  height: 34px;
  border: 0;
  border-radius: 9px;
  padding: 0 24px 0 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.panel-menu > button::after,
.panel-menu-btn::after {
  margin-left: 7px;
  content: "⌄";
  color: var(--muted);
}

.panel-menu-btn.muted {
  color: var(--muted);
  text-align: right;
}

.panel-menu-options {
  position: absolute;
  top: 38px;
  left: 0;
  z-index: 35;
  width: 154px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.panel-menu-options button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.panel-menu-options button.active,
.panel-menu-options button:hover {
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
}

.subtitle-list,
.word-list,
.learning-panel .essence-list {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow-y: scroll;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 106, 0, 0.55) rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
  padding: 14px;
  scroll-padding-top: 10px;
  scroll-padding-bottom: 16px;
}

.study-marker-help { position: relative; z-index: 4; margin-left: 4px; }
.study-marker-help.hidden { display: none; }
.study-marker-help summary { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 900; list-style: none; }
.study-marker-help summary::-webkit-details-marker { display: none; }
.study-marker-help summary:hover, .study-marker-help[open] summary { border-color: var(--orange); color: var(--orange); }
.study-marker-help-popover { position: absolute; top: 27px; left: 0; display: flex; flex-wrap: wrap; gap: 10px; width: max-content; max-width: min(300px, calc(100vw - 36px)); padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(22, 22, 22, 0.98); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38); color: var(--muted); font-size: 12px; }
.study-marker-legend-item { position: relative; padding-left: 9px; }
.study-marker-legend-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; transform: translateY(-50%); background: currentColor; }
.study-marker-legend-item.phrase { color: #5aa7ff; }
.study-marker-legend-item.noun { color: #ff8a24; }
.study-marker-legend-item.verb { color: #ffd166; }
.study-marker-legend-item.adjective { color: #50e3c2; }
.study-marker-legend-item.adverb { color: #b99aff; }

.subtitle-list::-webkit-scrollbar,
.word-list::-webkit-scrollbar,
.learning-panel .essence-list::-webkit-scrollbar {
  width: 11px;
}

.subtitle-list::-webkit-scrollbar-track,
.word-list::-webkit-scrollbar-track,
.learning-panel .essence-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.subtitle-list::-webkit-scrollbar-thumb,
.word-list::-webkit-scrollbar-thumb,
.learning-panel .essence-list::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.56);
  background-clip: content-box;
}

.word-list,
.learning-panel .essence-list {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.learning-panel .essence-list {
  display: block;
}

.learning-panel .essence-list.hidden {
  display: none;
}

body[data-view="watch"] .learning-panel > .hidden {
  display: none !important;
}

.learning-panel .essence-card {
  margin-bottom: 10px;
}

.subtitle-row {
  display: grid;
  grid-template-columns: var(--tune-subtitle-time-width) minmax(0, 1fr) auto;
  gap: var(--tune-subtitle-gap);
  position: relative;
  width: 100%;
  margin-bottom: 12px;
  height: auto;
  min-height: 0;
  padding: var(--tune-subtitle-pad-y) var(--tune-subtitle-pad-x);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 106, 0, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  scroll-margin-top: 92px;
  scroll-margin-bottom: 28px;
}

.subtitle-row:hover {
  background:
    radial-gradient(circle at 20% 0, rgba(255, 106, 0, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.055);
  transform: translateY(-1px);
}

.subtitle-row.active {
  border-color: rgba(255, 106, 0, 0.62);
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.18), rgba(255, 106, 0, 0.05)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 55px rgba(255, 106, 0, 0.1), inset 3px 0 0 rgba(255, 106, 0, 0.95);
}

.time {
  color: var(--orange);
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.subtitle-copy {
  display: grid;
  gap: 2px;
}

.subtitle-copy strong,
.subtitle-copy em {
  display: flex;
  align-items: start;
  gap: 0;
}

.subtitle-copy strong span,
.subtitle-copy em span {
  min-width: 0;
}

.subtitle-copy strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--tune-subtitle-en-size);
  line-height: var(--tune-subtitle-en-line);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[data-subtitle-size="small"] .subtitle-copy strong {
  font-size: 18px;
}

html[data-subtitle-size="large"] .subtitle-copy strong {
  font-size: 22px;
}

.subtitle-copy em {
  color: var(--muted);
  font-size: var(--tune-subtitle-zh-size);
  font-style: normal;
  line-height: var(--tune-subtitle-zh-line);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.subtitle-save {
  width: 28px;
  height: 28px;
  align-self: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  line-height: 1;
}

.subtitle-save.saved {
  color: var(--orange);
  background: rgba(255, 106, 0, 0.16);
}

.subtitle-row-actions {
  display: grid;
  align-self: center;
  justify-self: end;
  gap: 8px;
}

.subtitle-row-actions button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.subtitle-row-actions button:hover,
.subtitle-row-actions button:focus-visible {
  color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.5);
}

.subtitle-row-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subtitle-single-loop {
  display: grid;
  grid-column: 1 / -1;
  justify-self: start;
  align-self: end;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.mobile-subtitle-single-loop {
  display: none;
}

.desktop-subtitle-single-loop {
  position: absolute;
  left: var(--tune-subtitle-pad-x);
  bottom: var(--tune-subtitle-pad-y);
  grid-column: auto;
  justify-self: start;
  align-self: end;
  margin: 0;
  z-index: 1;
}

.subtitle-zh-line {
  display: block;
  min-width: 0;
}

.subtitle-single-loop:hover,
.subtitle-single-loop:focus-visible,
.subtitle-single-loop.active {
  color: var(--orange);
  background: rgba(255, 106, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.42);
}

.subtitle-single-loop-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subtitle-export-menu {
  position: fixed;
  z-index: 60;
  width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(20, 20, 20, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
}

.export-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

.export-menu-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
}

.subtitle-export-menu > button {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  width: 100%;
  gap: 2px 9px;
  border: 0;
  border-radius: 8px;
  padding: 9px 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.subtitle-export-menu > button:hover {
  background: rgba(255, 106, 0, 0.1);
}

.subtitle-export-menu > button.active {
  background: rgba(255, 106, 0, 0.13);
}

.subtitle-export-menu > button.active::after {
  align-self: center;
  justify-self: end;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.subtitle-export-menu > button span {
  display: grid;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
}

.subtitle-export-menu > button .lang-mark {
  color: var(--text);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.export-menu-section {
  margin: 8px 4px 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.subtitle-export-menu svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subtitle-export-menu b {
  font-size: 13px;
}

.subtitle-export-menu small {
  color: var(--muted);
  font-size: 11px;
}

.word {
  padding: 0 3px 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.word:hover {
  color: #ff8b28;
  background: rgba(255, 106, 0, 0.08);
}

.study-term {
  color: var(--orange);
  background: transparent;
  box-shadow: inset 0 -0.2em 0 rgba(255, 106, 0, 0.5);
  font-weight: 900;
  cursor: pointer;
}

.study-term-phrase { color: #5aa7ff; box-shadow: inset 0 -0.2em 0 rgba(90, 167, 255, 0.48); }
.study-term-noun { color: #ff8a24; box-shadow: inset 0 -0.2em 0 rgba(255, 138, 36, 0.52); }
.study-term-verb { color: #ffd166; box-shadow: inset 0 -0.2em 0 rgba(255, 209, 102, 0.46); }
.study-term-adjective { color: #50e3c2; box-shadow: inset 0 -0.2em 0 rgba(80, 227, 194, 0.52); }
.study-term-adverb { color: #b99aff; box-shadow: inset 0 -0.2em 0 rgba(185, 154, 255, 0.44); }

/* 浅色主题使用高饱和金黄色，保留深色主题的黄色识别感。 */
html[data-theme="light"] .study-term-verb { color: #d99a00; box-shadow: inset 0 -0.2em 0 rgba(217, 154, 0, 0.52); }
html[data-theme="light"] .study-marker-legend-item.verb { color: #d99a00; }

.study-term:hover {
  background: rgba(255, 106, 0, 0.1);
  color: #ff8b28;
}

.word-popover {
  position: fixed;
  z-index: 20;
  pointer-events: auto;
}

.word-popover {
  width: min(260px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(255, 106, 0, 0.44);
  border-radius: 13px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 106, 0, 0.16), transparent 36%),
    radial-gradient(circle at 12% 96%, rgba(255, 106, 0, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(25, 22, 18, 0.96), rgba(10, 10, 10, 0.98));
  color: var(--text);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.66), 0 0 24px rgba(255, 106, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.word-popover::before {
  content: "";
  position: absolute;
  left: var(--arrow-left, 28px);
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(255, 106, 0, 0.44);
  border-left: 1px solid rgba(255, 106, 0, 0.44);
  background: rgba(24, 20, 17, 0.96);
  transform: rotate(45deg);
}

.word-popover.below::before {
  top: -8px;
}

.word-popover.above::before {
  bottom: -8px;
  transform: rotate(225deg);
}

.popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.popover-head strong {
  color: var(--orange);
  font-size: 20px;
  line-height: 1.15;
}

.close-popover {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.audio-dot {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.16);
  color: var(--orange);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.18);
}

.audio-dot.playing {
  background: var(--orange);
  color: #fff;
  transform: scale(1.08);
  box-shadow: none;
}

.audio-dot.failed {
  background: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.phonetic {
  margin: 8px 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

.term-pos {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 106, 0, 0.24);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.08);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.term-meaning-wrap {
  display: grid;
  gap: 7px;
  margin: 7px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-meaning-label {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.term-meaning {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.term-meaning-list {
  margin: 0;
  padding: 0 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.5;
}

.term-meaning-list li + li {
  margin-top: 3px;
}

.term-definition {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.55;
}

.term-example p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.term-example-zh {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.5;
}

.term-example {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  padding-top: 9px;
}

.term-example strong {
  color: var(--text);
  font-size: 13px;
}

.term-example i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--orange);
  vertical-align: middle;
}

.term-example mark {
  background: transparent;
  color: var(--orange);
  font-weight: 900;
}

.word-save-row {
  display: flex;
  width: calc(100% - 16px);
  margin: 8px auto 0;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.word-save-row b {
  margin-left: auto;
  color: var(--orange);
  font-size: 16px;
}

.word-save-row .save-star {
  display: block;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  margin-left: auto;
  color: var(--orange);
  overflow: visible;
}

.word-save-row .save-star path {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.word-save-row .save-star.outline path {
  fill: transparent;
  stroke-width: 1.7;
}

.word-save-row .save-star.solid path {
  fill: currentColor;
  stroke-width: 1.5;
}

.word-save-row.saved,
.word-save-row:disabled {
  opacity: 1;
  color: var(--text);
  background: rgba(255, 106, 0, 0.13);
}

.word-item,
.vocab-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.word-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 10px 104px 10px 12px;
  position: relative;
}

.word-item-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.word-core-head,
.vocab-meaning-wrap {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.word-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.word-title-row strong {
  font-size: 18px;
}

.word-phonetic {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  white-space: nowrap;
}

.word-meaning-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.word-meaning-block,
.word-example-block {
  display: grid;
  gap: 5px;
  margin-top: 2px;
}

.word-section-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.word-meaning-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.word-pos {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.word-meaning {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.word-example {
  color: var(--muted);
  line-height: 1.5;
}

.word-example-en,
.word-example-zh {
  margin: 0;
  line-height: 1.42;
}

.word-example-en {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.word-example-zh {
  color: var(--muted);
  font-size: 12px;
}

.word-example mark {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 106, 0, 0.14);
  color: var(--orange);
  font-weight: 900;
}

.remove-word {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 106, 0, 0.28);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 106, 0, 0.08);
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.word-save-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  line-height: 1;
}

.word-audio {
  width: 28px;
  height: 28px;
  margin-left: 0;
  font-size: 14px;
}

.suggested-word .word-save-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.48);
  font-size: 18px;
  line-height: 1;
}

.word-save-toggle.saved {
  color: var(--orange);
  background: rgba(255, 106, 0, 0.16);
}

.word-item strong {
  color: var(--text);
  font-size: 15px;
}

.word-item .word-meaning {
  color: var(--orange);
  font-weight: 800;
}

.word-item small {
  color: var(--muted);
  line-height: 1.4;
}

.suggested-word button {
  flex: 0 0 auto;
  cursor: pointer;
}

.suggested-word .word-save-toggle.saved {
  color: var(--orange);
  background: rgba(255, 106, 0, 0.16);
}

.word-section-title {
  margin: 12px 2px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.compact-empty {
  margin: 6px 2px 14px;
  line-height: 1.5;
}

.vocab-list {
  display: grid;
  gap: 18px;
}

.history-list {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.history-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.history-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

.history-card div {
  display: grid;
  gap: 8px;
}

.history-card span {
  color: var(--muted);
}

.history-card small {
  color: var(--orange);
  font-weight: 800;
}

.collection-title,
.favorites-list {
  max-width: 100%;
  min-width: 0;
}

.collection-title {
  margin-bottom: 22px;
}

.collection-title h1 {
  margin-bottom: 8px;
  font-size: 26px;
}

.collection-title p {
  color: var(--muted);
  font-size: 14px;
}

.favorites-list {
  display: grid;
  gap: 28px;
}

.favorites-tabs {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin: 0 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.favorites-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.favorites-tab em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.favorites-tab::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.favorites-tab.active {
  color: var(--orange);
}

.favorites-tab.active em {
  color: var(--orange);
}

.favorites-tab.active::after {
  background: var(--orange);
}

.favorite-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.favorite-section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
}

.favorite-section-head h2 span {
  color: var(--orange);
}

.favorite-section-head h2 em {
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.favorite-video-grid,
.favorite-subtitle-list {
  display: grid;
  gap: 18px;
}

.favorite-video-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.favorite-video-card,
.favorite-subtitle-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.favorite-video-card {
  display: block;
  overflow: hidden;
  min-width: 0;
}

.favorite-thumb {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
}

.favorite-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-thumb::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
  content: "";
}

.favorite-thumb > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
}

.favorite-thumb .video-favorite {
  z-index: 2;
}

.favorite-video-info {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.favorite-video-info small {
  color: var(--muted);
}

.favorite-subtitle-card div {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.favorite-video-card strong,
.favorite-subtitle-card strong {
  line-height: 1.3;
}

.favorite-video-info > span,
.favorite-subtitle-card em,
.favorite-subtitle-card small,
.favorite-subtitle-card time {
  color: var(--muted);
  font-style: normal;
}

.favorite-subtitle-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.favorite-subtitle-card {
  display: block;
  min-height: 210px;
  padding: 20px 18px 16px;
  min-width: 0;
  overflow: hidden;
}

.quote-mark {
  display: block;
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.subtitle-star {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 106, 0, 0.25);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: rgba(255, 106, 0, 0.08);
  color: var(--orange);
  font-size: 18px;
}

.favorite-subtitle-card strong {
  min-height: 74px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.favorite-expression-section {
  width: 100%;
  transform: none;
  display: grid;
  gap: 10px;
}

.favorite-expression-table {
  display: grid;
  gap: 10px;
}

.favorite-expression-head,
.favorite-expression-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 124px;
  gap: 18px;
  align-items: center;
}

.favorite-expression-head {
  padding: 0 14px 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.favorite-expression-head-check {
  display: flex;
  justify-content: center;
}

.favorite-expression-head-jump {
  justify-self: center;
}

.favorite-expression-row {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.favorite-expression-row:hover {
  border-color: rgba(255, 106, 0, 0.2);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.favorite-expression-row.selected {
  background: rgba(255, 106, 0, 0.05);
  border-color: rgba(255, 106, 0, 0.22);
}

.favorite-expression-row > .table-checkbox {
  justify-self: center;
}

.favorite-expression-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.favorite-expression-quote {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}

.favorite-expression-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  align-content: start;
}

.favorite-expression-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.favorite-expression-copy strong {
  color: #f7f8fc;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 800;
  overflow-wrap: break-word;
}

.favorite-expression-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px !important;
  line-height: 1.28;
  overflow-wrap: break-word;
}

.favorite-expression-jump-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.favorite-expression-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 106, 0, 0.34);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.favorite-expression-jump-btn:hover,
.favorite-expression-jump-btn:focus-visible {
  background: rgba(255, 106, 0, 0.16);
}

.favorite-expression-jump-btn:focus-visible {
  outline: 2px solid rgba(255, 106, 0, 0.82);
  outline-offset: 3px;
}

.favorite-expression-section .vocab-table-toolbar {
  gap: var(--vocab-action-gap);
}

.favorite-expression-format-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--vocab-action-gap);
}

.favorite-expression-format-btn {
  min-height: var(--vocab-action-height);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 var(--vocab-action-pad-x);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: var(--vocab-action-font);
  font-weight: 900;
}

.favorite-expression-format-btn.active {
  border-color: rgba(255, 106, 0, 0.34);
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.2);
}

.settings-title {
  position: relative;
  z-index: 2;
  margin-bottom: 22px;
  max-width: 820px;
}

.settings-title h1 {
  margin-bottom: 6px;
  font-size: 26px;
}

.settings-title p {
  color: var(--muted);
}

.settings-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  max-width: 820px;
}

.setting-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(220px, auto);
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--surface);
}

.setting-row:focus-within {
  border-color: rgba(255, 106, 0, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.16);
}

.setting-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 10px;
  background: rgba(255, 106, 0, 0.08);
  color: var(--orange);
}

.setting-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setting-copy h2 {
  margin: 0;
  font-size: 15px;
}

.setting-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.setting-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  pointer-events: auto;
}

.setting-options.compact {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.setting-options button {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.setting-options button:first-child {
  border-left: 0;
}

.setting-options button.active {
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.74);
  background: rgba(255, 106, 0, 0.16);
  color: var(--orange);
}

.setting-options button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.setting-options button:active {
  transform: translateY(1px);
}

.setting-switch {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  justify-self: end;
  width: 48px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.setting-switch span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 160ms ease;
}

.setting-switch.active {
  border-color: rgba(255, 106, 0, 0.72);
  background: var(--orange);
}

.setting-switch.active span {
  transform: translateX(20px);
}

.setting-switch:hover {
  border-color: rgba(255, 106, 0, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.settings-foot {
  max-width: 820px;
  margin-top: 26px;
  color: var(--muted);
  text-align: center;
}

.vocab-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border-color: rgba(255, 106, 0, 0.16);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 106, 0, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.vocab-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vocab-card-head > div {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.vocab-card strong {
  color: var(--orange);
  font-size: 22px;
  line-height: 1.15;
}

.vocab-card span {
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.vocab-example {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.vocab-example p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.vocab-example mark {
  background: transparent;
  color: var(--orange);
  font-weight: 900;
}

.vocab-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.vocab-card em,
.vocab-card small,
.vocab-card time,
.empty,
.empty-state {
  color: var(--muted);
}

.vocab-card em {
  font-style: normal;
  line-height: 1.45;
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ghost-btn {
  margin-bottom: 8px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.hidden {
  display: none;
}

.vocab-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vocab-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 106, 0, 0.06), rgba(255, 106, 0, 0.02)),
    rgba(17, 18, 19, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.vocab-stat-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  flex: 0 0 auto;
}

.vocab-stat-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vocab-stat-card div {
  min-width: 0;
}

.vocab-stat-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.vocab-stat-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.vocab-table-shell {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: hidden;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%),
    rgba(16, 17, 18, 0.92);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.vocab-table-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 10px;
}

.vocab-table-meta {
  display: grid;
  gap: 4px;
}

.vocab-table-meta strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.vocab-table-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.vocab-table-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.vocab-selection-count,
.vocab-selection-hint {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.vocab-select-all-btn,
.vocab-bulk-btn {
  min-height: var(--vocab-action-height);
  border: 1px solid rgba(255, 106, 0, 0.24);
  border-radius: 999px;
  padding: 0 var(--vocab-action-pad-x);
  background: rgba(255, 106, 0, 0.08);
  color: var(--orange);
  font-size: var(--vocab-action-font);
  font-weight: 900;
}

.vocab-select-all-btn.active {
  background: rgba(255, 106, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.28);
}

.vocab-bulk-btn.danger {
  border-color: rgba(255, 90, 90, 0.3);
  background: rgba(255, 90, 90, 0.08);
  color: #ff7f7f;
}

.vocab-export-format {
  min-height: var(--vocab-action-height);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 var(--vocab-action-pad-x);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: var(--vocab-action-font);
  font-weight: 900;
}

.vocab-export-format-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--vocab-action-gap);
}

.collection-export-menu {
  position: relative;
  z-index: 20;
}

.collection-export-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 21;
  display: none;
  min-width: 112px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(27, 25, 24, 0.98);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.collection-export-menu.open .collection-export-options {
  display: grid;
  gap: 3px;
}

.collection-export-options button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.collection-export-options button:hover,
.collection-export-options button:focus-visible {
  background: rgba(255, 106, 0, 0.14);
  color: var(--orange);
}

.vocab-table-actions .favorite-expression-format-btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
  min-height: var(--vocab-action-height);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 var(--vocab-action-pad-x);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: var(--vocab-action-font);
  font-weight: 900;
}

.vocab-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  min-width: 0;
  border-collapse: collapse;
}

.vocab-table thead th {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.vocab-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vocab-table tbody tr:last-child {
  border-bottom: 0;
}

.vocab-table td {
  padding: 16px 12px;
  vertical-align: top;
  color: #eef2fb;
  font-size: 13px;
  line-height: 1.4;
  min-width: 0;
}

.vocab-table td.col-check,
.vocab-table td.col-word,
.vocab-table td.col-meaning {
  vertical-align: middle !important;
}

.vocab-row.selected {
  background: rgba(255, 106, 0, 0.05);
}

.col-check {
  width: 46px;
  text-align: center;
  vertical-align: middle;
}

.vocab-table th.col-word,
.vocab-table td.col-word {
  width: 24%;
}

.vocab-table th.col-meaning,
.vocab-table td.col-meaning {
  width: auto;
  padding-left: 0;
  padding-right: 8px;
}

.vocab-table th.col-jump,
.vocab-table td.col-jump {
  width: 84px;
  text-align: center;
  vertical-align: middle;
}

@media (min-width: 821px) {
  .vocab-table th.col-jump,
  .vocab-table td.col-jump {
    width: 118px;
    padding-left: 10px;
    padding-right: 22px;
  }

  .vocab-jump-btn {
    min-width: 88px;
  }
}

.table-checkbox {
  display: inline-grid;
  place-items: center;
  width: var(--vocab-check-size);
  height: var(--vocab-check-size);
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  vertical-align: middle;
  color: var(--orange);
  cursor: pointer;
  padding: 0;
  font-size: calc(var(--vocab-check-size) * 0.72);
  appearance: none;
}

.table-checkbox.checked {
  border-color: rgba(255, 106, 0, 0.56);
  background: rgba(255, 106, 0, 0.16);
}

.table-checkbox:hover {
  border-color: rgba(255, 106, 0, 0.46);
}

.vocab-word-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.vocab-word-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vocab-word-top strong {
  color: var(--orange);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  display: inline-block;
  flex: 0 0 auto;
  overflow-wrap: normal;
  word-break: normal;
}

.vocab-word-phonetic {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  flex: 0 0 auto;
}

.vocab-word-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vocab-meaning-wrap {
  display: grid;
  gap: 8px;
}

.vocab-word-pos {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.vocab-word-meaning {
  color: #f0f3fa;
  font-weight: 700;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.vocab-meaning-list {
  margin: -2px 0 0;
  padding: 0;
  list-style: none;
}

.vocab-meaning-list li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.45;
}

.vocab-definition {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.vocab-example-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.vocab-example-label i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange);
}

.vocab-example {
  margin: 0;
  color: #f7f8fc;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}

.vocab-example mark {
  display: inline;
  padding: 0 2px;
  border-radius: 4px;
  background: rgba(255, 106, 0, 0.14);
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

.vocab-table .vocab-example {
  display: block;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.vocab-table .vocab-example mark {
  background: rgba(255, 106, 0, 0.14);
  color: var(--orange);
}

.vocab-example-zh {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: normal;
}

.vocab-rating {
  display: inline-flex;
  gap: 3px;
}

.vocab-rating .rating-star {
  font-size: 13px;
}

.vocab-empty-state {
  padding: 32px 24px 36px;
  color: var(--muted);
  text-align: center;
}

.vocab-jump-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 106, 0, 0.34);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.vocab-jump-btn:hover {
  background: rgba(255, 106, 0, 0.16);
}

#vocabView .section-title h1 {
  font-size: 24px;
}

#vocabView .ghost-btn {
  margin-bottom: 0;
  padding: 6px 0;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .auth-shell {
    padding: 22px 22px 20px;
    gap: 22px;
  }

  .auth-shell-header,
  .auth-shell-footer {
    width: min(100%, 980px);
  }

  .auth-card {
    width: min(100%, 980px);
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-hero {
    min-height: 0;
  }

  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    padding: 22px;
  }

  .rightbar {
    display: none;
  }

  body[data-view="watch"] .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-view="watch"] .main {
    padding: 14px 22px 22px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .category-rail {
    grid-template-columns: repeat(6, minmax(104px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-page {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
    height: calc(100vh - 78px);
    overflow: auto;
  }

  .learning-panel {
    height: 520px;
  }

  .essence-list {
    grid-template-columns: 1fr;
  }

  .favorite-video-grid,
  .favorite-subtitle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .favorite-expression-head,
  .favorite-expression-row {
    grid-template-columns: 38px minmax(0, 1.8fr) minmax(220px, 1fr);
    gap: 20px;
  }

  .vocab-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vocab-table-shell {
    overflow-x: hidden;
  }

  .vocab-table {
    min-width: 0;
  }
}

@media (max-width: 820px) {
  /* 手机端期数标识统一使用白色细描边，避免与选中态橙色混淆。 */
  .episode-badge,
  body[data-view="watch"] .watch-episode-badge {
    border-color: rgba(255, 255, 255, 0.52);
  }

  /* iPhone Safari/微信共用 WebKit：避免整屏元素把布局宽度撑出可视区域。 */
  html.iphone-viewport,
  html.iphone-viewport body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  html.iphone-viewport .app-shell,
  html.iphone-viewport .auth-shell,
  html.iphone-viewport .main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  html.iphone-viewport body[data-view="watch"] .player-frame {
    width: 100dvw;
    max-width: 100dvw;
    margin-inline: calc((100% - 100dvw) / 2);
  }

  body {
    font-size: 15px;
  }

  html:has(body[data-auth="locked"]),
  html:has(body[data-auth="checking"]),
  body[data-auth="locked"],
  body[data-auth="checking"] {
    height: 100%;
    overflow: hidden;
  }

  .auth-shell {
    height: 100dvh;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    padding: 10px;
    gap: 0;
    overflow: hidden;
  }

  body[data-auth="landing"] .auth-shell.landing-shell {
    height: auto;
    min-height: 100dvh;
    padding: 0;
    overflow: visible;
  }

  body[data-auth="landing"] .landing-header,
  body[data-auth="landing"] .landing-main,
  body[data-auth="landing"] .landing-footer {
    width: auto;
    margin-left: 18px;
    margin-right: 18px;
  }

  body[data-auth="landing"] .section-head,
  body[data-auth="landing"] .results-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body[data-auth="landing"] .section-link {
    align-self: flex-start;
  }

  body[data-auth="landing"] .landing-section,
  body[data-auth="landing"] .hero-player-card,
  body[data-auth="landing"] .tools-layout > *,
  body[data-auth="landing"] .results-layout > *,
  body[data-auth="landing"] .wechat-panel > * {
    min-width: 0;
  }

  body[data-auth="landing"] .wechat-panel {
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  body[data-auth="landing"] .wechat-copy {
    min-height: 0;
    justify-content: flex-start;
  }

  body[data-auth="landing"] .wechat-copy h2 {
    margin-top: 0;
    font-size: 28px;
  }

  body[data-auth="landing"] .wechat-copy > p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  body[data-auth="landing"] .wechat-consider-note {
    margin-top: 14px !important;
    color: #ff9b35 !important;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.5 !important;
  }

  body[data-auth="landing"] .wechat-steps {
    gap: 8px;
    margin-top: 14px;
  }

  body[data-auth="landing"] .wechat-step {
    min-height: 0;
    padding: 12px;
    border-radius: 16px;
  }

  body[data-auth="landing"] .wechat-step h3 {
    margin-top: 10px;
    font-size: 15px;
  }

  body[data-auth="landing"] .wechat-step p {
    margin-top: 4px;
    font-size: 12px;
  }

  body[data-auth="landing"] .wechat-actions {
    gap: 8px;
    margin-top: 14px;
  }

  body[data-auth="landing"] .wechat-card {
    min-height: 0;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
  }

  body[data-auth="landing"] .wechat-qr-image {
    width: min(220px, 62vw);
    border-radius: 16px;
  }

  .auth-shell-header,
  .auth-shell-footer {
    display: none;
  }

  .auth-shell-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .auth-utility {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  .auth-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(108px, 22vh) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    overflow: hidden;
  }

  .auth-hero {
    min-height: 0;
    padding: 12px 16px;
    border-radius: 16px;
  }

  .auth-hero-copy {
    padding: 2px 0 0;
  }

  .auth-hero-copy::before {
    top: 18px;
    left: 52px;
  }

  .auth-hero-copy::after {
    right: 52px;
    bottom: 18px;
  }

  .auth-hero h1 {
    max-width: none;
    font-size: clamp(28px, 8vw, 36px);
    letter-spacing: 0.02em;
    line-height: 1.18;
  }

  .auth-hero p {
    display: none;
  }

  .auth-panel {
    min-height: 0;
    padding: 14px;
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .auth-tabs {
    padding: 3px;
    border-radius: 16px;
  }

  .auth-tab,
  .auth-submit {
    min-height: 50px;
  }

  .auth-field input {
    min-height: 52px;
    border-radius: 14px;
  }

  .auth-message {
    min-height: 52px;
  }

  .auth-hero-copy::before,
  .auth-hero-copy::after {
    display: none;
  }

  .app-shell {
    display: block;
    min-height: 100dvh;
  }

  /* 未登录首页同样使用单列移动端布局，避免 public 状态的桌面 Grid 覆盖手机布局。 */
  body[data-auth="public"] .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .rightbar {
    display: none;
  }

  .main {
    padding: 12px 22px 94px;
  }

  /* 手机端仅在设置页保留备案号，避免占用学习内容页的底部空间。 */
  body:is([data-view="vocab"], [data-view="favorites"], [data-view="history"]) .site-compliance-footer {
    display: none;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
  }

  .search-box {
    flex: 1;
    min-width: 0;
    max-width: none;
    height: 52px;
    border-radius: 26px;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .search-box input {
    font-size: 16px;
    font-weight: 500;
  }

  .home-filter-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .home-filter-toggle-label {
    display: none;
  }

  .home-filter-toggle-icon {
    width: 20px;
    height: 20px;
  }

  .home-filters {
    gap: 0;
    margin: 12px 0 14px;
  }

  .home-filter-row { padding: 7px 0; }

  .streak-badge {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(180deg, rgba(12, 12, 12, 0.92), rgba(7, 7, 7, 0.98)),
      #0b0b0b;
    backdrop-filter: blur(14px);
  }

  .mobile-nav-item {
    display: grid;
    gap: 4px;
    justify-items: center;
    min-height: 58px;
    padding: 9px 2px 7px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    box-shadow: none;
  }

  .mobile-nav-item .nav-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .mobile-nav-item .nav-icon svg {
    width: 24px;
    height: 24px;
  }

  .mobile-nav-item.active {
    color: var(--orange);
    background: rgba(255, 106, 0, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.2);
  }

  .mobile-nav-item.active::before {
    display: none;
  }

  .mobile-nav-item:hover {
    transform: none;
    color: var(--text);
  }

  body[data-view="watch"] .main {
    padding: 6px clamp(7px, calc(10vw - 25px), 12px) calc(120px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .section-title h1,
  .collection-title h1,
  .settings-title h1,
  #historyView h1,
  .home-heading h1 {
    letter-spacing: 0;
  }

  body[data-view="watch"] #backHomeBtn {
    position: absolute;
    top: 8px;
    left: clamp(10px, calc(20vw - 60px), 18px);
    z-index: 12;
    margin: 0;
    height: 34px;
    padding: 0 12px;
    font-size: 14px;
    max-width: calc(52% - clamp(10px, calc(20vw - 60px), 18px) - 8px);
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  body[data-view="watch"] #backHomeBtn::after {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-view="watch"] .watch-difficulty-badge {
    top: 8px;
    right: clamp(10px, calc(20vw - 60px), 18px);
    box-sizing: border-box;
    max-width: calc(48% - clamp(10px, calc(20vw - 60px), 18px) - 8px);
    min-width: 0;
    gap: clamp(4px, 2vw, 10px);
    padding-inline: clamp(8px, 3vw, 14px);
    overflow: hidden;
    container-type: inline-size;
  }

  body[data-view="watch"] .watch-difficulty-stars,
  body[data-view="watch"] .watch-difficulty-text {
    flex: 0 0 auto;
  }

  @container (max-width: 170px) {
    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-info {
      display: none;
    }
  }

  @container (max-width: 150px) {
    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-label {
      display: none;
    }

    body[data-view="watch"] .watch-difficulty-badge {
      justify-content: center;
      padding-inline: 8px;
    }

    body[data-view="watch"] .watch-difficulty-badge .rating-star {
      font-size: 15px;
    }
  }

  @media (max-width: 375px) {
    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-info {
      display: none;
    }
  }

  @media (max-width: 360px) {
    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-label {
      display: none;
    }
  }

  /* 所有手机端都保留完整难度信息，避免容器尺寸隔离把徽标压成一颗星。 */
  body[data-view="watch"] .watch-difficulty-badge {
    width: auto;
    max-width: none;
    min-height: 32px;
    padding-inline: 10px;
    container-type: normal;
    gap: 5px;
  }

  body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-label,
  body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-info {
    display: none;
  }

  body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 14px;
  }

  body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-text {
    display: inline;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  .watch-title-row {
    display: grid;
  }

  body[data-view="watch"] .watch-layout {
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 10px 0 0;
    height: auto;
    gap: 6px;
    overflow: visible;
  }

  body[data-view="watch"] .player-frame {
    aspect-ratio: 15 / 9;
    width: 100vw;
    max-width: none;
    height: auto;
    margin-inline: calc((100% - 100vw) / 2);
    border-radius: 0;
  }

  body[data-view="watch"] .watch-episode-badge {
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    font-size: 11px;
  }

  body[data-view="watch"] .player-tools {
    display: grid;
    grid-template-columns: minmax(52px, 1fr) minmax(28px, 0.62fr) 48px 54px 48px minmax(28px, 0.62fr) minmax(52px, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "loop speed prev play next subtitle fullscreen";
    align-items: center;
    min-height: 82px;
    padding: 6px 14px calc(6px + env(safe-area-inset-bottom));
    gap: 6px;
  }

  body[data-view="watch"] .play-toggle {
    grid-area: play;
    justify-self: center;
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 20px;
  }

  body[data-view="watch"] .time-readout {
    min-width: 34px;
    font-size: 12px;
    align-self: center;
  }

  body[data-view="watch"] #currentTimeText {
    display: none;
  }

  body[data-view="watch"] #durationTimeText {
    display: none;
  }

  body[data-view="watch"] .speed-menu {
    grid-area: speed;
    justify-self: center;
  }

  body[data-view="watch"] #watchActionButtons {
    display: contents;
  }

  body[data-view="watch"] #watchTransportButtons {
    display: contents;
  }

  body[data-view="watch"] .loop-toggle {
    display: inline-grid;
    grid-area: loop;
    justify-self: center;
    width: auto;
    min-width: 58px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #f3f5ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, 0.03);
  }

  body[data-view="watch"] .loop-toggle.active {
    color: var(--orange);
    border-color: rgba(255, 106, 0, 0.5);
    background: rgba(255, 106, 0, 0.1);
  }

  body[data-view="watch"] .mobile-video-step {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    border-color: transparent;
    background: transparent;
    color: #f3f5ff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
  }

  body[data-view="watch"] .mobile-video-step:disabled {
    opacity: 0.32;
  }

  body[data-view="watch"] .mobile-prev-video {
    grid-area: prev;
    justify-self: center;
  }

  body[data-view="watch"] .mobile-next-video {
    grid-area: next;
    justify-self: center;
  }

  body[data-view="watch"] #mobilePrevVideoBtn::before,
  body[data-view="watch"] #mobileNextVideoBtn::before {
    width: 30px;
    height: 30px;
  }

  body[data-view="watch"] .mobile-subtitle-mode {
    grid-area: subtitle;
    justify-self: center;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    color: #f3f5ff;
    font-size: 12px;
    font-weight: 900;
    background: transparent;
  }

  body[data-view="watch"] #fullscreenBtn {
    grid-area: fullscreen;
    justify-self: center;
  }

  body[data-view="watch"] #mobileFavoriteBtn {
    display: inline-grid;
    grid-area: fullscreen;
    justify-self: center;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border-color: transparent;
    border-radius: 999px;
    background: transparent;
    color: #f3f5ff;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    text-shadow: none;
  }

  body[data-view="watch"] #mobileFavoriteBtn.active {
    color: var(--orange);
  }

  body[data-view="watch"] #fullscreenBtn,
  body[data-view="watch"] .video-meta {
    display: none;
  }

  body[data-view="watch"] .watch-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body[data-view="watch"] .watch-title-row .watch-title-favorite {
    grid-area: auto;
    justify-self: auto;
    width: 32px;
    min-width: 32px;
    height: 32px;
  }

  body[data-view="watch"] .video-meta h1 {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body[data-view="watch"] .video-meta p {
    margin: 2px 0;
    font-size: 11px;
  }

  body[data-view="watch"] .watch-intro {
    display: none;
  }

  body[data-view="watch"] .source-link {
    display: none;
  }

  body[data-view="watch"] .video-stepper {
    display: none;
  }

  body[data-view="watch"] .player-column {
    position: relative;
    padding-top: 18px;
    overflow: visible;
  }

  body[data-view="watch"] .player-stage {
    position: relative;
  }

  body[data-view="watch"] .learning-panel {
    display: flex;
    flex-direction: column;
    min-height: 60dvh;
    height: 60dvh;
    max-height: 60dvh;
    overflow: hidden;
  }

  body[data-view="watch"] .tabs,
  body[data-view="watch"] .subtitle-mode-buttons,
  body[data-view="watch"] .subtitle-qa-summary,
  body[data-view="watch"] .subtitle-actions {
    position: sticky;
    z-index: 4;
    background: rgba(12, 13, 14, 0.96);
    backdrop-filter: blur(12px);
  }

  body[data-view="watch"] .tabs {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(2px, 1.6vw, 6px);
    min-height: 50px;
    padding: 3px clamp(2px, 1.6vw, 6px);
    overflow: hidden;
    top: 0;
  }

  body[data-view="watch"] .subtitle-mode-buttons {
    display: none;
  }

  body[data-view="watch"] .tab {
    min-width: 0;
    min-height: 38px;
    padding: 3px clamp(2px, 1.2vw, 5px);
    font-size: 12px;
    gap: clamp(3px, 1.3vw, 5px);
    overflow: hidden;
  }

  body[data-view="watch"] .tab em {
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    font-size: 10px;
  }

  @container (max-width: 350px) {
    body[data-view="watch"] .tabs .tab svg {
      display: none;
    }

    body[data-view="watch"] .tabs .tab[data-panel="expressions"] em {
      display: none;
    }
  }

  @media (max-width: 370px) {
    body[data-view="watch"] .tabs .tab svg {
      display: none;
    }

    body[data-view="watch"] .tabs .tab[data-panel="expressions"] em {
      display: none;
    }
  }

  body[data-view="watch"] .subtitle-qa-summary,
  body[data-view="watch"] .subtitle-actions {
    top: 52px;
  }

  body[data-view="watch"] .subtitle-qa-summary {
    display: none;
  }

body[data-view="watch"] .subtitle-list,
body[data-view="watch"] .word-list,
body[data-view="watch"] .learning-panel .essence-list {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 5px clamp(1px, calc(8vw - 28px), 4px) calc(10px + env(safe-area-inset-bottom));
  scroll-padding-top: 5px;
  scroll-padding-bottom: calc(14px + env(safe-area-inset-bottom));
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
}

  body[data-view="watch"] .subtitle-list {
    scrollbar-gutter: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body[data-view="watch"] .subtitle-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  body[data-view="watch"] .subtitle-row {
    grid-template-columns: minmax(0, 1fr) clamp(28px, 8vw, 32px);
    grid-template-areas:
      "time actions"
      "copy copy";
    gap: 8px clamp(4px, 1.4vw, 5px);
    height: auto;
    min-height: 0;
    padding: 8px clamp(4px, 1.4vw, 6px) 14px clamp(7px, 2.4vw, 10px);
    margin-bottom: 7px;
    overflow: hidden;
  }

  body[data-view="watch"] .subtitle-copy {
    grid-area: copy;
    min-width: 0;
    gap: 9px;
    padding-right: 0;
  }

  body[data-view="watch"] .subtitle-copy strong,
  body[data-view="watch"] .subtitle-copy em,
  body[data-view="watch"] .subtitle-copy strong span,
  body[data-view="watch"] .subtitle-copy em span {
    min-width: 0;
    max-width: 100%;
  }

  body[data-view="watch"] .subtitle-copy strong,
  body[data-view="watch"] .subtitle-copy em {
    flex-wrap: wrap;
  }

  body[data-view="watch"] .subtitle-copy strong {
    font-size: clamp(18px, 5.1vw, 19px);
    font-weight: 600;
    line-height: 1.21;
  }

  body[data-view="watch"] .subtitle-copy em {
    font-size: clamp(14px, 4.1vw, 15px);
    line-height: 1.35;
    padding-right: 0;
  }

  body[data-view="watch"] .subtitle-row .time {
    grid-area: time;
    align-self: center;
    font-size: 14px;
    line-height: 1.3;
  }

  body[data-view="watch"] .subtitle-row-actions {
    grid-area: actions;
    align-self: center;
    justify-self: end;
    z-index: 1;
    width: clamp(28px, 8vw, 32px);
    min-width: 0;
    gap: 6px;
    overflow: hidden;
  }

  body[data-view="watch"] .subtitle-row-actions button {
    width: clamp(28px, 8vw, 32px);
    height: clamp(28px, 8vw, 32px);
    max-width: 100%;
  }

  /* 手机端每句字幕只保留收藏，避免占用阅读宽度。 */
  body[data-view="watch"] .subtitle-row-actions button:not(.subtitle-save) {
    display: none;
  }

  body[data-view="watch"] .word-item {
    min-width: 0;
    padding: clamp(9px, 2.8vw, 12px) clamp(44px, 13vw, 52px) clamp(9px, 2.8vw, 12px) clamp(9px, 2.8vw, 12px);
  }

  body[data-view="watch"] .word-item-body,
  body[data-view="watch"] .word-title-row,
  body[data-view="watch"] .word-meaning,
  body[data-view="watch"] .word-example-en,
  body[data-view="watch"] .word-example-zh {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body[data-view="watch"] .word-title-row strong {
    font-size: clamp(16px, 4.4vw, 18px);
  }

  body[data-view="watch"] .learning-panel .essence-card {
    min-width: 0;
    padding: clamp(10px, 3vw, 14px) clamp(44px, 13vw, 52px) clamp(10px, 3vw, 14px) clamp(10px, 3vw, 14px);
  }

  body[data-view="watch"] #expressionList {
    grid-template-columns: 1fr;
  }

  body[data-view="watch"] .learning-panel .essence-card-expression-compact {
    gap: 0;
    padding: 4px;
    border-radius: 14px;
  }

  body[data-view="watch"] .essence-card-compact-header {
    min-height: 48px;
    padding: 8px 40px 8px 16px;
    border-radius: 10px;
  }

  body[data-view="watch"] .essence-card-compact-header .essence-card-word {
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.28;
  }

  body[data-view="watch"] .essence-card-compact-ribbon {
    left: 12px;
    width: 24px;
    height: 38px;
  }

  body[data-view="watch"] .essence-card-compact-ribbon svg {
    width: 16px;
    height: 21px;
  }

  body[data-view="watch"] .essence-card-compact-flow {
    grid-auto-rows: max-content;
    align-content: start;
    min-height: 0;
    gap: 0;
    padding: 0 0 8px 8px;
  }

  body[data-view="watch"] .essence-card-compact-flow::before {
    display: none;
    top: 14px;
    bottom: 8px;
    left: 10px;
  }

  body[data-view="watch"] .essence-card-section {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    align-self: start;
    padding: 0;
  }

  body[data-view="watch"] .essence-card-timeline-dot {
    display: none;
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 8px;
    height: 8px;
    margin-top: 6px;
  }

  body[data-view="watch"] .essence-card-section-icon {
    grid-column: 1;
    grid-row: 1;
    width: 24px;
    height: 24px;
  }

  body[data-view="watch"] .essence-card-section-icon-svg {
    width: 16px;
    height: 16px;
  }

  body[data-view="watch"] .essence-card-section-label {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
    font-size: 12px;
    white-space: normal;
  }

  body[data-view="watch"] .essence-card-section-content {
    grid-column: 2;
    grid-row: 2;
    gap: 0;
    padding-top: 0;
  }

  body[data-view="watch"] .essence-card-section-source .essence-card-section-content {
    margin-top: -4px;
  }

  body[data-view="watch"] .essence-card-source-text,
  body[data-view="watch"] .essence-card-usage-example-en {
    font-size: 13px;
    line-height: 1.4;
  }

  body[data-view="watch"] .essence-card-meaning-text,
  body[data-view="watch"] .essence-card-section-text,
  body[data-view="watch"] .essence-card-usage-example-zh {
    font-size: 12px;
    line-height: 1.4;
  }

  body[data-view="watch"] .essence-card-usage-pattern {
    padding: 0;
    font-size: 11px;
  }

  body[data-view="watch"] .essence-card-usage-examples {
    gap: 2px;
  }

  body[data-view="watch"] .essence-card-usage-example {
    gap: 2px;
    padding: 2px 5px;
  }

  body[data-view="watch"] .essence-card-usage-example-index {
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  body[data-view="watch"] .essence-card-word {
    font-size: clamp(16px, 4.4vw, 18px);
    overflow-wrap: anywhere;
  }

  body[data-view="watch"] .essence-card-meaning,
  body[data-view="watch"] .essence-card-example,
  body[data-view="watch"] .essence-card-analysis-value {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body[data-view="watch"] .word-popover {
    width: min(320px, calc(100vw - 28px));
    max-height: min(60dvh, 460px);
    padding: clamp(10px, 3vw, 12px);
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-view="watch"] .player-tools {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 68;
    margin: 0;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(17, 18, 19, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
  }

  body[data-view="watch"] .subtitle-row {
    scroll-margin-top: 8px;
    scroll-margin-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  /* 窄屏 Android：保留阅读密度，避免固定播放器遮住大段字幕。 */
  @media (max-width: 390px) {
    body[data-view="watch"] .watch-difficulty-badge {
      width: auto;
      max-width: none;
      min-height: 32px;
      padding-inline: 10px;
      container-type: normal;
      gap: 5px;
    }

    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-label,
    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-info {
      display: none;
    }

    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-stars {
      display: inline-flex;
      gap: 1px;
      font-size: 14px;
    }

    body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-text {
      display: inline;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
    }

    body[data-view="watch"] .learning-panel {
      min-height: 66dvh;
      height: 66dvh;
      max-height: 66dvh;
    }

    body[data-view="watch"] .player-tools {
      left: 12px;
      right: 12px;
      min-height: 78px;
      padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
      gap: 4px;
    }

    body[data-view="watch"] .play-toggle {
      width: 48px;
      height: 48px;
      flex-basis: 48px;
    }

    body[data-view="watch"] .mobile-video-step,
    body[data-view="watch"] .mobile-subtitle-mode,
    body[data-view="watch"] .loop-toggle {
      height: 44px;
    }

    body[data-view="watch"] .loop-toggle {
      min-width: 52px;
      padding-inline: 8px;
      font-size: 12px;
    }

    body[data-view="watch"] .subtitle-list {
      padding-bottom: calc(106px + env(safe-area-inset-bottom));
    }

    body[data-view="watch"] .subtitle-row {
      grid-template-columns: minmax(0, 1fr) 28px;
      grid-template-areas:
        "time actions"
        "copy copy";
      gap: 7px 4px;
      min-height: 100px;
      padding: 8px 4px 14px 6px;
      margin-bottom: 6px;
    }

    html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy strong {
      font-size: clamp(17px, 4.7vw, 18px);
      line-height: 1.11;
    }

    body[data-view="watch"] .subtitle-row-actions {
      gap: 0;
    }

    body[data-view="watch"] .subtitle-row-actions button:not(.subtitle-save) {
      display: none;
    }
  }

  @media (min-width: 391px) and (max-width: 430px) {
    html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy strong {
      font-size: clamp(17px, 4.7vw, 18px);
      line-height: 1.11;
    }
  }

  .video-stepper {
    justify-content: flex-start;
    padding-top: 0;
  }

  .category-rail,
  .category-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-categories {
    margin-top: 10px;
  }

  .home-categories .section-title {
    display: none;
  }

  .home-categories .category-rail {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 0 0;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-categories .category-rail::-webkit-scrollbar {
    display: none;
  }

  .home-categories .category-pill {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(32px, 9vw, 36px) auto;
    justify-items: center;
    align-items: center;
    min-width: 0;
    min-height: clamp(66px, 19vw, 74px);
    padding: 2px clamp(2px, 1.2vw, 6px) 5px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #c0c6d3;
    font-size: clamp(11px, 3.3vw, 13px);
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .home-categories .category-pill + .category-pill {
    box-shadow: none;
  }

  .home-categories .category-pill.active {
    color: var(--orange);
    background: transparent;
    box-shadow: none;
    position: relative;
  }

  .home-categories .category-pill.active::after {
    position: absolute;
    right: 24%;
    bottom: 1px;
    left: 24%;
    height: 2px;
    border-radius: 999px;
    background: var(--orange);
    content: "";
  }

  .home-categories .category-pill .category-arrow {
    display: none;
  }

  .home-categories .category-pill .category-icon {
    display: grid;
    width: clamp(40px, 11vw, 44px);
    height: clamp(40px, 11vw, 44px);
    margin-bottom: 2px;
    place-items: center;
    background: transparent;
    box-shadow: none;
  }

  .home-categories .category-pill .category-icon svg {
    width: clamp(20px, 6.4vw, 26px);
    height: clamp(20px, 6.4vw, 26px);
  }

  .home-categories .category-pill .category-icon img {
    width: clamp(38px, 10.6vw, 42px);
    height: clamp(38px, 10.6vw, 42px);
  }

  .home-categories .category-pill .category-name {
    grid-column: auto;
    font-weight: inherit;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    font-size: clamp(11px, 3.3vw, 13px);
  }

  .home-categories .category-page {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 4px;
    margin-top: 10px;
    max-width: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-categories .category-page::-webkit-scrollbar {
    display: none;
  }

  .home-categories .large-category {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 22px auto;
    justify-items: center;
    align-items: center;
    min-width: 118px;
    min-height: 78px;
    padding: 10px 14px 8px;
    text-align: center;
  }

  .home-categories .large-category .category-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
  }

  .home-categories .large-category .category-icon svg {
    width: 22px;
    height: 22px;
  }

  .home-categories .large-category .category-name {
    grid-column: auto;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
  }

  .home-categories .large-category .category-arrow {
    display: none;
  }

  .hero {
    min-height: 220px;
    padding: 28px 18px;
  }

  .home-heading h1 {
    font-size: 32px;
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 6px;
  }

  #homeView .home-heading {
    padding-inline: 8px;
  }

  body[data-view="home"] .main {
    padding-inline: 10px;
  }

  /* 安卓窄屏比 iPhone 可用宽度更小，主页整体向两侧回收一点。 */
  html.narrow-android-subtitles body[data-view="home"] .main {
    padding-inline: 8px;
  }

  .home-heading p {
    font-size: 15px;
    font-weight: 600;
    color: #aeb6c8;
  }

  .video-info h3 {
    font-size: clamp(17px, 4.7vw, 19px);
    line-height: 1.2;
    min-height: auto;
    margin-bottom: 0;
  }

  .video-info p,
  .video-info .meta-row {
    font-size: 14px;
  }

  .video-card .video-info .meta-row {
    display: none;
  }

  /* 手机主页：收窄卡片并把标题、作者、标签整理为两行信息层级。 */
  #homeView .home-categories + section {
    margin-top: 14px;
  }

  #homeView .video-grid {
    margin-inline: 8px;
  }

  #homeView .thumb {
    aspect-ratio: 16 / 9.6;
  }

  .history-card {
    gap: 12px;
    padding: 12px;
  }

  .history-card strong {
    font-size: 17px;
    line-height: 1.35;
  }

  .history-card span {
    font-size: 13px;
    line-height: 1.45;
  }

  .history-card small {
    font-size: 13px;
  }

  .collection-title h1 {
    font-size: 30px;
    line-height: 1.1;
  }

  .collection-title p {
    font-size: 15px;
    line-height: 1.45;
  }

  .favorite-section-head h2 {
    font-size: 19px;
  }

  .favorite-section-head h2 em {
    font-size: 16px;
  }

  .favorite-video-info {
    gap: 10px;
    padding: 14px;
  }

  .favorite-video-card strong {
    font-size: 17px;
    line-height: 1.35;
  }

  .favorite-video-info > span,
  .favorite-video-info small {
    font-size: 14px;
    line-height: 1.45;
  }

  .tag,
  .meta-row span {
    font-size: 12px;
    padding: 2px 7px;
  }

  .video-card .video-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title title"
      "author tags";
    column-gap: 10px;
    row-gap: 4px;
    align-items: center;
    padding: 9px 14px 10px;
  }

  .video-card .video-info h3 {
    grid-area: title;
    min-width: 0;
    margin-bottom: 0;
  }

  .video-card .video-info p {
    grid-area: author;
    margin: 0;
  }

  .video-card .tag-row {
    grid-area: tags;
    justify-self: end;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    gap: 4px;
    justify-content: flex-end;
    margin: 0;
    overflow: hidden;
  }

  .video-card .tag-row .tag {
    flex: 0 0 auto;
    max-width: calc((100% - 4px) / 2);
    overflow: hidden;
    padding: 2px 6px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .video-card .tag-row .tag:nth-child(n+3) {
    display: none;
  }

  .vocab-summary {
    grid-template-columns: 1fr;
  }

  .vocab-stat-card strong {
    font-size: 18px;
  }

  .vocab-table-toolbar {
    padding: 10px 14px 6px;
  }

  .vocab-table-shell {
    overflow-x: hidden;
  }

  .vocab-table {
    min-width: 0;
  }

  .time-grid,
  .vocab-list,
  .favorite-video-grid,
  .favorite-subtitle-list {
    grid-template-columns: 1fr;
  }

  #homeView .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #homeView .video-card .video-info { padding: 8px 9px 10px; }
  #homeView .video-card .video-info h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.35;
  }
  #homeView .video-card .video-info p {
    overflow: hidden;
    margin-top: 5px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #homeView .video-card .tag-row { gap: 3px; margin-top: 6px; }
  #homeView .video-card .tag-row .tag {
    max-width: 100%;
    overflow: hidden;
    padding: 2px 5px;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #homeView .video-card .tag-row {
    min-width: 0;
    max-width: 100%;
  }
  #homeView .video-card .thumb .duration-badge {
    right: 6px;
    bottom: 6px;
    min-height: 18px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(8, 8, 8, 0.66);
    font-size: 10px;
  }

  .favorites-tabs {
    gap: 18px;
    overflow-x: auto;
  }

  .favorites-tab {
    font-size: 16px;
  }

  .favorite-expression-head {
    display: none;
  }

  .favorite-expression-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .favorite-expression-section {
    width: 100%;
    transform: none;
  }

  .favorite-expression-source {
    grid-template-columns: 96px minmax(0, 1fr);
    justify-self: start;
  }

  .favorite-expression-thumb {
    width: 96px;
    height: 96px;
  }

  .favorite-expression-row > .table-checkbox {
    justify-self: start;
  }

  .favorite-expression-copy strong {
    font-size: 18px;
  }

  .favorite-expression-copy em {
    font-size: 10px !important;
  }

  .favorite-expression-source-copy strong {
    font-size: 18px;
  }

  .favorite-expression-source-copy span {
    font-size: 13px;
  }

  .setting-row {
    grid-template-columns: 44px 1fr;
  }

  .setting-options,
  .setting-switch {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .setting-options.compact {
    justify-content: stretch;
  }

  .setting-options button {
    flex: 1;
    padding: 0 10px;
  }

  body:not([data-view="watch"]) .player-tools {
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    margin-inline: 0;
    overflow-x: auto;
    padding: 10px 12px;
  }

  .progress-bar {
    min-width: 0;
  }
}

/* 常见 iPhone 宽度下，优先给上/下一个视频留出更大的独立操作间距。 */
@media (min-width: 381px) and (max-width: 820px) {
  body[data-view="watch"] .player-tools {
    grid-template-columns: minmax(42px, 1fr) minmax(20px, 0.55fr) 48px 54px 48px minmax(20px, 0.55fr) minmax(42px, 1fr);
    column-gap: 10px;
  }
}
/* 播放控制栏统一使用 Tabler 风格线性图标；全屏入口单独放在播放器角落，不占普通控制栏。 */
body[data-view="watch"] #watchFavoriteBtn::before,
body[data-view="watch"] #mobileFavoriteBtn::before,
body[data-view="watch"] .watch-favorite-btn::before,
body[data-view="watch"] #playToggleBtn::before,
body[data-view="watch"] #mobileSubtitleModeBtn::before,
body[data-view="watch"] #loopToggleBtn::before,
body[data-view="watch"] #mobilePrevVideoBtn::before,
body[data-view="watch"] #mobileNextVideoBtn::before {
  display: block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 24px 24px;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 24px 24px;
}

body[data-view="watch"] #watchFavoriteBtn::before,
body[data-view="watch"] #mobileFavoriteBtn::before,
body[data-view="watch"] .watch-favorite-btn::before {
  content: "";
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3.2 2.8 5.7 6.3.9-4.5 4.4 1.1 6.2L12 17.5l-5.6 2.9 1.1-6.2L3 9.8l6.2-.9z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3.2 2.8 5.7 6.3.9-4.5 4.4 1.1 6.2L12 17.5l-5.6 2.9 1.1-6.2L3 9.8l6.2-.9z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 星标只保留伪元素图标，隐藏按钮中的旧文字 ☆，避免重复显示。 */
body[data-view="watch"] #watchFavoriteBtn,
body[data-view="watch"] #mobileFavoriteBtn,
body[data-view="watch"] .watch-favorite-btn {
  font-size: 0 !important;
}

body[data-view="watch"] #watchFavoriteBtn::before,
body[data-view="watch"] #mobileFavoriteBtn::before,
body[data-view="watch"] .watch-favorite-btn::before {
  flex: 0 0 24px;
}

body[data-view="watch"] #mobileSubtitleModeBtn::before {
  content: "";
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm3 10h5m3 0h2m-1-3h-3m-2 0H9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zm3 10h5m3 0h2m-1-3h-3m-2 0H9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 最终图标规则：使用真实 SVG，关闭旧版所有伪元素，避免双图标。 */
body[data-view="watch"] .toolbar-tabler-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-view="watch"] #playToggleBtn .toolbar-tabler-icon {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: none;
}

body[data-view="watch"] #watchFavoriteBtn::before,
body[data-view="watch"] #mobileFavoriteBtn::before,
body[data-view="watch"] .watch-favorite-btn::before,
body[data-view="watch"] #playToggleBtn::before,
body[data-view="watch"] #mobileSubtitleModeBtn::before,
body[data-view="watch"] #loopToggleBtn::before,
body[data-view="watch"] #mobilePrevVideoBtn::before,
body[data-view="watch"] #mobileNextVideoBtn::before {
  content: none !important;
  display: none !important;
}

body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn {
  display: inline-grid;
  order: 5;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #f3f5ff;
}

body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn.active {
  color: var(--orange);
}

body[data-view="watch"] #watchFavoriteBtn.active .toolbar-tabler-icon,
body[data-view="watch"] #mobileFavoriteBtn.active .toolbar-tabler-icon {
  fill: currentColor;
}

body[data-view="watch"] #speedButtons {
  width: 38px;
  height: 38px;
  margin-right: 0;
}

body[data-view="watch"] #speedMenuBtn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #f3f5ff;
  background: transparent;
  transform: none;
}

body[data-view="watch"] #speedMenuBtn .toolbar-tabler-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 820px) {
  body[data-view="watch"] .player-tools {
    grid-template-columns: 34px 42px 36px 54px 36px 38px 34px;
    column-gap: 4px;
    padding-inline: 8px;
  }

  body[data-view="watch"] #mobileFavoriteBtn {
    display: inline-grid !important;
    grid-area: fullscreen;
    width: 34px;
    height: 34px;
  }
}

/* Web 控制栏：图标组从时长后开始，均匀铺到右边界。 */
@media (min-width: 821px) {
  body[data-view="watch"] .player-tools {
    grid-template-columns: 44px minmax(0, 1fr) minmax(276px, 0.58fr);
    column-gap: 8px;
  }

  body[data-view="watch"] #watchTransportButtons,
  body[data-view="watch"] #playToggleBtn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-basis: 44px;
  }

  body[data-view="watch"] #watchTimeline { gap: 12px; }

  body[data-view="watch"] #watchActionButtons {
    width: 100%;
    height: 44px;
    display: grid !important;
    grid-template-columns: repeat(6, 38px);
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  body[data-view="watch"] #watchActionButtons > *,
  body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn,
  body[data-view="watch"] #speedButtons,
  body[data-view="watch"] #speedMenuBtn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }

  body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn {
    display: inline-grid !important;
    place-items: center;
  }

  body[data-view="watch"] #playToggleBtn {
    place-items: center;
    transform: none !important;
  }
}

/* Web 控制栏最终约束：三列结构和六个图标都由同一网格负责定位。 */
@media (min-width: 821px) {
  body[data-view="watch"] .player-tools { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(276px, 0.58fr); align-items: center; column-gap: 8px; height: 60px; min-height: 60px; transform: none !important; }
  body[data-view="watch"] #watchTransportButtons,
  body[data-view="watch"] #playToggleBtn { display: grid; place-items: center; align-self: center; width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; transform: none !important; }
  body[data-view="watch"] #playToggleBtn { border: 0; border-radius: 0; background: transparent; color: #f3f5ff; }
  body[data-view="watch"] #playToggleBtn .toolbar-lucide-icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
  body[data-view="watch"] #playToggleBtn[aria-label="播放"] .toolbar-lucide-icon { transform: translateX(1.5px); }
  body[data-view="watch"] #watchTimeline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; align-self: center; min-width: 0; height: 44px; gap: 12px; }
  body[data-view="watch"] #watchActionButtons { display: grid !important; grid-template-columns: repeat(6, minmax(38px, 1fr)); align-items: center; justify-items: center; align-self: center; width: 100%; height: 44px; margin: 0; padding: 0; gap: 0; transform: none !important; }
  body[data-view="watch"] #mobilePanelToggleBtn { display: none !important; }
  body[data-view="watch"] #subtitleModeButtons { order: 1; display: grid !important; grid-template-columns: 1fr; place-items: center; gap: 0; width: 38px; min-width: 38px; height: 38px; padding: 0; }
  body[data-view="watch"] #subtitleModeButtons .panel-menu { display: grid; place-items: center; width: 38px; height: 38px; min-width: 38px; flex: none; }
  body[data-view="watch"] #subtitleModeMenuBtn { width: 38px; min-width: 38px; height: 38px; min-height: 38px; }
  body[data-view="watch"] #subtitleModeMenuBtn::after { content: none; }
  body[data-view="watch"] #speedButtons { order: 2; }
  body[data-view="watch"] #mobilePrevVideoBtn { order: 3; }
  body[data-view="watch"] #mobileNextVideoBtn { order: 4; }
  body[data-view="watch"] #mobileFavoriteBtn { order: 5; }
  body[data-view="watch"] #watchActionButtons > *,
  body[data-view="watch"] #speedButtons,
  body[data-view="watch"] #speedMenuBtn { display: grid !important; place-items: center; align-self: center; width: 38px; min-width: 38px; height: 38px; min-height: 38px; margin: 0; padding: 0; transform: none !important; }
  body[data-view="watch"] #watchActionButtons > #subtitleModeButtons { width: 38px; min-width: 38px; }
  body[data-view="watch"] #watchActionButtons > #mobilePanelToggleBtn { display: none !important; }
  body[data-view="watch"] #speedMenuBtn,
  body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn { border: 0; background: transparent; color: #f3f5ff; }
  body[data-view="watch"] #watchActionButtons > #mobileFavoriteBtn { display: grid !important; }
  body[data-view="watch"] #mobileFavoriteBtn.active,
  body[data-view="watch"] #watchFavoriteBtn.active { color: var(--orange); }
  body[data-view="watch"] #mobileFavoriteBtn.active .toolbar-lucide-icon,
  body[data-view="watch"] #watchFavoriteBtn.active .toolbar-lucide-icon { fill: currentColor; }
  body[data-view="watch"] #watchFavoriteBtn::before,
  body[data-view="watch"] #mobileFavoriteBtn::before,
  body[data-view="watch"] .watch-favorite-btn::before,
  body[data-view="watch"] #playToggleBtn::before,
  body[data-view="watch"] #mobileSubtitleModeBtn::before,
  body[data-view="watch"] #loopToggleBtn::before,
  body[data-view="watch"] #mobilePrevVideoBtn::before,
  body[data-view="watch"] #mobileNextVideoBtn::before { content: none !important; display: none !important; }
}
/* Web 控制栏最终约束：结束。 */

/* Web 字幕字号参照：与确认截图一致，只约束电脑端。 */
@media (min-width: 821px) {
  body[data-view="watch"] .subtitle-copy strong { font-size: 15px; }
  body[data-view="watch"] .subtitle-copy em { font-size: 13px; }
  body[data-view="watch"] .subtitle-row .time { font-size: 16px; }
  body[data-view="watch"] .tabs .tab { font-size: 15px; }
}
/* Web 字幕字号参照：结束。 */

/* Web 播放页学习标签栏高度：只收紧外层栏和按钮，不改文字与交互。 */
@media (min-width: 821px) {
  body[data-view="watch"] .learning-panel > .tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 50px;
  }

  body[data-view="watch"] .learning-panel > .tabs .tab {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    gap: 4px;
    padding-inline: 2px;
    overflow: hidden;
    font-size: 14px;
  }

  body[data-view="watch"] .learning-panel > .tabs .tab > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="watch"] .learning-panel > .tabs .tab svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  body[data-view="watch"] .learning-panel > .tabs .tab em {
    min-width: 18px;
    height: 18px;
    padding-inline: 5px;
    flex: 0 0 auto;
    font-size: 11px;
  }

  html[data-theme="light"] body[data-view="watch"] .learning-panel {
    border: 1px solid rgba(42, 37, 32, 0.1);
  }
}

/* 浅色主题最终覆盖：确保晚于桌面和手机端通用样式。 */
html[data-theme="light"] body { background: radial-gradient(circle at 48% -8%, rgba(255,114,0,.1), transparent 30%), linear-gradient(180deg,#fffdf9 0%,#faf8f3 58%,#f3f0ea 100%); }
html[data-theme="light"] .sidebar { background: linear-gradient(180deg,#fffdf9,#f3f0ea); }
html[data-theme="light"] .search-box,
html[data-theme="light"] .streak-badge,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .home-filter-toggle,
html[data-theme="light"] .home-filters,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .video-card,
html[data-theme="light"] .learning-panel,
html[data-theme="light"] .setting-row {
  border-color: rgba(42,37,32,.13);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(73,57,38,.08);
}
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .nav-item:hover { color: var(--text); background: linear-gradient(90deg,rgba(255,114,0,.16),rgba(255,114,0,.06),transparent); }
html[data-theme="light"] .learning-panel { background: #fffdf9; }
html[data-theme="light"] .tabs,
html[data-theme="light"] .tab,
html[data-theme="light"] .subtitle-row,
html[data-theme="light"] .setting-options.compact,
html[data-theme="light"] .stat-mini-icon { border-color: rgba(42,37,32,.1); background: rgba(42,37,32,.035); color: var(--text); }
html[data-theme="light"] .subtitle-row.active { background: linear-gradient(90deg,rgba(255,114,0,.15),rgba(255,114,0,.04)),#fffdf9; }
html[data-theme="light"] .auth-shell { background: linear-gradient(180deg,#fffdf9 0%,#faf8f3 56%,#f3f0ea 100%); }
html[data-theme="light"] .auth-card,
html[data-theme="light"] .auth-panel,
html[data-theme="light"] .auth-field input,
html[data-theme="light"] .auth-message { border-color: rgba(42,37,32,.13); background: #fff; color: var(--text); }
html[data-theme="light"] .mobile-tabbar { border-top-color: rgba(42,37,32,.1); background: linear-gradient(180deg,rgba(255,255,255,.96),rgba(243,240,234,.98)); }

/* 手机播放页使用整页连续滚动，避免字幕内部滚动拦截微信浏览器的收起手势。 */
@media (max-width: 820px) {
  body[data-view="watch"] .learning-panel {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  body[data-view="watch"] .subtitle-list,
  body[data-view="watch"] .word-list,
  body[data-view="watch"] .learning-panel .essence-list {
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

/* 手机播放页恢复根页面滚动，让微信内置浏览器可以正常收起底部导航栏。 */
@media (max-width: 820px) {
  html[data-view="watch"],
  body[data-view="watch"] {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body[data-view="watch"] .app-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-view="watch"] .main {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
}

/* 手机控制栏：与 Web 共用 Lucide SVG，但以独立的七项网格定位。 */
@media (max-width: 820px) {
  body[data-view="watch"] .player-tools {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 50px;
    grid-template-areas: "loop speed prev play next subtitle favorite";
    align-items: center;
    min-height: 62px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    gap: 6px;
  }

  body[data-view="watch"] #watchTransportButtons,
  body[data-view="watch"] #watchActionButtons { display: contents; }
  body[data-view="watch"] #playToggleBtn { grid-area: play; display: grid; place-items: center; justify-self: center; align-self: center; width: 38px; min-width: 38px; height: 38px; min-height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #f3f5ff; transform: none !important; }
  body[data-view="watch"] #speedButtons { display: grid; grid-area: speed; place-items: center; }
  body[data-view="watch"] .loop-toggle { grid-area: loop; }
  body[data-view="watch"] .mobile-prev-video { grid-area: prev; }
  body[data-view="watch"] .mobile-next-video { grid-area: next; }
  body[data-view="watch"] .mobile-subtitle-mode { grid-area: subtitle; }
  body[data-view="watch"] #mobileFavoriteBtn { grid-area: favorite; }

  body[data-view="watch"] .loop-toggle,
  body[data-view="watch"] .mobile-video-step,
  body[data-view="watch"] .mobile-subtitle-mode,
  body[data-view="watch"] #mobileFavoriteBtn,
  body[data-view="watch"] #speedMenuBtn {
    display: grid !important;
    place-items: center;
    justify-self: center;
    align-self: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f3f5ff;
    transform: none !important;
  }

  body[data-view="watch"] #watchTimeline { display: none !important; }
  body[data-view="watch"] #playToggleBtn .toolbar-lucide-icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
  body[data-view="watch"] #playToggleBtn[aria-label="播放"] .toolbar-lucide-icon { transform: translateX(1.5px); }
  body[data-view="watch"] .toolbar-lucide-icon { width: 24px; height: 24px; }
  body[data-view="watch"] #mobileFavoriteBtn.active { color: var(--orange); }
  body[data-view="watch"] #mobileFavoriteBtn.active .toolbar-lucide-icon { fill: currentColor; }
  body[data-view="watch"] #watchFavoriteBtn::before,
  body[data-view="watch"] #mobileFavoriteBtn::before,
  body[data-view="watch"] .watch-favorite-btn::before,
  body[data-view="watch"] #playToggleBtn::before,
  body[data-view="watch"] #mobileSubtitleModeBtn::before,
  body[data-view="watch"] #loopToggleBtn::before,
  body[data-view="watch"] #mobilePrevVideoBtn::before,
  body[data-view="watch"] #mobileNextVideoBtn::before { content: none !important; display: none !important; }
}

/* 浅色主题字幕可读性：英文正文使用深色，重点词仍由各自颜色规则覆盖。 */
html[data-theme="light"] body[data-view="watch"] .subtitle-copy strong { color: #181818; }

/* 浅色首页对比度：分类标签不能继承深色主题的白字。 */
html[data-theme="light"] .home-categories .category-pill { color: #2b2926; }
html[data-theme="light"] .home-categories .category-pill .category-name { color: #2b2926; }
html[data-theme="light"] .home-categories .category-pill.active { color: var(--orange); }
html[data-theme="light"] .home-categories .category-pill .category-icon { background: transparent; box-shadow: none; }

/* 浅色卡片标签：蓝、绿、橙、黄分别承担不同信息层级。 */
html[data-theme="light"] .video-card .tag,
html[data-theme="light"] .favorite-video-card .tag { color: #2878e8; border-color: rgba(40,120,232,.24); background: #edf4ff; }
html[data-theme="light"] .video-card .tag-row .tag:nth-child(2n),
html[data-theme="light"] .favorite-video-card .tag-row .tag:nth-child(2n) { color: #159a77; border-color: rgba(21,154,119,.24); background: #eaf8f2; }
html[data-theme="light"] .video-card .tag-row .tag:nth-child(3n),
html[data-theme="light"] .favorite-video-card .tag-row .tag:nth-child(3n) { color: #d96a00; border-color: rgba(217,106,0,.24); background: #fff1e5; }
html[data-theme="light"] .video-card .tag-row .tag:nth-child(4n),
html[data-theme="light"] .favorite-video-card .tag-row .tag:nth-child(4n) { color: #9a5ca8; border-color: rgba(154,92,168,.22); background: #f7eef9; }
html[data-theme="light"] .video-card .tag-row .tag.difficulty-tag,
html[data-theme="light"] .favorite-video-card .tag-row .tag.difficulty-tag { color: #986b00; border-color: rgba(214,164,42,.34); background: #fff3c9; }

/* 浅色学习环：保留橙色进度，但把中心和空环底色换成米白层次。 */
html[data-theme="light"] .ring {
  background:
    radial-gradient(circle at center, #fffdf9 54%, transparent 56%),
    conic-gradient(var(--orange) var(--ring-progress, 0deg), rgba(255,114,0,.2) 0);
  box-shadow: inset 0 0 30px rgba(73,57,38,.1), 0 0 22px rgba(255,114,0,.1);
}
html[data-theme="light"] .ring.empty {
  background:
    radial-gradient(circle at center, #fffdf9 54%, transparent 56%),
    conic-gradient(rgba(255,114,0,.2) 0deg, rgba(255,114,0,.2) 360deg);
  box-shadow: inset 0 0 30px rgba(73,57,38,.1);
}

/* 浅色播放页：控制栏、进度条和标题必须沿用浅色主题的对比关系。 */
html[data-theme="light"] body[data-view="watch"] .player-tools {
  border-color: rgba(42,37,32,.14);
  background: rgba(255,253,249,.96);
  color: #2b2926;
  box-shadow: none;
}
html[data-theme="light"] body[data-view="watch"] #currentTimeText,
html[data-theme="light"] body[data-view="watch"] #durationTimeText {
  color: #2b2926 !important;
}
html[data-theme="light"] body[data-view="watch"] .player-tools .time-readout,
html[data-theme="light"] body[data-view="watch"] .player-tools .toolbar-tabler-icon,
html[data-theme="light"] body[data-view="watch"] .player-tools .toolbar-lucide-icon,
html[data-theme="light"] body[data-view="watch"] .player-tools #playToggleBtn,
html[data-theme="light"] body[data-view="watch"] .player-tools #speedMenuBtn,
html[data-theme="light"] body[data-view="watch"] .player-tools #watchActionButtons > *,
html[data-theme="light"] body[data-view="watch"] .player-tools #mobileFavoriteBtn,
html[data-theme="light"] body[data-view="watch"] .player-tools .loop-toggle,
html[data-theme="light"] body[data-view="watch"] .player-tools .mobile-video-step,
html[data-theme="light"] body[data-view="watch"] .player-tools .mobile-subtitle-mode {
  color: #2b2926;
}
html[data-theme="light"] body[data-view="watch"] .player-tools #watchActionButtons > #mobileFavoriteBtn.active,
html[data-theme="light"] body[data-view="watch"] .player-tools #mobileFavoriteBtn.active,
html[data-theme="light"] body[data-view="watch"] .player-tools .loop-toggle.active {
  color: var(--orange);
}
html[data-theme="light"] body[data-view="watch"] #progressBar {
  background: transparent;
}
html[data-theme="light"] body[data-view="watch"] #progressBar::-webkit-slider-runnable-track {
  background: linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) var(--progress-fill),
    #d8d2c9 var(--progress-fill),
    #d8d2c9 100%
  );
}
html[data-theme="light"] body[data-view="watch"] #progressBar::-moz-range-track {
  background: linear-gradient(
    90deg,
    var(--orange) 0,
    var(--orange) var(--progress-fill),
    #d8d2c9 var(--progress-fill),
    #d8d2c9 100%
  );
}
html[data-theme="light"] body[data-view="watch"] #progressBar::-webkit-slider-thumb {
  border-color: #fffdf9;
  box-shadow: 0 2px 8px rgba(73,57,38,.24);
}
html[data-theme="light"] body[data-view="watch"] #progressBar::-moz-range-thumb {
  border-color: #fffdf9;
  box-shadow: 0 2px 8px rgba(73,57,38,.24);
}
html[data-theme="light"] body[data-view="watch"] .video-meta h1 {
  color: #181818;
}
html[data-theme="light"] body[data-view="watch"] .video-meta p {
  color: #625e58;
}
html[data-theme="light"] body[data-view="watch"] .video-meta {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
html[data-theme="light"] body[data-view="watch"] .watch-title-row .watch-title-favorite {
  border-color: rgba(42,37,32,.18);
  background: rgba(42,37,32,.045);
  color: #2b2926;
}
html[data-theme="light"] body[data-view="watch"] #backHomeBtn {
  border-color: rgba(42,37,32,.16);
  background: rgba(255,255,255,.78);
  color: #181818;
  box-shadow: 0 8px 22px rgba(73,57,38,.1);
}
html[data-theme="light"] body[data-view="watch"] #backHomeBtn:hover,
html[data-theme="light"] body[data-view="watch"] #backHomeBtn:focus-visible {
  background: #fff;
}
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge {
  border-color: rgba(42,37,32,.16);
  background: rgba(255,255,255,.9);
  color: #2b2926;
  box-shadow: 0 12px 28px rgba(73,57,38,.16);
}
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-label,
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-text {
  color: #2b2926;
}
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge .rating-star,
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge .rating-star.empty {
  color: rgba(42,37,32,.24);
}
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge .rating-star.full {
  color: var(--orange);
}
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge .rating-star.half {
  background: linear-gradient(90deg, var(--orange) 50%, rgba(42,37,32,.24) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] body[data-view="watch"] .watch-difficulty-badge .watch-difficulty-info {
  border-color: rgba(42,37,32,.18);
  color: #625e58;
}

/* 浅色生词本：覆盖词表组件内部遗留的深色固定底和白色固定字。 */
html[data-theme="light"] #vocabView .vocab-table-shell {
  border-color: rgba(42,37,32,.13);
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 42px rgba(73,57,38,.1);
}
html[data-theme="light"] #vocabView .vocab-table-meta strong {
  color: #181818;
}
html[data-theme="light"] #vocabView .vocab-table-meta span,
html[data-theme="light"] #vocabView .vocab-selection-count,
html[data-theme="light"] #vocabView .vocab-selection-hint,
html[data-theme="light"] #vocabView .vocab-empty-state {
  color: #77736d;
}
html[data-theme="light"] #vocabView .vocab-table thead th {
  border-color: rgba(42,37,32,.1);
  color: #625e58;
}
html[data-theme="light"] #vocabView .vocab-table tbody tr {
  border-color: rgba(42,37,32,.1);
}
html[data-theme="light"] #vocabView .vocab-table td {
  color: #2b2926;
}
html[data-theme="light"] #vocabView .vocab-row.selected {
  background: rgba(255,114,0,.08);
}
html[data-theme="light"] #vocabView .vocab-export-format,
html[data-theme="light"] #vocabView .vocab-select-all-btn,
html[data-theme="light"] #vocabView .vocab-bulk-btn {
  border-color: rgba(255,114,0,.28);
  background: rgba(255,114,0,.08);
  color: #b65300;
}

/* 浅色主题：学习工作台辅助页面文字对比度。 */
html[data-theme="light"] #favoritesView .favorites-tabs {
  border-bottom-color: rgba(42,37,32,.1);
}
html[data-theme="light"] #favoritesView .favorites-tab:not(.active),
html[data-theme="light"] #favoritesView .favorites-tab:not(.active) em {
  color: var(--muted);
}
html[data-theme="light"] #favoritesView .vocab-table-meta strong,
html[data-theme="light"] #favoritesView .favorite-expression-row,
html[data-theme="light"] #favoritesView .favorite-expression-copy strong,
html[data-theme="light"] #favoritesView .favorite-expression-format-btn,
html[data-theme="light"] #favoritesView .table-checkbox {
  color: var(--text);
}
html[data-theme="light"] #favoritesView .favorite-expression-head,
html[data-theme="light"] #favoritesView .favorite-expression-copy em {
  color: var(--muted);
}
html[data-theme="light"] #favoritesView .favorite-expression-row {
  border-color: rgba(42,37,32,.1);
  background: rgba(255,255,255,.72);
}
html[data-theme="light"] #favoritesView .favorite-expression-row:hover {
  border-color: rgba(255,114,0,.24);
  background: rgba(255,255,255,.94);
}
html[data-theme="light"] #favoritesView .favorite-expression-format-btn {
  border-color: rgba(42,37,32,.14);
  background: rgba(42,37,32,.035);
}
html[data-theme="light"] #favoritesView .table-checkbox {
  border-color: rgba(42,37,32,.24);
  background: rgba(42,37,32,.025);
}
html[data-theme="light"] #favoritesView .collection-export-options {
  border-color: rgba(42,37,32,.13);
  background: #fff;
  box-shadow: 0 12px 28px rgba(73,57,38,.16);
}
html[data-theme="light"] #favoritesView .collection-export-options button {
  color: var(--text);
}

html[data-theme="light"] #vocabView .vocab-stat-card strong,
html[data-theme="light"] #vocabView .vocab-word-meaning,
html[data-theme="light"] #vocabView .vocab-example-label,
html[data-theme="light"] #vocabView .vocab-example {
  color: var(--text);
}
html[data-theme="light"] #vocabView .vocab-meaning-list li {
  color: var(--muted);
}

/* 浅色生词本最终视觉约束：勾选框清晰，内容列在手机端保持紧凑。 */
html[data-theme="light"] #vocabView .table-checkbox {
  border-color: rgba(42, 37, 32, 0.36);
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(42, 37, 32, 0.04);
  color: #ffffff;
}

html[data-theme="light"] #vocabView .table-checkbox.checked {
  border-color: #ff7200;
  background: #ff7200;
  color: #ffffff;
  box-shadow: none;
}

html[data-theme="light"] #vocabView .vocab-table-shell {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(73, 57, 38, 0.08);
}

html[data-theme="light"] #vocabView .vocab-table thead th {
  background: #faf8f3;
}

html[data-theme="light"] #vocabView .vocab-table tbody tr:hover {
  background: rgba(255, 114, 0, 0.035);
}

html[data-theme="light"] #vocabView .word-title-row strong,
html[data-theme="light"] #vocabView .word-meaning,
html[data-theme="light"] #vocabView .word-meaning-row {
  color: #181818;
}

@media (max-width: 820px) {
  html[data-theme="light"] #vocabView .section-title {
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
  }

  html[data-theme="light"] #vocabView .section-title h1 {
    font-size: 24px;
  }

  html[data-theme="light"] #vocabView .ghost-btn {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(42, 37, 32, 0.14);
    border-radius: 999px;
    background: rgba(42, 37, 32, 0.035);
    color: #625e58;
    font-size: 11px;
  }

  html[data-theme="light"] #vocabView .vocab-table-shell {
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(73, 57, 38, 0.07);
  }

  html[data-theme="light"] #vocabView .vocab-table-toolbar {
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px 10px;
  }

  html[data-theme="light"] #vocabView .vocab-table-meta strong {
    font-size: 17px;
  }

  html[data-theme="light"] #vocabView .vocab-table-meta span,
  html[data-theme="light"] #vocabView .vocab-selection-hint {
    font-size: 11px;
  }

  html[data-theme="light"] #vocabView .vocab-table-actions {
    gap: 6px;
  }

  html[data-theme="light"] #vocabView .vocab-select-all-btn {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 13px;
  }

  html[data-theme="light"] #vocabView .vocab-table thead th {
    padding: 11px 6px;
    font-size: 12px;
  }

  html[data-theme="light"] #vocabView .vocab-table td {
    padding: 13px 6px;
    font-size: 12px;
  }

  html[data-theme="light"] #vocabView .vocab-table th.col-check,
  html[data-theme="light"] #vocabView .vocab-table td.col-check {
    width: 34px;
    padding-left: 10px;
    padding-right: 2px;
  }

  html[data-theme="light"] #vocabView .vocab-table th.col-word,
  html[data-theme="light"] #vocabView .vocab-table td.col-word {
    width: 30%;
  }

  html[data-theme="light"] #vocabView .vocab-table th.col-meaning,
  html[data-theme="light"] #vocabView .vocab-table td.col-meaning {
    padding-left: 6px;
    padding-right: 4px;
  }

  html[data-theme="light"] #vocabView .vocab-table th.col-jump,
  html[data-theme="light"] #vocabView .vocab-table td.col-jump {
    width: 68px;
    padding-left: 3px;
    padding-right: 8px;
  }

  html[data-theme="light"] #vocabView .table-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 5px;
  }

  html[data-theme="light"] #vocabView .word-title-row,
  html[data-theme="light"] #vocabView .word-meaning-row {
    gap: 5px;
  }

  html[data-theme="light"] #vocabView .word-title-row strong {
    font-size: 16px;
  }

  html[data-theme="light"] #vocabView .vocab-word-phonetic {
    font-size: 11px;
  }

  html[data-theme="light"] #vocabView .word-pos {
    padding: 2px 5px;
    font-size: 10px;
  }

  html[data-theme="light"] #vocabView .word-meaning {
    font-size: 12px;
    line-height: 1.35;
  }

  html[data-theme="light"] #vocabView .vocab-jump-btn {
    min-width: 58px;
    min-height: 32px;
    padding-inline: 8px;
    font-size: 12px;
  }
}
/* 浅色生词本最终视觉约束：结束。 */

html[data-theme="light"] #historyView .history-card,
html[data-theme="light"] #historyView .history-card strong {
  color: var(--text);
}
html[data-theme="light"] #historyView .history-card {
  border-color: rgba(42,37,32,.1);
  background: rgba(255,255,255,.78);
}

html[data-theme="light"] #settingsView .setting-row {
  color: var(--text);
  background: rgba(255,255,255,.9);
}
html[data-theme="light"] #settingsView .setting-options button:hover {
  color: var(--text);
  background: rgba(42,37,32,.045);
}
/* 浅色主题：学习工作台辅助页面文字对比度：结束。 */

/* 字幕卡片最终约束：短句不被任何窄屏规则固定撑高。 */
body[data-view="watch"] .subtitle-row {
  height: auto;
  min-height: 0;
}

/* Web 字幕卡片高度：内容自适应，短句保留最小阅读空间。 */
@media (min-width: 821px) {
  body[data-view="watch"] .subtitle-row {
    height: auto;
    min-height: 120px;
    grid-template-columns: var(--tune-subtitle-time-width) minmax(0, 1fr);
    padding-right: 60px;
  }

  body[data-view="watch"] .subtitle-row-actions {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
  }
}
/* Web 字幕卡片高度：结束。 */

/* 浅色主题侧栏选中态：用浅橙色块和实心橙色标记，避免渐变和发光。 */
html[data-theme="light"] .sidebar .nav-item.active,
html[data-theme="light"] .sidebar .nav-item:hover {
  background: rgba(255,114,0,.1);
  color: var(--orange);
  box-shadow: none;
}
html[data-theme="light"] .sidebar .nav-item.active::before {
  background: var(--orange);
  box-shadow: none;
}

/* 默认不改变桌面布局，手机端再把返回与难度变成独立顶部行。 */
.watch-mobile-header {
  display: contents;
}

/* 手机播放页：独立顶部栏、普通播放器、下方字幕滚动。 */
@media (max-width: 820px) {
  html[data-view="watch"],
  body[data-view="watch"] {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  body[data-view="watch"] .app-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body[data-view="watch"] .main {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100dvh;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 6px;
    overflow: hidden;
  }

  body[data-view="watch"] #watchView.active-view {
    display: grid;
    flex: 1 1 auto;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  body[data-view="watch"] .watch-mobile-header {
    position: relative;
    z-index: 12;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(126px, 36vw, 150px);
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0;
  }

  body[data-view="watch"] #backHomeBtn,
  body[data-view="watch"] .watch-difficulty-badge {
    position: static;
    inset: auto;
    margin: 0;
  }

  body[data-view="watch"] #backHomeBtn {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    justify-self: start;
  }

  body[data-view="watch"] .watch-difficulty-badge {
    grid-column: 2;
    justify-self: end;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    overflow: visible;
  }

  body[data-view="watch"] #backHomeBtn::after {
    width: 0;
    max-width: none;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-view="watch"] .watch-layout {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
  }

  body[data-view="watch"] .player-column {
    position: static;
    flex: 0 0 auto;
    min-height: 0;
    padding-top: 0;
    overflow: visible;
    background: transparent;
  }

  body[data-view="watch"] .learning-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  body[data-view="watch"] .tabs,
  body[data-view="watch"] .subtitle-mode-buttons,
  body[data-view="watch"] .subtitle-qa-summary,
  body[data-view="watch"] .subtitle-actions {
    position: static;
  }

  body[data-view="watch"] .subtitle-list,
  body[data-view="watch"] .word-list,
  body[data-view="watch"] .learning-panel .essence-list {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* 手机首页五行筛选栏：每行收进可用宽度，禁止横向溢出。 */
@media (max-width: 820px) {
  #homeView .home-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    padding: 8px 10px;
    overflow: visible;
  }

  #homeView .home-filter-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    padding: 7px 0;
  }

  #homeView .home-filter-label {
    font-size: 12px;
    line-height: 30px;
  }

  #homeView .home-filter-options {
    gap: 5px;
    min-width: 0;
  }

  #homeView .home-filter-choice {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 12px;
  }

  #homeView .home-filter-count,
  #homeView .home-filter-clear {
    grid-column: 1 / -1;
    padding-top: 6px;
  }

  #homeView .home-filter-choice:focus-visible {
    outline: 2px solid rgba(255, 114, 0, 0.52);
    outline-offset: 1px;
  }

  #homeView .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 3vw, 12px);
    margin-inline: clamp(4px, 2vw, 8px);
    width: auto;
    min-width: 0;
    align-items: stretch;
    justify-items: stretch;
  }

  #homeView .video-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #homeView .video-card .thumb,
  #homeView .video-card .video-info {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  #homeView .video-card .video-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  #homeView .video-card .video-info p,
  #homeView .video-card .tag-row {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  #homeView .home-filters {
    padding-inline: 8px;
  }

  #homeView .home-filter-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 6px;
  }

  #homeView .home-filter-choice {
    padding-inline: 6px;
    font-size: 11px;
  }
}

/* 浅色主题最终覆盖：搜索框和搜索历史下拉层使用浅色底。 */
html[data-theme="light"] .search-box {
  border-color: rgba(42, 37, 32, 0.13);
  background: #ffffff;
  color: #77736d;
  box-shadow: 0 14px 34px rgba(73, 57, 38, 0.08);
}

html[data-theme="light"] .search-box input {
  color: #181818;
  caret-color: #ff7200;
}

html[data-theme="light"] .search-box input::placeholder {
  color: #77736d;
  opacity: 1;
}

@media (min-width: 821px) {
  html[data-theme="light"] .search-history-menu {
    border-color: rgba(42, 37, 32, 0.13);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(73, 57, 38, 0.14);
  }

  html[data-theme="light"] .search-history-item {
    color: #181818;
  }

  html[data-theme="light"] .search-history-item:hover,
html[data-theme="light"] .search-history-item:focus-visible {
    background: rgba(255, 114, 0, 0.1);
    color: #181818;
  }
}

/* 浅色主题最终覆盖：学习面板标签数字使用深色，保证清晰可读。 */
html[data-theme="light"] body[data-view="watch"] .tabs .tab {
  color: #181818;
}

html[data-theme="light"] body[data-view="watch"] .tabs .tab.active {
  color: var(--orange);
}

html[data-theme="light"] body[data-view="watch"] .tabs .tab em {
  background: rgba(42, 37, 32, 0.06);
  color: #181818;
}

html[data-theme="light"] body[data-view="watch"] .tabs .tab.active em {
  background: rgba(255, 114, 0, 0.2);
  color: var(--orange);
}

/* 手机营销页：收紧顶部留白，同时把试看区的层级间距拉开。 */
@media (max-width: 820px) {
  body[data-auth="landing"] .landing-header {
    padding-top: 0;
    padding-bottom: 16px;
  }

  body[data-auth="landing"] .landing-header-actions {
    margin-top: 8px;
  }

  body[data-auth="landing"] .trial-section .section-head {
    gap: 14px;
    margin-bottom: 18px;
  }

  body[data-auth="landing"] .trial-section .section-link {
    margin-top: 2px;
  }

  /* 手机营销页顶部背景统一，避免 html/body 与营销壳之间出现色带。 */
  html:has(body[data-auth="landing"]),
  body[data-auth="landing"],
  body[data-auth="landing"] .auth-shell.landing-shell {
    background: linear-gradient(180deg, #160b05 0%, #0e0805 42%, #080604 100%) !important;
  }

  body[data-auth="landing"] .auth-shell.landing-shell::before,
  body[data-auth="landing"] .auth-shell.landing-shell::after {
    display: none;
  }
}

/* 手机播放页：把四类学习内容收进底部展开面板，播放器和字幕滚动保持原位。 */
.mobile-study-drawer {
  display: none;
}

.mobile-panel-toggle {
  display: none;
}

@media (max-width: 820px) {
  body[data-view="watch"] #subtitleModeButtons {
    display: none !important;
  }

  body[data-view="watch"] .player-frame {
    /* 先用 16:9 占位，视频元数据就绪后由 JS 替换为源视频真实比例。 */
    aspect-ratio: var(--watch-video-aspect-ratio, 16 / 9);
  }

  body[data-view="watch"] .player-frame video {
    /* 外框与源视频比例同步，contain 保证任何比例都不裁边。 */
    object-fit: contain;
  }

  body[data-view="watch"] .player-tools {
    grid-template-areas: "loop speed prev play next favorite panel";
  }

  body[data-view="watch"] .mobile-panel-toggle {
    grid-area: panel;
    display: grid !important;
    place-items: center;
    justify-self: center;
    align-self: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f3f5ff;
    transform: none !important;
  }

  body[data-view="watch"] .mobile-panel-toggle::before {
    content: none !important;
    display: none !important;
  }

  body[data-view="watch"] .tabs {
    display: none;
  }

  body[data-view="watch"] #mobileStudyDrawer {
    display: block;
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 67;
    max-height: min(42dvh, 320px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transform-origin: bottom center;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }

  body[data-view="watch"] #mobileStudyDrawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  body[data-view="watch"] .mobile-study-drawer-surface {
    max-height: min(42dvh, 320px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(20, 20, 21, 0.97);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(20px);
  }

  body[data-view="watch"] .mobile-study-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-view="watch"] .mobile-study-tab {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e8ebf2;
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  body[data-view="watch"] .mobile-study-tab svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body[data-view="watch"] .mobile-study-tab.active {
    border-color: rgba(255, 114, 0, 0.62);
    background: rgba(255, 114, 0, 0.14);
    color: var(--orange);
  }

  body[data-view="watch"] .mobile-study-tab:active,
  body[data-view="watch"] #mobilePanelToggleBtn:active,
  body[data-view="watch"] .mobile-subtitle-mode-list button:active {
    transform: scale(0.96);
  }

  body[data-view="watch"] .mobile-subtitle-mode-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  body[data-view="watch"] .mobile-subtitle-mode-options.hidden {
    display: none;
  }

  body[data-view="watch"] .mobile-study-mode-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  body[data-view="watch"] .mobile-subtitle-mode-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
    width: min(220px, 100%);
  }

  body[data-view="watch"] .mobile-subtitle-mode-list button {
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #e8ebf2;
    font-size: 12px;
    font-weight: 800;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  body[data-view="watch"] .mobile-subtitle-mode-list button.active {
    border-color: rgba(255, 114, 0, 0.62);
    background: rgba(255, 114, 0, 0.14);
    color: var(--orange);
  }

  body[data-view="watch"] #mobilePanelToggleBtn[aria-expanded="true"] {
    color: var(--orange);
  }

  body[data-view="watch"] #mobilePanelToggleBtn .mobile-panel-chevron {
    transition: transform 180ms ease;
  }

  body[data-view="watch"] #mobilePanelToggleBtn[aria-expanded="true"] .mobile-panel-chevron {
    transform: rotate(180deg);
  }

  html[data-theme="light"] body[data-view="watch"] .mobile-study-drawer-surface {
    border-color: rgba(42, 37, 32, 0.14);
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 18px 40px rgba(73, 57, 38, 0.18);
  }

  html[data-theme="light"] body[data-view="watch"] .mobile-study-tab,
  html[data-theme="light"] body[data-view="watch"] .mobile-subtitle-mode-list button,
  html[data-theme="light"] body[data-view="watch"] .mobile-panel-toggle {
    border-color: rgba(42, 37, 32, 0.1);
    background: rgba(42, 37, 32, 0.035);
    color: #181818;
  }

  html[data-theme="light"] body[data-view="watch"] .mobile-study-tab.active,
  html[data-theme="light"] body[data-view="watch"] .mobile-subtitle-mode-list button.active {
    border-color: rgba(255, 114, 0, 0.5);
    background: rgba(255, 114, 0, 0.12);
    color: var(--orange);
  }

  html[data-theme="light"] body[data-view="watch"] #mobilePanelToggleBtn[aria-expanded="true"] {
    color: var(--orange);
  }

  html[data-theme="light"] body[data-view="watch"] .mobile-subtitle-mode-options {
    border-top-color: rgba(42, 37, 32, 0.1);
  }
}

@media (max-width: 390px) {
  body[data-view="watch"] #mobileStudyDrawer {
    left: 12px;
    right: 12px;
    bottom: calc(102px + env(safe-area-inset-bottom));
  }
}

/* 浅色主题实用表达可读性：英文表达和解析内容必须在白底上保持深色对比。 */
html[data-theme="light"] body[data-view="watch"] .essence-card-expression .essence-card-word {
  color: #181818;
}

html[data-theme="light"] body[data-view="watch"] .essence-card-expression .essence-card-example {
  color: #181818;
}

html[data-theme="light"] body[data-view="watch"] .essence-card-expression .essence-card-example-zh {
  color: #625e58;
}

html[data-theme="light"] body[data-view="watch"] .essence-card-expression .essence-card-analysis-value {
  color: #625e58;
}

html[data-theme="light"] body[data-view="watch"] .essence-card-expression .essence-card-analysis-item {
  border-color: rgba(42, 37, 32, 0.1);
  background: rgba(42, 37, 32, 0.025);
}

html[data-theme="light"] body[data-view="watch"] .essence-card-expression-compact .essence-card-source-text,
html[data-theme="light"] body[data-view="watch"] .essence-card-expression-compact .essence-card-usage-pattern,
html[data-theme="light"] body[data-view="watch"] .essence-card-expression-compact .essence-card-usage-example-en {
  color: #181818;
}

html[data-theme="light"] body[data-view="watch"] .essence-card-expression-compact .essence-card-meaning-text,
html[data-theme="light"] body[data-view="watch"] .essence-card-expression-compact .essence-card-section-text,
html[data-theme="light"] body[data-view="watch"] .essence-card-expression-compact .essence-card-usage-example-zh {
  color: #625e58;
}

html[data-theme="light"] body[data-view="watch"] .essence-card-expression .essence-save-toggle {
  background: rgba(42, 37, 32, 0.045);
  color: #625e58;
}

/* 浅色播放页：短语和实用表达的收藏按钮保持可见，已收藏状态使用橙色。 */
html[data-theme="light"] body[data-view="watch"] #phraseList .essence-save-toggle {
  background: rgba(42, 37, 32, 0.045);
  color: #625e58;
}

html[data-theme="light"] body[data-view="watch"] #phraseList .essence-save-toggle.saved,
html[data-theme="light"] body[data-view="watch"] .essence-card-expression .essence-save-toggle.saved {
  background: rgba(255, 106, 0, 0.16);
  color: var(--orange);
}

/* 浅色播放页：取消收藏等操作提示使用浅色底，避免深色遮罩与文字对比不足。 */
html[data-theme="light"] .word-quick {
  border-color: rgba(255, 106, 0, 0.34);
  background: rgba(255, 253, 249, 0.96);
  color: #2b2926;
  box-shadow: 0 14px 36px rgba(73, 57, 38, 0.18);
}

/* 桌面端实用表达：只缩小卡片内部字号，不影响顶部切换标签和手机端布局。 */
@media (min-width: 821px) {
  body[data-view="watch"] .essence-card-expression .essence-card-word {
    font-size: 16px;
  }

  body[data-view="watch"] .essence-card-expression .essence-card-meaning,
  body[data-view="watch"] .essence-card-expression .essence-card-example,
  body[data-view="watch"] .essence-card-expression-compact .essence-card-source-text,
  body[data-view="watch"] .essence-card-expression-compact .essence-card-usage-pattern,
  body[data-view="watch"] .essence-card-expression-compact .essence-card-usage-example-en {
    font-size: 13px;
  }

  body[data-view="watch"] .essence-card-expression .essence-card-example-zh,
  body[data-view="watch"] .essence-card-expression .essence-card-analysis-title,
  body[data-view="watch"] .essence-card-expression .essence-card-analysis-label,
  body[data-view="watch"] .essence-card-expression .essence-card-analysis-value,
  body[data-view="watch"] .essence-card-expression-compact .essence-card-section-label,
  body[data-view="watch"] .essence-card-expression-compact .essence-card-meaning-text,
  body[data-view="watch"] .essence-card-expression-compact .essence-card-section-text,
  body[data-view="watch"] .essence-card-expression-compact .essence-card-usage-example-zh {
    font-size: 12px;
  }

  body[data-view="watch"] .essence-card-expression .essence-save-toggle {
    font-size: 16px;
  }
}

/* 电脑端表达解析可使用收藏按钮下方的预留区，右侧靠近外框但不改变手机布局。 */
@media (min-width: 821px) {
  body[data-view="watch"] .essence-card-expression .essence-card-analysis-item {
    width: calc(100% + 96px);
    box-sizing: border-box;
  }
}

/* 手机播放页：顶部栏上下等距，视频与字幕直接衔接，移除字幕外层框。 */
@media (max-width: 820px) {
  body[data-view="watch"] #watchView.active-view {
    margin-top: 12px;
  }

  body[data-view="watch"] .watch-mobile-header {
    margin-bottom: 12px;
  }

  body[data-view="watch"] .watch-layout {
    row-gap: 0;
  }

  body[data-view="watch"] .learning-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-view="watch"] #subtitleActions {
    display: none !important;
  }

  body[data-view="watch"] .subtitle-list,
  body[data-view="watch"] .word-list,
  body[data-view="watch"] .learning-panel .essence-list {
    padding-top: 0;
  }
}

/* 手机学习面板：四个分类标签保持单行紧凑。 */
@media (max-width: 820px) {
  body[data-view="watch"] .mobile-study-tabs {
    gap: 4px;
  }

  body[data-view="watch"] .mobile-study-tab {
    gap: 2px;
    padding-inline: 2px;
    font-size: clamp(10px, 3vw, 12px);
    line-height: 1;
    white-space: nowrap;
  }

  body[data-view="watch"] .mobile-study-tab svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  body[data-view="watch"] .mobile-study-tab[data-panel="expressions"] {
    min-width: 0;
    white-space: nowrap;
    letter-spacing: -0.03em;
  }
}
/* 手机学习面板：四个分类标签保持单行紧凑：结束。 */

/* 手机播放页：视频卡片圆角与无黑边。 */
@media (max-width: 820px) {
  body[data-view="watch"] .player-frame {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
  }

  body[data-view="watch"] .player-frame video {
    object-fit: contain;
    border-radius: inherit;
    background: transparent;
  }
}
/* 手机播放页：视频卡片圆角与无黑边：结束。 */

/* 手机播放页：视频卡片与字幕卡左右对齐。 */
@media (max-width: 820px) {
  body[data-view="watch"] {
    --watch-content-inset: clamp(1px, calc(8vw - 28px), 4px);
  }

  body[data-view="watch"] .player-frame {
    box-sizing: border-box;
    width: calc(100% - var(--watch-content-inset) - var(--watch-content-inset));
    max-width: none;
    margin-inline: var(--watch-content-inset);
  }

  html.iphone-viewport body[data-view="watch"] .player-frame {
    width: calc(100% - var(--watch-content-inset) - var(--watch-content-inset));
    margin-inline: var(--watch-content-inset);
  }
}
/* 手机播放页：视频卡片与字幕卡左右对齐：结束。 */

/* 手机播放页：字幕与底部控制栏留出安全边界。 */
@media (max-width: 820px) {
  body[data-view="watch"] .watch-layout {
    row-gap: 6px;
  }

  body[data-view="watch"] .learning-panel {
    clip-path: inset(0 0 calc(16px + env(safe-area-inset-bottom)) 0);
  }

  body[data-view="watch"] .player-tools {
    background: #111213;
  }

  html[data-theme="light"] body[data-view="watch"] .player-tools {
    background: #fffdf9;
  }
}
/* 手机播放页：字幕与底部控制栏留出安全边界：结束。 */

/* 手机播放页：底部播放控制栏贴近浏览器栏。 */
@media (max-width: 820px) {
  body[data-view="watch"] .player-tools {
    bottom: calc(2px + env(safe-area-inset-bottom));
  }
}
/* 手机播放页：底部播放控制栏贴近浏览器栏：结束。 */

/* 手机播放页：字幕时间与收藏栏紧凑化。 */
@media (max-width: 820px) {
  body[data-view="watch"] .subtitle-row {
    grid-template-columns: max-content max-content minmax(0, 1fr);
    grid-template-areas:
      "time loop actions"
      "copy copy copy";
    padding-top: 5px;
    row-gap: 3px;
  }

  body[data-view="watch"] .subtitle-row .time {
    grid-area: time;
  }

  body[data-view="watch"] .subtitle-copy {
    grid-area: copy;
  }

  body[data-view="watch"] .subtitle-row-actions {
    grid-area: actions;
  }

  body[data-view="watch"] .mobile-subtitle-single-loop {
    display: grid;
    grid-area: loop;
    grid-column: auto;
    justify-self: start;
    align-self: center;
    width: clamp(24px, 7vw, 28px);
    height: clamp(24px, 7vw, 28px);
    margin: 0;
    border-radius: 8px;
  }

  body[data-view="watch"] .desktop-subtitle-single-loop {
    display: none;
  }

  body[data-view="watch"] .subtitle-zh-line {
    display: block;
  }

  body[data-view="watch"] .subtitle-single-loop-icon {
    width: 16px;
    height: 16px;
  }

  body[data-view="watch"] .subtitle-row .time {
    font-size: 12px;
    line-height: 1.15;
  }

  body[data-view="watch"] .subtitle-row-actions {
    width: clamp(24px, 7vw, 28px);
  }

  body[data-view="watch"] .subtitle-row-actions button {
    width: clamp(24px, 7vw, 28px);
    height: clamp(24px, 7vw, 28px);
  }

  body[data-view="watch"] .subtitle-row-actions svg {
    width: 16px;
    height: 16px;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row {
    padding-top: 5px;
    row-gap: 3px;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row .time {
    font-size: 12px;
    line-height: 1.15;
  }

  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row-actions,
  html.narrow-android-subtitles body[data-view="watch"] .subtitle-row-actions button {
    width: clamp(24px, 7vw, 28px);
    height: clamp(24px, 7vw, 28px);
  }
}

/* 桌面播放页：压缩控制栏和作者到目录的留白，为目录保留空间。 */
@media (min-width: 821px) {
  body[data-view="watch"] .player-tools {
    height: 52px;
    min-height: 52px;
    padding-block: 4px;
  }

  body[data-view="watch"] .video-meta {
    padding-bottom: 8px;
  }

  body[data-view="watch"] .video-chapters .video-chapters-heading {
    padding-top: 6px;
  }
}
/* 手机播放页：字幕时间与收藏栏紧凑化：结束。 */

/* 浅色播放页：未选中字幕卡片底色减淡。 */
html[data-theme="light"] body[data-view="watch"] .subtitle-row:not(.active) {
  border-color: rgba(42, 37, 32, 0.08);
  background: rgba(42, 37, 32, 0.018);
}
/* 浅色播放页：未选中字幕卡片底色减淡：结束。 */

/* 播放页未播放状态：优先展示视频封面。 */
.player-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #111213;
  cursor: pointer;
  appearance: none;
}

.player-cover[hidden] {
  display: none !important;
}

.player-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 播放页未播放状态：优先展示视频封面：结束。 */

/* 手机首页：主题图标居中与分类图标放大。 */
@media (max-width: 820px) {
  .theme-toggle {
    display: inline-grid;
    place-items: center;
  }

  .theme-toggle-icon {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    font-size: 20px;
    line-height: 1;
  }

  .home-categories .category-pill .category-icon {
    width: clamp(44px, 11.5vw, 48px);
    height: clamp(44px, 11.5vw, 48px);
  }

  .home-categories .category-pill .category-icon svg {
    width: clamp(24px, 7.2vw, 30px);
    height: clamp(24px, 7.2vw, 30px);
  }

  .home-categories .category-pill .category-icon img {
    width: clamp(42px, 11.2vw, 46px);
    height: clamp(42px, 11.2vw, 46px);
  }
}
/* 手机首页：主题图标居中与分类图标放大：结束。 */

/* Web 首页：分类行保持紧凑比例。 */
@media (min-width: 821px) {
  .home-categories .category-rail {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
  }

  .home-categories .category-pill {
    grid-template-rows: 48px auto;
    min-height: 78px;
    padding: 6px 8px;
  }

  .home-categories .category-pill .category-icon {
    width: 48px;
    height: 48px;
  }

  .home-categories .category-pill .category-icon svg {
    width: 40px;
    height: 40px;
  }

  .home-categories .category-pill .category-icon img {
    width: 48px;
    height: 48px;
  }

  .home-categories .category-pill .category-name {
    font-size: 11px;
  }
}
/* Web 首页：分类行保持紧凑比例：结束。 */

/* 浅色登录页：注册提示文字使用深色辅助色。 */
html[data-theme="light"] .auth-register-link {
  color: rgba(42, 37, 32, .68);
}

html[data-theme="light"] .auth-register-link span {
  color: var(--orange);
}

html[data-theme="light"] .auth-register-link:hover,
html[data-theme="light"] .auth-register-link:focus-visible {
  color: var(--text);
}
/* 浅色登录页：注册提示文字使用深色辅助色：结束。 */

/* 手机首页：视频卡片紧凑瀑布流间距。 */
@media (max-width: 820px) {
  body[data-view="home"] #homeView .video-grid {
    gap: clamp(6px, 1.8vw, 8px);
    width: calc(100% + clamp(4px, 2vw, 8px));
    margin-inline: clamp(-4px, -1vw, -2px);
  }
}
/* 手机首页：视频卡片紧凑瀑布流间距：结束。 */

/* 浅色播放页：单词释义弹框使用浅色卡片。 */
html[data-theme="light"] .word-popover {
  border-color: rgba(42, 37, 32, 0.14);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 114, 0, 0.08), transparent 36%),
    radial-gradient(circle at 12% 96%, rgba(255, 114, 0, 0.05), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 253, 249, 0.98));
  color: var(--text);
  box-shadow: 0 18px 52px rgba(73, 57, 38, 0.18), 0 0 24px rgba(255, 114, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .word-popover::before {
  border-top-color: rgba(42, 37, 32, 0.14);
  border-left-color: rgba(42, 37, 32, 0.14);
  background: #fffdf9;
}

html[data-theme="light"] .word-popover .term-meaning-list,
html[data-theme="light"] .word-popover .term-definition,
html[data-theme="light"] .word-popover .term-example-zh {
  color: var(--muted);
}

html[data-theme="light"] .word-popover .word-save-row {
  background: rgba(42, 37, 32, 0.06);
  color: var(--muted);
}

html[data-theme="light"] .word-popover .word-save-row.saved,
html[data-theme="light"] .word-popover .word-save-row:disabled {
  background: rgba(255, 114, 0, 0.12);
  color: var(--text);
}
/* 浅色播放页：单词释义弹框使用浅色卡片：结束。 */

/* 桌面端侧栏边缘：用横向渐变替代硬分界线，向主内容自然消失。 */
@media (min-width: 821px) {
  .app-shell > .sidebar {
    position: relative;
    z-index: 1;
    border-right: 0;
    box-shadow: none;
    mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 18px), transparent 100%);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
  }
}
/* 桌面端侧栏边缘：结束。 */

/* 手机首页主题按钮：固定圆形尺寸，太阳图形几何居中。 */
@media (max-width: 820px) {
  .theme-toggle {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
  }

  .theme-toggle-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    font-size: 28px;
    line-height: 30px;
    text-align: center;
  }
}
/* 手机首页主题按钮：结束。 */

/* 手机主页：作者与标签分行，标签完整显示。 */
@media (max-width: 820px) {
  #homeView .video-card .video-info {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "title"
      "author"
      "tags";
    row-gap: 4px;
  }

  #homeView .video-card .video-info p {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #homeView .video-card .tag-row {
    justify-self: start;
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
  }

  #homeView .video-card .tag-row .tag {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }
}
/* 手机主页：作者与标签分行，标签完整显示：结束。 */

/* 营销页主题：与学习站共用 vloglish:settings.theme，默认深色，浅色采用同一套暖白橙色体系。 */
.landing-theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 132px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.landing-theme-toggle:hover {
  border-color: rgba(255, 155, 53, 0.6);
  background: rgba(255, 106, 0, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.landing-theme-toggle:focus-visible {
  outline: 3px solid rgba(255, 155, 53, 0.38);
  outline-offset: 3px;
}

.landing-theme-toggle-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #ff9b35;
  line-height: 0;
}

.landing-theme-toggle-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

html[data-theme="light"]:has(body[data-auth="landing"]),
html[data-theme="light"] body[data-auth="landing"] {
  color-scheme: light;
  background: #faf8f3;
}

html[data-theme="light"] body[data-auth="landing"] .auth-shell.landing-shell {
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 114, 0, 0.11), transparent 18%),
    radial-gradient(circle at 80% 14%, rgba(255, 174, 87, 0.13), transparent 18%),
    linear-gradient(180deg, #fffdf9 0%, #faf8f3 44%, #f3f0ea 100%);
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .landing-brand,
html[data-theme="light"] body[data-auth="landing"] .landing-footer {
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .landing-nav-link {
  color: rgba(24, 24, 24, 0.62);
}

html[data-theme="light"] body[data-auth="landing"] .landing-nav-link:hover,
html[data-theme="light"] body[data-auth="landing"] .landing-nav-link.active {
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .landing-theme-toggle {
  border-color: rgba(42, 37, 32, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: #181818;
  box-shadow: 0 8px 22px rgba(73, 57, 38, 0.08);
}

html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-header-trial,
html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-login-entry,
html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-main-entry {
  border-color: #ff8a24;
  background: linear-gradient(135deg, #ff6a00, #ff8f1f);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 114, 0, 0.18);
}

html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-header-trial:hover,
html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-header-trial:focus-visible,
html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-login-entry:hover,
html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-login-entry:focus-visible,
html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-main-entry:hover,
html[data-theme="light"] body[data-auth="landing"] .landing-header-actions .landing-main-entry:focus-visible {
  border-color: #ffb067;
  background: linear-gradient(135deg, #ff7410, #ffa347);
  color: #fff;
}

html[data-theme="light"] body[data-auth="landing"] .landing-theme-toggle:hover {
  border-color: rgba(255, 114, 0, 0.48);
  background: rgba(255, 114, 0, 0.08);
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .hero-title-image {
  content: url("./assets/landing/hero-title-cutout-light.png?v=20260813-title-hd-01");
  filter: none;
}

html[data-theme="light"] body[data-auth="landing"] .trial-card img {
  filter: brightness(0.9) saturate(1.03);
}

html[data-theme="light"] body[data-auth="landing"] .trial-card::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.3)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 55%);
}

html[data-theme="light"] body[data-auth="landing"] .landing-action.ghost,
html[data-theme="light"] body[data-auth="landing"] .landing-action.secondary {
  border-color: rgba(42, 37, 32, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .hero-subtitle,
html[data-theme="light"] body[data-auth="landing"] .section-head p,
html[data-theme="light"] body[data-auth="landing"] .results-header p,
html[data-theme="light"] body[data-auth="landing"] .hero-social-proof,
html[data-theme="light"] body[data-auth="landing"] .hero-proof-note,
html[data-theme="light"] body[data-auth="landing"] .tool-card p,
html[data-theme="light"] body[data-auth="landing"] .result-stage p,
html[data-theme="light"] body[data-auth="landing"] .wechat-copy > p,
html[data-theme="light"] body[data-auth="landing"] .wechat-step p,
html[data-theme="light"] body[data-auth="landing"] .wechat-card p {
  color: #6f6a63;
}

html[data-theme="light"] body[data-auth="landing"] .hero-social-proof strong {
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .hero-proof {
  border-color: rgba(255, 114, 0, 0.18);
  background: rgba(255, 114, 0, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] body[data-auth="landing"] .hero-proof-item {
  border-right-color: rgba(42, 37, 32, 0.11);
}

html[data-theme="light"] body[data-auth="landing"] .hero-proof-item span,
html[data-theme="light"] body[data-auth="landing"] .theme-copy small {
  color: #6f6a63;
}

html[data-theme="light"] body[data-auth="landing"] .pill,
html[data-theme="light"] body[data-auth="landing"] .theme-card,
html[data-theme="light"] body[data-auth="landing"] .tool-card,
html[data-theme="light"] body[data-auth="landing"] .result-card,
html[data-theme="light"] body[data-auth="landing"] .faq-item {
  border-color: rgba(42, 37, 32, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
  color: #181818;
  box-shadow: 0 12px 32px rgba(73, 57, 38, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body[data-auth="landing"] .pill {
  color: #292521;
}

html[data-theme="light"] body[data-auth="landing"] .device-showcase {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 181, 111, 0.18), transparent 48%),
    radial-gradient(circle at 60% 60%, rgba(255, 114, 0, 0.08), transparent 60%);
}

html[data-theme="light"] body[data-auth="landing"] .device-showcase-shell::after {
  background: radial-gradient(ellipse at center, rgba(73, 57, 38, 0.54) 0%, rgba(73, 57, 38, 0.34) 42%, rgba(73, 57, 38, 0) 78%);
}

html[data-theme="light"] body[data-auth="landing"] .device-showcase-shell::before {
  box-shadow:
    0 20px 22px rgba(73, 57, 38, 0.28),
    0 34px 54px rgba(73, 57, 38, 0.24);
}

html[data-theme="light"] body[data-auth="landing"] .device-showcase-image {
  border-color: rgba(42, 37, 32, 0.12);
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 179, 105, 0.15), transparent 40%),
    radial-gradient(circle at 50% 82%, rgba(255, 114, 0, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 237, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  filter:
    drop-shadow(0 24px 80px rgba(255, 114, 0, 0.08))
    drop-shadow(0 30px 120px rgba(73, 57, 38, 0.28));
}

html[data-theme="light"] body[data-auth="landing"] .landing-tools-image {
  filter: drop-shadow(0 22px 48px rgba(73, 57, 38, 0.18));
}

html[data-theme="light"] body[data-auth="landing"] .section-link,
html[data-theme="light"] body[data-auth="landing"] .faq-item summary::after {
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .faq-item p {
  color: #6f6a63;
}

html[data-theme="light"] body[data-auth="landing"] .wechat-panel {
  border-color: rgba(42, 37, 32, 0.12);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 114, 0, 0.11), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(255, 174, 87, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 28px 90px rgba(73, 57, 38, 0.1);
}

html[data-theme="light"] body[data-auth="landing"] .wechat-step,
html[data-theme="light"] body[data-auth="landing"] .wechat-card {
  border-color: rgba(42, 37, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body[data-auth="landing"] .wechat-card strong {
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .wechat-copy-button {
  border-color: rgba(42, 37, 32, 0.14);
  background: rgba(42, 37, 32, 0.06);
  color: #181818;
}

html[data-theme="light"] body[data-auth="landing"] .wechat-copy-button:hover {
  border-color: rgba(255, 114, 0, 0.42);
  background: rgba(255, 114, 0, 0.1);
}

html[data-theme="light"] body[data-auth="landing"] .landing-footer {
  border-top-color: rgba(42, 37, 32, 0.11);
}

@media (max-width: 820px) {
  html[data-theme="light"]:has(body[data-auth="landing"]),
  html[data-theme="light"] body[data-auth="landing"],
  html[data-theme="light"] body[data-auth="landing"] .auth-shell.landing-shell {
    background:
      radial-gradient(circle at 18% 8%, rgba(255, 114, 0, 0.1), transparent 24%),
      linear-gradient(180deg, #fffdf9 0%, #faf8f3 46%, #f3f0ea 100%) !important;
  }

  html[data-theme="light"] body[data-auth="landing"] .landing-theme-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

  html[data-theme="light"] body[data-auth="landing"] .landing-theme-toggle-label,
  body[data-auth="landing"] .landing-theme-toggle-label {
    display: none;
  }

  body[data-auth="landing"] .landing-header-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    align-items: center;
  }

  body[data-auth="landing"] .landing-theme-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }

  body[data-auth="landing"] .landing-theme-toggle-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
  }

  body[data-auth="landing"] .landing-theme-toggle-icon svg {
    width: 24px;
    height: 24px;
  }
}
/* 营销页主题：结束。 */

/* 公开目录拦截付费内容时，使用当前页面上的登录弹窗，不离开首页。 */
body.auth-modal-visible {
  overflow: hidden;
  overscroll-behavior: none;
}

body.auth-modal-visible .app-shell,
body.auth-modal-visible .main {
  overflow: hidden !important;
  pointer-events: none;
}

.auth-modal-heading {
  display: none;
}

.auth-modal-close {
  display: none;
}

body[data-auth="public"] .auth-shell.auth-modal-open {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  grid-template-rows: 1fr;
  min-height: 100dvh;
  height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: transparent;
}

body[data-auth="public"] .auth-shell.auth-modal-open::before {
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(10px);
  opacity: 1;
}

body[data-auth="public"] .auth-shell.auth-modal-open::after {
  display: none;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-shell-header,
body[data-auth="public"] .auth-shell.auth-modal-open .auth-shell-footer {
  display: none;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-card {
  width: min(980px, 100%);
  max-height: min(680px, calc(100dvh - 48px));
  min-height: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  overflow: hidden;
  background: #101216;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 8px 30px rgba(0, 0, 0, 0.2);
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-close {
  display: grid;
  place-items: center;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(8, 9, 12, 0.58);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero {
  min-height: 460px;
  border: 0;
  border-radius: 0;
  padding: 30px 32px 28px;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero h1 {
  font-size: clamp(42px, 4.6vw, 66px);
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-panel {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: clamp(30px, 4vw, 48px) clamp(24px, 4vw, 48px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #101216;
  box-shadow: none;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading {
  display: grid;
  gap: 8px;
  margin: 4px 0 8px;
  color: #b7bfce;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading > span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading h2 {
  margin: 0;
  color: #f7f8ff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading p {
  margin: 0;
  color: #9ca7be;
  font-size: 14px;
  line-height: 1.6;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-field span {
  color: #dbe3f6;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-field input {
  border-color: rgba(255, 255, 255, 0.1);
  background: #15181d;
  color: #f7f8ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-message {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe3f6;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-home-action {
  color: #ff9a3d;
}

body[data-auth="public"] .auth-shell.auth-modal-open .auth-register-link {
  color: rgba(219, 227, 246, 0.7);
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-card {
  border-color: rgba(36, 31, 27, 0.12);
  background: #fff;
  box-shadow: 0 30px 90px rgba(48, 38, 28, 0.28), 0 8px 30px rgba(48, 38, 28, 0.12);
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 141, 55, 0.24), transparent 24%),
    radial-gradient(circle at 75% 38%, rgba(255, 190, 113, 0.24), transparent 30%),
    linear-gradient(180deg, #fff8ef, #f4ede3);
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-panel {
  background: #fff;
}

html[data-theme="light"] .auth-hero {
  border-color: rgba(42, 37, 32, 0.1);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 141, 55, 0.2), transparent 24%),
    radial-gradient(circle at 75% 38%, rgba(255, 190, 113, 0.18), transparent 30%),
    linear-gradient(180deg, #fff8ef, #f4ede3);
}

html[data-theme="light"] .auth-hero h1 + p,
html[data-theme="light"] .auth-hero-copy p {
  color: #77736d;
}

html[data-theme="light"] .auth-panel::before {
  background:
    radial-gradient(circle at top right, rgba(255, 114, 0, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 174, 87, 0.08), transparent 24%);
}

html[data-theme="light"] .auth-register-link {
  color: #73777e;
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading {
  color: #6f7278;
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading h2 {
  color: #16181c;
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading p {
  color: #777b83;
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-field span {
  color: #3e4249;
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-field input {
  border-color: rgba(31, 35, 42, 0.16);
  background: #fff;
  color: #191b20;
  box-shadow: inset 0 1px 0 rgba(31, 35, 42, 0.04);
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-message {
  border-color: rgba(255, 106, 0, 0.22);
  background: rgba(255, 106, 0, 0.06);
  color: #6f4e3c;
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-home-action {
  color: #e86100;
}

html[data-theme="light"] body[data-auth="public"] .auth-shell.auth-modal-open .auth-register-link {
  color: #73777e;
}

/* 桌面端营销页导航：中文导航项保持完整一行，避免被网格栏压成逐字竖排。 */
@media (min-width: 1181px) {
  body[data-auth="landing"] .landing-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* 桌面端登录弹框：整体收紧一点，确保小桌面视口下不贴底溢出。 */
@media (min-width: 821px) {
  body[data-auth="public"] .auth-shell.auth-modal-open .auth-card {
    width: min(940px, 100%);
    max-height: min(640px, calc(100dvh - 64px));
  }
}

@media (max-width: 820px) {
  body[data-auth="public"] .auth-shell.auth-modal-open {
    padding: 14px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-card {
    width: min(100%, 470px);
    max-height: calc(100dvh - 48px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 22px;
    overflow: hidden;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero {
    min-height: 132px;
    padding: 16px 20px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero .auth-brand {
    font-size: 17px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero-copy {
    place-content: end start;
    align-items: end;
    justify-items: start;
    padding-top: 10px;
    text-align: left;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-hero h1 + p {
    display: none;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-panel {
    padding: 24px 20px 20px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading h2 {
    font-size: 24px;
  }
}

/* 未登录弹窗：把新用户入口从底部弱链接提升为独立行动卡片。 */
.auth-register-link.auth-new-user-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-self: stretch;
  gap: 10px 14px;
  width: 100%;
  margin-top: 2px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 141, 55, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.16), rgba(255, 255, 255, 0.035));
  color: #f7f8ff;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auth-register-link.auth-new-user-entry:hover,
.auth-register-link.auth-new-user-entry:focus-visible {
  border-color: rgba(255, 154, 61, 0.82);
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.23), rgba(255, 255, 255, 0.06));
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.auth-register-link.auth-new-user-entry:focus-visible {
  outline: 2px solid rgba(255, 154, 61, 0.72);
  outline-offset: 3px;
}

.auth-register-link.auth-new-user-entry .auth-register-content {
  display: grid;
  min-width: 0;
  gap: 2px;
  color: inherit;
  font-weight: 400;
}

.auth-register-link.auth-new-user-entry .auth-register-kicker {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-register-link.auth-new-user-entry .auth-register-title {
  overflow: hidden;
  color: #f7f8ff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-register-link.auth-new-user-entry .auth-register-hint {
  overflow: hidden;
  color: #9ca7be;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-register-link.auth-new-user-entry .auth-register-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ff9a3d);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.2);
}

.auth-register-link.auth-new-user-entry .auth-register-action-arrow {
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

html[data-theme="light"] .auth-register-link.auth-new-user-entry {
  border-color: rgba(255, 114, 0, 0.28);
  background: linear-gradient(135deg, rgba(255, 114, 0, 0.1), rgba(255, 248, 239, 0.92));
  color: #26211e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .auth-register-link.auth-new-user-entry:hover,
html[data-theme="light"] .auth-register-link.auth-new-user-entry:focus-visible {
  border-color: rgba(255, 114, 0, 0.56);
  background: linear-gradient(135deg, rgba(255, 114, 0, 0.16), rgba(255, 248, 239, 0.98));
  box-shadow: 0 10px 24px rgba(126, 75, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .auth-register-link.auth-new-user-entry .auth-register-title {
  color: #26211e;
}

html[data-theme="light"] .auth-register-link.auth-new-user-entry .auth-register-hint {
  color: #77736d;
}

/* 桌面端登录弹框右栏：压缩纵向留白，保留所有登录提示和新用户入口。 */
@media (min-width: 821px) {
  body[data-auth="public"] .auth-shell.auth-modal-open .auth-panel {
    gap: 10px;
    padding: 24px 32px 18px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-modal-heading {
    gap: 5px;
    margin: 0 0 4px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-form {
    gap: 10px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-field {
    gap: 6px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-field input {
    min-height: 44px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-submit {
    min-height: 44px;
    margin-top: 2px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-home-action {
    min-height: 42px;
    margin-top: 6px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-register-link.auth-new-user-entry {
    gap: 8px 12px;
    padding: 10px 12px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-register-link.auth-new-user-entry .auth-register-action {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  body[data-auth="public"] .auth-shell.auth-modal-open .auth-message {
    min-height: 40px;
    padding: 8px 12px;
  }
}

@media (max-width: 380px) {
  .auth-register-link.auth-new-user-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-register-link.auth-new-user-entry .auth-register-action {
    justify-self: start;
  }
}
/* 未登录弹窗：新用户入口结束。 */

/* 生词本词典卡片：桌面展示完整例句，手机端保持同一信息顺序但改为紧凑卡片。 */
#vocabView .vocab-table th.col-example,
#vocabView .vocab-table td.col-example {
  width: 34%;
  padding-left: 0;
  padding-right: 12px;
  vertical-align: top;
}

#vocabView .vocab-word-audio {
  width: 24px;
  height: 24px;
  margin-left: 0;
  font-size: 12px;
}

#vocabView .vocab-meaning-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#vocabView .vocab-meaning-list .word-meaning-row {
  align-items: flex-start;
  gap: 6px;
}

#vocabView .vocab-example-wrap {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#vocabView .vocab-example-label {
  display: none;
}

@media (max-width: 820px) {
  #vocabView .vocab-table {
    display: block;
  }

  #vocabView .vocab-table thead {
    display: none;
  }

  #vocabView .vocab-table tbody {
    display: grid;
  }

  #vocabView .vocab-table tbody tr {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 68px;
    grid-template-areas:
      "check word jump"
      "check meaning meaning"
      "check example example";
    gap: 5px 0;
    padding: 13px 0;
  }

  #vocabView .vocab-table tbody td {
    width: auto !important;
    padding: 0 6px !important;
  }

  #vocabView .vocab-table td.col-check {
    grid-area: check;
    padding-left: 10px !important;
    padding-right: 2px !important;
  }

  #vocabView .vocab-table td.col-word {
    grid-area: word;
  }

  #vocabView .vocab-table td.col-meaning {
    grid-area: meaning;
  }

  #vocabView .vocab-table td.col-example {
    grid-area: example;
    padding-right: 4px !important;
  }

  #vocabView .vocab-table td.col-jump {
    grid-area: jump;
    align-self: start;
    padding-left: 3px !important;
    padding-right: 8px !important;
  }

  #vocabView .vocab-word-stack,
  #vocabView .vocab-meaning-wrap {
    gap: 4px;
  }

  #vocabView .vocab-example-label {
    display: flex;
  }

  #vocabView .vocab-example,
  #vocabView .vocab-example-zh {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* 桌面播放页：控制栏内容统一缩小，保留独立点击区域。 */
@media (min-width: 821px) {
  body[data-view="watch"] #watchTransportButtons,
  body[data-view="watch"] #playToggleBtn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body[data-view="watch"] #playToggleBtn .toolbar-lucide-icon,
  body[data-view="watch"] .player-tools .toolbar-lucide-icon,
  body[data-view="watch"] .player-tools .toolbar-tabler-icon {
    width: 20px;
    height: 20px;
  }

  body[data-view="watch"] #watchTimeline {
    height: 36px;
    gap: 8px;
  }

  body[data-view="watch"] #watchTimeline .time-readout {
    min-width: 34px;
    font-size: 14px;
  }

  body[data-view="watch"] #progressBar::-webkit-slider-runnable-track {
    height: 4px;
  }

  body[data-view="watch"] #progressBar::-moz-range-track {
    height: 4px;
  }

  body[data-view="watch"] #progressBar::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }

  body[data-view="watch"] #progressBar::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }

  body[data-view="watch"] #watchActionButtons {
    height: 36px;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
  }

  body[data-view="watch"] #watchActionButtons > *,
  body[data-view="watch"] #speedButtons,
  body[data-view="watch"] #speedMenuBtn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  body[data-view="watch"] #subtitleModeButtons,
  body[data-view="watch"] #subtitleModeButtons .panel-menu,
  body[data-view="watch"] #subtitleModeMenuBtn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* 浅色播放页：短语卡片文字使用深色对比。 */
html[data-theme="light"] body[data-view="watch"] #phraseList .essence-card-word {
  color: #181818;
}

html[data-theme="light"] body[data-view="watch"] #phraseList .essence-card-example {
  color: #2b2926;
}

html[data-theme="light"] body[data-view="watch"] #phraseList .essence-card-example-zh {
  color: #625e58;
}

/* 浅色播放页：字幕语言和播放速度下拉菜单使用浅色配色。 */
html[data-theme="light"] body[data-view="watch"] .panel-menu-options,
html[data-theme="light"] body[data-view="watch"] .speed-menu-options {
  border-color: rgba(42, 37, 32, 0.14);
  background: #fffdf9;
  box-shadow: 0 14px 32px rgba(73, 57, 38, 0.16);
}

html[data-theme="light"] body[data-view="watch"] .panel-menu-options button,
html[data-theme="light"] body[data-view="watch"] .speed-menu-options button {
  color: #625e58;
}

html[data-theme="light"] body[data-view="watch"] .panel-menu-options button.active,
html[data-theme="light"] body[data-view="watch"] .panel-menu-options button:hover,
html[data-theme="light"] body[data-view="watch"] .speed-menu-options button.active,
html[data-theme="light"] body[data-view="watch"] .speed-menu-options button:hover {
  background: rgba(255, 114, 0, 0.1);
  color: var(--orange);
}

/* 手机播放页：隐藏字幕卡片上方的重点颜色说明入口，并保留视频与字幕卡片的轻微间距。 */
@media (max-width: 820px) {
  body[data-view="watch"] .subtitle-panel-tools {
    display: none !important;
  }

  body[data-view="watch"] .watch-layout {
    row-gap: 6px;
  }
}

/* 手机字幕少换行试调版：只缩小文字，不压缩字幕卡片，也不截断内容。 */
@media (max-width: 820px) {
  body[data-view="watch"] .subtitle-copy strong,
  html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy strong {
    font-size: 18px;
  }

  body[data-view="watch"] .subtitle-copy em,
  html.narrow-android-subtitles body[data-view="watch"] .subtitle-copy em {
    font-size: 15px;
  }
}

/* 手机收藏表达卡片：紧凑双行布局，跳转按钮固定在首行右侧。 */
@media (max-width: 820px) {
  #favoritesView .favorites-tabs {
    margin-bottom: 12px;
  }

  #favoritesView .favorite-expression-section > .vocab-table-toolbar {
    padding: 0 12px 4px;
    align-items: flex-start;
    gap: 8px;
  }

  #favoritesView .favorite-expression-section {
    margin-top: 0;
  }

  #favoritesView .favorite-expression-section > .vocab-table-toolbar .vocab-table-actions {
    gap: 6px;
  }

  #favoritesView .favorite-expression-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-areas: "check content jump";
    align-items: start;
    gap: 8px;
    padding: 12px;
  }

  #favoritesView .favorite-expression-row > .table-checkbox {
    grid-area: check;
    justify-self: start;
    margin-top: 2px;
  }

  #favoritesView .favorite-expression-content {
    grid-area: content;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  #favoritesView .favorite-expression-quote {
    margin-top: 1px;
    font-size: 22px;
  }

  #favoritesView .favorite-expression-copy {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
      "type en"
      "zh zh";
    gap: 4px 8px;
    align-items: center;
  }

  #favoritesView .favorite-expression-type {
    grid-area: type;
    min-height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  #favoritesView .favorite-expression-copy strong {
    grid-area: en;
    min-width: 0;
    align-self: center;
    font-size: 14px;
    line-height: 1.2;
  }

  #favoritesView .favorite-expression-copy em {
    grid-area: zh;
    font-size: 12px !important;
    line-height: 1.25;
  }

  #favoritesView .favorite-expression-jump-wrap {
    grid-area: jump;
    align-self: start;
    justify-content: flex-end;
  }

  #favoritesView .favorite-expression-jump-btn {
    min-width: 92px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
}
/* 手机全屏顶层返回入口：与原横屏观看按钮保持同一高度，放在左上角。 */
.mobile-fullscreen-back-btn {
  position: absolute;
  top: max(14px, env(safe-area-inset-top) + 8px);
  left: max(14px, env(safe-area-inset-left) + 8px);
  z-index: 12;
  display: none;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(14, 16, 20, 0.74);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.mobile-fullscreen-back-btn.is-visible {
  display: grid;
}

.mobile-fullscreen-back-btn .toolbar-lucide-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 821px) {
  .mobile-fullscreen-back-btn {
    display: none !important;
  }
}

/* 全屏播放原型：采用成熟播放器的原生全屏优先、容器 fallback 和活动后自动显示控件。 */
body[data-view="watch"] .player-stage > #fullscreenBtn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 8;
  display: grid !important;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(14, 15, 16, 0.62);
  color: #f3f5ff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

body[data-view="watch"] .player-stage > #fullscreenBtn .toolbar-lucide-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-stage:fullscreen,
.player-stage.is-fullscreen-native,
.player-stage.is-fullscreen-fallback {
  width: var(--fullscreen-viewport-width, 100vw);
  height: var(--fullscreen-viewport-height, 100dvh);
  box-sizing: border-box;
  max-width: none;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
  background: #000;
}

.player-stage.is-fullscreen-fallback {
  position: fixed;
  inset: 0;
  z-index: 10000000;
}

body.player-fullscreen-body-lock {
  overflow: hidden !important;
}

.player-stage:fullscreen .player-frame,
.player-stage.is-fullscreen-fallback .player-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player-stage:fullscreen .player-frame video,
.player-stage.is-fullscreen-fallback .player-frame video {
  object-fit: contain;
  cursor: default;
}

.player-stage:fullscreen .sentence-counter,
.player-stage.is-fullscreen-fallback .sentence-counter {
  top: 24px;
  right: 28px;
  font-size: clamp(20px, 2.2vw, 30px);
}

.player-stage:fullscreen .player-fullscreen-toggle,
.player-stage.is-fullscreen-fallback .player-fullscreen-toggle {
  top: 22px;
  left: auto;
  right: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.player-stage:fullscreen.fullscreen-controls-visible .player-fullscreen-toggle,
.player-stage.is-fullscreen-fallback.fullscreen-controls-visible .player-fullscreen-toggle {
  opacity: 1;
  pointer-events: auto;
}

.player-stage:fullscreen .player-tools,
.player-stage.is-fullscreen-fallback .player-tools {
  position: absolute;
  inset: auto 0 0;
  z-index: 10;
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas:
    "timeline timeline"
    "transport actions";
  align-items: center;
  gap: 12px 18px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 18px clamp(18px, 4vw, 64px) calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 16%, rgba(0, 0, 0, 0.94) 100%);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.player-stage:fullscreen.fullscreen-controls-visible .player-tools,
.player-stage.is-fullscreen-fallback.fullscreen-controls-visible .player-tools {
  opacity: 1;
  pointer-events: auto;
}

.player-stage:fullscreen:not(.fullscreen-controls-visible),
.player-stage.is-fullscreen-fallback:not(.fullscreen-controls-visible) {
  cursor: none;
}

.player-stage:fullscreen #watchTimeline,
.player-stage.is-fullscreen-fallback #watchTimeline {
  grid-area: timeline;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: 38px;
  gap: 14px;
}

.player-stage:fullscreen #watchTransportButtons,
.player-stage.is-fullscreen-fallback #watchTransportButtons {
  grid-area: transport;
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
}

.player-stage:fullscreen #watchActionButtons,
.player-stage.is-fullscreen-fallback #watchActionButtons {
  grid-area: actions;
  display: grid !important;
  grid-template-columns: repeat(6, 38px);
  align-items: center;
  justify-content: end;
  width: 100%;
  height: 44px;
  gap: clamp(10px, 2vw, 24px);
}

.player-stage:fullscreen #watchActionButtons > *,
.player-stage.is-fullscreen-fallback #watchActionButtons > *,
.player-stage:fullscreen #speedButtons,
.player-stage.is-fullscreen-fallback #speedButtons,
.player-stage:fullscreen #speedMenuBtn,
.player-stage.is-fullscreen-fallback #speedMenuBtn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.player-stage:fullscreen #watchActionButtons > *,
.player-stage.is-fullscreen-fallback #watchActionButtons > * {
  grid-area: auto !important;
}

.player-stage:fullscreen #mobilePanelToggleBtn,
.player-stage.is-fullscreen-fallback #mobilePanelToggleBtn {
  display: none !important;
}

.player-stage:fullscreen .fullscreen-subtitle-overlay,
.player-stage.is-fullscreen-fallback .fullscreen-subtitle-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid !important;
  align-content: end;
  justify-items: center;
  gap: 8px;
  padding: 0 7vw clamp(142px, 17vh, 210px);
  color: #fff;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.player-stage:fullscreen .fullscreen-subtitle-en,
.player-stage.is-fullscreen-fallback .fullscreen-subtitle-en {
  max-width: min(90vw, 1120px);
  color: #fff;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.96), 0 6px 18px rgba(0, 0, 0, 0.78);
}

.player-stage:fullscreen .fullscreen-subtitle-zh,
.player-stage.is-fullscreen-fallback .fullscreen-subtitle-zh {
  max-width: min(88vw, 1080px);
  color: #fff;
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.96), 0 6px 18px rgba(0, 0, 0, 0.78);
}

.player-stage:fullscreen .fullscreen-subtitle-en.hidden,
.player-stage:fullscreen .fullscreen-subtitle-zh.hidden,
.player-stage.is-fullscreen-fallback .fullscreen-subtitle-en.hidden,
.player-stage.is-fullscreen-fallback .fullscreen-subtitle-zh.hidden {
  display: none !important;
}

.player-stage:fullscreen .mobile-study-drawer,
.player-stage.is-fullscreen-fallback .mobile-study-drawer {
  display: none !important;
}

@media (max-width: 820px) {
  .player-stage:fullscreen .player-tools,
  .player-stage.is-fullscreen-fallback .player-tools {
    gap: 8px 10px;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
  }

  .player-stage:fullscreen #watchActionButtons,
  .player-stage.is-fullscreen-fallback #watchActionButtons {
    grid-template-columns: repeat(6, minmax(30px, 1fr));
    justify-content: stretch;
    gap: 2px;
  }

  .player-stage:fullscreen #watchActionButtons > *,
  .player-stage.is-fullscreen-fallback #watchActionButtons > *,
  .player-stage:fullscreen #speedButtons,
  .player-stage.is-fullscreen-fallback #speedButtons,
  .player-stage:fullscreen #speedMenuBtn,
  .player-stage.is-fullscreen-fallback #speedMenuBtn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .player-stage:fullscreen #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-fallback #mobilePanelToggleBtn {
    display: grid !important;
  }

  .player-stage:fullscreen #subtitleModeButtons,
  .player-stage.is-fullscreen-fallback #subtitleModeButtons,
  .player-stage:fullscreen #subtitleModeButtons .panel-menu,
  .player-stage.is-fullscreen-fallback #subtitleModeButtons .panel-menu,
  .player-stage:fullscreen #subtitleModeMenuBtn,
  .player-stage.is-fullscreen-fallback #subtitleModeMenuBtn {
    display: grid !important;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    place-items: center;
  }

  .player-stage:fullscreen .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback .fullscreen-subtitle-overlay {
    gap: 6px;
    padding: 0 5vw clamp(116px, 17vh, 168px);
  }

  .player-stage:fullscreen .fullscreen-subtitle-en,
  .player-stage.is-fullscreen-fallback .fullscreen-subtitle-en {
    font-size: clamp(23px, 6.6vw, 34px);
  }

  .player-stage:fullscreen .fullscreen-subtitle-zh,
  .player-stage.is-fullscreen-fallback .fullscreen-subtitle-zh {
    font-size: clamp(20px, 5.8vw, 30px);
  }
}
/* 全屏播放原型：结束。 */
/* Chrome 全屏视口适配：使用显式原生全屏状态，避免 :fullscreen 在不同 Chrome/Mac 窗口状态下失配。 */
.player-stage.is-fullscreen-native .player-frame,
.player-stage.is-fullscreen-native .player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-stage.is-fullscreen-native .player-frame {
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player-stage.is-fullscreen-native .player-frame video {
  object-fit: contain;
  cursor: default;
}

.player-stage.is-fullscreen-native .sentence-counter {
  top: 24px;
  right: 28px;
  font-size: clamp(20px, 2.2vw, 30px);
}

.player-stage.is-fullscreen-native .player-fullscreen-toggle {
  top: 22px;
  left: auto;
  right: 24px;
  opacity: 0;
  pointer-events: none;
}

.player-stage.is-fullscreen-native.fullscreen-controls-visible .player-fullscreen-toggle {
  opacity: 1;
  pointer-events: auto;
}

.player-stage.is-fullscreen-native .player-tools {
  position: absolute;
  inset: auto 0 0;
  z-index: 10;
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas:
    "timeline timeline"
    "transport actions";
  align-items: center;
  gap: 12px 18px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 18px clamp(18px, 4vw, 64px) calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 16%, rgba(0, 0, 0, 0.94) 100%);
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.player-stage.is-fullscreen-native.fullscreen-controls-visible .player-tools {
  opacity: 1;
  pointer-events: auto;
}

.player-stage.is-fullscreen-native #watchTimeline {
  grid-area: timeline;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  height: 38px;
  gap: 14px;
}

.player-stage.is-fullscreen-native #watchTransportButtons {
  grid-area: transport;
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
}

.player-stage.is-fullscreen-native #watchActionButtons {
  grid-area: actions;
  display: grid !important;
  grid-template-columns: repeat(6, 38px);
  align-items: center;
  justify-content: end;
  width: 100%;
  height: 44px;
  gap: clamp(10px, 2vw, 24px);
}

.player-stage.is-fullscreen-native #watchActionButtons > *,
.player-stage.is-fullscreen-native #speedButtons,
.player-stage.is-fullscreen-native #speedMenuBtn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
}

.player-stage.is-fullscreen-native #watchActionButtons > * {
  grid-area: auto !important;
}

.player-stage.is-fullscreen-native #mobilePanelToggleBtn {
  display: none !important;
}

.player-stage.is-fullscreen-native .fullscreen-subtitle-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid !important;
  align-content: end;
  justify-items: center;
  gap: 8px;
  padding: 0 7vw clamp(142px, 17vh, 210px);
  color: #fff;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

.player-stage.is-fullscreen-native .fullscreen-subtitle-en {
  max-width: min(90vw, 1120px);
  color: #fff;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.96), 0 6px 18px rgba(0, 0, 0, 0.78);
}

.player-stage.is-fullscreen-native .fullscreen-subtitle-zh {
  max-width: min(88vw, 1080px);
  color: #fff;
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.22;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.96), 0 6px 18px rgba(0, 0, 0, 0.78);
}

.player-stage.is-fullscreen-native .fullscreen-subtitle-en.hidden,
.player-stage.is-fullscreen-native .fullscreen-subtitle-zh.hidden {
  display: none !important;
}

.player-stage.is-fullscreen-native .mobile-study-drawer {
  display: none !important;
}

@media (max-width: 820px) {
  .player-stage.is-fullscreen-native .player-tools {
    gap: 8px 10px;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
  }

  .player-stage.is-fullscreen-native #watchActionButtons {
    grid-template-columns: repeat(6, minmax(30px, 1fr));
    justify-content: stretch;
    gap: 2px;
  }

  .player-stage.is-fullscreen-native #watchActionButtons > *,
  .player-stage.is-fullscreen-native #speedButtons,
  .player-stage.is-fullscreen-native #speedMenuBtn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .player-stage.is-fullscreen-native #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-native #subtitleModeButtons,
  .player-stage.is-fullscreen-native #subtitleModeButtons .panel-menu,
  .player-stage.is-fullscreen-native #subtitleModeMenuBtn {
    display: grid !important;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    place-items: center;
  }

  .player-stage.is-fullscreen-native .fullscreen-subtitle-overlay {
    gap: 6px;
    padding: 0 5vw clamp(116px, 17vh, 168px);
  }

  .player-stage.is-fullscreen-native .fullscreen-subtitle-en {
    font-size: clamp(23px, 6.6vw, 34px);
  }

  .player-stage.is-fullscreen-native .fullscreen-subtitle-zh {
    font-size: clamp(20px, 5.8vw, 30px);
  }
}
/* Chrome 全屏视口适配：结束。 */

/* 全屏最终布局：按钮并入右侧控制组，视频区与控制区共同受当前视口约束。 */
.player-stage:fullscreen,
.player-stage.is-fullscreen-native,
.player-stage.is-fullscreen-fallback {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  width: var(--fullscreen-viewport-width, 100vw);
  height: var(--fullscreen-viewport-height, 100dvh);
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  overflow: hidden;
}

.player-stage:fullscreen .player-frame,
.player-stage.is-fullscreen-native .player-frame,
.player-stage.is-fullscreen-fallback .player-frame {
  grid-column: 1;
  grid-row: 1;
  position: relative !important;
  inset: auto !important;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.player-stage:fullscreen .player-frame video,
.player-stage.is-fullscreen-native .player-frame video,
.player-stage.is-fullscreen-fallback .player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 全屏悬浮控制窗：播放中默认退下，活动时从底部浮上来。 */
.player-stage:fullscreen .player-tools,
.player-stage.is-fullscreen-native .player-tools,
.player-stage.is-fullscreen-fallback .player-tools {
  grid-column: 1;
  grid-row: 1;
  position: absolute !important;
  inset: auto auto calc(18px + env(safe-area-inset-bottom)) 50% !important;
  z-index: 10;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) minmax(420px, 0.72fr);
  grid-template-areas: "transport timeline actions";
  align-items: center;
  gap: 12px 18px;
  width: min(1180px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  min-width: 0;
  min-height: 76px;
  height: 76px;
  margin: 0;
  padding: 8px clamp(18px, 3vw, 48px) calc(8px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(14, 16, 20, 0.74);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translate(-50%, 24px) !important;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.player-stage:fullscreen.fullscreen-controls-visible .player-tools,
.player-stage.is-fullscreen-native.fullscreen-controls-visible .player-tools,
.player-stage.is-fullscreen-fallback.fullscreen-controls-visible .player-tools {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translate(-50%, 0) !important;
  transition-delay: 0s;
}

.player-stage:fullscreen #watchTransportButtons,
.player-stage.is-fullscreen-native #watchTransportButtons,
.player-stage.is-fullscreen-fallback #watchTransportButtons {
  grid-area: transport;
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
}

.player-stage:fullscreen #watchTimeline,
.player-stage.is-fullscreen-native #watchTimeline,
.player-stage.is-fullscreen-fallback #watchTimeline {
  grid-area: timeline;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 38px;
  gap: 14px;
}

.player-stage:fullscreen #watchActionButtons,
.player-stage.is-fullscreen-native #watchActionButtons,
.player-stage.is-fullscreen-fallback #watchActionButtons {
  grid-area: actions;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  gap: 0;
}

.player-stage:fullscreen #watchActionButtons > *,
.player-stage.is-fullscreen-native #watchActionButtons > *,
.player-stage.is-fullscreen-fallback #watchActionButtons > * {
  position: relative !important;
  inset: auto !important;
  grid-area: auto !important;
  display: grid !important;
  place-items: center;
  justify-self: center;
  align-self: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  opacity: 1;
  pointer-events: auto;
  transform: none !important;
}

.player-stage:fullscreen #fullscreenBtn,
.player-stage.is-fullscreen-native #fullscreenBtn,
.player-stage.is-fullscreen-fallback #fullscreenBtn {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  opacity: 1;
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f3f5ff;
  box-shadow: none;
  backdrop-filter: none;
}

/* 普通 Web 控制栏也使用同一组六等宽槽位，全屏入口固定在最右侧。 */
@media (min-width: 821px) {
  .player-stage:fullscreen #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-native #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-fallback #watchActionButtons > #fullscreenBtn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-self: center;
    justify-self: center;
  }

  body[data-view="watch"] #watchActionButtons {
    grid-template-columns: repeat(6, minmax(34px, 1fr));
  }

  /* 普通 Web：只校准全屏入口，不改左侧六个控件。 */
  body[data-view="watch"] #watchActionButtons > #fullscreenBtn {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    order: 6;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-self: center !important;
    justify-self: center !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    transform: none !important;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f3f5ff;
    box-shadow: none;
    backdrop-filter: none;
  }
}

@media (max-width: 820px) {
  body[data-view="watch"] .player-tools {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-areas: "panel speed prev play next favorite fullscreen";
    grid-template-rows: 50px;
    column-gap: 4px;
  }

  body[data-view="watch"] #mobilePanelToggleBtn {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-area: panel;
    justify-self: center;
    align-self: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f3f5ff;
    box-shadow: none;
    transform: none !important;
  }

  body[data-view="watch"] #loopToggleBtn {
    display: none !important;
  }

  body[data-view="watch"] #fullscreenBtn {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-area: fullscreen;
    justify-self: center;
    align-self: center;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    line-height: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f3f5ff;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
  }

  .player-stage:fullscreen .player-tools,
  .player-stage.is-fullscreen-native .player-tools,
  .player-stage.is-fullscreen-fallback .player-tools {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 38px 44px;
    grid-template-areas:
      "timeline timeline"
      "transport actions";
    gap: 8px 10px;
    min-height: 106px;
    height: 106px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .player-stage:fullscreen #watchActionButtons,
  .player-stage.is-fullscreen-native #watchActionButtons,
  .player-stage.is-fullscreen-fallback #watchActionButtons {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
  }

  .player-stage:fullscreen #watchActionButtons > *,
  .player-stage.is-fullscreen-native #watchActionButtons > *,
  .player-stage.is-fullscreen-fallback #watchActionButtons > * {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .player-stage:fullscreen #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-native #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-fallback #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage:fullscreen #subtitleModeButtons,
  .player-stage.is-fullscreen-native #subtitleModeButtons,
  .player-stage.is-fullscreen-fallback #subtitleModeButtons,
  .player-stage:fullscreen #subtitleModeButtons .panel-menu,
  .player-stage.is-fullscreen-native #subtitleModeButtons .panel-menu,
  .player-stage.is-fullscreen-fallback #subtitleModeButtons .panel-menu,
  .player-stage:fullscreen #subtitleModeMenuBtn,
  .player-stage.is-fullscreen-native #subtitleModeMenuBtn,
  .player-stage.is-fullscreen-fallback #subtitleModeMenuBtn {
    display: grid !important;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    place-items: center;
  }

  .player-stage:fullscreen #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-native #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-fallback #watchActionButtons > #mobilePanelToggleBtn {
    display: none !important;
  }

  .player-stage:fullscreen #subtitleModeButtons,
  .player-stage.is-fullscreen-native #subtitleModeButtons,
  .player-stage.is-fullscreen-fallback #subtitleModeButtons {
    position: relative;
    z-index: auto;
    background: transparent !important;
    backdrop-filter: none;
  }

  .player-stage:fullscreen #speedButtons,
  .player-stage.is-fullscreen-native #speedButtons,
  .player-stage.is-fullscreen-fallback #speedButtons { order: 2 !important; }
  .player-stage:fullscreen #mobilePrevVideoBtn,
  .player-stage.is-fullscreen-native #mobilePrevVideoBtn,
  .player-stage.is-fullscreen-fallback #mobilePrevVideoBtn { order: 3 !important; }
  .player-stage:fullscreen #mobileNextVideoBtn,
  .player-stage.is-fullscreen-native #mobileNextVideoBtn,
  .player-stage.is-fullscreen-fallback #mobileNextVideoBtn { order: 4 !important; }
  .player-stage:fullscreen #subtitleModeButtons,
  .player-stage.is-fullscreen-native #subtitleModeButtons,
  .player-stage.is-fullscreen-fallback #subtitleModeButtons { order: 5 !important; }
  .player-stage:fullscreen #mobileFavoriteBtn,
  .player-stage.is-fullscreen-native #mobileFavoriteBtn,
  .player-stage.is-fullscreen-fallback #mobileFavoriteBtn { order: 6 !important; }
  .player-stage:fullscreen #fullscreenBtn,
  .player-stage.is-fullscreen-native #fullscreenBtn,
  .player-stage.is-fullscreen-fallback #fullscreenBtn { order: 7 !important; }

  .player-stage:fullscreen .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback .fullscreen-subtitle-overlay {
    padding-bottom: clamp(116px, 17vh, 168px);
  }
}
/* 全屏最终布局：结束。 */

.player-stage.is-fullscreen-fallback {
  position: fixed !important;
  inset: 0 !important;
}

/* 全屏字幕位置：保持在屏幕下方区域，控制窗出现时仍留出安全间距。 */
.player-stage:fullscreen .fullscreen-subtitle-overlay,
.player-stage.is-fullscreen-native .fullscreen-subtitle-overlay,
.player-stage.is-fullscreen-fallback .fullscreen-subtitle-overlay {
  padding-bottom: clamp(76px, 9vh, 116px);
}

@media (max-width: 820px) {
  .player-stage:fullscreen .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback .fullscreen-subtitle-overlay {
    padding-bottom: clamp(88px, 12vh, 130px);
  }
}

/* 全屏字幕重点词：沿用右侧字幕颜色，普通词保持白色；全屏不可点击，去掉词语热区的额外内边距。 */
.player-stage:fullscreen .fullscreen-subtitle-en .word,
.player-stage.is-fullscreen-native .fullscreen-subtitle-en .word,
.player-stage.is-fullscreen-fallback .fullscreen-subtitle-en .word {
  padding: 0;
  cursor: default;
}

/* 全屏浅色悬浮窗：保留半透明和背景模糊，不被普通浅色控制栏覆盖。 */
html[data-theme="light"] body[data-view="watch"] .player-stage:fullscreen .player-tools,
html[data-theme="light"] body[data-view="watch"] .player-stage.is-fullscreen-native .player-tools,
html[data-theme="light"] body[data-view="watch"] .player-stage.is-fullscreen-fallback .player-tools {
  border-color: rgba(42, 37, 32, 0.16) !important;
  background: rgba(255, 253, 249, 0.76) !important;
  box-shadow: 0 14px 38px rgba(73, 57, 38, 0.18) !important;
  backdrop-filter: blur(18px) saturate(1.08);
}

/* 手机全屏方向适配：竖屏靠上放画面，横屏保持真正的 16:9 视频框。 */
@media (max-width: 1024px) {
  .player-stage:fullscreen.fullscreen-portrait .player-frame,
  .player-stage.is-fullscreen-native.fullscreen-portrait .player-frame,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .player-frame {
    background: #000;
  }

  .player-stage:fullscreen.fullscreen-portrait .player-frame video,
  .player-stage.is-fullscreen-native.fullscreen-portrait .player-frame video,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .player-frame video {
    object-fit: contain;
    object-position: center top;
  }

  .player-stage:fullscreen.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .fullscreen-subtitle-overlay {
    inset: 0;
    gap: 4px;
    padding: 0 7vw clamp(22px, 5vh, 42px);
  }

  .player-stage:fullscreen.fullscreen-controls-visible.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native.fullscreen-controls-visible.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback.fullscreen-controls-visible.fullscreen-portrait .fullscreen-subtitle-overlay {
    padding-bottom: clamp(104px, 17vh, 142px);
  }

  .player-stage:fullscreen.fullscreen-portrait .fullscreen-subtitle-en,
  .player-stage.is-fullscreen-native.fullscreen-portrait .fullscreen-subtitle-en,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .fullscreen-subtitle-en {
    font-size: clamp(13px, 3.5vw, 18px);
    line-height: 1.2;
  }

  .player-stage:fullscreen.fullscreen-portrait .fullscreen-subtitle-zh,
  .player-stage.is-fullscreen-native.fullscreen-portrait .fullscreen-subtitle-zh,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .fullscreen-subtitle-zh {
    font-size: clamp(12px, 3.1vw, 16px);
    line-height: 1.2;
  }

  .player-stage:fullscreen.fullscreen-landscape .player-frame,
  .player-stage.is-fullscreen-native.fullscreen-landscape .player-frame,
  .player-stage.is-fullscreen-fallback.fullscreen-landscape .player-frame {
    width: min(100%, 177.7778dvh);
    height: min(100%, 56.25dvw);
    aspect-ratio: 16 / 9;
    align-self: center;
    justify-self: center;
    margin: 0 auto !important;
    background: #000;
  }

  .player-stage:fullscreen.fullscreen-landscape .player-frame video,
  .player-stage.is-fullscreen-native.fullscreen-landscape .player-frame video,
  .player-stage.is-fullscreen-fallback.fullscreen-landscape .player-frame video {
    object-fit: contain;
    object-position: center center;
  }

  .player-stage:fullscreen.fullscreen-landscape .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native.fullscreen-landscape .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback.fullscreen-landscape .fullscreen-subtitle-overlay {
    inset: 50% auto auto 50%;
    width: min(100%, 177.7778dvh);
    height: min(100%, 56.25dvw);
    max-width: none;
    max-height: none;
    box-sizing: border-box;
    gap: 4px;
    padding: 0 4vw clamp(34px, 9vh, 56px);
    transform: translate(-50%, -50%);
  }

  .player-stage:fullscreen.fullscreen-controls-visible.fullscreen-landscape .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native.fullscreen-controls-visible.fullscreen-landscape .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback.fullscreen-controls-visible.fullscreen-landscape .fullscreen-subtitle-overlay {
    padding-bottom: clamp(88px, 21vh, 108px);
  }

  .player-stage:fullscreen.fullscreen-landscape .fullscreen-subtitle-en,
  .player-stage.is-fullscreen-native.fullscreen-landscape .fullscreen-subtitle-en,
  .player-stage.is-fullscreen-fallback.fullscreen-landscape .fullscreen-subtitle-en {
    font-size: clamp(14px, 2.1vw, 20px);
    line-height: 1.2;
  }

  .player-stage:fullscreen.fullscreen-landscape .fullscreen-subtitle-zh,
  .player-stage.is-fullscreen-native.fullscreen-landscape .fullscreen-subtitle-zh,
  .player-stage.is-fullscreen-fallback.fullscreen-landscape .fullscreen-subtitle-zh {
    font-size: clamp(13px, 1.8vw, 18px);
    line-height: 1.2;
  }
}

/* 手机竖屏全屏控制窗：复用普通手机底栏，第一行只增加进度条。 */
@media (max-width: 820px) {
  .player-stage:fullscreen.fullscreen-portrait .player-tools,
  .player-stage.is-fullscreen-native.fullscreen-portrait .player-tools,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .player-tools {
    top: auto !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 86px;
    min-height: 86px;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 26px 44px;
    grid-template-areas:
      "timeline timeline timeline timeline timeline timeline timeline"
      "panel speed prev play next favorite .";
    align-items: center;
    gap: 4px 0;
    margin: 0;
    padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
    border-radius: 22px;
    transform: none !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchTimeline,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchTimeline,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchTimeline {
    grid-area: timeline;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    height: 26px;
    min-width: 0;
    gap: 0;
    padding-right: 34px;
  }

  .player-stage:fullscreen.fullscreen-portrait #currentTimeText,
  .player-stage:fullscreen.fullscreen-portrait #durationTimeText,
  .player-stage.is-fullscreen-native.fullscreen-portrait #currentTimeText,
  .player-stage.is-fullscreen-native.fullscreen-portrait #durationTimeText,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #currentTimeText,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #durationTimeText {
    display: none !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #progressBar,
  .player-stage.is-fullscreen-native.fullscreen-portrait #progressBar,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #progressBar {
    width: 100%;
    min-width: 0;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchTransportButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchTransportButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchTransportButtons,
  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons {
    display: contents !important;
    grid-area: auto !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #playToggleBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #playToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #playToggleBtn {
    grid-area: play !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #mobilePanelToggleBtn {
    display: grid !important;
    grid-area: panel !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #speedButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #speedButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #speedButtons {
    display: grid !important;
    grid-area: speed !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #mobilePrevVideoBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #mobilePrevVideoBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #mobilePrevVideoBtn {
    grid-area: prev !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #mobileNextVideoBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #mobileNextVideoBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #mobileNextVideoBtn {
    grid-area: next !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #mobileFavoriteBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #mobileFavoriteBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #mobileFavoriteBtn {
    grid-area: favorite !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #loopToggleBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #loopToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #loopToggleBtn,
  .player-stage:fullscreen.fullscreen-portrait #subtitleModeButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #subtitleModeButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #subtitleModeButtons {
    display: none !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons > #fullscreenBtn {
    position: absolute !important;
    top: 4px !important;
    right: 5px !important;
    display: grid !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    transform: none !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons > *,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons > *,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons > *,
  .player-stage:fullscreen.fullscreen-portrait #playToggleBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #playToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #playToggleBtn {
    align-self: center;
    justify-self: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons > #fullscreenBtn {
    align-self: start;
    justify-self: end;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons > #mobilePanelToggleBtn {
    display: grid !important;
    grid-area: panel !important;
  }

  html[data-theme="light"] body[data-view="watch"] .player-stage:fullscreen.fullscreen-portrait .player-tools,
  html[data-theme="light"] body[data-view="watch"] .player-stage.is-fullscreen-native.fullscreen-portrait .player-tools,
  html[data-theme="light"] body[data-view="watch"] .player-stage.is-fullscreen-fallback.fullscreen-portrait .player-tools {
    border-color: rgba(42, 37, 32, 0.14) !important;
    background: rgba(255, 253, 249, 0.96) !important;
    box-shadow: none !important;
  }
}

/* 竖屏参考布局：视频放在上方留黑之后，字幕紧贴视频下方，不叠在画面内。 */
@media (max-width: 1024px) {
  .player-stage:fullscreen.fullscreen-portrait,
  .player-stage.is-fullscreen-native.fullscreen-portrait,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait {
    --portrait-video-top: clamp(180px, 26vh, 280px);
    --portrait-video-height: min(56.25vw, calc(100dvh - var(--portrait-video-top)));
  }

  .player-stage:fullscreen.fullscreen-portrait .player-frame,
  .player-stage.is-fullscreen-native.fullscreen-portrait .player-frame,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .player-frame {
    position: absolute !important;
    inset: var(--portrait-video-top) auto auto 50% !important;
    width: 100vw;
    height: var(--portrait-video-height);
    aspect-ratio: 16 / 9;
    transform: translateX(-50%);
  }

  .player-stage:fullscreen.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .fullscreen-subtitle-overlay {
    inset: calc(var(--portrait-video-top) + var(--portrait-video-height) + 14px) 0 auto;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    align-content: start;
    gap: 4px;
    padding: 0 7vw;
    transform: none;
  }

  .player-stage:fullscreen.fullscreen-controls-visible.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-native.fullscreen-controls-visible.fullscreen-portrait .fullscreen-subtitle-overlay,
  .player-stage.is-fullscreen-fallback.fullscreen-controls-visible.fullscreen-portrait .fullscreen-subtitle-overlay {
    padding-bottom: 0;
  }
}

/* 手机竖屏全屏最终布局：首次全屏直接显示七个等距控件，同一全屏按钮负责退出。 */
@media (max-width: 820px) {
  .player-stage:fullscreen.fullscreen-portrait .player-tools,
  .player-stage.is-fullscreen-native.fullscreen-portrait .player-tools,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait .player-tools {
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: auto;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 26px 44px;
    grid-template-areas:
      "timeline timeline timeline timeline timeline timeline timeline"
      "play speed prev next language favorite fullscreen";
  }

  .player-stage:fullscreen.fullscreen-portrait #watchTimeline,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchTimeline,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchTimeline {
    width: 100%;
    justify-self: start;
    padding-right: 0;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchTransportButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchTransportButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchTransportButtons,
  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons {
    display: contents !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons > *,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons > *,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons > *,
  .player-stage:fullscreen.fullscreen-portrait #playToggleBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #playToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #playToggleBtn {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    place-items: center;
    justify-self: center;
    align-self: center;
    margin: 0;
    padding: 0;
    transform: none !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #playToggleBtn {
    grid-area: play !important;
  }

  .player-stage.is-fullscreen-native.fullscreen-portrait #playToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #playToggleBtn {
    grid-area: play !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #speedButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #speedButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #speedButtons {
    display: grid !important;
    grid-area: speed !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #mobilePrevVideoBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #mobilePrevVideoBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #mobilePrevVideoBtn {
    grid-area: prev !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #mobileNextVideoBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #mobileNextVideoBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #mobileNextVideoBtn {
    grid-area: next !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #subtitleModeButtons,
  .player-stage.is-fullscreen-native.fullscreen-portrait #subtitleModeButtons,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #subtitleModeButtons {
    display: grid !important;
    grid-area: language !important;
    grid-template-columns: 1fr;
    place-items: center;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0;
  }

  .player-stage:fullscreen.fullscreen-portrait #subtitleModeButtons .panel-menu,
  .player-stage.is-fullscreen-native.fullscreen-portrait #subtitleModeButtons .panel-menu,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #subtitleModeButtons .panel-menu {
    display: grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    flex: none;
  }

  .player-stage:fullscreen.fullscreen-portrait #subtitleModeMenuBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #subtitleModeMenuBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #subtitleModeMenuBtn {
    display: grid !important;
    place-items: center;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0;
  }

  .player-stage:fullscreen.fullscreen-portrait #subtitleModeMenuBtn::after,
  .player-stage.is-fullscreen-native.fullscreen-portrait #subtitleModeMenuBtn::after,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #subtitleModeMenuBtn::after {
    content: none !important;
    display: none !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #subtitleModeMenuBtn .toolbar-lucide-icon,
  .player-stage.is-fullscreen-native.fullscreen-portrait #subtitleModeMenuBtn .toolbar-lucide-icon,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #subtitleModeMenuBtn .toolbar-lucide-icon {
    width: 20px;
    height: 20px;
    transform: none !important;
  }

  /* 手机全屏字幕菜单：控制栏贴底时必须向上展开，避免菜单被屏幕裁掉。 */
  .player-stage:fullscreen #subtitleModeButtons .panel-menu-options,
  .player-stage.is-fullscreen-native #subtitleModeButtons .panel-menu-options,
  .player-stage.is-fullscreen-fallback #subtitleModeButtons .panel-menu-options {
    top: auto !important;
    right: auto !important;
    bottom: calc(100% + 8px) !important;
    left: 50% !important;
    z-index: 80 !important;
    max-height: min(50dvh, 240px);
    overflow-y: auto;
    transform: translateX(-50%) !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #mobileFavoriteBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #mobileFavoriteBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #mobileFavoriteBtn {
    grid-area: favorite !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #fullscreenBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #fullscreenBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #fullscreenBtn {
    grid-area: fullscreen !important;
    display: grid !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons > #mobilePanelToggleBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons > #mobilePanelToggleBtn {
    display: none !important;
    grid-area: auto !important;
  }

  .player-stage:fullscreen.fullscreen-portrait #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-native.fullscreen-portrait #watchActionButtons > #fullscreenBtn,
  .player-stage.is-fullscreen-fallback.fullscreen-portrait #watchActionButtons > #fullscreenBtn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  html[data-theme="light"] body[data-view="watch"] .player-stage:fullscreen.fullscreen-portrait #fullscreenBtn,
  html[data-theme="light"] body[data-view="watch"] .player-stage.is-fullscreen-native.fullscreen-portrait #fullscreenBtn,
  html[data-theme="light"] body[data-view="watch"] .player-stage.is-fullscreen-fallback.fullscreen-portrait #fullscreenBtn {
    color: #2b2926;
  }
}
