:root {
  --bg: #f3f5f8;
  --bg-soft: #fafbfd;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-ink: #0f1722;
  --text: #10131a;
  --text-soft: #5f6876;
  --line: rgba(15, 23, 34, 0.09);
  --line-strong: rgba(15, 23, 34, 0.16);
  --accent: #2067ff;
  --accent-soft: rgba(32, 103, 255, 0.12);
  --success: #157447;
  --warning: #9b6a1e;
  --danger: #b1322a;
  --shadow-soft: 0 24px 60px rgba(15, 23, 34, 0.08);
  --shadow-card: 0 18px 44px rgba(15, 23, 34, 0.08);
  --shadow-strong: 0 32px 80px rgba(15, 23, 34, 0.12);
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --layout-max: 1220px;
  --layout-pad: clamp(18px, 3vw, 32px);
  --ad-rail-width: 360px;
  --ad-rail-gap: 28px;
  /* Desktop-only breathing room between the center content column and each wallpaper rail. */
  --content-rail-gap: 0px;
  --nav-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 167, 255, 0.15), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(173, 222, 255, 0.17), transparent 22%),
    linear-gradient(180deg, #fbfcfe 0%, #f3f5f8 44%, #edf1f6 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.8;
}

body::before {
  top: 80px;
  left: -120px;
  width: 280px;
  height: 280px;
  background: rgba(118, 178, 255, 0.16);
}

body::after {
  right: -60px;
  top: 180px;
  width: 320px;
  height: 320px;
  background: rgba(194, 222, 255, 0.2);
}

.page-ad-frame {
  position: fixed;
  inset: 118px 0 auto;
  z-index: 1;
  pointer-events: none;
}

.page-ad-frame-inner {
  width: 100%;
  max-width: calc(var(--layout-max) + (var(--layout-pad) * 2) + (var(--ad-rail-width) * 2) + (var(--ad-rail-gap) * 2) + (var(--content-rail-gap) * 2));
  margin: 0 auto;
  padding: 0 var(--layout-pad);
  display: flex;
  justify-content: space-between;
  gap: var(--ad-rail-gap);
}

.page-ad-rail {
  width: var(--ad-rail-width);
  pointer-events: auto;
}

.page-ad-stack {
  position: sticky;
  top: 18px;
  display: grid;
  min-height: calc(100vh - 160px);
}

.page-ad-slot {
  min-height: calc(100vh - 180px);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--ad-wallpaper, linear-gradient(180deg, rgba(255,255,255,0.82), rgba(246,248,251,0.92)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 18px 60px rgba(15, 23, 34, 0.1);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.page-ad-slot::before,
.page-ad-slot::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.7;
}

.page-ad-slot::before {
  width: 180px;
  height: 180px;
  top: -58px;
  left: -38px;
  background: color-mix(in srgb, var(--ad-accent, #0f1722) 22%, transparent);
}

.page-ad-slot::after {
  width: 220px;
  height: 220px;
  bottom: -90px;
  right: -70px;
  background: color-mix(in srgb, var(--ad-accent, #0f1722) 18%, transparent);
}

.page-ad-slot.is-dark {
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.08);
}

.page-ad-backdrop {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.page-ad-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-ad-pill,
.page-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.page-ad-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(18, 24, 31, 0.42), rgba(18, 24, 31, 0.82));
  backdrop-filter: blur(18px);
}

.page-ad-slot:not(.is-dark) .page-ad-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.52), rgba(255,255,255,0.92));
  border-color: rgba(255,255,255,0.42);
}

.page-ad-kicker,
.page-ad-size,
.page-ad-copy,
.page-ad-title,
.page-ad-watermark {
  margin: 0;
}

.page-ad-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ad-accent, #0f1722);
}

.page-ad-slot.is-dark .page-ad-kicker {
  color: #9fe0d7;
}

.page-ad-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.92;
}

.page-ad-copy {
  color: rgba(16, 19, 26, 0.72);
  line-height: 1.6;
}

.page-ad-slot.is-dark .page-ad-copy,
.page-ad-slot.is-dark .page-ad-meta {
  color: rgba(245, 247, 251, 0.76);
}

.page-ad-watermark {
  position: absolute;
  top: 88px;
  left: 18px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(4rem, 4vw, 5.5rem);
  line-height: 0.84;
  color: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  user-select: none;
}

.layout {
  position: relative;
  z-index: 2;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 20px calc(var(--layout-pad) + var(--content-rail-gap)) 80px;
}

.announcement-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  color: var(--text-soft);
  font-size: 13px;
}

.announcement-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(16, 19, 26, 0.06);
  color: var(--surface-ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.site-nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 30px;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 34, 0.1);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-soft);
}

.site-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(16, 19, 26, 0.04);
}

.site-nav-links a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  transform: translateY(-1px);
}

.masthead-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.theme-toggle {
  min-width: 116px;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 23, 34, 0.08);
  cursor: pointer;
}

.profile-avatar,
.profile-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #34c8aa, #2ea0ff);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.profile-trigger-copy {
  display: grid;
  text-align: left;
}

.profile-trigger-name {
  font-size: 14px;
  font-weight: 700;
}

.profile-trigger-handle {
  font-size: 12px;
  color: var(--text-soft);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 310px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
  padding: 18px;
}

.profile-menu.hidden,
.hidden {
  display: none !important;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.profile-menu-items {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.profile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.profile-menu-item-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  background: rgba(16, 19, 26, 0.04);
  padding-inline: 12px;
}

.profile-menu-item.primary {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.corner-settings {
  white-space: nowrap;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: end;
  padding: 28px 0 56px;
}

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

.kicker,
.hero-kicker,
.section-kicker,
.surface-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 800;
}

.hero-title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(3.9rem, 7vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.04em;
  max-width: 9ch;
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.hero-highlight {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
}

.hero-highlight strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.hero-highlight span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: end;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 6% 6% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(143, 199, 255, 0.22);
  filter: blur(20px);
}

.hero-card {
  position: relative;
  width: 100%;
  padding: 26px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.58);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.84)),
    linear-gradient(135deg, rgba(32,103,255,0.06), rgba(255,255,255,0));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -80px -100px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(32, 103, 255, 0.12);
  filter: blur(8px);
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 19, 26, 0.06);
  color: var(--surface-ink);
  font-size: 12px;
  font-weight: 700;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

.hero-card h2 {
  margin: 18px 0 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 10ch;
}

.hero-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-preview-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.hero-preview-panel {
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 34, 0.94);
  color: #f8fbff;
  box-shadow: 0 20px 40px rgba(15, 23, 34, 0.18);
}

.hero-preview-panel .surface-kicker {
  color: rgba(188, 220, 255, 0.72);
  margin-bottom: 10px;
}

.hero-preview-panel strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.hero-preview-panel p {
  color: rgba(248, 251, 255, 0.76);
}

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

.hero-mini-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255,255,255,0.5);
}

.hero-mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.hero-mini-card p {
  font-size: 13px;
}

.product-strip,
.section-shell,
.footer-shell {
  position: relative;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 46px;
}

.product-item {
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.54);
  background: rgba(255,255,255,0.56);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.product-item h3,
.card h2,
.card h3,
.story-title,
.live-tv-preview-title,
.page-ad-title {
  font-family: 'Newsreader', Georgia, serif;
}

.product-item h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1;
}

.product-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.section-shell {
  margin-top: 58px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.95fr);
  gap: 24px;
}

.column {
  display: grid;
  gap: 20px;
}

.card,
.center-card,
.live-tv-title-block,
.setting-block,
.story-card,
.mini-item,
.alert-card,
.video-source-item,
.live-translation-item,
.live-tv-channel,
.mode-note,
.truth-check,
.player,
.place-feed {
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.card,
.center-card,
.live-tv-title-block,
.setting-block,
.mode-note {
  padding: 22px;
}

.card-head,
.place-feed-head,
.live-translation-head,
.player-head,
.settings-modal-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.card-head {
  margin-bottom: 18px;
}

.card h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.card h3,
.live-tv-title-block h3,
.setting-block h4,
.story-title {
  margin: 0;
}

.card h3,
.live-tv-title-block h3 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.saved-set-empty {
  display: grid;
  gap: 14px;
}

.command-center-card {
  position: relative;
  overflow: hidden;
}

.command-center-card::before {
  content: '';
  position: absolute;
  inset: -20% 32% auto -12%;
  height: 180px;
  background: radial-gradient(circle, rgba(109, 176, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.command-center-panel,
.command-center-stack,
.command-center-grid {
  display: grid;
  gap: 14px;
}

.command-center-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-center-block {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.84), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
}

.command-center-primary {
  background:
    radial-gradient(circle at 92% 10%, rgba(153, 246, 228, 0.16), transparent 22%),
    radial-gradient(circle at 4% 12%, rgba(109, 176, 255, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(243, 248, 255, 0.95), rgba(255, 255, 255, 0.98));
}

.command-center-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.saved-set-empty-block {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(255, 255, 255, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
}

.saved-set-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.saved-set-line {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.setting-block h4 {
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 12px;
}

.meta,
.live-tv-note,
.account-status,
.mode-note,
.weekly-show-reason,
.player-status,
.player-time,
.live-tv-search-status,
.preference-save-status,
.place-save-status {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.feed-controls,
.stack,
.settings-grid,
.live-tv-side,
.live-tv-channels,
.live-translation-list,
.story-list,
.mini-list,
.alert-list {
  display: grid;
  gap: 14px;
}

.feed-toggles,
.section-tabs,
.topic-grid,
.chips,
.story-actions,
.mini-actions,
.live-tv-source-links,
.live-tv-title-actions,
.live-translation-actions,
.player-actions,
.setting-actions,
.weekly-show-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.location-focus-row,
.place-form,
.search-form,
.inline-form,
.live-tv-search {
  display: grid;
  gap: 10px;
}

.location-focus-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-form,
.live-tv-search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.inline-form {
  grid-template-columns: 1fr 1.6fr auto;
  align-items: center;
}

.place-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.category-filter-group,
.live-translation-panel,
.flash-guard-panel,
.player,
.place-feed {
  display: grid;
  gap: 12px;
}

.category-filter-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
}

.btn,
.section-tab,
.topic-pill,
.live-tv-source-link,
.tag,
.chip {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #111827, #0f1722);
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(15, 23, 34, 0.16);
}

.btn:hover,
.btn:focus-visible,
.section-tab:hover,
.section-tab:focus-visible,
.topic-pill:hover,
.topic-pill:focus-visible,
.live-tv-source-link:hover,
.live-tv-source-link:focus-visible {
  transform: translateY(-1px);
}

.btn.secondary,
.btn.ghost,
.section-tab,
.topic-pill,
.live-tv-source-link,
.chip {
  background: rgba(255,255,255,0.68);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn.ghost {
  background: rgba(16, 19, 26, 0.04);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.section-tab.is-active,
.topic-pill.is-active,
.live-tv-source-link.is-primary {
  background: linear-gradient(180deg, #111827, #0f1722);
  color: #fff;
  border-color: #111827;
}

textarea,
input:not([type='checkbox']),
select {
  width: 100%;
  border: 1px solid rgba(15, 23, 34, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

textarea:focus,
input:not([type='checkbox']):focus,
select:focus {
  border-color: rgba(32, 103, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(32, 103, 255, 0.1);
}

input[type='checkbox'] {
  accent-color: var(--accent);
}

.live-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(15, 23, 34, 0.06);
  color: var(--text-soft);
  width: fit-content;
}

.story-card,
.mini-item,
.alert-card,
.video-source-item,
.live-translation-item,
.live-tv-channel,
.truth-check {
  padding: 18px;
}

.mini-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.mini-link:hover,
.mini-link:focus-visible {
  text-decoration: underline;
}

.story-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.story-title {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.story-summary,
.verify-result p,
.live-translation-item p,
.page-ad-copy {
  line-height: 1.7;
}

.story-summary {
  margin: 12px 0 16px;
  color: var(--text-soft);
}

.tag,
.live-tv-preview-chip,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(16, 19, 26, 0.04);
  font-size: 12px;
  font-weight: 700;
  color: #475467;
}

.player {
  padding: 20px;
}

.player-subtitle {
  border-radius: 18px;
  padding: 14px 16px;
  background: #101620;
  color: #f8fafc;
  min-height: 58px;
  line-height: 1.6;
}

.player-subtitle.small { font-size: 12px; }
.player-subtitle.medium { font-size: 14px; }
.player-subtitle.large { font-size: 16px; }

.player-slider {
  width: 100%;
}

.extra-prompt {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 34, 0.08);
  background: rgba(255,255,255,0.72);
}

.truth-check-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.truth-check-title,
.truth-check-score {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.truth-check-bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 34, 0.08);
  overflow: hidden;
}

.truth-check-fill {
  display: block;
  height: 100%;
}

.truth-check-note,
.truth-check-sources li {
  font-size: 12px;
  color: var(--text-soft);
}

.truth-check-sources {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.truth-check.is-true .truth-check-title,
.truth-check.is-true .truth-check-score { color: var(--success); }
.truth-check.is-true .truth-check-fill { background: linear-gradient(90deg, #16995c, #38c172); }
.truth-check.is-uncertain .truth-check-title,
.truth-check.is-uncertain .truth-check-score { color: var(--warning); }
.truth-check.is-uncertain .truth-check-fill { background: linear-gradient(90deg, #d99b19, #f0bc4b); }
.truth-check.is-risk .truth-check-title,
.truth-check.is-risk .truth-check-score { color: var(--danger); }
.truth-check.is-risk .truth-check-fill { background: linear-gradient(90deg, #d64545, #ef6b6b); }

.student-mode-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247,250,253,0.74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.58);
}

.student-mode-bar-copy,
.student-mode-panel-copy {
  display: grid;
  gap: 10px;
}

.student-mode-bar-copy p,
.student-mode-panel-copy p,
.student-info-block p,
.student-detail-copy,
.student-detail-summary {
  margin: 0;
}

.student-mode-bar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.student-view-tabs {
  width: fit-content;
}

.student-mode-stack {
  display: grid;
  gap: 20px;
}

.student-mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(249,251,254,0.66));
}

.student-mode-lead {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text);
  max-width: 56ch;
}

.student-subject-shell {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.58);
}

#student-mode-layer.is-disabled .student-mode-panel,
#student-mode-layer.is-disabled .student-subject-shell {
  opacity: 0.72;
}

.student-story-card {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,251,255,0.68));
}

.student-story-grid,
.student-revision-shell {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.student-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-revision-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.student-info-block,
.student-detail-block,
.student-notes-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(250,252,255,0.66));
}

.student-info-block p,
.student-detail-copy {
  color: var(--text-soft);
  line-height: 1.72;
}

.student-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
}

.student-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.student-exam-snapshot {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(32, 103, 255, 0.12);
  background: linear-gradient(180deg, rgba(247,250,255,0.95), rgba(241,247,255,0.74));
}

.student-exam-grid {
  display: grid;
  /* Auto-fit prevents the 3-up layout from becoming unreadably narrow inside the
     student detail modal (main column + notes sidebar) and in smaller cards. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.student-exam-grid.compact {
  gap: 10px;
}

.student-exam-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

.student-exam-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.student-detail-panel {
  padding: 28px;
}

.student-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.student-detail-main {
  display: grid;
  gap: 18px;
}

.student-detail-summary {
  font-size: 1.06rem;
  line-height: 1.84;
  color: var(--text-soft);
  max-width: 68ch;
}

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

.student-detail-list,
.student-detail-facts {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
  line-height: 1.72;
}

.student-remember-line {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(32, 103, 255, 0.18);
  background: linear-gradient(180deg, rgba(32,103,255,0.09), rgba(32,103,255,0.03));
}

.student-detail-actions {
  margin-top: 4px;
}

.student-notes-card {
  align-content: start;
}

.student-notes-card .card-head {
  margin-bottom: 0;
}

.student-gk-item {
  display: grid;
  gap: 14px;
}

.student-gk-question {
  margin: 0;
  font-weight: 700;
  line-height: 1.62;
}

.student-gk-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.student-gk-answer {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
}

.student-gk-answer summary {
  cursor: pointer;
  font-weight: 700;
}

.student-gk-answer p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.center-section {
  margin-top: 58px;
}

.center-card.wide {
  width: 100%;
}

.live-tv-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.live-layer-card {
  padding: 26px;
}

.live-layer-head {
  margin-bottom: 24px;
}

.live-layer-head h2 {
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.live-tv-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(180deg, #081018 0%, #0d1824 100%);
  box-shadow: 0 42px 100px rgba(15, 23, 34, 0.18);
}

.live-tv-frame-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 22%, rgba(255,255,255,0.03));
}

.live-tv-video,
.live-tv-frame,
.live-tv-custom-player,
.live-tv-custom-player-host,
.live-tv-custom-player iframe,
.live-tv-custom-player video {
  width: 100%;
  min-height: 420px;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #090f18;
  display: none;
}

.live-tv-video.is-active,
.live-tv-frame.is-active,
.live-tv-custom-player.is-active {
  display: block;
}

.live-tv-video { object-fit: cover; }

.live-tv-preview {
  position: absolute;
  inset: 0;
  display: none;
  padding: 24px;
  background:
    radial-gradient(circle at 12% 14%, rgba(109, 176, 255, 0.24), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(138, 255, 225, 0.14), transparent 24%),
    linear-gradient(180deg, #0c121b 0%, #111a25 42%, #1a2735 100%);
  color: #f8fbff;
}

.live-tv-frame-wrap.is-preview .live-tv-preview { display: grid; }
.live-tv-frame-wrap.is-preview .live-tv-frame,
.live-tv-frame-wrap.is-preview .live-tv-video,
.live-tv-frame-wrap.is-preview .live-tv-custom-player,
.live-tv-frame-wrap.is-preview .live-tv-footer-mask { display: none; }

.live-tv-preview-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08));
  backdrop-filter: blur(12px);
}

.live-tv-preview-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 230, 255, 0.72);
  font-weight: 800;
}

.live-tv-preview-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.95;
  max-width: 11ch;
}

.live-tv-preview-copy,
.live-tv-preview-note {
  margin: 0;
  color: rgba(248, 251, 255, 0.76);
  line-height: 1.65;
}

.live-tv-preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.live-tv-side {
  gap: 18px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.live-tv-overview {
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(153, 246, 228, 0.12), transparent 18%),
    radial-gradient(circle at 4% 14%, rgba(109, 176, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(255, 255, 255, 0.94));
}

.live-tv-overview h3 {
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
}

.live-tv-secondary-block {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(251,253,255,0.96));
}

.live-tv-source-links {
  margin-top: 14px;
}

.live-tv-title-actions {
  margin-top: 12px;
  justify-content: center;
}

.live-translation-panel--hero {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(248,250,252,0.76), rgba(255,255,255,0.92));
}

.live-translation-head {
  align-items: start;
  justify-content: center;
  text-align: center;
}

.live-translation-head strong,
.flash-guard-row span {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.live-tv-guard-panel {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(250,252,255,0.76), rgba(255,255,255,0.9));
}

.live-tv-search {
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255,255,255,0.74);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.live-tv-search-status {
  padding-inline: 4px;
}

.live-tv-channels {
  padding: 6px 0 0;
}

.live-tv-channel {
  padding: 16px 18px;
  border-radius: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.live-tv-channel:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.live-tv-channel.is-active {
  border-color: rgba(32, 103, 255, 0.2);
  background: linear-gradient(180deg, rgba(242,247,255,0.98), rgba(255,255,255,0.92));
  box-shadow: 0 24px 44px rgba(32, 103, 255, 0.08);
}

.live-tv-footer-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  background: linear-gradient(180deg, rgba(9,15,24,0) 0%, rgba(9,15,24,0.84) 52%, #090f18 100%);
  pointer-events: none;
}

.live-tv-translation-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: none;
  pointer-events: none;
}

.live-tv-translation-overlay.is-visible { display: block; }

.live-tv-translation-overlay-inner {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(9, 15, 24, 0.82);
  color: #f8fbff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.live-tv-translation-overlay-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(190, 228, 255, 0.72);
  margin-bottom: 8px;
  font-weight: 800;
}

.live-tv-translation-overlay-text { margin: 0; line-height: 1.55; }
.live-tv-translation-overlay-text.small { font-size: 13px; }
.live-tv-translation-overlay-text.medium { font-size: 15px; }
.live-tv-translation-overlay-text.large { font-size: 17px; }

.live-tv-title-block {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,250,253,0.74));
}

.live-tv-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.live-tv-channel {
  text-align: left;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(249,251,253,0.62));
}

.live-tv-channel.is-active {
  background: linear-gradient(180deg, #111827, #0f1722);
  color: #f8fbff;
  border-color: rgba(17,24,39,0.98);
}

.live-tv-channel span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.82;
}

.live-tv-channel strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.live-tv-channel-shows {
  margin-top: 8px;
  line-height: 1.55;
}

.live-translation-panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,251,254,0.7));
}

.flash-guard-panel {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.flash-guard-row,
.setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.flash-guard-overlay {
  position: fixed;
  inset: 0;
  z-index: 26;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 16, 24, 0.28);
  backdrop-filter: blur(12px);
}

.settings-modal-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

#privacy-consent-modal .settings-modal-dialog {
  width: min(980px, 100%);
}

.consent-modal-dialog {
  scroll-behavior: smooth;
}

.consent-panel {
  border-radius: 38px;
  overflow: hidden;
}

.consent-step {
  margin-top: 14px;
}

.consent-bullets {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.consent-bullet {
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 251, 254, 0.62));
  box-shadow: 0 18px 40px rgba(15, 23, 34, 0.06);
  display: grid;
  gap: 6px;
}

.consent-bullet strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.consent-bullet span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.consent-actions {
  margin-top: 16px;
}

.consent-footnote {
  margin-top: 14px;
}

.consent-links {
  margin-top: 10px;
  justify-content: flex-start;
}

.privacy-toggle-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.privacy-toggle-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,251,254,0.66));
}

.privacy-toggle-copy strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.privacy-toggle-copy p {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 13px;
}

.privacy-toggle-control {
  position: relative;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 34, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  cursor: pointer;
  flex: none;
  margin-top: 2px;
}

.privacy-toggle-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.privacy-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(15, 23, 34, 0.16);
  transition: transform 180ms ease, background 180ms ease;
}

.privacy-toggle-control input:checked ~ .privacy-toggle-knob {
  transform: translateX(20px);
  background: rgba(255, 255, 255, 0.98);
}

.privacy-toggle-control:has(input:checked) {
  background: linear-gradient(180deg, rgba(32, 103, 255, 0.9), rgba(32, 103, 255, 0.62));
  border-color: rgba(32, 103, 255, 0.5);
}

.privacy-toggle-control:has(input:disabled) {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy-center-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.privacy-danger {
  margin-top: 14px;
  border-radius: 24px;
  border: 1px solid rgba(177, 50, 42, 0.22);
  background: rgba(255, 247, 246, 0.58);
  padding: 12px 16px;
}

.privacy-danger summary {
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.privacy-insights-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,251,254,0.62));
}

.privacy-insights-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.privacy-insights-head h5 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.privacy-insights-body {
  margin-top: 12px;
}

.privacy-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.privacy-insights-metric {
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  gap: 6px;
}

.privacy-insights-metric span {
  font-size: 12px;
  color: var(--text-soft);
}

.privacy-insights-metric strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

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

.privacy-insights-column {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  padding: 14px 16px;
}

.privacy-insights-column .kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-soft);
}

.privacy-insights-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.privacy-insights-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}

.privacy-insights-list strong {
  font-weight: 700;
}

.privacy-insights-list span {
  color: var(--text-soft);
}

.privacy-insights-note {
  margin-top: 12px;
}

.insights-console {
  overflow: hidden;
}

.company-insights-body {
  margin-top: 16px;
}

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

.company-insight-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,251,254,0.62));
  padding: 16px;
  min-width: 0;
}

.company-insight-card .kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-soft);
}

.company-insights-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#settings-panel {
  border-radius: 34px;
}

.settings-grid {
  gap: 14px;
}

.verify-result.ok { color: var(--success); }
.verify-result.warn { color: var(--warning); }
.verify-result.bad { color: var(--danger); }
.live-tv-search-status.good,
.preference-save-status,
.place-save-status {
  color: var(--success);
  font-weight: 700;
}

.footer-shell {
  margin-top: 64px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.54);
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
}

.footer-grid h2 {
  margin: 0 0 10px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
}

.footer-grid p,
.footer-links a,
.footer-meta {
  color: var(--text-soft);
  line-height: 1.65;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme='dark'] body,
body.theme-dark {
  color-scheme: dark;
  --bg: #071018;
  --bg-soft: #0d1623;
  --surface: rgba(10, 15, 24, 0.74);
  --surface-strong: rgba(12, 18, 28, 0.92);
  --surface-ink: #f5f9ff;
  --text: #eef4fb;
  --text-soft: #94a3b8;
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(203, 213, 225, 0.18);
  --accent: #7fb0ff;
  --accent-soft: rgba(127, 176, 255, 0.16);
  --shadow-soft: 0 24px 64px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 20px 56px rgba(0, 0, 0, 0.26);
  --shadow-strong: 0 36px 96px rgba(0, 0, 0, 0.42);
  background:
    radial-gradient(circle at top left, rgba(102, 145, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(43, 195, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #06101a 0%, #08111d 38%, #0b1422 100%);
}

html[data-theme='dark'] body::before,
body.theme-dark::before {
  background: rgba(89, 132, 255, 0.16);
}

html[data-theme='dark'] body::after,
body.theme-dark::after {
  background: rgba(58, 207, 255, 0.12);
}

html[data-theme='dark'] body :is(
  .announcement-bar,
  .site-nav,
  .card,
  .center-card,
  .live-tv-title-block,
  .setting-block,
  .story-card,
  .mini-item,
  .alert-card,
  .video-source-item,
  .live-translation-item,
  .live-tv-channel,
  .mode-note,
  .truth-check,
  .player,
  .place-feed,
  .footer-shell,
  .hero-card,
  .product-item,
  .student-mode-bar,
  .student-mode-panel,
  .student-subject-shell,
  .student-info-block,
  .student-detail-block,
  .student-notes-card,
  .live-translation-panel
),
body.theme-dark :is(
  .announcement-bar,
  .site-nav,
  .card,
  .center-card,
  .live-tv-title-block,
  .setting-block,
  .story-card,
  .mini-item,
  .alert-card,
  .video-source-item,
  .live-translation-item,
  .live-tv-channel,
  .mode-note,
  .truth-check,
  .player,
  .place-feed,
  .footer-shell,
  .hero-card,
  .product-item,
  .student-mode-bar,
  .student-mode-panel,
  .student-subject-shell,
  .student-info-block,
  .student-detail-block,
  .student-notes-card,
  .live-translation-panel
) {
  background: linear-gradient(180deg, rgba(10,15,24,0.9), rgba(14,20,30,0.78));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] body .site-nav-links,
body.theme-dark .site-nav-links {
  background: rgba(255,255,255,0.04);
}

html[data-theme='dark'] body :is(.profile-trigger, .profile-menu),
body.theme-dark :is(.profile-trigger, .profile-menu) {
  background: linear-gradient(180deg, rgba(12,18,28,0.94), rgba(15,22,34,0.84));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] body :is(.btn.secondary, .btn.ghost, .section-tab, .topic-pill, .live-tv-source-link, .chip, .tag, .live-toggle, .footer-links a),
body.theme-dark :is(.btn.secondary, .btn.ghost, .section-tab, .topic-pill, .live-tv-source-link, .chip, .tag, .live-toggle, .footer-links a) {
  background: rgba(17, 25, 38, 0.82);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.16);
}

html[data-theme='dark'] body :is(.section-tab.is-active, .topic-pill.is-active, .live-tv-source-link.is-primary, .theme-toggle.is-active),
body.theme-dark :is(.section-tab.is-active, .topic-pill.is-active, .live-tv-source-link.is-primary, .theme-toggle.is-active) {
  background: linear-gradient(180deg, #f7fbff, #dbe6f5);
  color: #071018;
  border-color: rgba(255,255,255,0.78);
}

html[data-theme='dark'] body :is(textarea, input:not([type='checkbox']), select),
body.theme-dark :is(textarea, input:not([type='checkbox']), select) {
  background: rgba(7, 12, 20, 0.88);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

html[data-theme='dark'] body .site-nav-links a:hover,
html[data-theme='dark'] body .site-nav-links a:focus-visible,
body.theme-dark .site-nav-links a:hover,
body.theme-dark .site-nav-links a:focus-visible {
  background: rgba(255,255,255,0.08);
}

html[data-theme='dark'] body .live-tv-frame-wrap,
body.theme-dark .live-tv-frame-wrap {
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.4);
}

html[data-theme='dark'] body .hero-highlight,
html[data-theme='dark'] body .hero-mini-card,
html[data-theme='dark'] body .hero-preview-panel,
body.theme-dark .hero-highlight,
body.theme-dark .hero-mini-card,
body.theme-dark .hero-preview-panel {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148, 163, 184, 0.12);
}

html[data-theme='dark'] body .student-remember-line,
body.theme-dark .student-remember-line {
  background: linear-gradient(180deg, rgba(127,176,255,0.16), rgba(127,176,255,0.05));
  border-color: rgba(127,176,255,0.22);
}

html[data-theme='dark'] body .student-exam-snapshot,
body.theme-dark .student-exam-snapshot {
  background: linear-gradient(180deg, rgba(16,26,41,0.9), rgba(13,21,32,0.74));
  border-color: rgba(127,176,255,0.16);
}

html[data-theme='dark'] body .student-exam-item,
body.theme-dark .student-exam-item {
  background: rgba(255,255,255,0.03);
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] body :is(.live-tv-overview, .live-tv-secondary-block, .live-translation-panel--hero, .live-tv-guard-panel, .live-tv-search),
body.theme-dark :is(.live-tv-overview, .live-tv-secondary-block, .live-translation-panel--hero, .live-tv-guard-panel, .live-tv-search) {
  background: linear-gradient(180deg, rgba(12,18,28,0.94), rgba(16,24,36,0.84));
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme='dark'] body .live-tv-overview,
body.theme-dark .live-tv-overview {
  background:
    radial-gradient(circle at 92% 10%, rgba(153, 246, 228, 0.1), transparent 18%),
    radial-gradient(circle at 4% 14%, rgba(109, 176, 255, 0.14), transparent 18%),
    linear-gradient(180deg, rgba(13,20,30,0.96), rgba(18,28,41,0.88));
}

html[data-theme='dark'] body .live-tv-channel.is-active,
body.theme-dark .live-tv-channel.is-active {
  border-color: rgba(127, 176, 255, 0.24);
  background: linear-gradient(180deg, rgba(16,25,39,0.98), rgba(19,29,42,0.9));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.24);
}

html[data-theme='dark'] body :is(.command-center-block, .saved-set-empty-block),
body.theme-dark :is(.command-center-block, .saved-set-empty-block) {
  background: linear-gradient(180deg, rgba(12, 18, 28, 0.92), rgba(16, 24, 36, 0.82));
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

html[data-theme='dark'] body .command-center-primary,
body.theme-dark .command-center-primary {
  background:
    radial-gradient(circle at 92% 10%, rgba(153, 246, 228, 0.12), transparent 22%),
    radial-gradient(circle at 4% 12%, rgba(109, 176, 255, 0.16), transparent 20%),
    linear-gradient(180deg, rgba(14, 22, 34, 0.94), rgba(18, 28, 41, 0.86));
}

html[data-theme='dark'] body .mini-link,
body.theme-dark .mini-link {
  color: #8ab8ff;
}

@media (max-width: 1750px) and (min-width: 1460px) {
  :root {
    --layout-max: 940px;
    --ad-rail-width: 220px;
    --ad-rail-gap: 18px;
    /* Keep a premium gutter even on mid-size desktops where rails are still visible. */
    --content-rail-gap: clamp(64px, 4vw, 88px);
  }
}

@media (min-width: 1751px) {
  :root {
    /* Wide-desktop gutter between center content and wallpaper rails. */
    --content-rail-gap: clamp(88px, 5vw, 128px);
  }
}

@media (max-width: 1459px) {
  .page-ad-frame { display: none; }
}

@media (max-width: 1360px) {
  .live-tv-shell {
    grid-template-columns: 1fr;
  }

  .live-tv-side {
    position: static;
  }

  .command-center-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .hero-section,
  .footer-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 980px) {
  .announcement-bar,
  .site-nav,
  .card,
  .center-card,
  .footer-shell,
  .hero-card {
    border-radius: 24px;
  }

  .product-strip,
  .hero-highlights,
  .hero-mini-grid,
  .student-mode-bar,
  .student-mode-panel,
  .student-story-grid,
  .student-revision-shell,
  .student-exam-grid,
  .student-detail-layout,
  .student-detail-grid,
  .location-focus-row,
  .place-form,
  .inline-form,
  .search-form,
  .live-tv-search,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-trigger {
    min-width: 0;
    width: 100%;
  }

  .profile-menu {
    left: 0;
    right: auto;
    width: min(320px, 100%);
  }

  .hero-title {
    max-width: none;
  }

  .card h2,
  .section-heading h2 {
    font-size: clamp(1.9rem, 7vw, 2.7rem);
  }

  .settings-modal {
    align-items: flex-end;
    padding: 16px;
  }

  .consent-bullets {
    grid-template-columns: 1fr;
  }

  .privacy-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-insights-columns {
    grid-template-columns: 1fr;
  }

  .company-insights-grid,
  .company-insights-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .layout {
    padding-inline: 16px;
  }

  .announcement-bar {
    padding: 10px 14px;
  }

  .site-nav {
    top: 10px;
    margin-bottom: 24px;
  }

  .hero-section {
    padding-bottom: 34px;
  }

  .hero-actions,
  .live-tv-title-actions,
  .setting-actions,
  .player-actions,
  .live-translation-actions,
  .story-actions,
  .student-mode-bar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .live-tv-source-link,
  .section-tab,
  .topic-pill,
  .theme-toggle {
    width: 100%;
  }

  .live-tv-frame-wrap,
  .live-tv-video,
  .live-tv-frame,
  .live-tv-custom-player,
  .live-tv-custom-player-host,
  .live-tv-custom-player iframe,
  .live-tv-custom-player video {
    min-height: 250px;
  }
}
