:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-soft: #101014;
  --surface: rgba(20, 20, 24, .82);
  --surface-solid: #151519;
  --surface-hover: #1b1b20;
  --text: #f7f4ec;
  --muted: #9a99a2;
  --faint: #65656f;
  --line: #2e2e35;
  --line-strong: #44444d;
  --accent: #ff513f;
  --accent-hot: #ff7a45;
  --gold: #ffb43c;
  --ok: #65d69d;
  --danger: #ff7969;
  --shadow: 0 24px 80px rgba(0, 0, 0, .42);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, .24);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3ed;
  --bg-soft: #eee8df;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #fffdf9;
  --surface-hover: #ffffff;
  --text: #17161a;
  --muted: #68666d;
  --faint: #8a878d;
  --line: #ded8cf;
  --line-strong: #c7beb3;
  --shadow: 0 24px 70px rgba(78, 51, 31, .13);
  --soft-shadow: 0 12px 32px rgba(78, 51, 31, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Noto Sans Khmer", system-ui, sans-serif;
  transition: background-color .35s ease, color .35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .48;
  background-image: linear-gradient(rgba(128, 128, 140, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 128, 140, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .14;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.ambient-a { width: 560px; height: 560px; right: -170px; top: -260px; background: var(--accent); }
.ambient-b { width: 460px; height: 460px; left: -250px; top: 48%; background: #6651ff; animation-delay: -6s; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 20px; line-height: 1; font-weight: 850; letter-spacing: .04em; }
.brand small { margin-top: 5px; color: var(--faint); font-size: 8px; letter-spacing: .18em; }
.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  box-shadow: 0 10px 32px color-mix(in srgb, var(--accent) 32%, transparent);
  transform: rotate(-5deg);
}
.mark span { font-size: 13px; font-weight: 850; transform: rotate(5deg); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.local-pill { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--faint); font-size: 10px; letter-spacing: .14em; }
.local-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 11px var(--ok); animation: pulse 2.2s ease-in-out infinite; }
.theme-toggle {
  min-width: 92px;
  justify-content: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}
.theme-toggle:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.theme-icon { width: 18px; font-size: 16px; }
.theme-label { font-size: 11px; }

main { width: min(1080px, calc(100% - 40px)); margin: auto; }
.hero { position: relative; max-width: 920px; padding: 104px 0 66px; animation: rise .7s ease both; }
.hero-glow { position: absolute; z-index: -1; top: 88px; right: -50px; width: 270px; height: 270px; pointer-events: none; }
.hero-glow i { position: absolute; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); animation: orbit 10s linear infinite; }
.hero-glow i:nth-child(1) { inset: 0; }
.hero-glow i:nth-child(2) { inset: 42px; animation-duration: 7s; animation-direction: reverse; }
.hero-glow i:nth-child(3) { inset: 92px; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 0; animation: breathe 3s ease-in-out infinite; }
.eyebrow, .section-kicker { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 20px 0 25px; font-size: clamp(48px, 7.2vw, 86px); line-height: .98; font-weight: 850; letter-spacing: -.055em; }
h1 em { display: inline-block; font-style: normal; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--text) 40%, transparent); }
.hero > p { max-width: 670px; margin: 0 0 38px; color: var(--muted); font-size: 16px; line-height: 1.75; }

.platform-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 27px; }
.platform-tab {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
  padding: 16px 17px;
  overflow: hidden;
  text-align: left;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}
.platform-tab::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--tab-color, var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.platform-tab:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--surface-hover); }
.platform-tab.active { border-color: color-mix(in srgb, var(--tab-color, var(--accent)) 55%, var(--line)); background: color-mix(in srgb, var(--tab-color, var(--accent)) 8%, var(--surface-solid)); }
.platform-tab.active::after { transform: scaleX(1); }
.platform-tab[data-platform="tiktok"] { --tab-color: #24e7dc; }
.platform-tab[data-platform="youtube"] { --tab-color: #ff3d32; }
.platform-tab[data-platform="instagram"] { --tab-color: #d64ee7; }
.platform-tab[data-platform="facebook"] { --tab-color: #2388ff; }
.platform-tab > span { grid-row: 1 / 3; align-self: center; color: var(--faint); font-size: 10px; font-style: normal; font-weight: 800; }
.platform-tab > i { grid-row: 1 / 3; align-self: center; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--tab-color); background: color-mix(in srgb, var(--tab-color) 12%, transparent); font-style: normal; }
.platform-tab > strong { min-width: 0; overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; }
.platform-tab > small { color: var(--faint); font-size: 10px; }

.link-form > label { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.input-row { display: flex; align-items: center; padding: 8px; background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.input-row:focus-within { border-color: color-mix(in srgb, var(--accent) 72%, var(--line)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); transform: translateY(-1px); }
.link-icon { margin: 0 12px; color: var(--faint); font-size: 18px; }
input { flex: 1; min-width: 0; padding: 15px 4px; border: 0; outline: 0; background: transparent; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500; }
input::placeholder { color: var(--faint); }
button, .save-button { display: flex; align-items: center; gap: 26px; padding: 16px 20px; border: 0; border-radius: 11px; cursor: pointer; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-hot)); font-family: inherit; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .2s ease, filter .2s ease, background .25s ease, border-color .2s ease; }
button:hover, .save-button:hover { filter: brightness(1.07); transform: translateY(-2px); }
button:disabled { opacity: .58; cursor: wait; transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 3px; }
.helper-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 4px; color: var(--faint); font-size: 11px; }
.quality-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 3px; }
.quality-row label { color: var(--faint); font-size: 11px; }
.quality-row select { appearance: none; padding: 10px 34px 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background-color: var(--surface-solid); background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat; font-family: inherit; font-size: 11px; font-weight: 700; }

.status { margin: 10px 0 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; color: var(--text); background: var(--surface-solid); box-shadow: var(--soft-shadow); animation: rise .35s ease both; }
.status.error { border-color: color-mix(in srgb, var(--danger) 48%, var(--line)); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface-solid)); }
.status.loading::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.hidden { display: none !important; }

.results { padding: 48px 0; animation: rise .55s ease both; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-head h2, .download-panel h2 { margin: 8px 0 3px; font-size: clamp(27px, 4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.04em; }
.section-head p, .download-copy p { margin: 0; color: var(--muted); }
.count { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 750; }
.episode-list { display: flex; flex-direction: column; }
.episode { display: grid; grid-template-columns: 48px 104px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 17px 5px; border-bottom: 1px solid var(--line); animation: rise .42s ease both; animation-delay: var(--episode-delay, 0ms); transition: background .2s ease, padding .2s ease; }
.episode:hover { padding-left: 12px; padding-right: 12px; background: color-mix(in srgb, var(--surface-solid) 75%, transparent); }
.ep-number { color: var(--faint); font-size: 12px; font-weight: 700; }
.thumb { width: 104px; height: 68px; object-fit: cover; border-radius: 9px; background: var(--surface-solid); box-shadow: var(--soft-shadow); }
.thumb-placeholder { display: grid; place-items: center; color: var(--faint); }
.ep-info { min-width: 0; }
.ep-info h3 { margin: 0 0 7px; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ep-info p { margin: 0; color: var(--muted); font-size: 12px; }
.episode button { gap: 12px; padding: 11px 14px; border: 1px solid var(--line-strong); color: var(--text); background: transparent; }
.episode button:hover { color: white; border-color: var(--accent); background: var(--accent); }

.download-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 400px); gap: 32px; align-items: center; margin: 55px 0; padding: 32px; border: 1px solid var(--line-strong); border-radius: 19px; background: linear-gradient(145deg, var(--surface-solid), color-mix(in srgb, var(--surface-solid) 82%, var(--bg))); box-shadow: var(--shadow); animation: rise .45s ease both; }
.progress-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 14px; align-items: center; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--line); }
.progress-bar { position: relative; width: 0; height: 100%; overflow: hidden; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .35s ease; }
.progress-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: shimmer 1.5s infinite; }
.progress-wrap strong { font-size: 13px; }
.save-button { justify-content: space-between; }

.truth-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 90px 0 80px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); box-shadow: var(--soft-shadow); }
.truth-grid article { min-height: 190px; padding: 30px; background: var(--surface-solid); transition: transform .25s ease, background .25s ease; }
.truth-grid article:hover { z-index: 1; transform: translateY(-4px); background: var(--surface-hover); }
.truth-grid article > span { color: var(--accent); font-size: 11px; font-weight: 800; }
.truth-grid h3 { margin: 35px 0 10px; font-size: 17px; }
.truth-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rights-note { max-width: 780px; margin: -48px auto 80px; color: var(--faint); text-align: center; font-size: 12px; line-height: 1.75; }
footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { to { transform: translate3d(24px, -22px, 0) scale(1.08); } }
@keyframes pulse { 50% { opacity: .55; box-shadow: 0 0 3px var(--ok); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(.82); opacity: .48; } }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 900px) {
  .hero { padding-top: 82px; }
  .hero-glow { right: -100px; opacity: .65; }
  .download-panel { grid-template-columns: 1fr; }
  .episode { grid-template-columns: 38px 92px minmax(0, 1fr) auto; gap: 14px; }
  .thumb { width: 92px; height: 62px; }
}

@media (max-width: 700px) {
  .topbar { width: min(100% - 28px, 1180px); height: 74px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 7px; }
  .mark { width: 37px; height: 37px; }
  .local-pill { display: none; }
  .theme-toggle { min-width: 82px; padding: 9px 11px; }
  main { width: min(100% - 28px, 1080px); }
  .hero { padding: 64px 0 42px; }
  .hero-glow { top: 30px; right: -145px; }
  h1 { margin-top: 16px; font-size: clamp(42px, 13vw, 62px); }
  .hero > p { font-size: 14px; }
  .platform-tabs { grid-template-columns: 1fr; gap: 8px; }
  .platform-tab { grid-template-columns: 28px 32px 1fr auto; grid-template-rows: 1fr; align-items: center; }
  .platform-tab > span, .platform-tab > i { grid-row: auto; }
  .platform-tab > small { text-align: right; }
  .input-row { flex-wrap: wrap; padding: 7px; }
  .link-icon { display: none; }
  input { width: 100%; flex-basis: 100%; padding: 14px 10px; }
  .input-row button { width: 100%; justify-content: space-between; }
  .helper-row { flex-direction: column; gap: 5px; }
  .quality-row { justify-content: space-between; margin-top: 10px; }
  .section-head { align-items: flex-start; }
  .episode { grid-template-columns: 30px 76px minmax(0, 1fr); padding: 15px 2px; }
  .thumb { width: 76px; height: 58px; }
  .episode button { grid-column: 2 / 4; justify-content: space-between; }
  .episode:hover { padding-left: 5px; padding-right: 5px; }
  .download-panel { padding: 23px; }
  .truth-grid { grid-template-columns: 1fr; margin-top: 64px; }
  .truth-grid article { min-height: 145px; }
  .rights-note { margin-top: -48px; }
  footer { width: min(100% - 28px, 1180px); flex-direction: column; gap: 9px; }
}

@media (max-width: 420px) {
  .theme-label { display: none; }
  .theme-toggle { min-width: 42px; padding: 10px; }
  .platform-tab { grid-template-columns: 25px 30px 1fr; }
  .platform-tab > small { grid-column: 3; text-align: left; }
  .section-head { flex-direction: column; }
  .count { align-self: flex-start; }
  .progress-wrap { grid-template-columns: 1fr 40px; }
}

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

/* Dimensional experience */
:root { --platform: #24e7dc; --platform-rgb: 36, 231, 220; }
:root[data-platform="youtube"] { --platform: #ff493e; --platform-rgb: 255, 73, 62; }
:root[data-platform="instagram"] { --platform: #d95ce8; --platform-rgb: 217, 92, 232; }
:root[data-platform="facebook"] { --platform: #2388ff; --platform-rgb: 35, 136, 255; }

.hero { max-width: none; padding-top: 76px; perspective: 1200px; }
.hero-stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 52px; align-items: center; min-height: 470px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow > span { width: 28px; height: 1px; background: linear-gradient(90deg, var(--platform), transparent); box-shadow: 0 0 12px var(--platform); }
.hero-copy h1 { max-width: 720px; margin-top: 23px; text-wrap: balance; }
.hero-copy h1 em { position: relative; background: linear-gradient(90deg, color-mix(in srgb, var(--text) 82%, transparent), color-mix(in srgb, var(--platform) 68%, var(--text))); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; -webkit-text-stroke: 0; filter: drop-shadow(0 12px 34px rgba(var(--platform-rgb), .14)); }
.hero-copy > p { max-width: 650px; margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badges span { position: relative; padding: 8px 11px 8px 25px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--surface-solid) 74%, transparent); box-shadow: inset 0 1px rgba(255,255,255,.05); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.hero-badges span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--platform); box-shadow: 0 0 10px var(--platform); transform: translateY(-50%); }

.media-scene { --rx: -7deg; --ry: -10deg; position: relative; width: min(100%, 410px); aspect-ratio: 1; margin-inline: auto; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .18s ease-out; isolation: isolate; }
.scene-halo { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.18), transparent 19%), radial-gradient(circle, rgba(var(--platform-rgb), .22), rgba(var(--platform-rgb), .04) 44%, transparent 70%); filter: blur(2px); transform: translateZ(-70px); animation: sceneBreathe 4s ease-in-out infinite; }
.core-sphere { position: absolute; z-index: 4; left: 50%; top: 50%; width: 154px; height: 154px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: radial-gradient(circle at 30% 23%, rgba(255,255,255,.72), rgba(255,255,255,.10) 13%, transparent 26%), radial-gradient(circle at 65% 75%, rgba(0,0,0,.56), transparent 46%), linear-gradient(145deg, color-mix(in srgb, var(--platform) 85%, white), color-mix(in srgb, var(--platform) 44%, #111)); box-shadow: inset -22px -28px 45px rgba(0,0,0,.28), inset 12px 12px 24px rgba(255,255,255,.16), 0 30px 75px rgba(var(--platform-rgb), .34), 0 0 70px rgba(var(--platform-rgb), .19); transform: translate(-50%, -50%) translateZ(80px); animation: coreFloat 4s ease-in-out infinite; }
.core-sphere::before, .core-sphere::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.core-sphere::before { inset: -13px; border: 1px solid rgba(var(--platform-rgb), .32); border-top-color: rgba(255,255,255,.72); border-bottom-color: transparent; animation: spin 5s linear infinite; }
.core-sphere::after { inset: 17px; border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 0 20px rgba(255,255,255,.07); }
.core-sphere strong { position: relative; z-index: 2; font-size: 42px; font-weight: 900; line-height: .9; letter-spacing: -.06em; text-shadow: 0 5px 20px rgba(0,0,0,.28); }
.core-sphere small { position: relative; z-index: 2; margin-top: 8px; font-size: 8px; font-weight: 800; letter-spacing: .21em; }
.core-shine { position: absolute; top: 22px; left: 32px; width: 35px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.62); filter: blur(8px); transform: rotate(-28deg); }
.orbit { position: absolute; z-index: 2; left: 50%; top: 50%; border: 1px solid rgba(var(--platform-rgb), .35); border-radius: 50%; transform-style: preserve-3d; }
.orbit::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border-top: 2px solid var(--platform); border-left: 2px solid transparent; border-right: 2px solid transparent; filter: drop-shadow(0 0 7px var(--platform)); }
.orbit-a { width: 244px; height: 244px; margin: -122px; transform: rotateX(68deg) rotateZ(12deg); animation: orbitA 8s linear infinite; }
.orbit-b { width: 320px; height: 200px; margin: -100px -160px; transform: rotateX(72deg) rotateY(26deg); animation: orbitB 11s linear infinite reverse; }
.orbit-c { width: 348px; height: 348px; margin: -174px; border-color: rgba(var(--platform-rgb), .12); transform: rotateX(77deg) rotateZ(-22deg); animation: orbitC 16s linear infinite; }
.orbit-d { width: 380px; height: 230px; margin: -115px -190px; border-color: rgba(35,136,255,.20); transform: rotateX(66deg) rotateY(-22deg) rotateZ(34deg); animation: orbitD 13s linear infinite reverse; }
.satellite { position: absolute; top: 50%; left: -17px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.20); border-radius: 11px; color: white; background: rgba(18,18,22,.86); box-shadow: 0 8px 22px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.12); font-style: normal; transform: translateY(-50%) translateZ(30px); }
.sat-tiktok { color: #48f2e8; }
.sat-youtube { color: #ff5b50; }
.sat-instagram { color: #ea77f5; }
.sat-facebook { color: #4b9cff; font-weight: 900; }
.scene-shadow { position: absolute; z-index: 0; left: 50%; bottom: 9%; width: 210px; height: 42px; border-radius: 50%; background: rgba(var(--platform-rgb), .30); filter: blur(22px); transform: translateX(-50%) rotateX(70deg) translateZ(-100px); animation: shadowPulse 4s ease-in-out infinite; }
.scene-meter { position: absolute; z-index: 6; right: 2%; bottom: 7%; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; min-width: 128px; padding: 10px 12px; border: 1px solid rgba(var(--platform-rgb), .28); border-radius: 12px; background: color-mix(in srgb, var(--surface-solid) 78%, transparent); box-shadow: var(--soft-shadow); backdrop-filter: blur(14px); transform: translateZ(110px); }
.scene-meter > span { grid-row: 1 / 3; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--platform); box-shadow: 0 0 12px var(--platform); animation: pulse 1.6s ease-in-out infinite; }
.scene-meter b { color: var(--text); font-size: 8px; letter-spacing: .12em; }
.scene-meter em { color: var(--platform); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .12em; }

.control-deck { position: relative; z-index: 8; margin-top: 18px; padding: 22px; border: 1px solid color-mix(in srgb, var(--platform) 22%, var(--line)); border-radius: 23px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface-solid) 91%, transparent), color-mix(in srgb, var(--platform) 4%, var(--surface-solid))); box-shadow: 0 34px 90px rgba(0,0,0,.30), inset 0 1px rgba(255,255,255,.07); backdrop-filter: blur(22px); transform-style: preserve-3d; }
.control-deck::before { content: ""; position: absolute; z-index: -1; inset: 10px -10px -10px 10px; border: 1px solid color-mix(in srgb, var(--platform) 16%, var(--line)); border-radius: inherit; opacity: .62; transform: translateZ(-25px); }
.control-deck::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--platform), transparent); box-shadow: 0 0 18px var(--platform); }
.deck-label { display: flex; justify-content: space-between; align-items: center; margin: 0 3px 12px; color: var(--faint); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.deck-label b { color: var(--platform); font-size: 9px; }
.control-deck .platform-tabs { margin-bottom: 20px; }
.control-deck .platform-tab { box-shadow: inset 0 1px rgba(255,255,255,.04), 0 10px 24px rgba(0,0,0,.10); transform-style: preserve-3d; }
.control-deck .platform-tab:hover { transform: perspective(700px) translateY(-5px) rotateX(5deg); }
.control-deck .platform-tab.active { box-shadow: inset 0 1px rgba(255,255,255,.08), 0 14px 34px rgba(var(--platform-rgb), .14); }
.control-deck .input-row { box-shadow: 0 18px 46px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.05); }

:root[data-theme="light"] .satellite { background: rgba(255,255,255,.90); box-shadow: 0 10px 26px rgba(76,48,31,.18), inset 0 1px white; }
:root[data-theme="light"] .core-sphere { box-shadow: inset -22px -28px 45px rgba(80,33,22,.18), inset 12px 12px 24px rgba(255,255,255,.34), 0 30px 75px rgba(var(--platform-rgb), .25), 0 0 70px rgba(var(--platform-rgb), .15); }
:root[data-theme="light"] .control-deck { box-shadow: 0 34px 90px rgba(96,65,42,.14), inset 0 1px white; }

@keyframes coreFloat { 0%,100% { transform: translate(-50%, -50%) translateZ(80px) translateY(0) rotate(-2deg); } 50% { transform: translate(-50%, -50%) translateZ(100px) translateY(-12px) rotate(2deg); } }
@keyframes sceneBreathe { 50% { transform: translateZ(-45px) scale(1.08); opacity: .64; } }
@keyframes orbitA { to { transform: rotateX(68deg) rotateZ(372deg); } }
@keyframes orbitB { to { transform: rotateX(72deg) rotateY(26deg) rotateZ(360deg); } }
@keyframes orbitC { to { transform: rotateX(77deg) rotateZ(338deg); } }
@keyframes orbitD { to { transform: rotateX(66deg) rotateY(-22deg) rotateZ(394deg); } }
@keyframes shadowPulse { 50% { width: 170px; opacity: .55; } }

@media (max-width: 900px) {
  .hero-stage { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 22px; min-height: 400px; }
  .media-scene { max-width: 330px; }
  .core-sphere { width: 126px; height: 126px; }
  .core-sphere strong { font-size: 34px; }
  .orbit-a { width: 204px; height: 204px; margin: -102px; }
  .orbit-b { width: 270px; height: 170px; margin: -85px -135px; }
  .orbit-c { width: 290px; height: 290px; margin: -145px; }
  .orbit-d { width: 310px; height: 190px; margin: -95px -155px; }
}

@media (max-width: 700px) {
  .hero { padding-top: 44px; }
  .hero-stage { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .hero-badges { justify-content: center; }
  .hero-copy h1 { margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .media-scene { width: 300px; margin-top: 4px; }
  .control-deck { margin-top: 0; padding: 15px; border-radius: 18px; }
  .control-deck::before { inset: 7px -5px -6px 7px; }
}

@media (max-width: 420px) {
  .hero-copy h1 { font-size: clamp(38px, 12vw, 50px); }
  .hero-badges span:nth-child(3) { display: none; }
  .media-scene { width: 260px; }
  .core-sphere { width: 108px; height: 108px; }
  .core-sphere strong { font-size: 30px; }
  .orbit-a { width: 178px; height: 178px; margin: -89px; }
  .orbit-b { width: 230px; height: 148px; margin: -74px -115px; }
  .orbit-c { width: 246px; height: 246px; margin: -123px; }
  .orbit-d { width: 260px; height: 160px; margin: -80px -130px; }
  .scene-meter { right: 0; bottom: 2%; transform: scale(.88) translateZ(90px); transform-origin: right bottom; }
  .control-deck { margin-inline: -3px; }
}
