:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --bg-soft: #15171b;
  --panel: #1d2026;
  --panel-strong: #272b33;
  --line: #373c46;
  --text: #f8f4ee;
  --muted: #bab4aa;
  --subtle: #8d95a0;
  --accent: #ff5368;
  --accent-strong: #ff7889;
  --mint: #45d3aa;
  --gold: #efc35a;
  --sky: #65a7ff;
  --danger: #ff704d;
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hidden {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 430px);
  background: linear-gradient(180deg, #0d0f12 0%, #15171b 100%);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  border-right: 1px solid var(--line);
  background: #101216;
}

.poster-strip {
  position: absolute;
  width: 34%;
  height: 118%;
  top: -9%;
  transform: rotate(-8deg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px var(--shadow);
}

.poster-strip-a {
  left: 8%;
  background:
    linear-gradient(150deg, rgba(255, 83, 104, 0.78), transparent 46%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 30px),
    #24242a;
}

.poster-strip-b {
  left: 36%;
  background:
    linear-gradient(140deg, rgba(69, 211, 170, 0.72), transparent 42%),
    radial-gradient(circle at 48% 26%, rgba(255, 255, 255, 0.16), transparent 22%),
    #1d2523;
}

.poster-strip-c {
  left: 64%;
  background:
    linear-gradient(160deg, rgba(239, 195, 90, 0.72), transparent 44%),
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.12) 48% 52%, transparent 52%),
    #26241d;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  background: var(--bg-soft);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 4.2rem;
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101216;
}

.switch-button,
.tab,
.ghost-button,
.primary-button,
.danger-button,
.brand-button,
.reset-button,
.profile-button,
.icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--panel);
}

.switch-button.active,
.tab.active {
  background: var(--text);
  border-color: var(--text);
  color: #15171b;
}

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

.field,
.search-field {
  display: grid;
  gap: 7px;
}

.field span,
.search-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101216;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(69, 211, 170, 0.14);
}

.primary-button {
  margin-top: 8px;
  border-color: var(--accent);
  background: var(--accent);
  color: #26080c;
  font-weight: 900;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.danger-button {
  border-color: rgba(255, 112, 77, 0.55);
  background: rgba(255, 112, 77, 0.14);
  color: #ffd8cf;
  font-weight: 800;
}

.ghost-button,
.reset-button,
.brand-button {
  background: transparent;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.form-message.success {
  color: var(--mint);
}

.seed-box {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.82rem;
}

.seed-box p {
  margin-bottom: 5px;
}

.app-shell {
  min-height: 100vh;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 14px 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 18, 0.96);
  backdrop-filter: blur(14px);
}

.brand-button {
  min-width: 118px;
  border-color: transparent;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 950;
  text-align: left;
}

.tabs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tab {
  min-width: 108px;
  padding: 0 14px;
}

.icon-button {
  position: relative;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.icon-button.active,
.icon-button:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: var(--panel-strong);
}

.search-icon::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  top: 11px;
  left: 11px;
  border: 2px solid var(--text);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 2px;
  top: 26px;
  left: 24px;
  background: var(--text);
  transform: rotate(45deg);
  transform-origin: left center;
}

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

.country-pill {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
}

.country-pill span {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.country-pill strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1;
}

.profile-menu {
  position: relative;
}

.profile-button {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 190px;
  padding: 5px 12px 5px 6px;
  text-align: left;
}

.profile-initial {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent);
  color: #26080c;
  font-weight: 950;
}

.profile-copy {
  display: grid;
  gap: 2px;
}

.profile-copy span {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
}

.profile-copy strong {
  color: var(--subtle);
  font-size: 0.68rem;
  line-height: 1;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  width: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 23, 27, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.profile-menu-item {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
  border-color: var(--line);
  background: var(--panel);
}

.profile-logout {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: #ffd8cf;
}

.search-bar {
  position: sticky;
  top: 72px;
  z-index: 25;
  padding: 12px 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 23, 27, 0.98);
}

.search-bar .search-field {
  max-width: 520px;
}

.home-view,
.catalog-view,
.account-view,
.admin-view {
  min-width: 0;
}

.hero-carousel {
  min-height: 58vh;
  background: #101216;
}

.hero-slide {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 58vh;
  padding: 48px 36px 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  outline: none;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.96;
  z-index: 0;
}

.hero-slide::after,
.detail-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 15, 18, 0.96) 0%, rgba(13, 15, 18, 0.72) 45%, rgba(13, 15, 18, 0.18) 100%),
    linear-gradient(180deg, transparent 0%, rgba(13, 15, 18, 0.88) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 710px;
}

.hero-copy h1,
.detail-content h1 {
  margin-bottom: 16px;
  font-size: 4.1rem;
}

.hero-synopsis,
.detail-synopsis {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-button {
  min-width: 118px;
  margin-top: 22px;
  padding: 0 22px;
}

.hero-controls {
  position: absolute;
  right: 36px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
}

.arrow-button {
  font-weight: 900;
}

.hero-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
}

.hero-dot.active {
  background: var(--text);
}

.content-sections {
  display: grid;
  gap: 30px;
  padding: 30px 36px 56px;
}

.content-row {
  display: grid;
  gap: 14px;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.row-heading h2 {
  font-size: 1.45rem;
}

.title-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 205px;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scroll-snap-type: inline mandatory;
}

.catalog-view,
.account-view,
.admin-view {
  padding: 34px 36px 56px;
}

.page-heading,
.account-header,
.admin-header {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.account-panel {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.account-panel h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.account-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.account-details div {
  display: grid;
  gap: 4px;
}

.account-details dt,
.panel-copy {
  color: var(--subtle);
  font-size: 0.84rem;
}

.account-details dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.account-form {
  display: grid;
  gap: 12px;
}

.account-action {
  width: fit-content;
  min-width: 170px;
  padding: 0 16px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.episode-browser {
  display: grid;
  gap: 16px;
  padding: 0 36px 34px;
}

.episode-browser-header {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.episode-browser-header h2 {
  font-size: 1.5rem;
}

.season-select {
  display: grid;
  gap: 7px;
  min-width: 180px;
}

.season-select span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.season-select select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.episode-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
}

.episode-button:hover,
.episode-button.active {
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--panel-strong);
}

.episode-code {
  display: grid;
  place-items: center;
  min-width: 66px;
  min-height: 38px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 900;
}

.episode-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.episode-copy strong,
.episode-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-copy span {
  color: var(--subtle);
  font-size: 0.82rem;
}

.title-card {
  display: grid;
  grid-template-rows: 270px auto;
  min-height: 382px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.title-card.compact-card {
  grid-template-rows: minmax(318px, 1fr) auto;
  min-height: 318px;
}

.title-card.compact-card .poster {
  min-height: 318px;
}

.compact-progress-footer {
  height: 8px;
  padding: 0;
  background: #08090a;
}

.compact-progress-footer .progress-track {
  height: 100%;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
}

.compact-progress-footer .progress-track span {
  border-radius: 0;
}

.title-card:hover,
.title-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

.poster {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 270px;
  padding: 16px;
  overflow: hidden;
  background: #242833;
}

.poster::before,
.poster-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.82) 0 3px, transparent 4px),
    linear-gradient(135deg, #262b35, #171a20);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.72) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 24px);
}

.poster-image,
.backdrop-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-image {
  opacity: 0.98;
}

.backdrop-image {
  opacity: 0.82;
}

.poster-title {
  position: relative;
  z-index: 2;
  max-width: 100%;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.poster-backdrop.orbit::before {
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 40%, rgba(69, 211, 170, 0.95), transparent 24%),
    linear-gradient(150deg, #111820, #253b37 52%, #121417);
}

.poster-backdrop.skyline::before {
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.12) 13% 15%, transparent 16% 29%, rgba(255, 255, 255, 0.13) 30% 32%, transparent 33%),
    linear-gradient(145deg, #111721, #21445f 48%, #15171b);
}

.poster-backdrop.harbor::before {
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.18) 47% 51%, transparent 52%),
    linear-gradient(160deg, #20242a, #2e4652 55%, #0f1216);
}

.poster-backdrop.ember::before {
  background:
    radial-gradient(circle at 72% 34%, rgba(239, 195, 90, 0.92), transparent 18%),
    linear-gradient(140deg, #241616, #573028 48%, #16181d);
}

.poster-backdrop.northstar::before {
  background:
    radial-gradient(circle at 52% 24%, rgba(239, 195, 90, 0.95) 0 4px, transparent 5px),
    linear-gradient(135deg, #181b22, #373126 52%, #15171b);
}

.poster-backdrop.violet::before {
  background:
    linear-gradient(120deg, rgba(255, 83, 104, 0.82), transparent 38%),
    linear-gradient(155deg, #231821, #352849 54%, #15171b);
}

.poster-backdrop.field::before {
  background:
    linear-gradient(135deg, rgba(69, 211, 170, 0.78), transparent 42%),
    linear-gradient(180deg, #16241d, #30392a);
}

.poster-backdrop.afterimage::before {
  background:
    linear-gradient(90deg, rgba(239, 195, 90, 0.82), transparent 35%),
    linear-gradient(140deg, #1a171b, #462630 54%, #15171b);
}

.poster-backdrop.ridge::before {
  background:
    linear-gradient(150deg, rgba(101, 167, 255, 0.72), transparent 42%),
    linear-gradient(180deg, #141922, #2f3b31 56%, #111318);
}

.poster-backdrop.signal::before {
  background:
    repeating-linear-gradient(90deg, rgba(69, 211, 170, 0.18) 0 2px, transparent 2px 44px),
    linear-gradient(135deg, #101318, #263144 52%, #111318);
}

.poster-backdrop.lab::before {
  background:
    radial-gradient(circle at 28% 32%, rgba(69, 211, 170, 0.9), transparent 18%),
    radial-gradient(circle at 72% 55%, rgba(239, 195, 90, 0.84), transparent 16%),
    linear-gradient(155deg, #15191b, #25312e);
}

.title-copy {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.detail-view {
  min-height: calc(100vh - 72px);
}

.detail-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.1fr);
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 46px 36px;
  overflow: hidden;
}

.detail-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.detail-content,
.detail-artwork {
  position: relative;
  z-index: 2;
}

.back-button {
  min-width: 88px;
  margin-bottom: 24px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.watch-button {
  min-width: 132px;
  padding: 0 20px;
}

.detail-artwork {
  justify-self: end;
  width: min(100%, 360px);
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050607;
}

.watch-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.watch-video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.watch-topbar,
.watch-bottom-controls {
  position: absolute;
  z-index: 2;
}

.watch-topbar {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent);
}

.watch-heading {
  display: grid;
  gap: 3px;
}

.watch-topbar strong {
  font-size: 1rem;
}

.watch-episode-title {
  color: var(--muted);
  font-size: 0.84rem;
}

.watch-icon-button,
.watch-control-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.watch-icon-button {
  width: 42px;
  height: 42px;
}

.watch-icon-button img,
.watch-control-button img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.95;
}

.watch-control-button {
  width: 42px;
  height: 42px;
}

.watch-play-toggle img {
  width: 18px;
  height: 18px;
}

.watch-icon-button:hover,
.watch-control-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.watch-bottom-controls {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 34px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.watch-control-rail {
  display: grid;
  grid-template-columns: auto auto auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(10, 10, 12, 0.48);
  backdrop-filter: blur(16px);
}

.watch-timeline {
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent);
}

.watch-time {
  min-width: 116px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.cast-list,
.attribution {
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
  line-height: 1.5;
}

.attribution {
  padding: 0 36px 26px;
}

.analytics-table {
  display: grid;
  gap: 10px;
}

.analytics-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(70px, 0.3fr) repeat(4, minmax(82px, 0.45fr)) minmax(130px, 0.8fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.analytics-row.header {
  min-height: 44px;
  color: var(--subtle);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: transparent;
}

.metric {
  display: grid;
  gap: 3px;
}

.metric strong {
  font-size: 1rem;
}

.metric span {
  color: var(--subtle);
  font-size: 0.72rem;
}

.reset-button {
  min-width: 78px;
  min-height: 36px;
}

.empty-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #14171b;
  color: var(--text);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

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

@media (max-width: 1080px) {
  h1,
  .hero-copy h1,
  .detail-content h1 {
    font-size: 3rem;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tabs,
  .account-cluster {
    width: 100%;
  }

  .account-cluster {
    justify-content: start;
  }

  .search-bar {
    top: 164px;
  }

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

  .detail-artwork {
    justify-self: start;
    width: min(100%, 300px);
    min-height: 430px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .analytics-row {
    grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(82px, 0.45fr));
  }

  .analytics-row.header {
    display: none;
  }
}

@media (max-width: 760px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .poster-strip {
    height: 150%;
    top: -25%;
  }

  .auth-panel,
  .topbar,
  .search-bar,
  .hero-slide,
  .content-sections,
  .catalog-view,
  .admin-view,
  .episode-browser,
  .detail-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1,
  .hero-copy h1,
  .detail-content h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 42px;
  }

  .tab {
    min-width: 0;
  }

  .account-cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .account-cluster > .ghost-button {
    grid-column: 1 / -1;
  }

  .profile-button {
    width: 100%;
  }

  .profile-dropdown {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 36px));
    transform-origin: top left;
  }

  .hero-slide,
  .hero-carousel {
    min-height: 520px;
  }

  .hero-controls {
    right: 18px;
    bottom: 18px;
  }

  .title-row {
    grid-auto-columns: 178px;
  }

  .title-card {
    grid-template-rows: 235px auto;
  }

  .title-card.compact-card {
    grid-template-rows: minmax(270px, 1fr) auto;
    min-height: 270px;
  }

  .poster {
    min-height: 235px;
  }

  .title-card.compact-card .poster {
    min-height: 270px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .search-bar {
    top: 204px;
  }

  .episode-browser-header {
    align-items: stretch;
    flex-direction: column;
  }

  .season-select {
    min-width: 0;
  }

  .episode-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tabs {
    grid-template-columns: 1fr 1fr 42px;
  }

  .tabs .tab.hidden {
    display: none !important;
  }

  .account-cluster {
    grid-template-columns: 1fr;
  }

  .watch-bottom-controls {
    padding: 22px 18px;
  }

  .watch-control-rail {
    grid-template-columns: auto auto auto 1fr;
    gap: 8px;
  }

  .watch-control-button {
    width: 38px;
    height: 38px;
  }

  .watch-time {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }

  .hero-slide {
    min-height: 560px;
    padding-bottom: 76px;
  }

  .hero-controls {
    left: 18px;
    right: auto;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .title-row {
    grid-auto-columns: 78vw;
  }

  .analytics-row {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-row .reset-button {
    grid-column: 1 / -1;
  }
}

/* ========================================================================== 
   ZOWA / NOIR — 2026 premium storefront redesign
   True black canvas, vertical artwork, responsive cinematic layouts.
   Existing player, authentication, account, and analytics styles are retained.
   ========================================================================== */
:root {
  --bg: #000000;
  --bg-soft: #060606;
  --panel: #101114;
  --panel-strong: #1b1c20;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f8f8f8;
  --muted: #c6c6c9;
  --subtle: #909095;
  --accent: #ffffff;
  --accent-strong: #e8e8e8;
  --mint: #e2e2e2;
  --gold: #e4bb80;
}
html { background: #000; scroll-behavior: smooth; }
body { background: #000; color: #f8f8f8; letter-spacing: -.012em; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.app-shell { background: #000; }
.hidden { display: none !important; }

/* Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 76px;
  gap: clamp(24px, 3.4vw, 64px);
  align-items: center;
  padding: 12px clamp(24px, 3.6vw, 76px);
  border: 0;
  background: rgba(0, 0, 0, .94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 24px rgba(0,0,0,.38);
}
.topbar::after {
  content: '';
  position: absolute;
  left: 4%; right: 4%; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09) 18%, rgba(255,255,255,.09) 82%, transparent);
  pointer-events: none;
}
.brand-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  letter-spacing: .33em;
  font-size: .98rem;
  font-weight: 780;
  white-space: nowrap;
}
.brand-button:hover { opacity: .84; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  filter: drop-shadow(0 0 11px rgba(255,255,255,.15));
}
.tabs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tab {
  min-width: auto;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #c8c8ca;
  font-size: .90rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.085); }
.tab.active {
  color: #fff;
  background: linear-gradient(180deg, #2b2c30, #18191b);
  border-color: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}
.header-tools { display: flex; gap: 18px; align-items: center; margin-left: auto; min-width: 0; }
.search-bar, .search-bar .search-field {
  display: block;
  position: static;
  top: auto;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.search-bar { width: clamp(190px, 18.2vw, 300px); flex-shrink: 1; }
.search-bar .search-field { position: relative; max-width: none; }
.search-bar .search-field svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: #c5c5c9;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-bar input {
  min-height: 43px;
  padding: 0 18px 0 45px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 99px;
  background: #18191c;
  color: #f5f5f6;
  font-size: .81rem;
  box-shadow: none;
  transition: background .2s ease, border-color .2s ease;
}
.search-bar input::placeholder { color: #a2a2a7; }
.search-bar input:focus { background: #222327; border-color: rgba(255,255,255,.35); box-shadow: none; }
.search-bar input::-webkit-search-cancel-button { cursor: pointer; }
.search-icon { display: none; }
.account-cluster { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.country-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #96969a;
}
.country-pill strong { color: #9e9ea4; font-size: .73rem; font-weight: 650; letter-spacing: .1em; }
.region-dot { width: 6px; height: 6px; background: #91bda3; border-radius: 50%; box-shadow: 0 0 0 3px rgba(145,189,163,.10); }
.profile-menu { flex: 0 0 auto; }
.profile-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 3px;
  border: 0;
  border-radius: 40px;
  background: transparent;
}
.profile-initial {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.29);
  border-radius: 50%;
  background: radial-gradient(circle at 28% 23%, #60636d, #282b35 48%, #131319);
  color: #fff;
  font-size: .92rem;
  font-weight: 750;
}
.profile-chevron { width: 7px; height: 7px; border-right: 1.5px solid #d0d0d2; border-bottom: 1.5px solid #d0d0d2; transform: rotate(45deg) translateY(-2px); }
.profile-dropdown {
  width: 250px;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: #121215;
  box-shadow: 0 24px 80px rgba(0,0,0,.75);
}
.profile-dropdown-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 12px 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.profile-dropdown-header span { color: #9e9ea4; font-size: .70rem; letter-spacing: .08em; }
.profile-menu-item { border-radius: 9px; }

/* Feature module — backdrop-led hero with a cinematic landscape visual. */
.home-view, .hero-carousel { background: #000; }
.hero-carousel { min-height: 500px; }
.hero-slide {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 1.08fr);
  align-items: center;
  min-height: 540px;
  gap: clamp(28px, 4.4vw, 72px);
  padding: 32px clamp(24px, 5.3vw, 98px) 38px;
  border-bottom: 0;
  background: #000;
  overflow: hidden;
}
.hero-slide::before, .hero-slide::after { display: none; }
.hero-ambient {
  position: absolute;
  inset: -12% -6%;
  z-index: -1;
  opacity: .44;
  filter: blur(40px) saturate(.92);
  pointer-events: none;
}
.hero-ambient .backdrop-image { object-fit: cover; opacity: .7; }
.hero-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #000 0%, rgba(0,0,0,.84) 28%, rgba(0,0,0,.60) 52%, rgba(0,0,0,.70) 76%, #000 100%),
    linear-gradient(0deg, #000 0%, transparent 24%, rgba(0,0,0,.42) 100%);
}
.hero-copy { z-index: 2; max-width: 740px; padding: 20px 0 30px; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; color: #dbdbde; font-size: .71rem; font-weight: 650; letter-spacing: .29em; }
.hero-eyebrow-line { display: inline-block; width: 23px; height: 2px; background: #fff; }
.hero-copy h1 {
  max-width: 700px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(3rem, 4.7vw, 5.5rem);
  font-weight: 640;
  letter-spacing: -.058em;
  line-height: 1.04;
  text-wrap: balance;
  text-shadow: 0 10px 45px rgba(0,0,0,.35);
}
.hero-meta { gap: 10px; align-items: center; }
.hero-meta .pill {
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  color: #dadade;
  font-size: .76rem;
  font-weight: 500;
}
.hero-synopsis {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-width: 520px;
  margin: 20px 0 0;
  color: #c7c7cb;
  font-size: clamp(.92rem, 1.05vw, 1.05rem);
  font-weight: 400;
  line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.hero-actions .hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  min-width: 150px;
  margin: 0;
  padding: 0 24px;
  border-radius: 12px;
  font-size: .91rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}
.hero-button:hover { transform: translateY(-2px); }
.hero-actions .primary-button { background: #fff; color: #090909; border-color: #fff; box-shadow: 0 4px 34px rgba(255,255,255,.18); }
.hero-actions .primary-button:hover { background: #e9e9e9; }
.hero-actions .hero-info-button { background: rgba(38,39,43,.86); color: #fff; border-color: rgba(255,255,255,.1); }
.hero-info-button:hover { background: #333438; }
.action-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.action-icon svg { width: 21px; height: 21px; }
.hero-save-button {
  display: inline-grid;
  place-items: center;
  width: 50px;
  min-height: 50px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(38,39,43,.6);
  color: #fff;
}
.hero-save-button:hover { background: #27282c; border-color: rgba(255,255,255,.52); }
.hero-footnote { color: #88898e; font-size: .67rem; letter-spacing: .2em; margin: 24px 0 0; }
.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  height: 100%;
}
.hero-backdrop-halo {
  position: absolute;
  inset: 9% 4% 12%;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.14), rgba(255,255,255,.02) 48%, transparent 72%);
  filter: blur(42px);
  pointer-events: none;
}
.hero-feature-backdrop {
  position: relative;
  display: grid;
  place-items: end start;
  width: min(100%, 760px);
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #131417;
  box-shadow: 0 0 0 1px rgba(255,255,255,.03), 0 34px 110px rgba(0,0,0,.68), 0 0 75px rgba(255,255,255,.05);
  text-align: left;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.hero-feature-backdrop:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 38px 118px rgba(0,0,0,.78), 0 0 80px rgba(255,255,255,.08);
}
.hero-feature-backdrop .backdrop-image,
.hero-feature-backdrop .poster-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-feature-backdrop.poster-fallback-mode .poster-image { object-position: center top; }
.hero-feature-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,.22) 0%, transparent 40%, rgba(0,0,0,.10) 100%);
  pointer-events: none;
}
.hero-feature-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 26px;
}
.hero-feature-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.34);
  color: rgba(255,255,255,.88);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-feature-title {
  max-width: min(70%, 430px);
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2.1rem);
  font-weight: 680;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.hero-poster-fallback {
  position: relative;
  z-index: 2;
  padding: 26px;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0,0,0,.8);
}
.hero-feature-backdrop.has-backdrop-image .hero-poster-fallback,
.hero-feature-backdrop.has-poster-image .hero-poster-fallback { display: none; }
.hero-controls { position: absolute; z-index: 5; right: clamp(24px, 5vw, 90px); bottom: 24px; gap: 13px; }
.hero-controls .arrow-button {
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(25,25,28,.7);
  color: #dadadd;
  font-size: 1.5rem;
  line-height: .5;
}
.hero-controls .arrow-button:hover { background: #36363b; }
.hero-dots { gap: 7px; }
.hero-dot { width: 7px; height: 7px; background: rgba(255,255,255,.32); border: 0; transition: width .2s ease, background .2s ease; }
.hero-dot.active { width: 23px; border-radius: 99px; background: #fff; }
.home-view.searching .hero-carousel { display: none; }

/* Movie shelves and portrait poster cards */
.content-sections { display: grid; gap: 33px; padding: 8px clamp(24px, 3.6vw, 76px) 80px; }
.content-row { gap: 15px; min-width: 0; }
.row-heading { justify-content: flex-start; gap: 10px; align-items: center; }
.row-heading h2 { font-size: clamp(1.05rem, 1.28vw, 1.45rem); font-weight: 680; letter-spacing: -.028em; }
.row-chevron { display: inline-flex; color: #c0c0c4; transition: transform .2s ease; }
.row-chevron .action-icon svg { width: 17px; height: 17px; }
.title-row { grid-auto-columns: clamp(150px, 11.65vw, 206px); gap: clamp(10px, 1.05vw, 18px); padding: 2px 1px 12px; scrollbar-width: thin; scrollbar-color: #323236 transparent; }
.title-row::-webkit-scrollbar { height: 5px; }
.title-row::-webkit-scrollbar-thumb { background: #303035; border-radius: 10px; }
.title-card, .title-card.compact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  background: #080809;
  color: #fff;
  box-shadow: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.title-card:hover, .title-card:focus-visible { transform: translateY(-5px); border-color: rgba(255,255,255,.53); box-shadow: 0 16px 42px rgba(0,0,0,.8); }
.poster, .title-card.compact-card .poster {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: start;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2 / 3;
  padding: 13px;
  background: #171719;
}
.poster::after { background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.76) 100%); }
.poster-image { opacity: 1; transition: transform .4s ease; }
.title-card:hover .poster-image { transform: scale(1.06); }
.poster-title { z-index: 2; font-size: clamp(.97rem, 1.05vw, 1.27rem); font-weight: 760; line-height: 1.08; text-shadow: 0 4px 15px #000; }
.poster.has-poster-image .poster-title { display: none; }
.card-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,.46);
  color: #fff;
  opacity: 0;
  font-size: .86rem;
  font-weight: 700;
  transition: opacity .18s ease;
}
.title-card:hover .card-hover-overlay, .title-card:focus-visible .card-hover-overlay { opacity: 1; }
.card-hover-overlay .action-icon { width: 38px; height: 38px; border-radius: 50%; color: #000; background: #fff; }
.card-hover-overlay .action-icon svg { width: 20px; height: 20px; }
.compact-progress-footer { width: 100%; height: 5px; }
.title-copy { gap: 11px; padding: 14px 14px 16px; }
.title-copy h3 { font-size: .98rem; font-weight: 650; margin: 0; }
.title-copy .pill { border-radius: 5px; font-size: .67rem; font-weight: 500; padding: 3px 6px; }
.catalog-view, .account-view, .admin-view { padding: 58px clamp(24px, 3.6vw, 76px) 90px; }
.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 22px 16px; }
.catalog-grid .title-card { align-self: start; }
.page-heading, .account-header, .admin-header { margin-bottom: 29px; }
.page-heading h2, .account-header h2, .admin-header h2 { font-size: clamp(2rem, 3vw, 3.7rem); font-weight: 650; letter-spacing: -.045em; }
.page-heading-hint { color: #8e8e94; font-size: .85rem; }
.eyebrow { letter-spacing: .19em; color: #bbb; }
.empty-message { padding: 32px 0; max-width: 600px; color: #a2a2a7; }

/* Details pages use the same premium portrait-first visual language */
.detail-view { background: #000; }
.detail-shell {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: clamp(36px, 7vw, 110px);
  padding: 65px clamp(24px, 6vw, 110px);
  background: #000;
}
.detail-shell::after { background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 54%, rgba(0,0,0,.3) 100%), linear-gradient(0deg, #000, transparent 40%, #000); }
.detail-shell .backdrop-image { opacity: .17; filter: blur(25px); }
.detail-content { max-width: 740px; }
.detail-content h1 { font-size: clamp(2.9rem, 4.5vw, 5.4rem); line-height: 1.04; letter-spacing: -.052em; font-weight: 650; }
.detail-artwork { width: min(100%, 360px); min-height: 0; aspect-ratio: 2/3; border-radius: 14px; box-shadow: 0 28px 90px #000, 0 0 0 5px rgba(255,255,255,.035); }
.detail-actions { flex-wrap: wrap; }
.detail-save-button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 19px; border-radius: 10px; }
.detail-content .primary-button { padding: 0 25px; min-height: 46px; border-radius: 10px; }
.detail-content .primary-button:hover { background: #e5e5e5; }
.detail-content .pill { border-radius: 6px; font-weight: 550; }
.back-button { border-radius: 10px; }

/* Account, management & login */
.account-panel { border-radius: 14px; padding: 22px; background: #101013; }
.account-panel .primary-button { color: #090909; }
.auth-screen { background: #000; }
.auth-visual { border-color: rgba(255,255,255,.08); background: #08080a; }
.poster-strip { border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 15px 80px #000; }
.poster-strip-a { background-image: linear-gradient(0deg, rgba(0,0,0,.42), transparent), url('/posters/inside-out.jpg'); }
.poster-strip-b { background-image: linear-gradient(0deg, rgba(0,0,0,.42), transparent), url('/posters/the-intern.webp'); }
.poster-strip-c { background-image: linear-gradient(0deg, rgba(0,0,0,.42), transparent), url('/posters/spider-man-into-the-spider-verse.jpg'); }
.auth-panel { background: #050505; }
.auth-panel h1 { font-size: 3.3rem; letter-spacing: -.055em; }
.auth-panel .eyebrow { color: #fff; letter-spacing: .3em; }
.auth-switch { border-radius: 12px; background: #101013; }
.auth-form input, .account-form input { border-radius: 9px; background: #151518; }
.auth-form .primary-button, .account-form .primary-button { min-height: 48px; color: #080808; border-radius: 9px; }
.seed-box { opacity: .6; }

/* Tablet / small laptop */
@media (max-width: 1280px) {
  .topbar { gap: 19px; }
  .brand-button { font-size: .85rem; letter-spacing: .22em; }
  .brand-mark { width: 29px; height: 29px; flex-basis: 29px; }
  .tabs { gap: 3px; }
  .tab { padding: 0 10px; font-size: .84rem; }
  .header-tools { gap: 9px; }
  .account-cluster { gap: 7px; }
  .hero-feature-backdrop { width: min(100%, 700px); }
}
@media (max-width: 980px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-rows: 49px auto;
    min-height: 118px;
    gap: 5px 15px;
    padding: 10px 23px 12px;
  }
  .topbar .brand-button { grid-column: 1; grid-row: 1; width: max-content; }
  .topbar .tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; display: flex; overflow-x: auto; scrollbar-width: none; }
  .topbar .tabs::-webkit-scrollbar { display: none; }
  .topbar .header-tools { grid-column: 2; grid-row: 1; }
  .topbar .search-bar { display: none; position: absolute; z-index: 35; top: calc(100% + 4px); left: 16px; width: calc(100% - 32px); padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: #101013; box-shadow: 0 16px 40px rgba(0,0,0,.65); }
  .topbar .search-bar.mobile-open { display: block; }
  .search-icon { display: inline-block; flex: 0 0 40px; background: transparent; border: 0; }
  .search-icon:hover, .search-icon.active { background: #212126; }
  .search-icon::before { top: 11px; left: 10px; }
  .search-icon::after { left: 23px; }
  .hero-slide { grid-template-columns: minmax(0,1fr) minmax(300px,1.02fr); gap: 28px; min-height: 500px; padding-top: 30px; padding-bottom: 30px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 5vw, 3.8rem); }
  .hero-feature-backdrop { width: min(100%, 620px); }
  .hero-controls { bottom: 13px; }
  .title-row { grid-auto-columns: 165px; }
}
@media (max-width: 720px) {
  .topbar { padding: 7px 17px 10px; }
  .brand-button { font-size: .76rem; }
  .topbar .tabs { gap: 4px; }
  .tab { font-size: .8rem; padding: 0 12px; min-height: 37px; }
  .country-pill { display: none; }
  .profile-initial { width: 36px; height: 36px; }
  .profile-button { gap: 8px; }
  .hero-carousel { min-height: auto; }
  .hero-slide {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
    min-height: 0;
    padding: 26px 20px 62px;
  }
  .hero-visual { height: auto; min-height: 240px; }
  .hero-feature-backdrop { width: 100%; aspect-ratio: 16 / 10; }
  .hero-copy { padding: 8px 0 0; }
  .hero-eyebrow { margin-bottom: 15px; font-size: .61rem; }
  .hero-copy h1 { font-size: clamp(2.15rem, 7.5vw, 3.5rem); margin-bottom: 14px; }
  .hero-synopsis { margin-top: 13px; font-size: .9rem; line-height: 1.6; }
  .hero-actions { margin-top: 18px; gap: 10px; }
  .hero-actions .hero-button { min-width: 0; min-height: 44px; padding: 0 14px; }
  .hero-save-button { min-height: 44px; width: 44px; }
  .hero-footnote { margin-top: 17px; }
  .hero-controls { left: auto; right: 20px; bottom: 21px; }
  .content-sections { padding: 20px 20px 70px; gap: 27px; }
  .row-heading h2 { font-size: 1.14rem; }
  .title-row { grid-auto-columns: clamp(135px, 34vw, 180px); }
  .catalog-view, .account-view, .admin-view { padding: 38px 20px 70px; }
  .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(145px,1fr)); gap: 14px; }
  .catalog-grid .poster { min-height: 0; }
  .detail-shell { grid-template-columns: 1fr; padding: 35px 20px; }
  .detail-content h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
  .detail-artwork { justify-self: center; min-height: 0; width: min(100%, 250px); }
  .profile-dropdown { left: auto; right: 0; transform-origin: top right; }
}
@media (max-width: 440px) {
  .brand-button { letter-spacing: .12em; }
  .brand-mark { flex-basis: 24px; width: 24px; height: 24px; }
  .header-tools { gap: 3px; }
  .profile-chevron { display: none; }
  .hero-actions .hero-button { font-size: .79rem; }
  .hero-info-button { padding: 0 11px !important; }
  .hero-feature-backdrop { width: 100%; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .title-row { grid-auto-columns: 41vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Final small-screen sizing fix (overrides legacy profile grid dimensions). */
@media (max-width: 980px) {
  .topbar .header-tools { margin-left: 0; }
  .topbar .account-cluster { display: flex; flex: 0 0 auto; width: auto; min-width: 0; justify-content: flex-end; }
  .topbar .profile-button { width: auto; }
}


/* ========================================================================== 
   CINEMATIC FULL-BLEED FEATURED HERO — image spans the entire viewport width.
   Retains the portrait 2:3 posters on all film / series shelves below.
   ========================================================================== */
.home-view .hero-carousel {
  width: 100%;
  min-height: 0;
  background: #000;
}
.home-view .cinematic-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  min-height: clamp(520px, 70vh, 750px);
  padding: clamp(96px, 11vw, 160px) clamp(32px, 4.1vw, 82px) 92px;
  gap: 0;
  overflow: hidden;
  border: 0;
  background: #000;
}
.home-view .cinematic-hero::before,
.home-view .cinematic-hero::after { display: none; }
.hero-cinematic-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.hero-cinematic-art .backdrop-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
  object-position: center 5%;
}
.hero-cinematic-art .poster-image {
  position: absolute;
  inset: 0 1% 0 auto;
  width: 66%;
  height: 100%;
  opacity: .85;
  object-fit: contain;
  object-position: center right;
}
.hero-cinematic-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.98) 0%,
      rgba(0,0,0,.92) 15%,
      rgba(0,0,0,.65) 33%,
      rgba(0,0,0,.20) 62%,
      rgba(0,0,0,.04) 100%),
    linear-gradient(0deg,
      #000 0%,
      rgba(0,0,0,.93) 5%,
      rgba(0,0,0,.46) 18%,
      transparent 44%,
      rgba(0,0,0,.12) 100%);
  pointer-events: none;
}
.home-view .cinematic-hero .hero-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  align-self: flex-start;
  width: min(100%, 690px);
  max-width: min(56vw, 690px);
  padding: 0;
  margin: 0;
}
.home-view .cinematic-hero .hero-eyebrow {
  margin-bottom: 21px;
  color: #fff;
  font-size: .72rem;
  letter-spacing: .23em;
  text-shadow: 0 1px 10px #000;
}
.home-view .cinematic-hero .hero-copy h1 {
  margin: 0 0 23px;
  max-width: 670px;
  font-size: clamp(3.25rem, 5.25vw, 6.2rem);
  line-height: .98;
  font-weight: 750;
  letter-spacing: -.062em;
  text-wrap: balance;
  text-shadow: 0 5px 35px rgba(0,0,0,.76);
}
.home-view .cinematic-hero .hero-meta { gap: 9px; }
.home-view .cinematic-hero .hero-meta .pill {
  background: rgba(0,0,0,.34);
  border-color: rgba(255,255,255,.23);
  color: #ededf0;
  backdrop-filter: blur(6px);
}
.home-view .cinematic-hero .hero-synopsis {
  max-width: 620px;
  margin-top: 20px;
  color: #e2e2e5;
  font-size: clamp(.98rem, 1.15vw, 1.12rem);
  line-height: 1.65;
  text-shadow: 0 2px 17px #000;
}
.home-view .cinematic-hero .hero-actions { margin-top: 24px; }
.home-view .cinematic-hero .hero-button { min-height: 52px; }
.home-view .cinematic-hero .hero-controls {
  left: 50%;
  right: auto;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 5;
  gap: 15px;
}
.home-view .cinematic-hero .hero-controls .arrow-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  background: rgba(20,20,24,.58);
  backdrop-filter: blur(12px);
}
.home-view .cinematic-hero .hero-dots { gap: 7px; }
.home-view .cinematic-hero .hero-dot { background: rgba(255,255,255,.45); }
.home-view .cinematic-hero .hero-dot.active { background: #fff; }
.home-view .content-sections {
  position: relative;
  z-index: 2;
  margin-top: -12px;
  background: #000;
}

@media (min-width: 981px) {
  /* The featured backdrop extends behind the transparent floating navbar. */
  .app-shell:has(.home-view:not(.hidden)) .topbar {
    background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.45));
    box-shadow: none;
  }
  .app-shell:has(.home-view:not(.hidden)) .topbar::after { display: none; }
  .home-view .hero-carousel { margin-top: -76px; }
  .home-view .cinematic-hero { padding-top: 166px; }
}
@media (max-width: 980px) {
  .home-view .cinematic-hero {
    min-height: 580px;
    padding: 115px 28px 93px;
  }
  .home-view .cinematic-hero .hero-copy { max-width: min(70vw, 660px); }
  .home-view .cinematic-hero .hero-copy h1 { font-size: clamp(2.7rem, 6.5vw, 4.6rem); }
  .hero-cinematic-art .backdrop-image { object-position: 61% center; }
  .hero-cinematic-shade {
    background:
      linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.76) 36%, rgba(0,0,0,.10) 100%),
      linear-gradient(0deg, #000 0%, rgba(0,0,0,.62) 22%, transparent 58%);
  }
}
@media (max-width: 720px) {
  .home-view .cinematic-hero {
    min-height: 570px;
    padding: 180px 20px 85px;
    justify-content: flex-end;
  }
  .home-view .cinematic-hero .hero-copy { width: 100%; max-width: 100%; }
  .home-view .cinematic-hero .hero-eyebrow { margin-bottom: 13px; }
  .home-view .cinematic-hero .hero-copy h1 {
    max-width: 92%;
    font-size: clamp(2.5rem, 9.4vw, 3.7rem);
    margin-bottom: 14px;
  }
  .home-view .cinematic-hero .hero-synopsis {
    margin-top: 13px;
    max-width: 100%;
    font-size: .91rem;
    -webkit-line-clamp: 2;
  }
  .home-view .cinematic-hero .hero-actions { margin-top: 15px; }
  .home-view .cinematic-hero .hero-button { min-height: 44px; }
  .home-view .cinematic-hero .hero-footnote { margin-top: 14px; font-size: .59rem; }
  .hero-cinematic-art .backdrop-image {
    object-position: 68% 17%;
  }
  .hero-cinematic-art .poster-image { width: 100%; object-position: center top; }
  .hero-cinematic-shade {
    background:
      linear-gradient(0deg, #000 0%, rgba(0,0,0,.90) 14%, rgba(0,0,0,.64) 46%, rgba(0,0,0,.15) 83%),
      linear-gradient(90deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.03) 100%);
  }
  .home-view .cinematic-hero .hero-controls { bottom: 21px; left: 50%; right: auto; }
  .home-view .content-sections { margin-top: 0; }
}
@media (max-width: 400px) {
  .home-view .cinematic-hero { min-height: 555px; padding-top: 165px; padding-bottom: 76px; }
  .home-view .cinematic-hero .hero-copy h1 { font-size: clamp(2.2rem, 9vw, 3.1rem); }
  .home-view .cinematic-hero .hero-controls { bottom: 16px; }
}

/* ─────────────────────────────────────────────────────────────
   ZOWA authentication — cinematic poster-wall redesign
   Scoped to #authScreen so the streaming app remains unchanged.
   ───────────────────────────────────────────────────────────── */
#authScreen.auth-screen {
  --auth-hot: #ff365e;
  --auth-hot-hover: #ff5171;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 112px clamp(28px, 4.25vw, 88px) 46px;
  overflow: hidden;
  background: #020307;
  color: #f8f9fb;
}
#authScreen .auth-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: #04050b;
  pointer-events: none;
}
#authScreen .auth-poster-wall {
  position: absolute;
  /* Six rows keep movie artwork visible at the bottom of tall screens. */
  left: -13%;
  top: -48%;
  display: grid;
  grid-template-columns: repeat(8, clamp(195px, 12.7vw, 270px));
  grid-auto-rows: clamp(295px, 19.0vw, 398px);
  gap: clamp(12px, 1.05vw, 23px);
  width: max-content;
  height: max-content;
  transform: perspective(1800px) rotateY(-5deg) rotateZ(-9deg) scale(1.03);
  transform-origin: center;
  will-change: auto;
}
#authScreen .auth-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 13px;
  background: #141824;
  box-shadow: 0 17px 42px rgba(0,0,0,.48);
}
#authScreen .auth-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.93) brightness(.93);
}
#authScreen .auth-scene::before,
#authScreen .auth-scene::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
}
#authScreen .auth-scene::before {
  background: linear-gradient(90deg, rgba(1,3,9,.77) 0%, rgba(1,3,9,.50) 20%, rgba(1,3,9,.36) 46%, rgba(1,3,9,.64) 65%, rgba(1,3,9,.91) 78%, rgba(1,3,9,.96) 100%);
}
#authScreen .auth-scene::after {
  background: linear-gradient(0deg, rgba(0,1,5,.66) 0%, rgba(0,1,5,.12) 33%, rgba(0,1,5,.08) 68%, rgba(0,1,5,.43) 100%);
}
#authScreen .auth-header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 37px clamp(25px, 4vw, 68px);
  pointer-events: none;
}
#authScreen .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 1.24rem;
  font-weight: 820;
  letter-spacing: .20em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.36);
}
#authScreen .auth-brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
#authScreen .auth-language {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f9f9fb;
  font-size: .94rem;
  font-weight: 500;
}
#authScreen .auth-language svg { width: 21px; height: 21px; }
#authScreen .auth-language .auth-language-chevron { width: 15px; height: 15px; }
#authScreen .auth-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: clamp(500px, 31.1vw, 870px);
  max-width: 100%;
  min-height: 74svh;
  margin: 0;
  padding: clamp(35px, 3.1vw, 58px) clamp(34px, 2.9vw, 62px) clamp(30px, 2.9vw, 54px);
  border: 1px solid rgba(208, 215, 237, .17);
  border-radius: 22px;
  background: linear-gradient(130deg, rgba(13,15,22,.96) 0%, rgba(5,8,16,.975) 68%, rgba(5,7,12,.97) 100%);
  box-shadow: 0 26px 110px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
#authScreen .auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#authScreen .switch-button {
  position: relative;
  min-width: 0;
  min-height: 43px;
  padding: 0 6px 13px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: transparent;
  color: #8d919f;
  font-size: .98rem;
  font-weight: 560;
  transition: color .18s ease;
}
#authScreen .switch-button:hover { color: #fff; }
#authScreen .switch-button.active {
  border-color: var(--auth-hot);
  border-bottom-width: 2px;
  background: transparent;
  color: #fff;
  font-weight: 720;
}
#authScreen .auth-form-heading h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.48rem, 2.2vw, 1.94rem);
  font-weight: 760;
  letter-spacing: -.046em;
  line-height: 1.12;
}
#authScreen .auth-form-heading p {
  margin: 0 0 27px;
  color: #c3c4ce;
  font-size: .91rem;
  line-height: 1.5;
}
#authScreen .auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
#authScreen .auth-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
#authScreen .auth-field > span:first-child {
  color: #f4f4f7;
  font-size: .9rem;
  font-weight: 540;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}
#authScreen .auth-input-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(204, 207, 220, .27);
  border-radius: 10px;
  background: linear-gradient(125deg, rgba(8,11,18,.94), rgba(17,21,31,.94));
  color: #aeb3c0;
  transition: border-color .16s ease, box-shadow .16s ease;
}
#authScreen .auth-input-shell:focus-within {
  border-color: rgba(255,80,112,.88);
  box-shadow: 0 0 0 3px rgba(255,54,94,.12);
}
#authScreen .auth-field-icon { width: 20px; height: 20px; flex: 0 0 auto; }
#authScreen .auth-input-shell input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  height: 47px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .9rem;
  font-weight: 450;
  letter-spacing: 0;
  outline: none;
  box-shadow: none;
}
#authScreen .auth-input-shell input:focus { border: 0; box-shadow: none; }
#authScreen .auth-input-shell input::placeholder { color: #8f95a2; opacity: 1; }
#authScreen .auth-password-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 32px;
  min-height: 0;
  flex: 0 0 30px;
  padding: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aeb3c0;
}
#authScreen .auth-password-toggle:hover,
#authScreen .auth-password-toggle:focus-visible { background: rgba(255,255,255,.075); color: white; }
#authScreen .auth-eye-icon { width: 20px; height: 20px; }
#authScreen .auth-forgot-row {
  margin-top: -12px;
  text-align: right;
}
#authScreen .auth-text-link {
  border: 0;
  padding: 0;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: var(--auth-hot);
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
}
#authScreen .auth-text-link:hover,
#authScreen .auth-text-link:focus-visible { color: #ff728c; text-decoration: underline; }
#authScreen .auth-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  margin: 8px 0 0;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(105deg, #f12a54, #ff3d64);
  box-shadow: 0 10px 28px rgba(255,42,84,.17);
  color: #fff;
  font-size: .97rem;
  font-weight: 750;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
#authScreen .auth-submit:hover { background: linear-gradient(105deg, #f73561, #ff5574); box-shadow: 0 12px 32px rgba(255,42,84,.25); transform: translateY(-1px); }
#authScreen .auth-submit span { font-size: 1.35rem; font-weight: 400; line-height: 1; }
#authScreen .form-message {
  min-height: 0;
  margin: -7px 0 0;
  color: #ffb2bf;
  font-size: .81rem;
  line-height: 1.5;
}
#authScreen .form-message:empty { display: none; }
#authScreen .auth-social { margin-top: auto; padding-top: 24px; }
#authScreen .auth-or {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  color: #989ba9;
  font-size: .84rem;
  white-space: nowrap;
}
#authScreen .auth-or::before,
#authScreen .auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.14);
}
#authScreen .auth-social-buttons { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
#authScreen .auth-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 0 6px;
  border: 1px solid rgba(199,204,222,.23);
  border-radius: 10px;
  background: rgba(10,14,22,.6);
  color: #f4f4f5;
  font-size: .83rem;
  font-weight: 590;
  transition: background .16s ease, border-color .16s ease;
}
#authScreen .auth-social-button:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.43); }
#authScreen .google-letter {
  display: inline-block;
  font-size: 1.34rem;
  font-weight: 850;
  line-height: 1;
  background: conic-gradient(#4285f4 0deg 85deg,#34a853 85deg 150deg,#fbbc05 150deg 210deg,#ea4335 210deg 270deg,#4285f4 270deg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#authScreen .apple-logo { height: 20px; width: 19px; flex: 0 0 auto; }
#authScreen .microsoft-logo { display: grid; grid-template-columns: repeat(2,8px); grid-template-rows: repeat(2,8px); gap: 2px; }
#authScreen .microsoft-logo i:nth-child(1) { background: #f35325; }
#authScreen .microsoft-logo i:nth-child(2) { background: #81bc06; }
#authScreen .microsoft-logo i:nth-child(3) { background: #05a6f0; }
#authScreen .microsoft-logo i:nth-child(4) { background: #ffba08; }
#authScreen .auth-bottom-prompt { margin: 29px 0 0; color: #c5c6ce; font-size: .87rem; text-align: center; }
#authScreen .auth-bottom-prompt .auth-text-link { font-size: .88rem; margin-left: 6px; }

/* Fallback for medium laptop widths: protect readability without cropping. */
@media (max-width: 1160px) {
  #authScreen.auth-screen { padding: 100px 30px 35px; }
  #authScreen .auth-panel { width: min(500px, 55vw); min-height: 680px; padding: 34px 32px; }
  #authScreen .auth-poster-wall { left: -36%; top: -40%; }
  #authScreen .auth-scene::before { background: linear-gradient(90deg, rgba(1,4,11,.62), rgba(1,4,11,.34) 34%, rgba(1,4,11,.82) 70%, #020309); }
}
@media (max-width: 760px) {
  #authScreen.auth-screen { min-height: 100svh; display: flex; justify-content: center; align-items: flex-start; padding: 0 14px 28px; }
  #authScreen .auth-header { padding: 22px 24px; }
  #authScreen .auth-brand { font-size: .96rem; letter-spacing: .16em; gap: 9px; }
  #authScreen .auth-brand-mark { width: 29px; height: 29px; }
  #authScreen .auth-language { font-size: .78rem; gap: 6px; }
  #authScreen .auth-language svg { width: 18px; height: 18px; }
  #authScreen .auth-poster-wall {
    left: -470px;
    top: -220px;
    grid-template-columns: repeat(8, 160px);
    grid-auto-rows: 235px;
    gap: 12px;
    transform: rotateZ(-9deg);
  }
  #authScreen .auth-scene::before { background: rgba(0,2,8,.70); }
  #authScreen .auth-scene::after { background: linear-gradient(0deg, rgba(0,1,5,.80) 0%, transparent 45%, rgba(0,1,5,.32) 100%); }
  #authScreen .auth-panel { width: min(100%, 470px); max-width: 100%; min-height: 0; margin: 93px 0 25px; padding: 30px 28px; border-radius: 19px; }
  #authScreen .auth-switch { margin-bottom: 27px; }
  #authScreen .auth-form-heading p { margin-bottom: 22px; }
  #authScreen .auth-social { margin-top: 0; padding-top: 24px; }
  #authScreen .auth-bottom-prompt { margin-top: 25px; }
}
@media (max-width: 400px) {
  #authScreen .auth-panel { padding: 26px 19px 27px; }
  #authScreen .auth-switch { gap: 10px; }
  #authScreen .auth-form { gap: 17px; }
  #authScreen .auth-form-heading h1 { font-size: 1.52rem; }
  #authScreen .auth-social-buttons { gap: 7px; }
  #authScreen .auth-social-button { gap: 5px; font-size: .74rem; }
  #authScreen .auth-brand { letter-spacing: .10em; }
  #authScreen .auth-language-chevron { display: none; }
}

/* Keep the full sign-in panel inside shorter desktop laptop viewports. */
@media (min-width: 761px) and (max-height: 850px) {
  #authScreen.auth-screen { padding-top: 78px; padding-bottom: 18px; }
  #authScreen .auth-header { padding-top: 23px; padding-bottom: 23px; }
  #authScreen .auth-panel {
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 27px;
  }
  #authScreen .auth-switch { margin-bottom: 21px; }
  #authScreen .auth-form-heading p { margin-bottom: 19px; }
  #authScreen .auth-form { gap: 15px; }
  #authScreen .auth-social { margin-top: 18px; padding-top: 10px; }
  #authScreen .auth-or { margin-bottom: 13px; }
  #authScreen .auth-bottom-prompt { margin-top: 16px; }
}

/* Catalog discovery controls */
.catalog-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:-7px 0 27px}
.catalog-filters label{display:flex;flex-direction:column;gap:7px;font-size:.71rem;letter-spacing:.06em;text-transform:uppercase;color:#aab0bd;font-weight:650}
.catalog-filters select{appearance:auto;min-width:150px;max-width:240px;background:#17191e;color:#f6f7fa;border:1px solid #31343a;border-radius:9px;padding:12px 13px;font:500 .83rem inherit;cursor:pointer}
.catalog-filters select:focus-visible,.catalog-reset:focus-visible{outline:2px solid #9dafff;outline-offset:2px}
.catalog-reset{background:transparent;color:#d2d6df;border:1px solid #343842;border-radius:9px;min-height:43px;padding:0 17px;cursor:pointer}
.catalog-reset:hover{border-color:#8e96a6;color:white}
.catalog-count{font-size:.8rem;color:#989da9;margin-left:auto;padding-bottom:12px}
@media(max-width:600px){.catalog-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-filters select{min-width:0;width:100%;max-width:none}.catalog-reset{width:100%}.catalog-count{margin:0;align-self:center;text-align:right;padding:0}}
