:root {
  color-scheme: light;
  --ink: #141115;
  --muted: #6d6266;
  --line: #eadfe0;
  --paper: #fff7f2;
  --panel: #ffffff;
  --rose: #ff3f6c;
  --red: #ff5a3d;
  --gold: #ffc233;
  --teal: #00a693;
  --green: #22c55e;
  --shadow: 0 22px 70px rgba(42, 24, 30, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(20, 17, 21, 0.04), transparent 260px),
    linear-gradient(135deg, rgba(255, 90, 61, 0.11), transparent 36%),
    linear-gradient(225deg, rgba(0, 166, 147, 0.08), transparent 34%),
    var(--paper);
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto auto minmax(300px, 520px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 17, 21, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
}

nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

nav a[aria-current="page"] {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 850;
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.site-search {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 42px;
  min-width: 190px;
  max-width: 300px;
  flex: 1 1 220px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-search input {
  min-width: 0;
  height: 40px;
  border: 0;
  padding: 0 12px;
  color: white;
  background: transparent;
  outline: 0;
}

.site-search input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.site-search button {
  width: 42px;
  min-height: 40px;
  border: 0;
  border-radius: 0;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 950;
}

.login-link,
.signup-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-weight: 850;
  white-space: nowrap;
}

.login-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.signup-link {
  color: white;
  background: var(--rose);
}

.user-chip {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 950;
}

.user-chip span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  font-size: 12px;
}

.user-chip:hover {
  background: rgba(255, 255, 255, 0.18);
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: none;
  width: 220px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(21, 19, 15, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.user-menu.open {
  display: block;
}

.user-menu strong,
.user-menu a {
  display: block;
}

.user-menu strong {
  margin-bottom: 8px;
  color: white;
}

.user-menu a {
  padding: 9px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 800;
}

.user-menu a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

main {
  overflow: hidden;
}

.watch-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 0.85fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  min-height: 0;
  padding: 34px clamp(18px, 6vw, 72px) 28px;
  scroll-margin-top: 92px;
  color: white;
  background:
    linear-gradient(90deg, rgba(20, 17, 21, 0.96), rgba(20, 17, 21, 0.86) 42%, rgba(54, 21, 47, 0.9)),
    radial-gradient(circle at 78% 18%, rgba(255, 194, 51, 0.35), transparent 24%);
}

.watch-copy {
  min-width: 0;
}

.watch-copy p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.52;
}

.watch-copy h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(36px, 5.3vw, 62px);
  line-height: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 14px;
}

.watch-btn,
.studio-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
}

.watch-btn {
  color: white;
  background: var(--rose);
}

.studio-link {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.genre-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 640px;
}

.genre-strip span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 850;
}

.watch-stage {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(150px, 200px);
  gap: 16px;
  align-items: end;
  justify-content: center;
  min-width: 0;
}

.watch-phone {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(25, 23, 19, 0.12);
  border-radius: 34px;
  background: #080706;
  box-shadow: var(--shadow);
}

.watch-video {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 470px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.84), transparent 62%),
    radial-gradient(circle at 28% 16%, rgba(255, 194, 51, 0.92), transparent 18%),
    radial-gradient(circle at 82% 28%, rgba(0, 166, 147, 0.78), transparent 20%),
    linear-gradient(145deg, #35152f 0%, var(--rose) 42%, var(--red) 72%, var(--gold) 100%);
  color: white;
}

.watch-video::before,
.thumb::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.watch-video::before {
  inset: auto 17% 16% 17%;
  height: 42%;
  background:
    radial-gradient(circle at 36% 19%, rgba(255, 224, 190, 0.76) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 17%, rgba(255, 219, 180, 0.74) 0 8%, transparent 9%),
    radial-gradient(ellipse at 36% 70%, rgba(17, 15, 13, 0.82) 0 20%, transparent 21%),
    radial-gradient(ellipse at 63% 71%, rgba(17, 15, 13, 0.82) 0 21%, transparent 22%),
    linear-gradient(90deg, transparent 0 28%, rgba(17, 15, 13, 0.55) 29% 44%, transparent 45% 54%, rgba(17, 15, 13, 0.52) 55% 70%, transparent 71%);
  filter: blur(0.1px);
}

.video-topline,
.player-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-topline span,
.video-topline strong {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 900;
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: center;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose);
  font-size: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.video-caption h2 {
  position: relative;
  z-index: 2;
  margin: 10px 0 8px;
  font-size: clamp(28px, 3.2vw, 36px);
}

.video-caption p {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.player-actions {
  position: absolute;
  right: 24px;
  bottom: 28px;
  flex-direction: column;
}

.player-actions button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: rgba(25, 23, 19, 0.86);
  font-weight: 950;
}

.up-next {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
}

.up-next article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.up-next span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 950;
}

.up-next strong,
.up-next p {
  display: block;
}

.up-next strong {
  margin: 8px 0 4px;
  color: var(--ink);
}

.up-next p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.video-shelf {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 8px 0 60px;
  scroll-margin-top: 92px;
}

.home-recs {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 66px;
}

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

.section-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 0 14px;
  color: white;
  background: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.watch-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 74px;
}

.watch-page-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.watch-page-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 72px);
}

.watch-page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.watch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.watch-stats span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.watch-stats strong {
  color: var(--ink);
}

.video-shelf.standalone {
  width: 100%;
  padding: 0;
}

.shelf-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.shelf-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.sort-controls {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.sort-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.sort-btn.active {
  color: white;
  background: var(--ink);
}

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

.video-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 44px rgba(48, 34, 18, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(48, 34, 18, 0.14);
}

.thumb {
  position: relative;
  display: flex;
  min-height: 270px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.74), transparent 58%),
    linear-gradient(145deg, var(--rose), var(--gold));
}

.thumb::after {
  left: 14%;
  right: 14%;
  bottom: 8%;
  height: 58%;
  background:
    radial-gradient(circle at 36% 18%, rgba(255, 224, 190, 0.88) 0 8%, transparent 9%),
    radial-gradient(circle at 64% 15%, rgba(255, 214, 174, 0.82) 0 8%, transparent 9%),
    radial-gradient(ellipse at 35% 72%, rgba(18, 16, 14, 0.88) 0 22%, transparent 23%),
    radial-gradient(ellipse at 65% 72%, rgba(18, 16, 14, 0.84) 0 23%, transparent 24%),
    linear-gradient(90deg, transparent 0 28%, rgba(18, 16, 14, 0.58) 29% 43%, transparent 44% 55%, rgba(18, 16, 14, 0.54) 56% 70%, transparent 71%);
  opacity: 0.92;
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.thumb span {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  padding: 7px 9px;
  border-radius: 8px;
  color: #111;
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.thumb button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--rose);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 950;
}

.thumb-one {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 60%),
    radial-gradient(circle at 30% 22%, rgba(255, 194, 51, 0.95), transparent 20%),
    linear-gradient(145deg, #35152f, var(--red) 58%, var(--gold));
}

.thumb-two {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 62%),
    radial-gradient(circle at 72% 18%, rgba(0, 166, 147, 0.9), transparent 22%),
    linear-gradient(145deg, #22131b, var(--rose) 52%, var(--red));
}

.thumb-three {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 62%),
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.6), transparent 18%),
    linear-gradient(145deg, var(--teal), var(--green) 48%, var(--gold));
}

.thumb-four {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 62%),
    radial-gradient(circle at 65% 24%, rgba(255, 194, 51, 0.84), transparent 18%),
    linear-gradient(145deg, #141115, var(--teal) 48%, var(--rose));
}

.thumb-five {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 62%),
    radial-gradient(circle at 34% 18%, rgba(255, 194, 51, 0.86), transparent 18%),
    linear-gradient(145deg, #51454a, var(--red) 48%, var(--paper));
}

.thumb-six {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 62%),
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.54), transparent 18%),
    linear-gradient(145deg, #35152f, var(--teal) 50%, var(--gold));
}

.thumb-seven {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 62%),
    radial-gradient(circle at 28% 22%, rgba(255, 90, 61, 0.78), transparent 18%),
    linear-gradient(145deg, #141115, var(--rose) 50%, var(--green));
}

.thumb-eight {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 62%),
    radial-gradient(circle at 62% 18%, rgba(0, 166, 147, 0.82), transparent 18%),
    linear-gradient(145deg, #050505, #141115 48%, #35152f);
}

.video-meta {
  padding: 14px;
  background: linear-gradient(180deg, white, var(--paper));
}

.video-meta h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.12;
}

.video-meta p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.video-meta strong {
  color: var(--rose);
  font-size: 13px;
}

.workspace,
.roadmap {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  scroll-margin-top: 92px;
}

.workspace {
  padding: 58px 0 68px;
}

.studio-page {
  padding-top: 48px;
}

.intro {
  max-width: 820px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.intro p:not(.eyebrow),
.preview-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.generator-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(360px, 1.14fr);
  gap: 18px;
  align-items: stretch;
}

.input-side,
.output-side {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.input-side {
  padding: 22px;
}

.output-side {
  display: flex;
  min-height: 600px;
  flex-direction: column;
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 850;
}

.icon-btn,
.copy-btn,
.tab,
.primary-btn,
.phone button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
}

.icon-btn {
  width: 42px;
  color: white;
  background: var(--teal);
  font-size: 18px;
}

.copy-btn {
  padding: 0 14px;
  color: var(--ink);
  background: #f8ede8;
  font-weight: 750;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

textarea,
select,
input[type="number"],
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdfa;
}

textarea {
  min-height: 166px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

select,
input[type="number"],
input[type="email"],
input[type="password"],
input[type="text"] {
  min-height: 44px;
  padding: 0 12px;
}

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

.toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.toggles label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.primary-btn {
  width: 100%;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--red));
  font-weight: 900;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  padding: 0 8px;
  color: var(--muted);
  background: #f8ede8;
  font-size: 13px;
  font-weight: 850;
}

.tab.active {
  color: white;
  background: var(--ink);
}

.result-card {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.result-card.active {
  display: block;
}

.result-card h3 {
  margin-bottom: 8px;
  font-size: 26px;
}

.result-card h4 {
  margin: 20px 0 8px;
  font-size: 15px;
}

.result-card p,
.result-card li,
.result-card td,
.result-card th {
  color: #4f473f;
  line-height: 1.55;
}

.result-card ul,
.result-card ol {
  padding-left: 20px;
}

.result-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.result-card th,
.result-card td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--teal);
  background: rgba(18, 128, 120, 0.12);
  font-size: 13px;
  font-weight: 850;
}

.auth-page,
.profile-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 440px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.auth-copy h1 {
  max-width: 760px;
  font-size: clamp(38px, 6.8vw, 72px);
}

.auth-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.auth-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.auth-highlights span {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.auth-card,
.profile-card,
.wallet-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-card {
  padding: 22px;
}

.auth-card h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.social-auth {
  display: grid;
  gap: 10px;
}

.facebook-btn,
.google-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.facebook-btn {
  width: 100%;
  color: white;
  background: #1877f2;
}

.google-btn {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

.google-btn img {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex: 0 0 auto;
}

.google-btn span {
  line-height: 1;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-switch a {
  color: var(--rose);
  font-weight: 900;
  text-decoration: none;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-hero h1 {
  margin-bottom: 6px;
  font-size: clamp(38px, 6vw, 68px);
}

.profile-hero p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.profile-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  font-size: 28px;
  font-weight: 950;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.wallet-card,
.profile-card {
  padding: 20px;
}

.wallet-card {
  grid-row: span 2;
  color: white;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 194, 51, 0.38), transparent 24%),
    linear-gradient(135deg, #1a1519, #35152f 54%, #201217);
}

.wallet-card .eyebrow {
  color: var(--gold);
}

.wallet-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wallet-topline h2,
.profile-card h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.wallet-topline span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #141115;
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.coin-balance {
  display: block;
  margin: 34px 0 10px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.95;
}

.wallet-card p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.coin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.secondary-btn {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.profile-card .eyebrow {
  margin-bottom: 8px;
}

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

.activity-list li {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.activity-list span {
  color: var(--muted);
  font-weight: 800;
}

.activity-list strong {
  color: var(--rose);
}

.mini-stats {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.mini-stats span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fffdfa;
  font-weight: 800;
}

.mini-stats strong {
  color: var(--ink);
}

.drama-page {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(360px, 1fr);
  gap: clamp(22px, 5vw, 64px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.drama-player-wrap {
  display: grid;
  gap: 14px;
  align-self: start;
}

.drama-player {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 640px;
  flex-direction: column;
  justify-content: space-between;
  border: 12px solid #080706;
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.86), transparent 62%),
    radial-gradient(circle at 28% 16%, rgba(255, 194, 51, 0.94), transparent 18%),
    radial-gradient(circle at 82% 28%, rgba(0, 166, 147, 0.72), transparent 20%),
    linear-gradient(145deg, #35152f 0%, var(--rose) 42%, var(--red) 72%, var(--gold) 100%);
  color: white;
  box-shadow: var(--shadow);
}

.drama-player::before {
  content: "";
  position: absolute;
  inset: auto 17% 15% 17%;
  height: 42%;
  background:
    radial-gradient(circle at 36% 19%, rgba(255, 224, 190, 0.76) 0 8%, transparent 9%),
    radial-gradient(circle at 62% 17%, rgba(255, 219, 180, 0.74) 0 8%, transparent 9%),
    radial-gradient(ellipse at 36% 70%, rgba(17, 15, 13, 0.82) 0 20%, transparent 21%),
    radial-gradient(ellipse at 63% 71%, rgba(17, 15, 13, 0.82) 0 21%, transparent 22%),
    linear-gradient(90deg, transparent 0 28%, rgba(17, 15, 13, 0.55) 29% 44%, transparent 45% 54%, rgba(17, 15, 13, 0.52) 55% 70%, transparent 71%);
  pointer-events: none;
}

.drama-player .video-caption {
  position: relative;
  z-index: 2;
}

.drama-player h1 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 0.98;
}

.drama-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.drama-actions button,
.unlock-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.drama-actions button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
}

.drama-detail {
  min-width: 0;
  align-self: start;
}

.drama-detail h2 {
  margin-bottom: 12px;
  font-size: clamp(38px, 5.5vw, 68px);
}

.drama-detail > p {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.drama-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.drama-meta span,
.drama-meta a {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.drama-meta a:hover {
  color: white;
  background: var(--ink);
}

.wallet-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 194, 51, 0.36), transparent 24%),
    linear-gradient(135deg, #171216, #35152f);
}

.wallet-strip span,
.wallet-strip strong {
  display: block;
}

.wallet-strip strong span {
  display: inline;
}

.wallet-strip span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 850;
}

.wallet-strip strong {
  margin-top: 4px;
  font-size: 26px;
}

.wallet-strip a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #141115;
  background: var(--gold);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.episode-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.section-heading small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.episode-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.episode-row > button:first-child {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdfa;
  text-align: left;
}

.episode-row.active > button:first-child {
  border-color: rgba(255, 63, 108, 0.42);
  background: rgba(255, 63, 108, 0.08);
}

.episode-row span {
  color: var(--rose);
  font-size: 13px;
  font-weight: 950;
}

.episode-row strong {
  min-width: 0;
}

.episode-row small {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.episode-row.unlocked small,
.episode-row[data-free="true"] small {
  color: var(--teal);
}

.episode-row.locked > button:first-child {
  opacity: 0.74;
}

.unlock-btn {
  min-width: 104px;
  padding: 0 14px;
  color: white;
  background: var(--rose);
}

.episode-row.unlocked .unlock-btn,
.episode-row[data-free="true"] .unlock-btn {
  display: none;
}

.follow-btn.following,
[data-follow-creator].following {
  color: var(--ink);
  background: var(--gold);
}

.creator-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.creator-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 194, 51, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 242, 0.9));
  box-shadow: var(--shadow);
}

.creator-avatar {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 22px;
  color: white;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 194, 51, 0.85), transparent 28%),
    linear-gradient(135deg, var(--teal), var(--rose));
  font-size: 34px;
  font-weight: 950;
}

.creator-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 7vw, 76px);
}

.creator-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.creator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 440px;
  margin-top: 20px;
}

.creator-actions .primary-btn {
  width: auto;
  min-width: 170px;
  padding: 0 16px;
}

.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(20, 17, 21, 0.08);
  text-decoration: none;
  font-weight: 900;
}

.creator-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 38px;
}

.creator-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.creator-stats strong,
.creator-stats span {
  display: block;
}

.creator-stats strong {
  font-size: 32px;
}

.creator-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.creator-grid-section {
  margin-top: 10px;
}

.admin-shell-body {
  background: #f6f3ef;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  background: #191417;
  color: white;
}

.admin-brand {
  color: white;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.62);
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  min-height: 40px;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.admin-nav a:hover,
.admin-nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.admin-sidebar-card span,
.admin-sidebar-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
}

.admin-main {
  min-width: 0;
  padding: 20px 24px 44px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr) auto;
  gap: 16px;
  align-items: center;
  margin: -20px -24px 22px;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
  background: rgba(246, 243, 239, 0.94);
  backdrop-filter: blur(14px);
}

.admin-topbar h1 {
  font-size: 28px;
  line-height: 1.05;
}

.admin-search {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.admin-search input {
  min-width: 0;
  border: 0;
  padding: 0 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.admin-search button,
.admin-toolbar button,
.admin-row-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.admin-search button {
  min-height: 40px;
  margin: 1px;
  color: white;
  background: var(--ink);
}

.admin-account {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.admin-account > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--rose);
  font-size: 13px;
  font-weight: 950;
}

.admin-account strong,
.admin-account small {
  display: block;
  white-space: nowrap;
}

.admin-account small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-section {
  scroll-margin-top: 92px;
  margin-bottom: 18px;
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.admin-section-head h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.admin-section-head p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-toolbar button:hover,
.admin-row-actions button:hover {
  color: white;
  background: var(--ink);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-metrics article,
.admin-data-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(30, 22, 18, 0.07);
}

.admin-metrics article {
  padding: 16px;
}

.admin-metrics span,
.admin-metrics strong,
.admin-metrics small {
  display: block;
}

.admin-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-metrics strong {
  margin: 8px 0 4px;
  font-size: 34px;
  line-height: 1;
}

.admin-metrics small {
  color: var(--rose);
  font-size: 12px;
  font-weight: 850;
}

.admin-data-card {
  overflow: hidden;
  padding: 14px;
}

.admin-user-metrics {
  margin-bottom: 12px;
}

.admin-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-module-card {
  display: grid;
  gap: 8px;
  min-height: 110px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(30, 22, 18, 0.07);
}

.admin-module-card:hover {
  border-color: rgba(255, 63, 108, 0.35);
  transform: translateY(-1px);
}

.admin-module-card span {
  color: var(--rose);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-module-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.admin-data-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.admin-table {
  display: grid;
  overflow-x: auto;
}

.admin-table > div,
.admin-list li {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 10px;
  background: white;
}

.admin-table > div:last-child,
.admin-list li:last-child {
  border-bottom: 0;
}

.admin-table > div:first-child {
  min-height: 36px;
  color: var(--muted);
  background: #fbfaf7;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-table-users > div,
.admin-table-creators > div,
.admin-table-dramas > div,
.admin-table-moderation > div {
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 1fr) minmax(90px, 0.6fr) minmax(95px, 0.6fr) minmax(110px, 0.7fr) minmax(140px, auto);
}

.admin-table-payments > div {
  grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.8fr) minmax(90px, 0.5fr) minmax(90px, 0.5fr);
}

.admin-table-ai > div {
  grid-template-columns: minmax(210px, 1fr) minmax(140px, 0.7fr) minmax(95px, 0.5fr) minmax(90px, 0.5fr) minmax(90px, 0.5fr);
}

.admin-table strong,
.admin-list strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-table span,
.admin-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-table em {
  display: inline-flex;
  min-height: 26px;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--rose);
  background: rgba(255, 63, 108, 0.09);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.admin-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  grid-template-columns: 1fr auto;
  min-height: 44px;
}

.admin-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 20;
  display: grid;
  width: min(460px, 100%);
  grid-template-rows: auto auto auto auto 1fr;
  gap: 16px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 20px;
  background: #fffdfa;
  box-shadow: -24px 0 80px rgba(20, 17, 21, 0.16);
}

.admin-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-drawer-header h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.admin-drawer-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.admin-drawer-header button,
.admin-drawer-actions button,
.admin-wallet-form button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  font-weight: 900;
}

.admin-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-drawer-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.admin-drawer-grid span,
.admin-wallet-form span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-drawer-grid strong {
  display: block;
  font-size: 22px;
}

.admin-wallet-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.admin-wallet-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fffdfa;
  font: inherit;
  font-weight: 900;
}

.admin-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-drawer-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-drawer-section h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.admin-drawer-section p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(360px, 1fr);
  gap: 12px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-settings-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-settings-grid input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 900;
}

.trend-bars {
  display: grid;
  gap: 12px;
}

.trend-bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  background: #fffdfa;
}

.trend-bars div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(255, 63, 108, 0.18), rgba(255, 194, 51, 0.18));
}

.trend-bars span,
.trend-bars strong {
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.trend-bars span {
  color: var(--ink);
}

.trend-bars strong {
  color: var(--rose);
}

.preview-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(280px, 0.62fr);
  gap: clamp(26px, 6vw, 74px);
  align-items: center;
  padding: 70px clamp(18px, 7vw, 96px);
  background: #15130f;
  color: white;
}

.preview-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 30px;
}

.metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 30px;
}

.metrics span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.phone {
  justify-self: center;
  width: min(330px, 100%);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.phone-screen {
  overflow: hidden;
  min-height: 610px;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
}

.poster-art {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 64%),
    radial-gradient(circle at 18% 18%, rgba(255, 194, 51, 0.9), transparent 22%),
    radial-gradient(circle at 78% 10%, rgba(0, 166, 147, 0.78), transparent 24%),
    linear-gradient(135deg, #35152f, var(--red) 52%, var(--gold));
  color: white;
}

.poster-badge {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 7px 9px;
  border-radius: 8px;
  color: #111;
  background: var(--gold);
  font-size: 12px;
  font-weight: 950;
}

.poster-art h3 {
  margin-bottom: 8px;
  font-size: 34px;
  line-height: 1.02;
}

.poster-art p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.episode-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.episode-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.phone button {
  width: calc(100% - 28px);
  margin: 0 14px 14px;
  color: white;
  background: var(--rose);
  font-weight: 900;
}

.roadmap {
  padding: 68px 0 80px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.roadmap article {
  min-height: 225px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.roadmap article span {
  color: var(--red);
  font-weight: 950;
}

.roadmap article h3 {
  margin: 18px 0 10px;
}

.roadmap article p {
  color: var(--muted);
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  transition: 180ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #15130f;
  color: white;
}

.site-footer .brand {
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

@media (max-width: 940px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .top-actions {
    justify-content: stretch;
  }

  .watch-hero,
  .watch-stage,
  .video-grid,
  .featured-grid,
  .generator-panel,
  .preview-band,
  .auth-page,
  .profile-grid,
  .drama-page,
  .creator-hero,
  .creator-stats,
  .admin-metrics,
  .admin-split,
  .admin-settings-grid,
  .admin-module-grid,
  .roadmap-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-sidebar-card {
    margin-top: 0;
  }

  .admin-topbar {
    grid-template-columns: 1fr;
  }

  .admin-account {
    justify-self: start;
  }

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

  .watch-stage {
    justify-items: center;
  }

  .up-next {
    width: min(360px, 100%);
  }

  .output-side {
    min-height: 520px;
  }

  .roadmap article {
    min-height: auto;
  }

  .wallet-card {
    grid-row: auto;
  }

  .drama-player-wrap {
    justify-self: center;
    width: min(430px, 100%);
  }

  .thumb {
    min-height: 340px;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    gap: 12px;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    text-align: center;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 44px;
    width: 100%;
  }

  .user-menu {
    right: 0;
    left: 0;
    width: 100%;
  }

  .site-search {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  .login-link {
    background: rgba(255, 255, 255, 0.08);
  }

  .signup-link {
    padding: 0 8px;
  }

  .workspace {
    padding-top: 34px;
  }

  .auth-page,
  .profile-page,
  .creator-page,
  .admin-page,
  .drama-page {
    padding: 34px 0 54px;
  }

  .admin-heading {
    display: grid;
  }

  .admin-heading h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .admin-heading p:not(.eyebrow) {
    font-size: 15px;
  }

  .admin-live {
    justify-self: start;
  }

  .admin-main {
    padding: 14px 12px 34px;
  }

  .admin-topbar {
    margin: -14px -12px 18px;
    padding: 14px 12px;
  }

  .admin-section-head {
    display: grid;
    align-items: start;
  }

  .admin-toolbar {
    justify-content: flex-start;
  }

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

  .admin-table > div,
  .admin-table-users > div,
  .admin-table-creators > div,
  .admin-table-dramas > div,
  .admin-table-moderation > div,
  .admin-table-payments > div,
  .admin-table-ai > div {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 10px;
  }

  .admin-table > div:first-child {
    display: none;
  }

  .admin-row-actions {
    justify-content: stretch;
  }

  .admin-row-actions button,
  .admin-table button {
    width: 100%;
  }

  .auth-copy h1,
  .profile-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .auth-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .auth-card,
  .profile-card,
  .wallet-card {
    padding: 16px;
  }

  .profile-hero {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    font-size: 22px;
  }

  .creator-hero {
    padding: 16px;
  }

  .creator-avatar {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    font-size: 24px;
  }

  .creator-copy h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .creator-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .creator-actions {
    display: grid;
    max-width: none;
  }

  .creator-actions .primary-btn,
  .secondary-link {
    width: 100%;
  }

  .wallet-topline,
  .coin-actions {
    grid-template-columns: 1fr;
  }

  .wallet-topline {
    display: grid;
  }

  .wallet-topline span {
    justify-self: start;
  }

  .coin-balance {
    font-size: clamp(42px, 14vw, 58px);
  }

  .drama-player {
    min-height: 560px;
    border-width: 10px;
    padding: 16px;
  }

  .drama-player h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .drama-actions {
    grid-template-columns: 1fr;
  }

  .drama-detail h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .drama-detail > p {
    font-size: 15px;
  }

  .wallet-strip,
  .episode-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wallet-strip a {
    width: 100%;
  }

  .episode-row > button:first-child {
    grid-template-columns: 48px 1fr;
  }

  .episode-row small {
    grid-column: 2;
  }

  .unlock-btn {
    width: 100%;
  }

  .watch-page {
    padding: 28px 0 54px;
  }

  .home-recs {
    padding: 38px 0 46px;
  }

  .watch-page-heading {
    margin-bottom: 22px;
  }

  .watch-page-heading h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .watch-page-heading p:not(.eyebrow) {
    font-size: 15px;
  }

  .watch-hero {
    gap: 22px;
    padding: 24px 18px 24px;
  }

  .watch-copy h1 {
    font-size: clamp(28px, 9.2vw, 36px);
    line-height: 1.02;
  }

  .watch-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  .genre-strip,
  .up-next {
    display: none;
  }

  .watch-btn,
  .studio-link {
    width: 100%;
  }

  .video-shelf {
    padding-top: 4px;
    padding-bottom: 48px;
  }

  .watch-phone {
    width: min(260px, 100%);
  }

  .watch-video {
    min-height: 260px;
    padding: 14px;
  }

  .video-caption h2 {
    font-size: 24px;
  }

  .video-caption p {
    display: none;
  }

  .player-actions {
    right: 18px;
    bottom: 20px;
  }

  .player-actions button {
    width: 38px;
    height: 38px;
  }

  .shelf-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-link {
    width: 100%;
  }

  .sort-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .sort-btn {
    padding: 0 8px;
    font-size: 13px;
  }

  .video-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-right: -18px;
    padding: 0 18px 8px 0;
    scroll-snap-type: x mandatory;
  }

  .video-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .thumb {
    min-height: 310px;
  }

  .control-grid,
  .toggles,
  .tabs,
  .metrics {
    grid-template-columns: 1fr;
  }

  .input-side,
  .output-side {
    padding: 14px;
  }

  .preview-band {
    padding: 48px 18px;
  }

  .phone-screen {
    min-height: 560px;
  }
}
