:root {
  --ink: #16211c;
  --night: #102a43;
  --night-2: #0f1b2f;
  --teal: #14b8a6;
  --mango: #ffb703;
  --tomato: #ff5a3d;
  --lime: #b8f24a;
  --cream: #fff7de;
  --mist: #dff4ff;
  --panel: rgba(255, 247, 222, 0.08);
  --shadow: rgba(8, 16, 28, 0.28);
  font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
  color: var(--cream);
  background: var(--night-2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(184, 242, 74, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 183, 3, 0.12), transparent 24%),
    linear-gradient(180deg, #21554a 0%, #1a4e61 34%, #102a43 72%, #0f1b2f 100%);
  color: var(--cream);
}

body {
  overflow-x: hidden;
}

button,
a,
video {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

.reels-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.reels-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(15, 27, 47, 0.9);
  border-bottom: 2px solid rgba(223, 244, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.brand-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 2px solid rgba(255, 247, 222, 0.28);
  border-radius: 8px;
  background: rgba(255, 183, 3, 0.12);
  color: var(--cream);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-note,
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-note {
  color: rgba(223, 244, 255, 0.8);
}

.eyebrow {
  color: #c3f358;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid rgba(22, 33, 28, 0.92);
  border-radius: 8px;
  background: rgba(255, 247, 222, 0.94);
  color: var(--ink);
  font-weight: 800;
}

.reels-main {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  gap: 22px;
}

.reels-hero {
  display: grid;
  gap: 12px;
}

.hero-copy {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  text-wrap: balance;
}

.hero-summary,
.player-summary,
.section-copy p {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 247, 222, 0.82);
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reels-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.player-shell,
.scene-strip-shell {
  display: grid;
  gap: 14px;
}

.player-copy,
.section-copy {
  display: grid;
  gap: 8px;
}

.player-summary {
  display: grid;
  gap: 10px;
}

.player-viewport {
  border: 2px solid rgba(255, 247, 222, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(9, 18, 30, 0.84);
  box-shadow: 0 22px 52px var(--shadow);
}

.player-viewport video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070d;
}

.reel-grid {
  display: grid;
  gap: 12px;
}

.reel-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 2px solid rgba(255, 247, 222, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 183, 3, 0.08), rgba(20, 184, 166, 0.06)),
    rgba(255, 247, 222, 0.06);
  color: inherit;
  text-align: left;
}

.reel-card.active {
  border-color: rgba(255, 183, 3, 0.72);
  box-shadow: inset 0 0 0 2px rgba(255, 183, 3, 0.28);
}

.reel-card img,
.reel-poster-fallback {
  width: 110px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background:
    linear-gradient(180deg, rgba(255, 183, 3, 0.3), rgba(255, 90, 61, 0.2)),
    rgba(255, 247, 222, 0.08);
}

.reel-poster-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--cream);
}

.reel-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.reel-copy h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.card-kicker {
  color: #c3f358;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.reel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reel-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 247, 222, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.reel-copy p,
.scene-card p {
  color: rgba(255, 247, 222, 0.76);
  line-height: 1.4;
}

.scene-strip-shell {
  padding-top: 8px;
}

.scene-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.scene-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 2px solid rgba(255, 247, 222, 0.12);
  border-radius: 8px;
  background: rgba(255, 247, 222, 0.06);
}

.scene-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #05070d;
}

.review-card {
  min-height: 180px;
  align-content: space-between;
}

.review-stack {
  display: grid;
  gap: 10px;
}

.watch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.watch-row > span:first-child {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 247, 222, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.empty-copy {
  padding: 18px;
  border: 2px dashed rgba(255, 247, 222, 0.18);
  border-radius: 8px;
  color: rgba(255, 247, 222, 0.72);
}

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

@media (max-width: 760px) {
  .reels-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .reels-main {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .reel-card {
    grid-template-columns: 1fr;
  }

  .reel-card img,
  .reel-poster-fallback {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
}
