:root {
  color-scheme: light;
  --blue: #115fe9;
  --blue-strong: #0c4fc9;
  --ink: #13213a;
  --muted: #69758a;
  --line: #e6eaf0;
  --soft: #f6f8fb;
  --warm: #fff8f1;
  --live: #f04444;
  --radius-media: 14px;
  --shadow: 0 12px 36px rgba(28, 52, 88, 0.1);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: #fff; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: #fff; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(300px, 390px) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}
.brand { color: var(--blue); font-size: 30px; font-weight: 850; letter-spacing: -2px; }
.main-nav { display: flex; gap: 30px; align-items: stretch; height: 72px; }
.main-nav a { display: grid; place-items: center; position: relative; font-weight: 650; white-space: nowrap; }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.global-search { position: relative; width: 100%; min-width: 0; }
.global-search-results { position: absolute; top: calc(100% + 9px); left: 0; z-index: 60; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(17,34,66,.18); }
.global-search-results[hidden] { display: none; }
.global-search-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.global-search-head strong { font-size: 12px; }
.global-search-head span { color: var(--muted); font-size: 10px; }
.global-search-list { display: grid; max-height: 380px; overflow-y: auto; scrollbar-width: thin; }
.global-search-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid #f0f2f6; border-radius: 8px; }
.global-search-list a:hover, .global-search-list a:focus-visible { background: #f5f8fd; outline: none; }
.global-search-list img { width: 72px; aspect-ratio: 16 / 9; border-radius: 7px; background: #eef2f7; object-fit: cover; }
.global-search-list span { display: grid; min-width: 0; gap: 3px; }
.global-search-list b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.global-search-list small { color: var(--blue); font-size: 9px; font-weight: 760; }
.global-search-list em { color: #9aa5b6; font-style: normal; }
.global-search-empty { margin: 0; padding: 28px 12px; color: var(--muted); font-size: 11px; text-align: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.voice-quick-wrap, .account-wrap { position: relative; }
.voice-quick, .account-trigger { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.voice-quick { color: var(--blue); }
.voice-quick > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.voice-auto-dot { position: absolute; right: -3px; bottom: -3px; display: grid; width: 16px; height: 16px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--blue); color: #fff; font-size: 8px; font-weight: 850; }
.account-trigger { width: 48px; padding: 3px; border-color: rgba(17,95,233,.55); }
.account-trigger .avatar { width: 34px; height: 34px; }
.account-trigger > svg { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; padding: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); fill: none; stroke: #fff; stroke-width: 2; }
.login-entry { display: grid; min-width: 62px; height: 42px; place-items: center; border: 1px solid var(--blue); border-radius: 11px; color: var(--blue); font-size: 12px; font-weight: 780; }
.account-menu, .voice-popover { position: absolute; top: calc(100% + 12px); right: 0; z-index: 40; width: 324px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(17,34,66,.18); }
.account-menu[hidden], .voice-popover[hidden] { display: none; }
.account-menu-user { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 2px 2px 13px; border-bottom: 1px solid var(--line); }
.account-menu-user .avatar { width: 44px; height: 44px; }
.account-menu-user div { display: grid; gap: 3px; }
.account-menu-user strong { font-size: 15px; }
.account-menu-user span { color: var(--muted); font-size: 10px; }
.account-menu-user a { color: var(--blue); font-size: 11px; font-weight: 750; }
.account-menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.account-menu-grid a { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 11px; background: var(--soft); }
.account-menu-grid b, .account-menu-row > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #eaf2ff; color: var(--blue); font-size: 10px; }
.account-menu-grid span { font-size: 12px; font-weight: 760; }
.account-menu-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid #f0f2f6; }
.account-menu-row div { display: grid; gap: 2px; }
.account-menu-row strong { font-size: 12px; }
.account-menu-row small { color: var(--muted); font-size: 10px; }
.account-menu-row > b { color: #9aa3b3; }
.account-menu-foot { display: flex; justify-content: space-between; margin: 8px -2px -4px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-menu-foot button { border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.voice-popover { width: 280px; padding: 12px; }
.popover-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.popover-heading div { display: grid; gap: 3px; }
.popover-heading span { color: var(--blue); font-size: 11px; font-weight: 800; }
.popover-heading strong { font-size: 15px; }
.popover-heading em { padding: 5px 8px; border-radius: 999px; background: #edf4ff; color: var(--blue); font-size: 9px; font-style: normal; font-weight: 750; }
.voice-auto { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border-radius: 12px; background: var(--soft); }
.voice-auto > span { display: grid; gap: 3px; }
.voice-auto b { font-size: 12px; }
.voice-auto small { color: var(--muted); font-size: 10px; }
.voice-auto input { width: 34px; height: 18px; accent-color: var(--blue); }
.voice-field { display: grid; gap: 7px; margin-top: 12px; }
.voice-field > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.voice-field select, .voice-field input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fff; color: var(--ink); }
.voice-popover-foot, .voice-control-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.voice-popover-foot span, .voice-control-foot span { color: var(--muted); font-size: 10px; }
.voice-popover-foot button { padding: 7px 12px; border: 1px solid var(--blue); border-radius: 8px; background: #fff; color: var(--blue); font-size: 11px; font-weight: 750; cursor: pointer; }
.voice-popover-foot > div { display: grid; gap: 3px; }
.voice-popover-foot a { color: var(--blue); font-size: 10px; font-weight: 750; }
.language-picker { display: grid; min-height: 0; }
.language-search { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.language-search svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #738098; stroke-width: 1.8; stroke-linecap: round; }
.language-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.language-list { display: grid; max-height: 310px; margin: 9px 0 12px; padding-right: 4px; overflow-y: auto; scrollbar-width: thin; }
.language-list button { display: grid; grid-template-columns: 30px minmax(0, 1fr) 14px; align-items: center; gap: 8px; width: 100%; padding: 6px 5px; border: 0; border-top: 1px solid #f0f2f6; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.language-list button:first-child { border-top: 0; }
.language-list button:hover { background: #f8fbff; }
.language-list button[hidden] { display: none; }
.language-list button > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; }
.language-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.language-list small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.language-flag { display: block; width: 28px; height: 20px; overflow: hidden; border: 1px solid rgba(36,52,78,.12); border-radius: 3px; box-shadow: 0 1px 4px rgba(20,38,66,.08); }
.language-list i { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid #cad2df; border-radius: 50%; }
.language-list button.active { background: #f2f7ff; }
.language-list button.active .language-flag { filter: drop-shadow(0 2px 4px rgba(17,95,233,.16)); }
.language-list button.active i { border: 4px solid var(--blue); }
.language-empty { padding: 20px; color: var(--muted); text-align: center; font-size: 11px; }
.language-empty[hidden] { display: none; }
.voice-popover .language-list { max-height: 320px; margin-bottom: 0; }
.voice-popover .voice-auto { margin-top: 0; }
.voice-popover .voice-auto.compact { padding: 9px 10px; }
.voice-popover .voice-auto.compact b { font-size: 11px; }
.voice-popover .voice-auto.compact small { font-size: 9px; }

.shell { width: min(1440px, calc(100% - 56px)); margin: 0 auto; padding: 28px 0 54px; }
.page-heading { margin: 10px 0 24px; }
.page-heading h1 { margin: 0 0 6px; font-size: 34px; letter-spacing: -1px; }
.page-heading p { margin: 0; color: var(--muted); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, .8fr); align-items: stretch; gap: 16px; margin-bottom: 26px; }
.hero-card { position: relative; height: 310px; min-height: 0; overflow: hidden; border-radius: 18px; background: #071a39; box-shadow: var(--shadow); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.66) saturate(1.08); }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; background: linear-gradient(90deg, rgba(4,16,40,.78), rgba(4,16,40,.06) 70%); }
.ad-label, .state-label { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; color: #fff; font-size: 13px; font-weight: 800; }
.ad-label { background: rgba(17, 95, 233, .92); }
.state-label { background: var(--live); }
.hero-copy h1 { margin: 11px 0 7px; max-width: 720px; font-size: clamp(32px, 3.3vw, 48px); letter-spacing: -1.5px; line-height: 1.06; }
.hero-copy p { margin: 0 0 16px; font-size: 15px; color: rgba(255,255,255,.82); }
.primary { align-self: flex-start; padding: 10px 18px; border: 0; border-radius: 9px; color: #fff; background: var(--blue); font-weight: 800; cursor: pointer; }
.side-panel { height: 310px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 17px 20px; background: #fff; }
.side-panel h2 { margin: 0 0 8px; font-size: 19px; }
.live-row { display: grid; grid-template-columns: 88px 1fr; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.live-row:first-of-type { border-top: 0; }
.live-row img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.live-row strong { display: block; margin-bottom: 5px; font-size: 13px; }
.live-meta { color: var(--muted); font-size: 11px; }
.live-dot { color: var(--live); font-weight: 800; }

.section { margin: 38px 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.5px; }
.section-head p { margin: 5px 0 0; color: var(--muted); }
.more { color: var(--blue); font-weight: 750; font-size: 14px; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; }
.media-item { min-width: 0; }
.detail-card { cursor: pointer; }
.detail-card:focus-visible { outline: 3px solid rgba(17, 95, 233, .26); outline-offset: 4px; }
.media-item.detail-card { transition: transform .2s ease; }
.media-item.detail-card:hover { transform: translateY(-3px); }
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: #dfe5ee;
  box-shadow: 0 7px 20px rgba(28, 52, 88, .08);
}
.media-frame img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.media-item:hover .media-frame img { transform: scale(1.025); }
.media-title { display: -webkit-box; margin: 10px 0 0; overflow: hidden; font-size: 15px; line-height: 1.4; font-weight: 760; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.media-sub { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.media-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 30px 12px 10px; color: #fff; font-size: 13px; font-weight: 800; background: linear-gradient(transparent, rgba(4, 10, 20, .78)); }
.corner-label { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 7px; background: var(--live); color: #fff; font-size: 12px; font-weight: 800; }
.corner-label.promo { background: #bd6d19; }

.topic-card .media-overlay { padding: 36px 10px 9px; font-size: 12px; }
.topic-card .media-overlay span { text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.card-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; margin-top: 10px; }
.card-title-row .media-title { min-width: 0; margin: 0; }
.start-time { flex: 0 0 auto; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.media-action { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .92); border-radius: 8px; background: rgba(255, 255, 255, .96); color: var(--blue); box-shadow: 0 5px 16px rgba(11, 31, 63, .2); font-size: 12px; font-weight: 800; cursor: pointer; }
.media-action.reserved { border-color: #dbe4f2; background: #eef3fa; color: #6a7890; }
.media-heat { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 6px 9px; border-radius: 7px; background: rgba(9, 20, 39, .76); color: #fff; font-size: 11px; font-weight: 800; backdrop-filter: blur(5px); }
.replay-card .media-overlay { justify-content: flex-end; }

.media-view-shell { padding-top: 22px; }
.viewer-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.viewer-breadcrumb a { color: var(--blue); font-weight: 760; }
.viewer-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.viewer-title-row h1 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.8px; }
.viewer-title-row > span { flex: 0 0 auto; color: var(--blue); font-size: 16px; font-weight: 800; }
.watch-layout, .live-view-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: stretch; gap: 18px; }
.watch-layout { grid-template-rows: auto auto; column-gap: 18px; row-gap: 14px; }
.live-view-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.watch-main { min-width: 0; }
.watch-layout > .watch-main { display: contents; }
.watch-layout .video-stage { grid-column: 1; grid-row: 1; align-self: start; }
.watch-layout .viewer-info-panel { grid-column: 1; grid-row: 2; margin-top: 0; }
.watch-layout .episode-panel { grid-column: 2; grid-row: 1 / 3; align-self: stretch; height: 100%; max-height: none; min-height: 0; }
.video-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #07172e; box-shadow: 0 12px 34px rgba(8,28,60,.16); color: #fff; isolation: isolate; }
.video-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(2,13,31,.55), rgba(2,13,31,.03) 65%), linear-gradient(0deg, rgba(2,8,18,.66), transparent 34%); }
.video-stage img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.9) brightness(.82); transition: filter .25s ease, transform .5s ease; }
.video-stage.playing img { filter: saturate(1) brightness(.96); transform: scale(1.008); }
.video-stage-copy { position: absolute; left: clamp(22px, 4vw, 54px); top: 50%; z-index: 2; display: grid; width: 48%; gap: 12px; transform: translateY(-56%); text-shadow: 0 2px 16px rgba(0,0,0,.42); pointer-events: none; }
.video-stage-copy strong { font-size: clamp(28px, 3.7vw, 52px); line-height: 1.2; letter-spacing: -1.4px; }
.video-stage-copy span { color: rgba(255,255,255,.82); font-size: 14px; letter-spacing: 1.2px; }
.stage-play { position: absolute; left: 50%; top: 50%; z-index: 4; display: grid; width: 72px; height: 72px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(4,12,26,.74); color: #fff; cursor: pointer; transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(8px); }
.stage-play:hover { transform: translate(-50%, -50%) scale(1.05); }
.stage-play svg { width: 30px; height: 30px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.stage-play .icon-pause, .player-controls .icon-pause { display: none; fill: none; }
.video-stage.playing .stage-play { opacity: 0; }
.video-stage.playing:hover .stage-play, .video-stage.playing .stage-play:focus-visible { opacity: 1; }
.video-stage.playing .icon-play { display: none; }
.video-stage.playing .icon-pause { display: block; }
.player-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: 34px 34px auto minmax(80px, 1fr) auto 34px; align-items: center; gap: 8px; min-height: 52px; padding: 8px 14px; background: linear-gradient(transparent, rgba(2,8,18,.92)); }
.player-controls button { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: #fff; font-size: 11px; font-weight: 760; cursor: pointer; }
.player-controls button:hover, .player-controls button:focus-visible { background: rgba(255,255,255,.14); outline: none; }
.player-controls svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.player-controls .icon-pause { fill: none; }
.player-time, .live-control-copy { color: rgba(255,255,255,.9); font-size: 11px; font-weight: 700; white-space: nowrap; }
.live-control-copy { color: #ffcece; }
.player-progress { position: relative; height: 4px; border-radius: 999px; background: rgba(255,255,255,.36); }
.player-progress span { display: block; width: 30%; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s ease; }
.player-progress i { position: absolute; left: 30%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: left .25s ease; }
.live-stage .player-progress span { width: 38%; }
.live-stage .player-progress i { left: 38%; }
.video-stage.playing .player-progress span { width: 47%; }
.video-stage.playing .player-progress i { left: 47%; }
.viewer-info-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.viewer-info-heading { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.viewer-info-heading h2 { margin: 0; color: var(--blue); font-size: 14px; }
.viewer-tabs { display: flex; gap: 32px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.viewer-tabs button { position: relative; min-height: 48px; padding: 0 2px; border: 0; background: transparent; color: #46536a; font-size: 13px; font-weight: 730; cursor: pointer; }
.viewer-tabs button.active { color: var(--blue); }
.viewer-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.viewer-info-body { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding: 17px 20px; }
.viewer-info-body p { max-width: 760px; margin: 0; color: #4c596f; font-size: 12px; line-height: 1.75; }
.viewer-info-body > div { display: flex; flex: 0 0 auto; gap: 9px; }
.viewer-secondary { padding: 9px 16px; border: 1px solid #bfd3f6; border-radius: 9px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 780; cursor: pointer; }
.viewer-secondary.selected { border-color: #d7e2f3; background: #eff5ff; }
.viewer-title-favorite { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.viewer-title-favorite svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.episode-panel, .interaction-panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgba(26,48,82,.05); overflow: hidden; }
.episode-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 690px; }
.episode-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.episode-head h2, .interaction-panel h2 { margin: 0; font-size: 18px; }
.episode-head span { color: var(--muted); font-size: 11px; }
.episode-list { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.episode-list button { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 7px 15px; border: 0; border-top: 1px solid #f0f2f6; background: #fff; color: #435069; text-align: left; cursor: pointer; }
.episode-list button:first-child { border-top: 0; }
.episode-list button:hover { background: #f8fbff; }
.episode-list button.active { background: #eaf2ff; color: var(--blue); }
.episode-list button > span { display: grid; place-items: center; color: #8b96a8; font-size: 9px; }
.episode-list button.active > span { color: var(--blue); }
.episode-list strong { overflow: hidden; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.episode-list time { color: #8a95a7; font-size: 9px; }
.course-side-tabs { display: grid; grid-template-columns: auto auto 1fr; align-items: stretch; gap: 20px; min-height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.course-side-tabs button { position: relative; padding: 0 2px; border: 0; background: transparent; color: #526078; font-size: 15px; font-weight: 760; cursor: pointer; }
.course-side-tabs button.active { color: var(--blue); }
.course-side-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.course-side-tabs > span { align-self: center; justify-self: end; color: var(--muted); font-size: 10px; white-space: nowrap; }
[data-course-side-panel][hidden] { display: none; }
.course-comments { display: grid; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; }
.course-comment-list { min-height: 0; padding: 8px 16px; overflow-y: auto; scrollbar-width: thin; }
.course-comment-list article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 11px 0; border-bottom: 1px solid #f0f2f6; }
.course-comment-list article > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eaf2ff; color: var(--blue); font-size: 9px; font-weight: 800; }
.course-comment-list article.is-own > span { background: var(--blue); color: #fff; }
.course-comment-list article > div { min-width: 0; }
.course-comment-list article > div > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-comment-list strong { font-size: 11px; }
.course-comment-list time { color: #9aa4b5; font-size: 9px; }
.course-comment-list p { margin: 5px 0 0; color: #4c596f; font-size: 11px; line-height: 1.55; }
.course-comment-form { display: grid; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #fbfcfe; }
.course-comment-form textarea { width: 100%; min-height: 66px; padding: 10px; border: 1px solid #dfe5ee; border-radius: 9px; outline: 0; resize: none; color: var(--ink); background: #fff; font-size: 11px; }
.course-comment-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,95,233,.08); }
.course-comment-form button { justify-self: end; padding: 8px 13px; font-size: 11px; }
.live-stage .stage-play { display: none; }
.live-stage::after { background: linear-gradient(0deg, rgba(2,8,18,.65), transparent 34%); }
.live-stage-state, .live-stage-heat { position: absolute; z-index: 3; color: #fff; font-size: 12px; font-weight: 800; }
.live-stage-state { left: 14px; top: 14px; padding: 6px 9px; border-radius: 8px; background: rgba(240,68,68,.94); }
.live-stage-heat { right: 14px; bottom: 58px; padding: 6px 9px; border-radius: 8px; background: rgba(4,14,31,.7); backdrop-filter: blur(6px); }
.live-stage.is-upcoming .live-stage-state { background: rgba(17,95,233,.92); }
.interaction-panel { display: grid; min-height: 0; grid-template-rows: auto auto minmax(240px, 1fr) auto; padding: 18px 16px 16px; }
.interaction-tabs { display: grid; grid-template-columns: repeat(2, 1fr); margin: 10px 0 2px; border-bottom: 1px solid var(--line); }
.interaction-tabs button { min-height: 42px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.interaction-tabs button.active { border-bottom-color: var(--blue); color: var(--blue); }
.chat-list { min-height: 0; padding: 8px 2px; overflow-y: auto; scrollbar-width: thin; }
.chat-list article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 8px 0; }
.chat-list article > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eaf2ff; color: var(--blue); font-size: 9px; font-weight: 800; }
.chat-list article.is-own > span { background: var(--blue); color: #fff; }
.chat-list article > div > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-list strong { font-size: 10px; }
.chat-list time { color: #a0a9b8; font-size: 9px; }
.chat-list p { margin: 4px 0 0; color: #46536a; font-size: 11px; line-height: 1.55; }
.chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-compose input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #f8fafc; font-size: 11px; }
.chat-compose input:focus { border-color: #9cbbef; background: #fff; }
.chat-compose button { min-width: 64px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 780; cursor: pointer; }
.chat-compose :disabled { cursor: not-allowed; opacity: .55; }

.teacher-poster { isolation: isolate; background: linear-gradient(135deg, #fff6df, #f5a57d); box-shadow: 0 12px 28px rgba(98, 50, 24, .12); }
.teacher-poster img { position: absolute; inset: 0; z-index: 0; object-fit: contain; object-position: right bottom; transform: none; }
.media-item:hover .teacher-poster img { transform: translateX(-2px) scale(1.01); }
.teacher-poster::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255, 247, 224, .98) 0%, rgba(255, 227, 197, .91) 45%, rgba(255, 191, 153, .12) 72%, transparent 100%); }
.teacher-poster::after { content: ""; position: absolute; left: -8%; bottom: -42%; z-index: 1; width: 52%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .72); border-radius: 50%; background: rgba(255, 255, 255, .18); }
.teacher-poster.poster-tone-1 { background: linear-gradient(135deg, #fff4e8, #ef9273); }
.teacher-poster.poster-tone-1::before { background: linear-gradient(90deg, rgba(255, 245, 232, .98) 0%, rgba(255, 218, 195, .91) 45%, rgba(244, 157, 125, .12) 72%, transparent 100%); }
.teacher-poster.poster-tone-2 { background: linear-gradient(135deg, #fff8dc, #e9a76f); }
.teacher-poster.poster-tone-2::before { background: linear-gradient(90deg, rgba(255, 249, 222, .98) 0%, rgba(255, 228, 189, .91) 45%, rgba(238, 177, 112, .12) 72%, transparent 100%); }
.teacher-poster-copy { position: absolute; inset: 0 auto 0 0; z-index: 2; display: flex; width: 61%; flex-direction: column; justify-content: center; padding: 12px 14px; color: #35170e; }
.teacher-poster-kicker { width: max-content; margin-bottom: 3px; color: #a44b2d; font-size: 9px; font-weight: 850; letter-spacing: .6px; }
.teacher-poster-copy h3 { margin: 0; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.05; letter-spacing: -.5px; }
.teacher-poster-copy p { margin: 5px 0 0; font-size: 10px; font-weight: 720; line-height: 1.3; }
.teacher-poster-copy small { display: -webkit-box; margin-top: 5px; overflow: hidden; color: #72402f; font-size: 8px; font-weight: 680; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.teacher-poster-metrics { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.teacher-poster-metrics span { padding: 2px 4px; border: 1px solid rgba(93, 48, 29, .13); border-radius: 5px; background: rgba(255, 255, 255, .7); font-size: 8px; font-weight: 760; }

.warm-band { padding: 26px; border-radius: 18px; background: var(--warm); }
.filters { display: grid; gap: 0; margin: 22px 0 30px; border-top: 1px solid var(--line); }
.shell[data-page="courses"], .shell[data-page="live"], .shell[data-page="topics"], .shell[data-page="teachers"] { padding-top: 20px; }
.shell[data-page="courses"] .filters { margin-top: 0; }
.filter-row { display: flex; align-items: center; gap: 22px; min-height: 52px; border-bottom: 1px solid var(--line); }
.filter-row strong { width: 56px; }
.filter-row button { padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: #43506a; }
.filter-row button.selected { color: var(--blue); background: #eaf2ff; font-weight: 800; }

.live-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chip { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #46536b; cursor: pointer; }
.chip.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.result-count { margin-left: auto; color: var(--muted); }

.topic-hero { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, .8fr); align-items: stretch; gap: 16px; }
.topic-feature { position: relative; height: 310px; min-height: 0; overflow: hidden; border-radius: 18px; background: #eef4ff; }
.topic-feature img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.topic-feature .hero-copy { justify-content: center; color: #fff; }
.topic-stack { display: grid; height: 310px; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
.topic-stack .topic-feature { height: auto; min-height: 0; }
.topic-stack .hero-copy { padding: 18px; }
.topic-stack .hero-copy h1 { margin: 6px 0 0; font-size: 22px; }

.teacher-showcase { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(28, 48, 84, .05); }
.teacher-showcase-stage { position: relative; height: 360px; overflow: hidden; border-radius: 16px; background: #f7f9fc; }
.teacher-showcase-slide { position: absolute; inset: 0; display: none; animation: carousel-fade .32s ease; }
.teacher-showcase-slide.active { display: grid; }
.teacher-feature { grid-template-columns: minmax(500px, 1.28fr) minmax(330px, .72fr); min-width: 0; overflow: hidden; border-radius: 16px; background: #fff; }
.teacher-feature .feature-image { position: relative; min-height: 360px; overflow: hidden; border-radius: 16px 0 0 16px; }
.teacher-feature img { width: 100%; height: 100%; object-fit: cover; }
.teacher-feature .teacher-feature-portrait { background: linear-gradient(135deg, #fff7df, #f3a179); }
.teacher-feature .teacher-feature-portrait img { object-fit: contain; object-position: right bottom; }
.teacher-feature-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,247,224,.98) 0%, rgba(255,226,198,.83) 40%, rgba(246,170,132,.04) 66%, transparent 100%); pointer-events: none; }
.teacher-feature-identity { position: absolute; left: 28px; top: 50%; z-index: 2; width: 45%; transform: translateY(-50%); color: #3d1c13; }
.teacher-feature-identity > span { color: #a54d2c; font-size: 11px; font-weight: 850; letter-spacing: .6px; }
.teacher-feature-identity h2 { margin: 11px 0 7px; font-size: 36px; line-height: 1; letter-spacing: -1px; }
.teacher-feature-identity strong { font-size: 13px; }
.teacher-feature-identity p { margin: 15px 0 18px; color: #754330; font-size: 13px; font-weight: 650; line-height: 1.65; }
.teacher-feature-identity div { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-feature-identity em { padding: 5px 8px; border: 1px solid rgba(118,62,38,.14); border-radius: 999px; background: rgba(255,255,255,.7); font-size: 10px; font-style: normal; font-weight: 760; }
.teacher-feature-content { display: flex; min-width: 0; flex-direction: column; padding: 14px 24px 12px; border-radius: 0 16px 16px 0; }
.teacher-feature-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 1px 0 12px; border-bottom: 1px solid var(--line); }
.teacher-feature-head span { color: var(--blue); font-size: 11px; font-weight: 800; }
.teacher-feature-head h2 { margin: 5px 0 0; font-size: 24px; letter-spacing: -.5px; }
.teacher-view-link { padding-bottom: 2px; white-space: nowrap; }
.teacher-activity-list { display: grid; flex: 1; }
.teacher-activity-list article { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.teacher-activity-list article > img { width: 96px; aspect-ratio: 16 / 9; border-radius: 9px; object-fit: cover; }
.teacher-activity-list article div { display: grid; min-width: 0; gap: 3px; }
.teacher-activity-list b { color: var(--blue); font-size: 10px; }
.teacher-activity-list .activity-live { color: var(--live); }
.teacher-activity-list strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.teacher-activity-list span { color: var(--muted); font-size: 11px; }
.teacher-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--muted); font-size: 11px; }
.teacher-actions strong { color: var(--ink); font-size: 12px; }
.teacher-showcase-nav { position: absolute; left: 18px; bottom: 16px; z-index: 5; padding: 8px 11px; border: 1px solid rgba(132,77,49,.14); border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 7px 22px rgba(94,53,32,.12); backdrop-filter: blur(10px); }
.teacher-carousel-dots { display: flex; align-items: center; gap: 7px; }
.teacher-carousel-dots .carousel-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #dcb7a1; cursor: pointer; transition: width .2s ease, background .2s ease; }
.teacher-carousel-dots .carousel-dot.active { width: 20px; border-radius: 999px; background: #b75b3b; }
@keyframes carousel-fade { from { opacity: .35; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }
.ghost { padding: 11px 18px; border: 1px solid var(--blue); border-radius: 9px; color: var(--blue); background: #fff; font-weight: 750; }

.modal-open { overflow: hidden; }
.detail-overlay[hidden] { display: none; }
.detail-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(7, 17, 35, .58); backdrop-filter: blur(8px); }
.detail-dialog { position: relative; display: grid; width: min(1060px, calc(100vw - 48px)); max-height: 88vh; grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr); overflow: auto; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(5, 17, 38, .28); }
.detail-close { position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); cursor: pointer; }
.detail-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.account-overlay[hidden] { display: none; }
.account-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(7,17,35,.58); backdrop-filter: blur(8px); }
.account-dialog, .purchase-dialog { position: relative; width: min(430px, calc(100vw - 32px)); padding: 34px; border: 1px solid rgba(255,255,255,.72); border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(5,17,38,.28); }
.account-dialog-kicker { color: var(--blue); font-size: 11px; font-weight: 820; }
.account-dialog h2, .purchase-dialog h2 { margin: 7px 0 8px; font-size: 27px; }
.account-dialog > p, .purchase-teacher { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-form { display: grid; gap: 14px; }
.login-form > label { display: grid; gap: 7px; }
.login-form > label span { font-size: 11px; font-weight: 750; }
.login-form > label input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; }
.login-form > label input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,95,233,.08); }
.login-form-options { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.login-form-options label { display: flex; align-items: center; gap: 6px; }
.login-form-options button, .account-dialog-foot button { padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; }
.login-submit { width: 100%; }
.form-status { min-height: 18px; margin: 0 !important; color: var(--blue) !important; }
.account-dialog-foot { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }
.purchase-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border-radius: 13px; background: #f4f8ff; }
.purchase-summary div { display: grid; gap: 5px; }
.purchase-summary span { color: var(--muted); font-size: 10px; }
.purchase-summary strong { font-size: 12px; }
.purchase-summary > b { color: #e34a36; font-size: 26px; }
.purchase-dialog ul { display: grid; gap: 8px; margin: 18px 0; padding-left: 20px; color: #4f5c71; font-size: 11px; }
.purchase-actions { display: flex; gap: 9px; }
.purchase-actions button { flex: 1; }
.purchase-note { margin: 14px 0 0; color: #8a95a7; font-size: 9px; line-height: 1.5; }
.detail-media { position: relative; min-height: 440px; overflow: hidden; background: #e8edf5; }
.detail-media img { width: 100%; height: 100%; min-height: 440px; display: block; object-fit: cover; }
.detail-media.is-teacher { background: linear-gradient(135deg, #fff7df, #f2a17c); }
.detail-media.is-teacher img { object-fit: contain; object-position: right bottom; }
.detail-media.is-teacher::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,247,224,.98) 0%, rgba(255,229,202,.86) 39%, rgba(247,177,137,.08) 66%, transparent 100%); pointer-events: none; }
.detail-media-copy[hidden], .detail-profile[hidden], .detail-activity[hidden], .detail-teacher-heading[hidden], .detail-heading[hidden] { display: none; }
.detail-media-copy { position: absolute; left: 34px; top: 38px; z-index: 2; width: 48%; color: #3c1d15; }
.detail-media-copy > span { color: #a54d2c; font-size: 11px; font-weight: 850; letter-spacing: .8px; }
.detail-media-copy h3 { margin: 10px 0 10px; font-size: 34px; line-height: 1.08; letter-spacing: -1px; }
.detail-media-copy > strong { display: block; font-size: 16px; line-height: 1.45; }
.detail-media-copy p { margin: 8px 0 0; color: #754330; font-size: 13px; font-weight: 720; line-height: 1.6; }
.detail-media-copy div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.detail-media-copy div span { padding: 5px 8px; border: 1px solid rgba(118,62,38,.14); border-radius: 999px; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 760; }
.detail-body { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 42px 38px 34px; }
.detail-dialog.is-teacher-detail { width: min(1100px, calc(100vw - 48px)); grid-template-columns: minmax(350px, 410px) minmax(0, 1fr); }
.detail-dialog.is-teacher-detail .detail-media.is-teacher::after { background: linear-gradient(180deg, rgba(255,247,224,.42) 0%, rgba(255,229,202,.18) 48%, transparent 72%); }
.detail-dialog.is-teacher-detail .detail-media.is-teacher img { position: absolute; left: 0; bottom: 0; width: 100%; height: 58%; min-height: 0; object-fit: cover; object-position: 72% bottom; }
.detail-dialog.is-teacher-detail .detail-media-copy { left: 30px; right: 26px; top: 32px; width: auto; }
.detail-dialog.is-teacher-detail .detail-body { justify-content: flex-start; padding-top: 54px; padding-bottom: 24px; }
.detail-kind { color: var(--blue); font-size: 13px; font-weight: 800; }
.detail-body h2 { margin: 10px 0 9px; font-size: 30px; line-height: 1.2; letter-spacing: -.8px; }
.detail-teacher-heading span { color: var(--blue); font-size: 11px; font-weight: 820; }
.detail-teacher-heading h2 { margin: 5px 0 0; font-size: 23px; }
.detail-meta { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.detail-description { margin: 18px 0 16px; color: #455169; line-height: 1.75; }
.detail-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.detail-profile div { min-width: 0; padding: 10px 11px; border: 1px solid #edf0f5; border-radius: 10px; background: #f8f9fb; }
.detail-profile span { display: block; margin-bottom: 5px; color: #8791a3; font-size: 10px; }
.detail-profile strong { display: block; color: #28364f; font-size: 12px; line-height: 1.45; }
.detail-activity { margin: 0 0 12px; border-top: 1px solid var(--line); }
.detail-activity-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 5px; }
.detail-activity-head strong { font-size: 13px; }
.detail-activity-head span { color: var(--muted); font-size: 10px; }
.detail-activity-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; padding: 6px 0; }
.detail-activity-row > div { display: grid; min-width: 0; gap: 2px; }
.detail-activity-row > div strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.detail-activity-row small { color: var(--muted); font-size: 10px; }
.activity-state { min-width: 44px; padding: 4px 6px; border-radius: 6px; background: #eaf2ff; color: var(--blue); font-size: 9px; font-weight: 800; text-align: center; }
.activity-state.live { background: #fff0f0; color: var(--live); }
.detail-points { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #526078; font-size: 12px; text-align: center; }
.detail-points span + span { border-left: 1px solid var(--line); }
.detail-actions { display: flex; gap: 11px; }

.profile-shell { padding-top: 24px; }
.profile-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 20px; }
.profile-sidebar { position: sticky; top: 96px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(28,52,88,.05); }
.profile-person { display: flex; align-items: center; gap: 11px; padding: 2px 4px 16px; border-bottom: 1px solid var(--line); }
.profile-person img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.profile-person div { display: grid; gap: 4px; }
.profile-person strong { font-size: 16px; }
.profile-person span { color: var(--muted); font-size: 11px; }
.profile-sidebar nav { display: grid; gap: 5px; margin: 13px 0; }
.profile-sidebar nav a { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; padding: 9px; border-radius: 11px; color: #49566c; }
.profile-sidebar nav a b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--soft); font-size: 10px; }
.profile-sidebar nav a span { font-size: 13px; font-weight: 740; }
.profile-sidebar nav a.active { background: #edf4ff; color: var(--blue); }
.profile-sidebar nav a.active b { background: #fff; box-shadow: 0 4px 12px rgba(17,95,233,.1); }
.profile-help { display: grid; gap: 6px; padding: 13px; border-radius: 12px; background: #f8fafc; }
.profile-help strong { font-size: 12px; }
.profile-help span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.profile-help a { color: var(--blue); font-size: 10px; font-weight: 750; }
.profile-panel { min-height: 680px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.panel-title > span { color: var(--blue); font-size: 11px; font-weight: 820; }
.panel-title h1 { margin: 6px 0 7px; font-size: 30px; letter-spacing: -.8px; }
.panel-title p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.profile-welcome { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 28px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #115fe9, #4a86ed 63%, #73a4f1); overflow: hidden; }
.profile-welcome span { color: rgba(255,255,255,.76); font-size: 12px; }
.profile-welcome h1 { margin: 8px 0; font-size: 28px; }
.profile-welcome p { margin: 0; color: rgba(255,255,255,.84); font-size: 12px; }
.learning-ring { display: grid; width: 88px; height: 88px; flex: 0 0 auto; place-items: center; align-content: center; border: 8px solid rgba(255,255,255,.24); border-top-color: #fff; border-radius: 50%; }
.learning-ring strong { font-size: 20px; }
.learning-ring span { font-size: 9px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 24px; }
.profile-stats article { display: grid; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfe; }
.profile-stats span { color: var(--muted); font-size: 11px; }
.profile-stats strong { font-size: 24px; }
.profile-stats small { font-size: 11px; }
.profile-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-block-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.profile-block-head h2 { margin: 0; font-size: 18px; }
.profile-block-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.profile-block-head a { color: var(--blue); font-size: 11px; font-weight: 750; }
.recent-learning { display: grid; gap: 10px; }
.recent-learning article { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.recent-learning img { width: 86px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; }
.recent-learning article > div { display: grid; gap: 5px; }
.recent-learning strong { font-size: 12px; }
.recent-learning span { color: var(--muted); font-size: 10px; }
.recent-learning i { width: 100%; height: 4px; border-radius: 4px; background: #e7ecf4; overflow: hidden; }
.recent-learning i b { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.recent-learning i b.fill-64 { width: 64%; }
.recent-learning i b.fill-38 { width: 38%; }
.recent-learning button { padding: 8px 12px; border: 1px solid var(--blue); border-radius: 8px; background: #fff; color: var(--blue); font-size: 11px; font-weight: 750; }
.profile-shortcuts, .benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.profile-shortcuts a, .benefit-grid article { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.profile-shortcuts b, .benefit-grid b { color: var(--blue); font-size: 11px; }
.profile-shortcuts span, .benefit-grid span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; }
.submission-form { display: grid; gap: 18px; }
.submission-form > label { display: grid; gap: 8px; }
.submission-form > label > span { font-size: 12px; font-weight: 750; }
.submission-form input, .submission-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; resize: vertical; }
.type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.type-options button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); }
.type-options button.active { border-color: var(--blue); background: #edf4ff; color: var(--blue); font-weight: 750; }
.upload-box { display: grid; width: 100%; min-height: 126px; place-items: center; align-content: center; gap: 5px; border: 1px dashed #b9c8dd; border-radius: 12px; background: #fafcff; color: var(--ink); }
.upload-box b { color: var(--blue); font-size: 24px; }
.upload-box small { color: var(--muted); font-size: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.submission-aside { display: grid; align-content: start; gap: 10px; }
.submission-aside > div { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.submission-aside > div span, .submission-aside > div small { color: var(--muted); font-size: 10px; }
.submission-aside > div strong { grid-row: span 2; font-size: 24px; }
.submission-aside section { padding: 16px; border-radius: 13px; background: #fff8ee; }
.submission-aside h3 { margin: 0 0 8px; font-size: 14px; }
.submission-aside p { color: #76634d; font-size: 11px; line-height: 1.65; }
.submission-aside a { color: #a16122; font-size: 10px; font-weight: 750; }
.membership-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px; border-radius: 16px; color: #3e2913; background: linear-gradient(120deg, #fff1d4, #f6c587); }
.membership-hero span { font-size: 11px; font-weight: 800; }
.membership-hero h2 { margin: 8px 0; font-size: 24px; }
.membership-hero p { margin: 0 0 16px; font-size: 12px; }
.membership-hero button { padding: 9px 14px; border: 0; border-radius: 9px; background: #3e2913; color: #fff; font-weight: 750; }
.membership-hero > strong { min-width: 100px; text-align: center; font-size: 11px; line-height: 2; }
.membership-hero > strong b { font-size: 32px; }
.benefit-grid { grid-template-columns: repeat(4, 1fr); }
.benefit-grid article strong { font-size: 12px; }
.record-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; padding: 12px 0; font-size: 12px; }
.record-row span, .record-row em { color: var(--muted); font-style: normal; }
.voice-settings-card { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.voice-visual { display: grid; place-items: center; align-content: center; padding: 28px; text-align: center; background: radial-gradient(circle at 50% 40%, #dceaff, #f4f8ff 62%, #fff); }
.voice-orbit { position: relative; display: grid; width: 150px; height: 150px; margin-bottom: 20px; place-items: center; border: 1px solid #cdddf7; border-radius: 50%; }
.voice-orbit::after { content: ""; position: absolute; inset: 25px; border: 1px dashed #a9c3ed; border-radius: 50%; }
.voice-orbit strong { z-index: 2; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 22px; box-shadow: 0 10px 26px rgba(17,95,233,.25); }
.voice-orbit span { position: absolute; z-index: 3; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #d8e3f4; border-radius: 50%; background: #fff; color: var(--blue); font-size: 9px; font-weight: 800; }
.voice-orbit span:nth-child(1) { top: -4px; left: 58px; }.voice-orbit span:nth-child(2) { top: 58px; right: -4px; }.voice-orbit span:nth-child(3) { bottom: -4px; left: 58px; }.voice-orbit span:nth-child(4) { top: 58px; left: -4px; }
.voice-visual h2 { margin: 0 0 7px; font-size: 18px; }
.voice-visual p { margin: 0; color: var(--muted); font-size: 11px; }
.voice-controls { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.voice-auto.large { padding: 16px; }
.voice-control-foot { margin-top: 18px; }
.language-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.language-tags span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #4e5c72; font-size: 10px; }
.language-shell .language-panel { width: min(980px, 100%); min-height: 0; margin: 0 auto; }
.language-settings-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 16px; }
.language-selector-card, .voice-settings-side { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.language-selector-card > div:first-child h2 { margin: 0 0 5px; font-size: 18px; }
.language-selector-card > div:first-child p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.language-selector-card .language-list { max-height: 442px; }
.voice-settings-side { align-self: start; background: #fbfcfe; }
.voice-system-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 15px; border-radius: 12px; background: linear-gradient(120deg, #e8f1ff, #f3f7ff); }
.voice-system-status span { color: var(--muted); font-size: 10px; }
.voice-system-status strong { color: var(--blue); font-size: 13px; }
.voice-privacy-note { display: grid; gap: 5px; margin-top: 22px; padding: 15px; border-top: 1px solid var(--line); }
.voice-privacy-note b { font-size: 11px; }
.voice-privacy-note span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.settings-list { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.settings-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; border-top: 1px solid var(--line); }
.settings-list article:first-child { border-top: 0; }
.settings-list article > div { display: grid; gap: 4px; }
.settings-list b { font-size: 13px; }
.settings-list span { color: var(--muted); font-size: 10px; }
.settings-list button, .danger-card button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }
.reset-card, .danger-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 20px; border-radius: 14px; }
.reset-card { background: #f3f7fd; }
.reset-card span { color: var(--blue); font-size: 10px; font-weight: 800; }
.reset-card h2 { margin: 6px 0; font-size: 18px; }
.reset-card p { margin: 0; color: var(--muted); font-size: 10px; }
.reset-card button { padding: 9px 13px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 750; }
.danger-card { border: 1px solid #f4d6d6; }
.danger-card > div { display: grid; gap: 4px; }
.danger-card strong { color: #c54141; font-size: 12px; }
.danger-card span { color: var(--muted); font-size: 10px; }

.footer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; margin-top: 64px; padding: 32px 10px 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer strong { display: block; margin-bottom: 12px; color: var(--ink); }
.footer span { display: block; margin: 7px 0; font-size: 13px; }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr minmax(260px, 320px) auto; padding: 0 20px; gap: 14px; }
  .main-nav { gap: 16px; }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto 1fr auto; min-height: auto; padding-top: 10px; }
  .global-search { grid-column: 1 / -1; order: 4; padding-bottom: 10px; }
  .main-nav { height: 58px; }
  .shell { width: min(100% - 30px, 760px); }
  .watch-layout, .live-view-layout { grid-template-columns: 1fr; }
  .watch-layout { display: grid; grid-template-rows: none; gap: 18px; }
  .watch-layout > .watch-main { display: block; }
  .watch-layout .video-stage, .watch-layout .viewer-info-panel, .watch-layout .episode-panel { grid-column: auto; grid-row: auto; }
  .watch-layout .viewer-info-panel { margin-top: 14px; }
  .watch-layout .episode-panel { height: auto; max-height: 440px; }
  .episode-panel { max-height: 440px; }
  .interaction-panel { min-height: 480px; }
  .hero-grid, .topic-hero { grid-template-columns: 1fr; }
  .hero-card { height: 300px; }
  .side-panel { height: auto; }
  .topic-feature { height: 300px; }
  .topic-stack { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .topic-stack .topic-feature { height: 142px; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-dialog { grid-template-columns: 1fr; }
  .detail-dialog.is-teacher-detail { grid-template-columns: minmax(0, 1fr) !important; }
  .detail-media, .detail-media img { min-height: 260px; max-height: 340px; }
  .detail-dialog.is-teacher-detail .detail-media { min-height: 370px; }
  .detail-dialog.is-teacher-detail .detail-media img { min-height: 0; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .profile-sidebar nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile-sidebar nav a { grid-template-columns: 1fr; justify-items: center; gap: 5px; text-align: center; }
  .profile-help { display: none; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-showcase-stage { height: 710px; }
  .teacher-feature { grid-template-columns: 1fr; grid-template-rows: 340px 370px; }
  .teacher-feature .feature-image { min-height: 0; border-radius: 16px 16px 0 0; }
  .teacher-feature-content { border-radius: 0 0 16px 16px; }
  .teacher-showcase-nav { top: 292px; bottom: auto; }
}

@media (max-width: 640px) {
  .site-header { grid-template-columns: auto auto; min-height: auto; padding-top: 12px; }
  .main-nav { grid-column: 1 / -1; order: 3; height: 52px; overflow-x: auto; }
  .global-search { grid-column: 1 / -1; order: 4; padding-bottom: 12px; }
  .global-search-results { position: fixed; top: 150px; right: 12px; left: 12px; width: auto; }
  .header-tools { justify-self: end; }
  .account-menu { position: fixed; top: 72px; right: 12px; width: min(360px, calc(100vw - 24px)); }
  .voice-popover { position: fixed; top: 72px; right: 12px; width: min(280px, calc(100vw - 24px)); }
  .shell { width: min(100% - 24px, 520px); padding-top: 18px; }
  .viewer-title-row { align-items: center; }
  .viewer-title-row h1 { font-size: 23px; }
  .video-stage-copy { left: 18px; width: 58%; gap: 6px; }
  .video-stage-copy strong { font-size: 23px; letter-spacing: -.5px; }
  .video-stage-copy span { display: none; }
  .stage-play { width: 54px; height: 54px; }
  .player-controls { grid-template-columns: 30px 30px auto minmax(34px, 1fr) 30px; gap: 3px; min-height: 44px; padding: 6px 8px; }
  .player-controls button { min-width: 30px; height: 30px; padding: 0 4px; }
  .player-controls .quality-button { display: none; }
  .player-time { font-size: 9px; }
  .live-stage-heat { bottom: 48px; }
  .viewer-tabs { gap: 24px; overflow-x: auto; }
  .viewer-info-body { align-items: flex-start; flex-direction: column; gap: 12px; }
  .episode-panel { max-height: 390px; }
  .interaction-panel { min-height: 450px; }
  .hero-card { height: 280px; min-height: 0; }
  .hero-copy { padding: 24px; }
  .hero-copy h1 { font-size: 38px; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-stack { grid-template-columns: 1fr; }
  .topic-stack .topic-feature { height: 150px; }
  .detail-overlay { padding: 12px; }
  .detail-dialog { width: calc(100vw - 24px); }
  .detail-dialog.is-teacher-detail { min-width: 0; }
  .detail-body { padding: 28px 22px 24px; }
  .detail-dialog.is-teacher-detail .detail-body { padding: 30px 22px 24px; }
  .detail-media-copy { left: 22px; top: 24px; width: 53%; }
  .detail-dialog.is-teacher-detail .detail-media-copy { left: 22px; right: 20px; top: 24px; width: auto; }
  .detail-dialog.is-teacher-detail .detail-media.is-teacher img { height: 56%; object-position: 72% bottom; }
  .detail-media-copy h3 { font-size: 28px; }
  .detail-media-copy > strong { font-size: 13px; }
  .detail-media-copy div { margin-top: 12px; }
  .teacher-feature-identity { left: 22px; width: 49%; }
  .teacher-feature-identity h2 { font-size: 31px; }
  .teacher-showcase { padding: 12px; }
  .teacher-showcase-stage { height: 676px; }
  .teacher-feature { grid-template-rows: 306px 370px; }
  .teacher-feature-content { min-height: 0; padding: 14px 16px 10px; }
  .teacher-activity-list article { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
  .teacher-activity-list article > img { width: 88px; }
  .teacher-showcase-nav { top: 258px; left: 12px; bottom: auto; }
  .profile-panel { min-height: 0; padding: 20px 16px; }
  .profile-sidebar { padding: 12px 8px; }
  .profile-person { display: none; }
  .profile-sidebar nav { gap: 3px; margin: 0; overflow-x: auto; }
  .profile-sidebar nav a { min-width: 62px; padding: 7px 3px; }
  .profile-sidebar nav a b { width: 32px; height: 32px; }
  .profile-sidebar nav a span { font-size: 10px; }
  .profile-welcome { padding: 20px; }
  .profile-welcome h1 { font-size: 22px; }
  .learning-ring { width: 72px; height: 72px; }
  .profile-stats { grid-template-columns: 1fr; }
  .recent-learning article { grid-template-columns: 72px 1fr; }
  .recent-learning img { width: 72px; }
  .recent-learning button { grid-column: 2; justify-self: start; }
  .profile-shortcuts, .benefit-grid { grid-template-columns: 1fr; }
  .submit-layout, .voice-settings-card, .language-settings-grid { grid-template-columns: 1fr; }
  .submission-aside { grid-template-columns: repeat(2, 1fr); }
  .submission-aside section { grid-column: 1 / -1; }
  .voice-visual { min-height: 300px; }
  .voice-controls { padding: 22px 16px; }
  .membership-hero { align-items: flex-start; padding: 22px; }
  .membership-hero > strong { min-width: 74px; }
  .reset-card, .danger-card { align-items: flex-start; flex-direction: column; }
  .detail-body h2 { font-size: 25px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer > :nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
