:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #4ade80;
  --accent-hover: #86efac;
  --border: #2a2a2a;
  --ok: #4ade80;
  --err: #f87171;
}

.sub-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 1.5rem;
  text-align: center;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
}

/* —— Auth / marketing landing —— */
.landing-auth-body {
  font-family: Manrope, "Helvetica Neue", Helvetica, sans-serif;
  background: #050505;
}

.landing-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-bg-inner {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  transform-origin: center center;
  filter: blur(10px) saturate(1.05) brightness(0.72);
  animation: landingDrift 48s ease-in-out infinite alternate;
}

.landing-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(160px, 20vh);
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  min-height: 110vh;
  padding: 0.4rem;
}

.landing-tile {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #222;
  min-height: 140px;
}

.landing-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
}

.landing-tile--fallback {
  background:
    linear-gradient(145deg, rgba(74, 222, 128, 0.12), transparent 55%),
    linear-gradient(160deg, #2a2a2a, #121212);
}

.landing-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(5, 5, 5, 0.78) 0%,
      rgba(5, 5, 5, 0.45) 40%,
      rgba(5, 5, 5, 0.35) 65%,
      rgba(5, 5, 5, 0.55) 100%
    ),
    linear-gradient(to top, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.25) 42%, rgba(5, 5, 5, 0.5) 100%);
}

.landing-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1rem, 4vw, 2.5rem);
}

.landing-logo {
  display: block;
  width: clamp(120px, 20vw, 168px);
  height: auto;
}

.landing-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.landing-beta-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.spaidz-beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.55);
  background: rgba(74, 222, 128, 0.12);
  color: var(--accent, #4ade80);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
}

.landing-top-signin {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.landing-top-signin:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.landing-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 400px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 5rem);
}

.landing-hero {
  animation: landingRise 0.9s ease both;
}

.landing-hero-logo {
  display: block;
  width: clamp(160px, 28vw, 240px);
  height: auto;
  margin: 0 0 0.65rem;
}

.landing-hero h1 {
  margin: 0 0 0.85rem;
  font-family: Manrope, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 16ch;
}

.landing-price {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
}

.landing-price strong {
  color: var(--accent);
  font-weight: 700;
}

.landing-points {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}

.landing-points li {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: rgba(245, 245, 245, 0.86);
  font-size: 1rem;
  line-height: 1.45;
}

.landing-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.landing-auth-panel {
  animation: landingRise 1.05s ease 0.12s both;
  width: 100%;
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.landing-auth-panel .auth-logo {
  width: 132px;
}

.landing-auth-panel h2 {
  margin: 0 0 0.35rem;
  font-family: Manrope, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
}

@keyframes landingDrift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, 0.8%, 0);
  }
}

@keyframes landingRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .landing-main {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .landing-hero h1 {
    max-width: none;
  }

  .landing-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(120px, 18vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-bg-inner,
  .landing-hero,
  .landing-auth-panel {
    animation: none;
  }
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.75) 100%),
    radial-gradient(120% 80% at 50% -10%, rgba(74, 222, 128, 0.18), transparent 55%),
    var(--bg);
}

.auth-card {
  width: min(420px, 100%);
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.auth-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 1.25rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.auth-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-lead strong {
  color: var(--text);
}

.auth-callout {
  margin: 0 0 1.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.12);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.auth-callout a {
  color: #fff;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #000;
  color: var(--text);
  font-size: 1rem;
}

.field input:focus {
  outline: 2px solid rgba(74, 222, 128, 0.55);
  border-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #052e16;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  background: var(--accent-hover);
  color: #052e16;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-links {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-btn {
  background: none;
  border: none;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.err {
  margin: 0.85rem 0 0;
  color: var(--err);
  font-size: 0.9rem;
}

.ok {
  margin: 0.85rem 0 0;
  color: var(--ok);
  font-size: 0.9rem;
}

.legal {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

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

.badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #222;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* —— App shell / top nav (C3) —— */
.shell-root {
  min-height: 100vh;
  background: var(--bg);
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.topnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.topnav-brand img {
  display: block;
  width: 96px;
  height: auto;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.topnav-link {
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.topnav-link:hover {
  color: #fff;
}

.topnav-link.is-active {
  color: #fff;
  font-weight: 700;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.topnav-email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.topnav-signout {
  border: 1px solid var(--border);
  background: transparent;
  color: #fff;
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.topnav-signout:hover {
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.15);
}

.shell-main {
  padding-bottom: 3rem;
}

/* Home hero — fixed frame; media never participates in layout flow */
.home-hero {
  position: relative;
  height: 420px;
  max-height: 52vh;
  min-height: 320px;
  margin: 0;
  display: block;
  overflow: hidden;
  background: #0a0a0a;
}

.home-hero.is-empty {
  display: flex;
  align-items: flex-end;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-bg,
.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-hero-bg {
  z-index: 0;
  transition: opacity 0.5s ease;
}

.home-hero-bg.is-dimmed {
  opacity: 0;
}

.home-hero-video {
  z-index: 1;
  opacity: 0;
  background: #000;
}

.home-hero-video.is-playing {
  opacity: 1;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0.15) 100%
    ),
    linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.2) 42%, transparent 70%);
  pointer-events: none;
}

.home-hero-copy {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 3;
  width: min(520px, calc(100% - 2rem));
  max-width: 520px;
  margin: 0;
  padding: 2rem 1.75rem 1.75rem;
  text-align: left;
  box-sizing: border-box;
}

.home-hero-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-hero-lead {
  color: #d4d4d4;
  margin: 0 0 1rem;
  line-height: 1.45;
  max-width: 26rem;
  font-size: 0.92rem;
}

.home-hero-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.home-hero-meta .cpi-badge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: inline-flex;
}

.hero-dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.1rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.hero-placeholder {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 1.5rem 2rem;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}

.hero-copy {
  max-width: 34rem;
}

.hero-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.hero-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-hero.secondary {
  background: rgba(109, 109, 110, 0.7);
  color: #fff;
}

.btn-hero:hover {
  opacity: 0.9;
}

.rail-cpi {
  display: none;
}

.hover-preview,
.hover-preview[hidden] {
  display: none !important;
}

/* Title detail tabs */
.detail-tabs {
  display: flex;
  gap: 1.25rem;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-top: 0.5rem;
}

.detail-tab {
  appearance: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 0;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.detail-tab.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

.detail-tab-panel {
  padding: 1.25rem 1.5rem 2.5rem;
  max-width: 720px;
}

.detail-tab-panel h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.detail-tab-panel h2:first-child {
  margin-top: 0;
}

.detail-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.detail-info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.detail-info-row span {
  color: var(--muted);
}

.detail-cast-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-cast-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-cast-role {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.detail-poster-playable {
  position: relative;
}

.detail-poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
}

.detail-poster-play:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* Content rails — larger posters, roomier gaps */
.rail-section {
  padding: 0.85rem 0 1.5rem;
}

.rail-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  padding: 0 2rem 0.9rem;
}

.rail-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rail-header span {
  display: none;
}

.rail-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.35rem 2rem 1.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.rail-track::-webkit-scrollbar {
  height: 0;
}

.rail-card-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  max-width: 220px;
}

.rail-card {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  position: relative;
  display: block;
}

.rail-card:hover .rail-poster {
  transform: scale(1.025);
}

.rail-poster {
  position: relative;
  width: 220px;
  height: 330px;
  border-radius: 12px;
  background: #1a1a1a;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.rail-poster img,
.rail-thumb {
  width: 220px !important;
  height: 330px !important;
  max-width: 220px !important;
  max-height: 330px !important;
  object-fit: cover;
  display: block;
}

.rail-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(160deg, #2a2a2a 0%, #121212 100%);
}

.rail-poster-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.rail-poster-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 44px;
  margin: 0;
  z-index: 2;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Poster CPI — bottom-left only (never shares corner with ×) */
.rail-cpi-badge,
.rail-poster .cpi-badge {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 12px !important;
  left: 12px !important;
  z-index: 3;
  min-width: 2.1rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.rail-title {
  display: none;
}

/* Rotate control — top-right only */
.rail-dismiss {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.rail-dismiss:hover {
  background: rgba(74, 222, 128, 0.95);
  color: #052e16;
  opacity: 1;
}

.cpi-badge {
  min-width: 2rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Continue Watching — landscape Apple TV style */
.cw-section .rail-header h2 {
  font-size: 1.3rem;
}

.cw-track {
  gap: 1.35rem;
}

.cw-card {
  flex: 0 0 auto;
  width: 320px;
  max-width: 78vw;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
}

.cw-art {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
}

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

.cw-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
}

.cw-art-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
  pointer-events: none;
}

.cw-art-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  margin: 0;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cw-art .cpi-badge,
.cw-art .rail-cpi-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  z-index: 2;
}

.cw-progress {
  margin-top: 0.55rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.cw-progress span {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 2px;
}

.cw-meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.ire-callout {
  display: none;
}

.catalog-status {
  padding: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-status.is-error {
  color: var(--err);
}

.catalog-empty {
  padding: 1.5rem;
  color: var(--muted);
}

/* Placeholder pages */
.page-panel {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.page-panel h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.page-panel p {
  margin: 0.4rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.page-panel strong {
  color: var(--text);
}

@media (max-width: 720px) {
  .topnav {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .topnav-email {
    display: none;
  }

  .topnav-links {
    width: 100%;
    order: 3;
  }

  .hero-placeholder {
    min-height: 320px;
    padding: 2rem 1rem 1.5rem;
  }
}

/* —— Title detail (C5) —— */
.detail-hero {
  position: relative;
  min-height: min(70vh, 520px);
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.75rem;
  align-items: end;
  padding: 2.5rem 1.5rem 2rem;
  background:
    linear-gradient(to top, var(--bg) 8%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.35) 100%),
    #141414;
  overflow: hidden;
}

.detail-hero.has-bg {
  background-size: cover;
  background-position: center top;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.72) 45%, rgba(10, 10, 10, 0.35) 100%);
  pointer-events: none;
}

.detail-poster,
.detail-copy {
  position: relative;
  z-index: 1;
}

.detail-poster {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a1a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

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

.detail-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
}

.detail-copy h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-meta .dot {
  opacity: 0.45;
}

.detail-cpi {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.detail-cpi .cpi-badge {
  position: static;
  top: auto;
  right: auto;
}

.detail-synopsis {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  color: #d4d4d4;
  font-size: 1rem;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-play:hover {
  opacity: 0.9;
}

.btn-play .play-icon {
  font-size: 0.85rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.15rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(109, 109, 110, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(109, 109, 110, 0.55);
}

.detail-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .detail-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.5rem 1rem 1.75rem;
  }

  .detail-poster {
    max-width: 160px;
  }
}

/* —— Watch / HLS player (C6) —— */
.watch-body .shell-main {
  padding-bottom: 1.5rem;
}

.watch-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.watch-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.watch-share {
  flex-shrink: 0;
  margin-left: auto;
}

.share-status {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.share-status.is-error {
  color: var(--err);
}

.watch-back {
  flex-shrink: 0;
}

.watch-title-block {
  flex: 1;
  min-width: 0;
}

.watch-title-block h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.player-stage {
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
}

.player-stage--rich {
  cursor: none;
}

.player-stage--rich.is-controls-visible,
.player-stage--rich.is-paused {
  cursor: default;
}

.player-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-video::-webkit-media-controls {
  display: none !important;
}

.player-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 28%,
    transparent 52%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-stage.is-controls-visible .player-overlay,
.player-stage.is-paused .player-overlay {
  opacity: 1;
  pointer-events: auto;
}

.player-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.player-stage.is-paused .player-center-btn,
.player-stage.is-controls-visible.is-paused .player-center-btn {
  opacity: 1;
  pointer-events: auto;
}

.player-center-btn:hover {
  background: rgba(74, 222, 128, 0.9);
  color: #052e16;
}

.player-chrome {
  padding: 0.35rem 0.75rem 0.75rem;
  pointer-events: auto;
}

.player-scrub {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

.player-scrub-buffer,
.player-scrub-progress {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  pointer-events: none;
}

.player-scrub-buffer {
  background: rgba(255, 255, 255, 0.25);
  width: 0;
  z-index: 1;
}

.player-scrub-progress {
  background: var(--accent);
  width: 0;
  z-index: 2;
}

.player-scrub-input {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  height: 18px;
  cursor: pointer;
}

.player-scrub-input::-webkit-slider-runnable-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.player-scrub-input::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.player-scrub-input::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.player-scrub-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
}

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-toolbar-left,
.player-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.player-icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  border-radius: 4px;
  min-width: 36px;
  height: 36px;
  padding: 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.player-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.player-icon-btn#btnMute {
  min-width: 52px;
  font-size: 0.72rem;
}

.player-icon-btn:disabled,
.player-icon-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.15rem;
}

.player-volume-slider {
  width: 72px;
  accent-color: var(--accent);
  cursor: pointer;
}

.player-time {
  margin-left: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-menu {
  position: relative;
}

.player-menu-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 110px;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.player-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.player-menu-item:hover,
.player-menu-item.is-active {
  background: rgba(74, 222, 128, 0.18);
  color: var(--accent);
}

.player-menu-empty {
  padding: 0.5rem 0.6rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.player-icon-btn.is-active {
  color: var(--accent);
  background: rgba(74, 222, 128, 0.15);
}

.player-cast-banner {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 4;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #d1fae5;
  font-size: 0.85rem;
  line-height: 1.4;
  pointer-events: none;
}

.player-stage.is-casting .player-video {
  opacity: 0.35;
}

.player-stage:fullscreen .player-video {
  width: 100%;
  height: 100%;
}

.player-status {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.player-status.is-error {
  color: var(--err);
}

.watch-hint {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.watch-keys {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.85;
}

.completion-banner {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.completion-banner.is-ok {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #d1fae5;
}

.completion-banner.is-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

/* —— Subscribe plans (C8) —— */
.subscribe-panel {
  max-width: 560px;
}

.period-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.period-tab {
  flex: 1;
  padding: 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #111;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.period-tab.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: #1a1a1a;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-card {
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #141414;
  color: var(--text);
  cursor: pointer;
}

.plan-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.plan-card.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.plan-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: #333;
  color: var(--muted);
}

.plan-price {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.plan-hint {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.plan-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Wallet (C9) —— */
.wallet-panel {
  max-width: 560px;
}

.wallet-hero {
  margin: 1.25rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid var(--border);
}

.wallet-hero-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wallet-hero-amt {
  margin-top: 0.25rem;
  font-size: 2.25rem;
  font-weight: 800;
}

.wallet-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.wallet-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.wallet-stats strong {
  font-size: 1rem;
}

.wallet-card {
  margin: 1rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #141414;
}

.wallet-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.wallet-card .btn-ghost,
.wallet-card .btn-play {
  margin-top: 0.75rem;
  width: auto;
  display: inline-flex;
}

.wallet-rail {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0;
  color: rgba(245, 245, 245, 0.88);
  font-size: 0.92rem;
}

.help-faq details,
.wallet-faq details {
  margin: 0.55rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #141414;
}

.help-faq summary,
.wallet-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.help-faq p,
.wallet-faq p {
  margin: 0.55rem 0 0;
  color: rgba(245, 245, 245, 0.82);
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wallet-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-row:last-child {
  border-bottom: none;
}

.wallet-row-meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.wallet-row-amt {
  font-weight: 700;
  white-space: nowrap;
}

/* —— Genres + search (C10) —— */
.genres-panel {
  max-width: 640px;
}

.genre-dots {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.genre-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.genre-dot.is-on {
  background: var(--accent);
  transform: scale(1.15);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.genre-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: #141414;
  color: var(--text);
  border-radius: 10px;
  padding: 0.85rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.genre-chip:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.35);
}

.genre-chip.is-selected {
  border-color: var(--accent);
  background: rgba(74, 222, 128, 0.15);
}

.genre-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.genres-panel .btn-play {
  width: 100%;
}

.search-panel {
  max-width: 1100px;
}

.search-field {
  margin: 1rem 0 1.5rem;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  gap: 1.5rem 1.5rem;
  justify-content: start;
  margin-top: 1.25rem;
  padding-bottom: 2rem;
}

.search-card {
  display: block;
  width: 220px;
  text-decoration: none;
  color: inherit;
}

.search-card .rail-poster {
  width: 220px;
  height: 330px;
}

.search-meta {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.search-result-card .search-meta {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.catalog-empty {
  margin: 1.5rem;
  padding: 1.5rem 1.25rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #121212;
  text-align: center;
}

.catalog-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.catalog-empty p {
  color: var(--muted);
  margin: 0.4rem 0;
}

.catalog-empty.is-error {
  border-color: rgba(239, 68, 68, 0.4);
}

.catalog-empty .btn-ghost {
  margin: 0.75rem 0.35rem 0;
  display: inline-flex;
  width: auto;
}

/* —— IRE (C12) —— */
.ire-callout {
  display: none;
}

@media (max-width: 720px) {
  .player-volume-slider {
    width: 52px;
  }

  .player-icon-btn#btnSkipBack30,
  .player-icon-btn#btnSkipFwd30 {
    display: none;
  }

  .watch-keys {
    display: none;
  }
}


/* —— Legal documents (parity with iOS / TV) —— */
.legal-doc-body {
  min-height: 100vh;
  background: #0a0a0a;
}

.legal-doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.legal-doc-brand img {
  display: block;
  width: 120px;
  height: auto;
}

.legal-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.legal-doc h1 {
  margin: 0.75rem 0 0.35rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.legal-updated {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a.is-active {
  color: var(--accent);
  text-decoration: underline;
}

.legal-section {
  margin: 0 0 1.5rem;
}

.legal-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: #fff;
}

.legal-section p,
.legal-section li {
  color: rgba(245, 245, 245, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.legal-section li {
  margin: 0.3rem 0;
}

.legal-footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.legal-index-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.9);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.legal-index-card:hover {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
}

.legal-index-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.legal-index-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.profile-legal h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.profile-legal > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.profile-legal-links a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-legal-links a:hover {
  color: var(--accent);
}

.landing-legal-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.15rem;
  padding: 1.25rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.landing-legal-footer a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.landing-legal-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}
