/* Rasmalai web — mirrors the Flutter app's design language (lib/constants/colors.dart). */

:root {
  --bg: #1a1a1a;
  --bg-deep: #0f0f0f;
  --surface: #1f1f1f;
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --primary: #feb600;
  --primary-light: #ffe08a;
  --primary-dark: #c99400;
  --primary-soft: rgba(254, 182, 0, 0.12);
  --primary-line: rgba(254, 182, 0, 0.55);
  --subscribe-bg: #ffd54f;
  --subscribe-fg: #8a5a00;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.75);
  --muted: rgba(255, 255, 255, 0.6);
  --hint: #878787;
  --danger: #ef9a9a;
  --success: #81c784;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;

  --gutter: 16px;
  --topbar-h: 64px;
  --tabbar-h: 64px;
  --maxw: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@media (min-width: 768px) { :root { --gutter: 32px; --topbar-h: 72px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary); color: #000; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 960px; }
.container-slim { max-width: 560px; }
.page { padding-top: var(--topbar-h); min-height: 70vh; }
.page-pad { padding-top: calc(var(--topbar-h) + 24px); padding-bottom: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-md);
  border: 1px solid transparent; background: var(--surface-3); color: var(--text);
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: #ffc21f; }
.btn-outline { background: transparent; border-color: var(--border-strong); }
.btn-outline:hover { border-color: rgba(255,255,255,.4); background: var(--surface-2); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-block { width: 100%; }
.btn-lg { height: 52px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: var(--r-sm); font-size: 13px; gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-subscribe { background: var(--subscribe-bg); color: var(--subscribe-fg); }
.btn-subscribe:hover { background: #ffdf73; }
.btn-danger { background: transparent; border-color: rgba(239,154,154,.35); color: var(--danger); }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-gold { color: var(--primary); font-weight: 600; }
.link-gold:hover { text-decoration: underline; }

/* ── Top bar (glass, like the app's blurred AppBar) ───────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar-h);
  background: rgba(26, 26, 26, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s;
}
.topbar.is-scrolled { background: rgba(26, 26, 26, 0.92); border-bottom-color: var(--border); }
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
@media (min-width: 768px) { .brand img { height: 36px; } }
.nav { display: none; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--primary); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-search { display: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: transparent; border: 0; color: var(--text); cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn svg { width: 22px; height: 22px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-line);
  font-weight: 800; font-size: 15px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.only-desktop { display: none !important; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .only-desktop { display: inline-flex !important; }
  .only-mobile { display: none !important; }
  .topbar-search {
    display: flex; align-items: center; gap: 8px; height: 40px; width: 240px; padding: 0 14px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; transition: border-color .2s, width .3s var(--ease);
  }
  .topbar-search:focus-within { border-color: var(--primary-line); width: 300px; }
  .topbar-search svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
  .topbar-search input { background: transparent; border: 0; outline: 0; color: var(--text); width: 100%; font: inherit; font-size: 14px; }
}

/* Account dropdown */
.menu { position: relative; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px;
  background: rgba(31,31,31,.97); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s, transform .18s var(--ease);
}
.menu.is-open .menu-panel { opacity: 1; transform: none; pointer-events: auto; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head strong { display: block; font-size: 14px; }
.menu-head span { font-size: 12px; color: var(--muted); }
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.menu-panel a:hover { background: var(--surface-3); color: var(--text); }
.menu-panel a svg { width: 18px; height: 18px; }

/* ── Bottom tab bar (mobile) ──────────────────────────────── */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(26, 26, 26, 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 -2px 10px rgba(0,0,0,.3);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; color: var(--text); font-weight: 500;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--primary); }
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .tabbar { display: none; } body.has-tabbar { padding-bottom: 0; } }

/* ── Hero carousel (center-enlarged, like the app's CarouselSlider) ── */
.hero { padding: calc(var(--topbar-h) + 12px) 0 8px; }
.hero { --slide: 88vw; }
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 calc((100% - var(--slide)) / 2);
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 var(--slide); scroll-snap-align: center; padding: 0 6px;
  transition: transform .45s var(--ease), opacity .45s;
  transform: scale(.9); opacity: .55;
}
.hero-slide.is-active { transform: scale(1); opacity: 1; }
.hero-card {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface); box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78) 100%);
}
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.hero-meta h2 { font-size: 18px; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-meta .chips { margin-top: 6px; }
.hero-play {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #000; box-shadow: 0 6px 18px rgba(254,182,0,.35);
}
.hero-play svg { width: 20px; height: 20px; margin-left: 2px; }
.hero-slide:not(.is-active) .hero-meta { opacity: 0; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots button {
  width: 12px; height: 4px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.4); transition: width .2s, background .2s;
}
.dots button.is-active { width: 24px; background: var(--primary); }
.hero-nav { display: none; }
@media (min-width: 600px) {
  .hero { --slide: 66vw; }
  .hero-meta { padding: 22px 24px; }
  .hero-meta h2 { font-size: 22px; }
}
@media (min-width: 1200px) {
  .hero { position: relative; }
  .hero { --slide: 54vw; }
  .hero-slide { padding: 0 10px; }
  .hero-meta h2 { font-size: 26px; }
  .hero-play { width: 52px; height: 52px; }
  .hero-nav {
    display: grid; place-items: center; position: absolute; top: calc(50% + var(--topbar-h) / 2 - 12px); z-index: 2;
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); cursor: pointer;
    background: rgba(26,26,26,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff;
    transform: translateY(-50%); transition: background .2s;
  }
  .hero-nav:hover { background: var(--primary); color: #000; }
  .hero-nav svg { width: 22px; height: 22px; }
  .hero-nav.prev { left: 24px; }
  .hero-nav.next { right: 24px; }
}

/* ── Content rails (horizontal ListViews in the app) ─────── */
.rails { padding-bottom: 40px; }
.rail { margin-top: 20px; }
@media (min-width: 768px) { .rail { margin-top: 32px; } }
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rail-head h2 { font-size: 20px; font-weight: 800; }
@media (min-width: 768px) { .rail-head h2 { font-size: 22px; } }
.view-all { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
.view-all svg { width: 16px; height: 16px; }
.rail-wrap { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; scroll-padding: 0 var(--gutter);
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail-track { gap: 14px; } }

/* Card widths per section type (mirrors media_tile_web.dart densities) */
.rail[data-type="vertical"] .rail-track        { grid-auto-columns: 38%; }
.rail[data-type="vertical_large"] .rail-track  { grid-auto-columns: 46%; }
.rail[data-type="vertical_small"] .rail-track  { grid-auto-columns: 30%; }
.rail[data-type="horizontal"] .rail-track      { grid-auto-columns: 62%; }
.rail[data-type="horizontal_small"] .rail-track{ grid-auto-columns: 46%; }
.rail[data-type="horizontal_large"] .rail-track{ grid-auto-columns: 86%; }
.rail[data-type="horizontal_single"] .rail-track{ grid-auto-columns: 100%; }
.rail[data-type="square"] .rail-track          { grid-auto-columns: 46%; }
.rail[data-type="square_large"] .rail-track    { grid-auto-columns: 78%; }
.rail[data-type="square_small"] .rail-track    { grid-auto-columns: 30%; }
@media (min-width: 600px) {
  .rail[data-type="vertical"] .rail-track        { grid-auto-columns: 24%; }
  .rail[data-type="vertical_large"] .rail-track  { grid-auto-columns: 31%; }
  .rail[data-type="vertical_small"] .rail-track  { grid-auto-columns: 19%; }
  .rail[data-type="horizontal"] .rail-track      { grid-auto-columns: 38%; }
  .rail[data-type="horizontal_small"] .rail-track{ grid-auto-columns: 30%; }
  .rail[data-type="horizontal_large"] .rail-track{ grid-auto-columns: 58%; }
  .rail[data-type="square"] .rail-track          { grid-auto-columns: 30%; }
  .rail[data-type="square_large"] .rail-track    { grid-auto-columns: 44%; }
  .rail[data-type="square_small"] .rail-track    { grid-auto-columns: 22%; }
}
@media (min-width: 1024px) {
  .rail[data-type="vertical"] .rail-track        { grid-auto-columns: calc((100% - 5 * 14px) / 6); }
  .rail[data-type="vertical_large"] .rail-track  { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .rail[data-type="vertical_small"] .rail-track  { grid-auto-columns: calc((100% - 7 * 14px) / 8); }
  .rail[data-type="horizontal"] .rail-track      { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .rail[data-type="horizontal_small"] .rail-track{ grid-auto-columns: calc((100% - 4 * 14px) / 5); }
  .rail[data-type="horizontal_large"] .rail-track{ grid-auto-columns: calc((100% - 1 * 14px) / 2.2); }
  .rail[data-type="horizontal_single"] .rail-track{ grid-auto-columns: calc((100% - 14px) / 1.6); }
  .rail[data-type="square"] .rail-track          { grid-auto-columns: calc((100% - 4 * 14px) / 5); }
  .rail[data-type="square_large"] .rail-track    { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .rail[data-type="square_small"] .rail-track    { grid-auto-columns: calc((100% - 6 * 14px) / 7); }
}
.rail-arrow {
  display: none; position: absolute; top: 6px; bottom: 10px; z-index: 2; width: var(--gutter);
  border: 0; cursor: pointer; color: #fff; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s;
}
.rail-arrow svg { width: 26px; height: 26px; }
.rail-arrow.prev { left: calc(var(--gutter) * -1); background: linear-gradient(90deg, var(--bg) 20%, transparent); }
.rail-arrow.next { right: calc(var(--gutter) * -1); background: linear-gradient(270deg, var(--bg) 20%, transparent); }
@media (hover: hover) and (min-width: 1024px) {
  .rail-arrow { display: flex; }
  .rail-wrap:hover .rail-arrow:not([disabled]) { opacity: 1; }
  .rail-arrow[disabled] { pointer-events: none; }
}

/* ── Poster card ──────────────────────────────────────────── */
.card { position: relative; display: block; min-width: 0; }
.card-media {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface);
  aspect-ratio: 2 / 3; transition: transform .3s var(--ease), box-shadow .3s;
}
.card-media.is-landscape { aspect-ratio: 16 / 9; border-radius: 12px; }
.card-media.is-square { aspect-ratio: 1 / 1; }
.card-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, transform .5s var(--ease); }
.card-media img.is-loaded { opacity: 1; }
.card-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); transition: box-shadow .25s;
}
@media (hover: hover) {
  .card:hover .card-media { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
  .card:hover .card-media::after { box-shadow: inset 0 0 0 2px var(--primary); }
  .card:hover .card-media img { transform: scale(1.04); }
}
.card-title {
  margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.shimmer {
  background: linear-gradient(100deg, var(--surface) 30%, #2a2a2a 50%, var(--surface) 70%);
  background-size: 300% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* The app flags free titles with a diagonal ribbon rather than marking premium ones. */
.ribbon-free {
  position: absolute; top: 10px; left: -26px; z-index: 2; width: 92px; transform: rotate(-45deg);
  background: var(--primary-light); color: #000; text-align: center;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.badge-premium {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.55); color: var(--primary);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.badge-premium svg { width: 14px; height: 14px; }

/* ── Chips / tags ─────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 600;
}
.chip svg { width: 14px; height: 14px; }
.chip-gold { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }
.chip-solid { background: var(--primary); border-color: var(--primary); color: #000; }
.tag {
  display: inline-block; padding: 3px 8px; border-radius: var(--r-sm); font-size: 9px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; border: 1px solid #ffa000; color: #ffe082;
}
.tag-filled { background: var(--primary); border-color: var(--primary); color: #000; }

/* ── Surfaces ─────────────────────────────────────────────── */
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.panel-gold { background: var(--primary-soft); border: 1.5px solid var(--primary-line); }
@media (min-width: 768px) { .panel { padding: 24px; } }
.page-title { font-size: 26px; font-weight: 800; }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 14px; }
@media (min-width: 768px) { .page-title { font-size: 34px; } .page-sub { font-size: 15px; } }
.section-label {
  margin: 28px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hint);
}

/* ── Detail page ──────────────────────────────────────────── */
.detail-hero { position: relative; min-height: min(64vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.detail-backdrop { position: absolute; inset: 0; }
.detail-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.detail-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 2%, rgba(26,26,26,.85) 35%, rgba(26,26,26,.2) 70%, rgba(26,26,26,.55) 100%),
    linear-gradient(90deg, rgba(26,26,26,.85) 0%, transparent 60%);
}
.detail-body { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--topbar-h) + min(30vh, 260px)); padding-bottom: 28px; }
.detail-grid { display: grid; gap: 28px; align-items: end; }
.detail-poster { display: none; }
.detail-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.detail-title { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail-meta svg { width: 16px; height: 16px; color: var(--muted); }
.age { padding: 1px 7px; border-radius: 4px; border: 1px solid var(--border-strong); font-size: 12px; font-weight: 800; color: var(--text); }
.detail-desc { margin-top: 14px; color: var(--text-2); font-size: 15px; line-height: 1.7; max-width: 720px; }
.detail-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-toggle { margin-top: 6px; background: none; border: 0; padding: 0; color: var(--primary); font-weight: 700; font-size: 13px; cursor: pointer; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-actions .btn { flex: 1 1 auto; }
.detail-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (min-width: 600px) { .detail-actions .btn { flex: 0 0 auto; min-width: 180px; } }
@media (min-width: 900px) {
  .detail-hero { min-height: 78vh; }
  .detail-body { padding-top: calc(var(--topbar-h) + 22vh); padding-bottom: 40px; }
  .detail-grid { grid-template-columns: 220px 1fr; }
  .detail-poster {
    display: block; aspect-ratio: 2/3; border-radius: var(--r-xl); overflow: hidden; background: var(--surface);
    box-shadow: 0 24px 50px rgba(0,0,0,.6); border: 1px solid var(--border);
  }
  .detail-poster img { width: 100%; height: 100%; object-fit: cover; }
  .detail-title { font-size: 46px; }
}
@media (min-width: 1280px) { .detail-grid { grid-template-columns: 260px 1fr; } .detail-title { font-size: 54px; } }

/* Seasons + episodes */
.season-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab {
  flex-shrink: 0; height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); font-weight: 700; font-size: 14px;
}
.season-tab.is-active { background: var(--primary); border-color: var(--primary); color: #000; }
.episodes { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 900px) { .episodes { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.episode {
  display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 8px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, background .2s;
}
.episode:hover { border-color: var(--primary-line); background: var(--surface-3); }
.episode.is-current { border-color: var(--primary); background: var(--primary-soft); }
.episode-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--surface); }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode-thumb .play-dot {
  position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff;
}
.episode-thumb .play-dot svg { width: 14px; height: 14px; margin-left: 2px; }
.episode-info { min-width: 0; padding: 2px 4px 2px 0; display: flex; flex-direction: column; justify-content: center; }
.episode-no { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.episode-title { margin-top: 2px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.episode-desc { margin-top: 4px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode-len { margin-top: 6px; font-size: 12px; color: var(--hint); font-weight: 600; }

/* ── Video overlay ────────────────────────────────────────── */
.player { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; }
.player video, .player .video-js { width: 100%; height: 100%; }
.player-close {
  position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 0; background: rgba(0,0,0,.55); color: #fff; font-weight: 700; cursor: pointer;
}
.player-close svg { width: 20px; height: 20px; }
.player .video-js .vjs-play-progress, .player .video-js .vjs-volume-level { background-color: var(--primary); }
.player .video-js .vjs-big-play-button { border-color: var(--primary); background: rgba(0,0,0,.5); border-radius: 50%; width: 2em; height: 2em; line-height: 2em; margin-left: -1em; margin-top: -1em; }

/* ── Grid (search / section / upcoming) ───────────────────── */
.grid { display: grid; gap: 14px 10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 20px 14px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.grid-wide { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-wide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-wide { grid-template-columns: repeat(3, 1fr); } }

.search-field {
  display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; margin-top: 18px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .2s;
}
.search-field:focus-within { border-color: var(--primary); }
.search-field svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.filter-row { display: flex; gap: 8px; margin: 16px 0 20px; overflow-x: auto; scrollbar-width: none; }
.filter-row a { flex-shrink: 0; }
.filter-row a.is-active .chip, .filter-row .chip.is-active { background: var(--primary); border-color: var(--primary); color: #000; }

.upcoming-card { display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, transform .25s var(--ease); }
.upcoming-card:hover { border-color: var(--primary-line); transform: translateY(-3px); }
.upcoming-media { position: relative; aspect-ratio: 16/9; background: var(--surface); }
.upcoming-media img { width: 100%; height: 100%; object-fit: cover; }
.upcoming-date {
  position: absolute; left: 12px; top: 12px; display: inline-flex; flex-direction: column; align-items: center;
  min-width: 52px; padding: 6px 8px; border-radius: 12px; background: rgba(0,0,0,.65); border: 1px solid var(--primary-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.upcoming-date b { font-size: 20px; line-height: 1; color: var(--primary); }
.upcoming-date small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.upcoming-body { padding: 14px 16px 16px; }
.upcoming-body h3 { font-size: 17px; font-weight: 800; }
.upcoming-body p { margin-top: 6px; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.countdown { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--primary); }

.empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; color: #444; margin: 0 auto 14px; }
.empty h3 { color: var(--text); font-size: 20px; margin-bottom: 6px; }

/* ── Subscription (subscription_plan_page_body.dart) ─────── */
.sub-layout { display: grid; gap: 20px; }
@media (min-width: 960px) { .sub-layout { grid-template-columns: 1fr 440px; gap: 40px; align-items: start; } .sub-aside { position: sticky; top: calc(var(--topbar-h) + 20px); } }
.plans-layout { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .plans-layout { grid-template-columns: 1fr 440px; grid-template-rows: auto 1fr; grid-template-areas: "hero aside" "inc aside"; column-gap: 40px; align-items: start; }
  .plans-hero { grid-area: hero; }
  .plans-included { grid-area: inc; }
  .plans-aside { grid-area: aside; position: sticky; top: calc(var(--topbar-h) + 20px); }
}
.sub-hero {
  position: relative; overflow: hidden; height: 148px; border-radius: var(--r-xl);
  border: 1px solid rgba(254,182,0,.22);
  background: linear-gradient(135deg, rgba(254,182,0,.14), rgba(254,182,0,.04) 50%, transparent);
  display: flex; align-items: center; justify-content: space-evenly;
}
@media (min-width: 960px) { .plans-layout { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .plans-layout { grid-template-columns: 1fr 440px; grid-template-rows: auto 1fr; grid-template-areas: "hero aside" "inc aside"; column-gap: 40px; align-items: start; }
  .plans-hero { grid-area: hero; }
  .plans-included { grid-area: inc; }
  .plans-aside { grid-area: aside; position: sticky; top: calc(var(--topbar-h) + 20px); }
}
.sub-hero { height: 220px; } }
.sub-hero .bg-glyph { position: absolute; color: rgba(254,182,0,.07); }
.sub-hero .bg-glyph.a { right: -12px; top: -8px; width: 96px; height: 96px; }
.sub-hero .bg-glyph.b { left: -6px; bottom: -10px; width: 72px; height: 72px; color: rgba(254,182,0,.08); }
.glyph { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: 12px; font-weight: 600; color: var(--text-2); }
.glyph i {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.85);
}
.glyph i svg { width: 26px; height: 26px; }
.glyph.em i { width: 72px; height: 72px; background: rgba(254,182,0,.2); border: 2px solid rgba(254,182,0,.65); color: var(--primary); }
.glyph.em i svg { width: 30px; height: 30px; }
.plan-list { display: grid; gap: 10px; margin-top: 18px; }
.plan {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer;
  border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
  transition: border-color .2s, background .2s;
}
.plan:hover { border-color: rgba(255,255,255,.3); }
.plan.is-selected { border: 2px solid var(--primary); padding: 13px 15px; background: rgba(254,182,0,.1); }
.plan-dot {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  display: grid; place-items: center; transition: all .2s;
}
.plan-dot svg { width: 13px; height: 13px; color: var(--primary); opacity: 0; }
.plan.is-selected .plan-dot { border-color: var(--primary); background: rgba(254,182,0,.25); }
.plan.is-selected .plan-dot svg { opacity: 1; }
.plan-info { flex: 1; min-width: 0; }
.plan-name { display: block; font-size: 16px; font-weight: 800; }
.plan-validity { display: block; font-size: 13px; color: var(--text-2); font-weight: 500; }
.plan-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.plan-price { text-align: right; }
.plan-price b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.3px; line-height: 1.05; }
.plan-price s { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 500; }
.plan-off { display: block; margin-top: 2px; font-size: 11px; font-weight: 800; color: var(--success); }
.billed { margin-top: 12px; padding: 16px 18px; }
.billed small { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text-2); }
.billed .amount { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; }
.billed .amount b { font-weight: 800; }
.billed .amount span { font-size: 15px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.billed p { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.4; }
.included h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.included h3 svg { width: 22px; height: 22px; color: var(--primary); }
.included ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.included li { display: flex; gap: 10px; font-size: 15px; color: rgba(255,255,255,.92); }
.included li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.secure-note svg { width: 14px; height: 14px; }
.pay-strip { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; opacity: .85; }
.pay-strip img { height: 20px; width: auto; }
.active-plan-banner { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.active-plan-banner svg { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }

/* ── Sheet / modal (payment_bottomsheet.dart) ─────────────── */
.sheet { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .25s; }
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: #141414; border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s var(--ease);
}
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.25); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-head h3 { font-size: 20px; font-weight: 800; }
.sheet-head p { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { border-radius: var(--r-2xl); border-bottom: 1px solid var(--border); padding: 22px 24px 24px; transform: translateY(20px) scale(.98); opacity: 0; transition: transform .25s var(--ease), opacity .25s; }
  .sheet.is-open .sheet-panel { transform: none; opacity: 1; }
  .sheet-grip { display: none; }
}
.pay-option {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; margin-bottom: 10px; cursor: pointer; text-align: left;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); transition: border-color .2s, background .2s;
}
.pay-option:hover { border-color: var(--primary-line); background: var(--primary-soft); }
.pay-logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.pay-logo img { width: 80%; height: 80%; object-fit: contain; }
.pay-body { flex: 1; min-width: 0; }
.pay-body strong { display: block; font-size: 15px; }
.pay-methods { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pay-methods img { height: 18px; width: auto; }
.pay-methods .invert { filter: brightness(0) invert(1); }
.pay-option > svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.stripe-box { margin-top: 6px; }
.stripe-box #stripe-element { min-height: 120px; padding: 4px 0 14px; }

/* ── Status (payment_success_page.dart) ───────────────────── */
.status { text-align: center; padding: 40px 0 20px; }
.status-icon { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; }
.status-icon svg { width: 46px; height: 46px; }
.status-icon.pending { background: var(--primary-soft); border: 2px solid var(--primary-line); color: var(--primary); }
.status-icon.pending svg { animation: spin 1.2s linear infinite; }
.status-icon.ok { background: rgba(129,199,132,.14); border: 2px solid rgba(129,199,132,.6); color: var(--success); }
.status-icon.fail { background: rgba(239,154,154,.12); border: 2px solid rgba(239,154,154,.55); color: var(--danger); }
.status h1 { font-size: 26px; font-weight: 800; }
.status p { margin-top: 10px; color: var(--muted); }
.status .btn { margin-top: 26px; min-width: 220px; }
.status-ref { margin-top: 18px; font-size: 12px; color: var(--hint); word-break: break-all; }

/* ── Auth (login_screen.dart) ─────────────────────────────── */
.auth { min-height: 100vh; display: grid; }
.is-auth .nav, .is-auth .topbar-actions { display: none !important; }
.is-auth .topbar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 960px) { .auth { grid-template-columns: 1.1fr 1fr; } }
.auth-art { display: none; position: relative; overflow: hidden; background: var(--bg-deep); }
@media (min-width: 960px) { .auth-art { display: block; } }
.auth-mosaic { position: absolute; inset: -10%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; transform: rotate(-8deg); opacity: .55; }
.auth-mosaic div { aspect-ratio: 2/3; border-radius: 14px; overflow: hidden; background: var(--surface); }
.auth-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,.3), var(--bg) 96%), linear-gradient(0deg, var(--bg), transparent 40%); }
.auth-tagline { position: absolute; left: 48px; bottom: 56px; z-index: 1; max-width: 420px; }
.auth-tagline h2 { font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.auth-tagline h2 em { font-style: normal; color: var(--primary); }
.auth-tagline p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: calc(var(--topbar-h) + 16px) var(--gutter) 40px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 28px; font-weight: 800; }
.auth-card .page-sub { margin-bottom: 26px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.phone-field {
  display: flex; align-items: center; height: 54px; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border-strong); transition: border-color .2s;
}
.phone-field:focus-within { border-color: var(--primary); }
.phone-field .cc { padding: 0 14px; height: 100%; display: flex; align-items: center; gap: 6px; font-weight: 700; border-right: 1px solid var(--border); color: var(--text-2); }
.phone-field input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; letter-spacing: .04em; }
.field-hint { margin-top: 8px; font-size: 12px; color: var(--hint); }
.otp-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.otp-boxes input {
  width: 100%; height: 60px; text-align: center; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  font: inherit; font-size: 24px; font-weight: 800; outline: 0; transition: border-color .2s, background .2s;
}
.otp-boxes input:focus { border-color: var(--primary); background: var(--primary-soft); }
.otp-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.otp-meta button { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 700; cursor: pointer; }
.otp-meta button:disabled { color: var(--hint); cursor: default; }
.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: var(--hint); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social { display: grid; gap: 10px; }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { background: #f1f1f1; }
.btn-apple { background: #000; color: #fff; border-color: var(--border-strong); }
.btn-apple:hover { background: #111; }
.auth-legal { margin-top: 24px; font-size: 12px; color: var(--hint); text-align: center; line-height: 1.6; }
.auth-legal a { color: var(--primary); }

/* ── Forms ────────────────────────────────────────────────── */
.form-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.input, .textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  font: inherit; font-size: 15px; outline: 0; transition: border-color .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--hint); }
.input:focus, .textarea:focus { border-color: var(--primary); }
.textarea { resize: vertical; min-height: 140px; }

/* ── Alerts / toast ───────────────────────────────────────── */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert-error { background: rgba(239,154,154,.1); border: 1px solid rgba(239,154,154,.35); color: var(--danger); }
.alert-success { background: rgba(129,199,132,.1); border: 1px solid rgba(129,199,132,.35); color: var(--success); }
.toast-host { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 300; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 1024px) { .toast-host { bottom: 28px; } }
.toast {
  padding: 12px 16px; border-radius: 12px; background: #2a2a2a; border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; font-weight: 600; text-align: center;
  animation: toast-in .25s var(--ease);
}
.toast.error { border-color: rgba(239,154,154,.5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Account / More (more_info_page.dart) ─────────────────── */
.account-card { display: flex; align-items: center; gap: 16px; }
.account-card h2 { font-size: 20px; font-weight: 800; }
.account-card p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.list { border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.list a, .list .row {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px; font-weight: 600; font-size: 15px;
  transition: background .2s;
}
.list a + a, .list .row + .row, .list a + .row, .list .row + a { border-top: 1px solid var(--border); }
.list a:hover { background: var(--surface-3); }
.list .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.list .ico svg { width: 18px; height: 18px; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.list .chev { width: 20px; height: 20px; color: var(--hint); }
.plan-card-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-card-row h3 { font-size: 20px; font-weight: 800; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.kv small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); }
.kv span { font-weight: 700; font-size: 14px; }
.history-row { display: flex; justify-content: space-between; gap: 12px; }
.history-row small { color: var(--muted); font-size: 12px; font-weight: 500; }
.status-pill { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); align-self: center; }
.status-pill.active { background: rgba(129,199,132,.15); color: var(--success); }

/* ── Prose (legal) ────────────────────────────────────────── */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose h1, .prose h2, .prose h3 { color: var(--text); margin: 1.4em 0 .5em; }
.prose a { color: var(--primary); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer-grid { display: grid; gap: 28px; padding: 40px 0 28px; }
/* On phones the More tab already lists these pages. */
@media (max-width: 767px) { .footer-grid > .footer-col-links { display: none; } .footer { margin-top: 24px; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 36px; width: auto; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 340px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.footer-badges { display: flex; gap: 10px; margin-top: 16px; }
.footer-badges img { height: 44px; width: auto; border-radius: 8px; }
.footer h4 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li a, .footer li span { color: var(--muted); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.footer li a:hover { color: var(--primary); }
.footer li svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; color: var(--hint); font-size: 12px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
