:root {
  color-scheme: dark;
  --bg: #101820;
  --surface: #172229;
  --surface-2: #203038;
  --text: #f5f7f8;
  --muted: #9fb0b7;
  --border: rgba(255,255,255,.12);
  --primary: #1fb6ff;
  --accent: #18c29c;
  --gold: #ffcf56;
  --danger: #f05d5e;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(31, 182, 255, .14), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(255, 207, 86, .12), transparent 32rem),
    linear-gradient(180deg, #101820 0%, #0e1419 100%);
}

body.light {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f5;
  --text: #111920;
  --muted: #63747d;
  --border: rgba(17,25,32,.12);
  --shadow: 0 18px 50px rgba(20,35,45,.16);
  background: #f5f7f8;
}

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 9px 16px;
  background: var(--gold);
  color: #201600;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.support-dock {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 45;
  display: grid;
  gap: 8px;
}

.support-dock a {
  min-width: 94px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

a { color: inherit; }
button, input { font: inherit; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(16px, 4vw, 54px);
  background: rgba(16,24,32,.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

body.light .app-header { background: rgba(245,247,248,.82); }

.app-logo {
  text-decoration: none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--text);
}

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

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  color: var(--text);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #041018; }
.btn-success { background: var(--accent); color: #04130f; }
.btn-ghost { background: rgba(255,255,255,.09); border: 1px solid var(--border); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }

.balance-chip,
.avatar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.balance-chip { min-height: 40px; padding: 0 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; }

.page-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 110px;
}

.watch-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #0b1014;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,8,10,.82), rgba(3,8,10,.2) 56%, rgba(3,8,10,.72));
}

.hero-copy {
  position: relative;
  width: min(650px, 100%);
  padding: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.hero-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: .96;
  letter-spacing: 0;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stories-band {
  margin: 26px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stories {
  display: flex;
  gap: 14px;
  min-width: min-content;
}

.story-item {
  width: 94px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.story-ring {
  width: 78px;
  height: 78px;
  margin: 0 auto 8px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold), var(--accent));
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}

.story-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.content-section { margin-top: 24px; }

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

.section-head h2,
.catalog-tools h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.section-head a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

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

.featured-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.compact-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.video-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}

.video-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.video-card:hover .video-thumb img { transform: scale(1.05); }

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0,0,0,.54);
  border: 1px solid rgba(255,255,255,.32);
}

.price-tag,
.quality-tag {
  position: absolute;
  top: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.price-tag { right: 10px; background: var(--gold); color: #231a02; }
.quality-tag { left: 10px; background: rgba(0,0,0,.58); color: #fff; }

.video-meta { padding: 13px; }

.video-title {
  min-height: 42px;
  margin-bottom: 8px;
  font-weight: 900;
  line-height: 1.25;
}

.video-date,
.muted {
  color: var(--muted);
}

.video-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, .95fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  margin-top: 16px;
}

.video-detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.video-detail-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.video-detail-description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.video-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.video-facts div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.video-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-facts dd {
  margin: 0;
  font-weight: 900;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 8px;
}

.category-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
}

.category-tab.active { background: var(--primary); color: #031018; border-color: var(--primary); }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 30px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}

.login-logo { display: inline-block; margin-bottom: 8px; }
.login-subtitle { color: var(--muted); margin-bottom: 28px; }

.phone-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  margin: 18px 0;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.phone-field span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.phone-field img { width: 24px; border-radius: 2px; }

.phone-field input,
.otp-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.otp-input {
  height: 60px;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 10px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
}

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

.link-button {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.legal-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.account-layout { width: min(760px, calc(100% - 32px)); }

.profile-head {
  text-align: center;
  padding: 24px 0 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #031018;
  font-size: 36px;
  font-weight: 900;
}

.profile-info,
.menu-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.profile-row,
.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

button.menu-item {
  width: 100%;
  cursor: pointer;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-kpis article,
.admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-kpis article {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-kpis span,
.admin-row span {
  color: var(--muted);
}

.admin-kpis strong {
  font-size: 28px;
}

.readiness-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.readiness-summary strong {
  margin-right: auto;
  font-size: 20px;
}

.readiness-ready strong { color: var(--accent); }
.readiness-ready_with_warnings strong { color: var(--gold); }
.readiness-not_ready strong { color: var(--danger); }

.readiness-list {
  display: grid;
  gap: 8px;
}

.readiness-item {
  display: grid;
  grid-template-columns: 92px 220px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.readiness-item span {
  font-weight: 900;
}

.readiness-item.ok span { color: var(--accent); }
.readiness-item.warning span { color: var(--gold); }
.readiness-item.critical span { color: var(--danger); }

.readiness-item small {
  color: var(--muted);
}

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

.admin-panel {
  padding: 18px;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.admin-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-inline-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.admin-input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
}

textarea.admin-input {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

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

.admin-actions button {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.admin-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  line-height: 1.65;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  width: min(620px, calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(82px, 20vw, 180px);
  line-height: .85;
  color: var(--primary);
}

.not-found p {
  color: var(--muted);
  font-size: 18px;
}

.noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  padding: 14px 16px;
  border: 1px solid rgba(240, 93, 94, .5);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: none;
  transform: translateX(-50%);
  width: min(430px, calc(100% - 24px));
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(16,24,32,.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.bottom-nav a {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 48px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted);
}

.bottom-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3,8,10,.72);
  backdrop-filter: blur(12px);
}

.modal-backdrop.show { display: flex; }

.modal-box {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 { margin: 0; }

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.player-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

.player-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
}

.player-screen video,
.player-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.player-overlay {
  position: absolute;
  text-align: center;
}

.watermark {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255,255,255,.62);
  font-weight: 900;
}

.topup-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.topup-input {
  height: 62px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  font-size: 30px;
  font-weight: 900;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-methods button {
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: #172229;
  cursor: pointer;
  font-weight: 900;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.toast {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast.success { border-color: rgba(24,194,156,.45); }
.toast.error { border-color: rgba(240,93,94,.55); }

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.hidden { display: none !important; }

@media (max-width: 760px) {
  .desktop-nav { display: none; }
  .bottom-nav { display: grid; }
  .app-header { height: 64px; padding: 0 16px; }
  .app-logo { font-size: 20px; }
  .watch-hero { min-height: 470px; }
  .hero-copy { padding: 26px; }
  .hero-copy h1 { font-size: 40px; }
  .section-head,
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .video-grid,
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .video-detail { grid-template-columns: 1fr; }
  .video-facts { grid-template-columns: 1fr; }
  .video-title { font-size: 14px; min-height: 52px; }
  .balance-chip { display: none; }
  .admin-panels { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
  .admin-row > span:nth-of-type(n+2) { display: none; }
  .admin-actions { grid-column: 1 / -1; justify-content: start; }
  .readiness-item { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .video-grid,
  .featured-grid { grid-template-columns: 1fr; }
}

/* AMIN TV client interface */
body:not([data-page="admin"]) {
  --bg: #101820;
  --surface: #172229;
  --surface-2: #203038;
  --text: #f6f6f6;
  --muted: #9fb0b7;
  --border: rgba(255,255,255,.09);
  --primary: #1fb6ff;
  --accent: #34c98f;
  --gold: #f1c454;
  --shadow: 0 16px 36px rgba(0,0,0,.3);
  background: var(--bg);
}

body:not([data-page="admin"]) .app-header {
  height: 64px;
  padding: 0 max(18px, calc((100vw - 1160px) / 2));
  background: rgba(16,24,32,.94);
  border-bottom-color: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}

body:not([data-page="admin"]) .app-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

body:not([data-page="admin"]) .app-logo::first-letter {
  color: var(--primary);
}

body:not([data-page="admin"]) .desktop-nav {
  align-self: stretch;
  gap: 3px;
}

body:not([data-page="admin"]) .desktop-nav a {
  position: relative;
  min-height: 64px;
  padding: 0 16px;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
}

body:not([data-page="admin"]) .desktop-nav a.active,
body:not([data-page="admin"]) .desktop-nav a:hover {
  background: transparent;
}

body:not([data-page="admin"]) .desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  background: var(--primary);
}

body:not([data-page="admin"]) .btn {
  min-height: 44px;
  border-radius: 6px;
}

body:not([data-page="admin"]) .btn-primary {
  background: var(--primary);
  color: #fff;
}

body:not([data-page="admin"]) .balance-chip {
  border-color: rgba(31,182,255,.3);
  background: rgba(31,182,255,.12);
  color: #fff;
}

body:not([data-page="admin"]) .page-content {
  width: min(1160px, calc(100% - 36px));
  padding-top: 22px;
}

.home-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 174px;
  margin-bottom: 18px;
  padding: 30px 0 24px;
  border-bottom: 1px solid var(--border);
}

.home-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: .92;
}

.home-intro p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

body:not([data-page="admin"]) .eyebrow {
  color: var(--primary);
  font-size: 11px;
}

body:not([data-page="admin"]) .stories-band {
  margin: 8px 0 26px;
}

body:not([data-page="admin"]) .stories {
  gap: 7px;
}

body:not([data-page="admin"]) .story-item {
  width: 82px;
}

body:not([data-page="admin"]) .story-ring {
  width: 66px;
  height: 66px;
  padding: 2px;
  background: var(--primary);
}

body:not([data-page="admin"]) .section-head,
body:not([data-page="admin"]) .catalog-tools {
  align-items: center;
  margin-bottom: 16px;
}

body:not([data-page="admin"]) .content-section:first-child {
  margin-top: 0;
}

body:not([data-page="admin"]) .section-head h2,
body:not([data-page="admin"]) .section-head h1,
body:not([data-page="admin"]) .catalog-tools h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
}

body:not([data-page="admin"]) .section-head a {
  color: var(--muted);
  font-size: 14px;
}

body:not([data-page="admin"]) .video-grid,
body:not([data-page="admin"]) .featured-grid,
body:not([data-page="admin"]) .compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body:not([data-page="admin"]) .video-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

body:not([data-page="admin"]) .video-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: #19191a;
}

body:not([data-page="admin"]) .video-card:hover .video-thumb img {
  transform: scale(1.025);
}

body:not([data-page="admin"]) .play-mark {
  width: 46px;
  height: 46px;
  border: 0;
  background: rgba(31,182,255,.92);
  opacity: 0;
  transition: opacity .18s ease;
}

body:not([data-page="admin"]) .video-card:hover .play-mark {
  opacity: 1;
}

body:not([data-page="admin"]) .price-tag,
body:not([data-page="admin"]) .quality-tag {
  top: 7px;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 10px;
}

body:not([data-page="admin"]) .price-tag {
  right: 7px;
  background: var(--gold);
  color: #201600;
}

body:not([data-page="admin"]) .quality-tag {
  left: 7px;
}

body:not([data-page="admin"]) .video-meta {
  padding: 12px;
}

body:not([data-page="admin"]) .video-title {
  min-height: 0;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.35;
}

body:not([data-page="admin"]) .video-date {
  font-size: 12px;
}

body:not([data-page="admin"]) .category-tabs {
  gap: 7px;
  padding-bottom: 16px;
}

body:not([data-page="admin"]) .category-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  font-size: 13px;
}

body:not([data-page="admin"]) .category-tab.active {
  background: var(--primary);
  color: #fff;
}

body:not([data-page="admin"]) .search-box {
  min-height: 42px;
  border-radius: 6px;
  background: var(--surface);
}

body:not([data-page="admin"]) .login-card {
  border: 0;
  background: var(--surface);
}

body:not([data-page="admin"]) .phone-field,
body:not([data-page="admin"]) .otp-input,
body:not([data-page="admin"]) .profile-row,
body:not([data-page="admin"]) .menu-item {
  border-radius: 6px;
}

body:not([data-page="admin"]) .bottom-nav {
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  padding: 5px max(8px, calc((100vw - 430px) / 2));
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: rgba(16,24,32,.97);
  box-shadow: none;
}

body:not([data-page="admin"]) .bottom-nav a {
  border-radius: 5px;
  font-size: 17px;
}

body:not([data-page="admin"]) .bottom-nav a.active {
  color: var(--primary);
  background: transparent;
}

@media (max-width: 980px) {
  body:not([data-page="admin"]) .video-grid,
  body:not([data-page="admin"]) .featured-grid,
  body:not([data-page="admin"]) .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Conversion and purchase confidence */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -18px 0 44px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-strip article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}

.value-strip article:last-child { border-right: 0; }

.value-strip article div {
  display: grid;
  gap: 4px;
}

.value-strip strong { color: var(--text); }
.value-strip small { color: var(--muted); line-height: 1.35; }

.value-icon {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
}

.value-icon-play::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--primary);
}

.value-icon-quality::before {
  content: "4K";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.value-icon-lock::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 14px;
  width: 14px;
  height: 11px;
  border: 2px solid var(--accent);
}

.value-icon-lock::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 8px;
  height: 9px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.spotlight-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: -8px 0 22px;
  color: #d9e2e3;
  font-size: 12px;
  font-weight: 800;
}

.spotlight-proof span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 0;
  background: var(--accent);
}

.video-detail {
  grid-template-columns: minmax(330px, 1.12fr) minmax(360px, .88fr);
  align-items: stretch;
}

.video-detail-poster {
  min-height: 100%;
  aspect-ratio: auto;
}

.poster-proof {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  background: rgba(8,11,13,.84);
  backdrop-filter: blur(12px);
}

.poster-proof strong { color: #fff; }
.poster-proof span { color: #d4dddf; font-size: 11px; }

.video-detail-copy {
  display: flex;
  flex-direction: column;
}

.purchase-offer {
  display: grid;
  gap: 17px;
  margin-top: auto;
  padding: 20px;
  border: 1px solid rgba(255,102,87,.42);
  border-left: 4px solid var(--primary);
  background: #1a1212;
}

.purchase-offer-ready {
  border-color: rgba(67,214,197,.4);
  border-left-color: var(--accent);
  background: #10201f;
}

.purchase-offer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.purchase-offer-head > div {
  display: grid;
  gap: 5px;
}

.purchase-offer-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.purchase-offer-head strong {
  color: #fff;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.offer-badge {
  padding: 6px 8px;
  border: 1px solid rgba(255,209,102,.42);
  color: var(--gold) !important;
  white-space: nowrap;
}

.offer-benefits {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d8e0e1;
  font-size: 13px;
}

.offer-benefits li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 900;
}

.purchase-cta {
  gap: 9px;
  min-height: 54px !important;
}

.payment-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.assurance-lock {
  position: relative;
  width: 12px;
  height: 10px;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
}

.assurance-lock::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -7px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.detail-back-link:hover { color: var(--text); }

.payment-modal .modal-header {
  padding: 20px;
}

.payment-modal .modal-header .eyebrow {
  margin-bottom: 4px;
}

.payment-modal .topup-body {
  gap: 18px;
  padding: 20px;
}

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

.topup-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
}

.topup-amount-row .topup-input {
  height: 64px;
  border: 0;
  background: transparent;
  text-align: left;
}

.topup-amount-row strong {
  padding-right: 16px;
  color: var(--muted);
  font-size: 13px;
}

.payment-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-trust-row span {
  padding: 6px 8px;
  border: 1px solid rgba(67,214,197,.28);
  color: #bde9e3;
  font-size: 10px;
  font-weight: 800;
}

.payment-method-title {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.payment-modal .payment-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-modal .payment-methods button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 0 13px;
  border-radius: 0;
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.payment-modal .payment-methods button:hover {
  border-color: var(--primary);
  background: #271817;
}

.payment-modal .payment-methods button strong {
  color: var(--primary);
}

@media (max-width: 760px) {
  .value-strip {
    grid-template-columns: 1fr;
    margin-top: -12px;
  }

  .value-strip article {
    min-height: 70px;
    padding: 14px 2px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .value-strip article:last-child { border-bottom: 0; }

  .spotlight-proof {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .video-detail {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .video-detail-copy {
    padding: 0 2px;
  }

  .poster-proof { display: none; }

  .purchase-offer {
    margin-top: 8px;
    padding: 16px;
  }

  .payment-modal .payment-methods {
    grid-template-columns: 1fr;
  }
}

/* Studio-grade product finish */
body:not([data-page="admin"]) {
  --bg: #080b0d;
  --surface: #111619;
  --surface-2: #171e22;
  --surface-3: #20292e;
  --text: #f7f8f8;
  --muted: #9ba9ae;
  --border: rgba(255,255,255,.1);
  --primary: #ef6658;
  --primary-hover: #ff7668;
  --accent: #46cdbd;
  --gold: #e9c86a;
  --radius: 6px;
  --shadow: 0 24px 60px rgba(0,0,0,.34);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
}

body:not([data-page="admin"]) .app-header {
  height: 72px;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  background: rgba(8,11,13,.91);
  box-shadow: 0 1px rgba(255,255,255,.04);
}

body:not([data-page="admin"]) .app-header::after {
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0 8%, var(--accent) 8% 16%, var(--gold) 16% 19%, rgba(255,255,255,.08) 19%);
}

body:not([data-page="admin"]) .app-logo {
  padding-left: 14px;
  font-size: 23px;
}

body:not([data-page="admin"]) .app-logo::before {
  width: 5px;
  height: 23px;
  border-radius: 2px;
}

body:not([data-page="admin"]) .desktop-nav {
  gap: 4px;
}

body:not([data-page="admin"]) .desktop-nav a {
  min-height: 46px;
  padding-inline: 14px;
  border-radius: var(--radius);
  font-size: 13px;
}

body:not([data-page="admin"]) .desktop-nav a.active,
body:not([data-page="admin"]) .desktop-nav a:hover {
  background: rgba(255,255,255,.055);
}

body:not([data-page="admin"]) .desktop-nav a.active::after {
  display: none;
}

body:not([data-page="admin"]) .btn {
  border-radius: var(--radius);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

body:not([data-page="admin"]) .btn-primary {
  background: var(--primary);
  color: #170604;
}

body:not([data-page="admin"]) .btn-primary:hover {
  background: var(--primary-hover);
}

body:not([data-page="admin"]) .page-content {
  width: min(1240px, calc(100% - 48px));
  padding-top: 28px;
}

.cinema-spotlight {
  min-height: clamp(500px, 50vw, 640px);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cinema-spotlight::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: 4px;
  height: 112px;
  background: var(--primary);
}

.spotlight-copy {
  min-height: clamp(500px, 50vw, 640px);
  width: min(620px, 62%);
  padding: clamp(36px, 6vw, 74px);
}

.spotlight-copy h1 {
  max-width: 13ch;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.02;
}

.spotlight-copy > p:not(.eyebrow) {
  max-width: 48ch;
  color: #c5cfd2;
}

.spotlight-badges span,
.spotlight-badges span:last-child {
  border-radius: 4px;
  border-color: rgba(255,255,255,.16);
  color: #fff;
}

.spotlight-proof {
  color: #c9d4d6;
}

.value-strip {
  margin: 0 0 54px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-strip article {
  min-height: 94px;
  padding-inline: 24px;
}

.value-icon {
  border-radius: 4px;
  background: var(--surface-2);
}

body:not([data-page="admin"]) .content-section {
  margin-top: 58px;
}

body:not([data-page="admin"]) .section-head {
  min-height: 58px;
  margin-bottom: 20px;
}

body:not([data-page="admin"]) .section-head h1,
body:not([data-page="admin"]) .section-head h2,
body:not([data-page="admin"]) .catalog-tools h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12;
}

body:not([data-page="admin"]) .eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

body:not([data-page="admin"]) .video-grid {
  gap: 26px 18px;
}

body:not([data-page="admin"]) .video-card {
  overflow: visible;
  border: 0;
  border-radius: var(--radius);
}

body:not([data-page="admin"]) .video-card:nth-child(n) .video-thumb {
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

body:not([data-page="admin"]) .video-card:hover,
body:not([data-page="admin"]) .video-card:focus-within {
  transform: translateY(-4px);
}

body:not([data-page="admin"]) .video-card:hover .video-thumb,
body:not([data-page="admin"]) .video-card:focus-within .video-thumb {
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}

body:not([data-page="admin"]) .video-meta {
  padding: 12px 2px 0;
}

body:not([data-page="admin"]) .video-title {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

body:not([data-page="admin"]) .price-tag,
body:not([data-page="admin"]) .quality-tag {
  border-radius: 4px;
}

.watch-label {
  color: var(--accent);
}

body:not([data-page="admin"]) .catalog-tools {
  min-height: 110px;
  margin-bottom: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

body:not([data-page="admin"]) .search-box {
  border-radius: var(--radius);
  background: var(--surface);
}

body:not([data-page="admin"]) .search-box:focus-within {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: none;
}

body:not([data-page="admin"]) .category-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
}

body:not([data-page="admin"]) .category-tab.active {
  border-color: var(--primary);
}

.video-detail {
  gap: clamp(26px, 4vw, 52px);
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-detail-poster {
  border-radius: var(--radius);
}

.purchase-offer {
  border: 1px solid rgba(239,102,88,.34);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  background: #1a1313;
}

.purchase-offer-head strong {
  font-size: 30px;
}

.offer-badge,
.payment-trust-row span {
  border-radius: 999px;
}

.payment-modal,
.modal-box {
  border-radius: var(--radius);
}

.payment-modal .payment-methods button,
.topup-amount-row {
  border-radius: var(--radius);
}

.account-hero .profile-head,
.wallet-panel,
.profile-row,
.menu-item {
  border-radius: var(--radius);
}

.profile-avatar {
  border-radius: var(--radius);
  transform: none;
}

.support-dock {
  display: none;
}

.studio-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 32px;
  width: min(1240px, calc(100% - 48px));
  margin: 36px auto 0;
  padding: 32px 0 110px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.studio-footer > div {
  display: grid;
  gap: 6px;
}

.studio-footer p,
.studio-footer small {
  margin: 0;
  font-size: 12px;
}

.footer-brand {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.studio-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.studio-footer nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.studio-footer nav a:hover {
  color: var(--text);
}

@media (max-width: 760px) {
  body:not([data-page="admin"]) .app-header {
    height: 64px;
    padding-inline: 16px;
  }

  body:not([data-page="admin"]) .page-content {
    width: min(100% - 24px, 1240px);
    padding-top: 12px;
  }

  .cinema-spotlight {
    min-height: 430px;
    border-left: 1px solid var(--border);
  }

  .spotlight-copy {
    min-height: 430px;
    padding: 22px;
  }

  .spotlight-copy h1 {
    font-size: 34px;
  }

  .value-strip {
    margin-bottom: 42px;
  }

  .value-strip article {
    padding-inline: 16px;
  }

  body:not([data-page="admin"]) .content-section {
    margin-top: 44px;
  }

  body:not([data-page="admin"]) .video-grid,
  body:not([data-page="admin"]) .featured-grid {
    gap: 20px 12px;
  }

  body:not([data-page="admin"]) .catalog-tools {
    min-height: auto;
  }

  .studio-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    width: min(100% - 24px, 1240px);
    padding-bottom: 96px;
  }
}

/* AMIN broadcast-editorial identity */
body:not([data-page="admin"]) {
  --bg: #080b0d;
  --surface: #111719;
  --surface-2: #192226;
  --text: #fff8f1;
  --muted: #aab6b7;
  --border: rgba(255,248,241,.13);
  --primary: #ff6657;
  --accent: #43d6c5;
  --gold: #ffd166;
  background: #080b0d;
}

body:not([data-page="admin"]) .app-header {
  border-bottom: 0;
}

body:not([data-page="admin"]) .app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0 17%, transparent 17% 18%, var(--accent) 18% 43%, transparent 43% 44%, var(--gold) 44% 51%, rgba(255,255,255,.12) 51%);
}

body:not([data-page="admin"]) .app-logo {
  position: relative;
  padding-left: 15px;
}

body:not([data-page="admin"]) .app-logo::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 24px;
  background: var(--primary);
  transform: translateY(-50%) skew(-14deg);
}

body:not([data-page="admin"]) .app-logo::first-letter {
  color: var(--text);
}

body:not([data-page="admin"]) .eyebrow {
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

body:not([data-page="admin"]) .btn-primary,
body:not([data-page="admin"]) .category-tab.active {
  background: var(--primary);
  color: #190604;
}

body:not([data-page="admin"]) .balance-chip {
  border-color: rgba(67,214,197,.38);
  background: rgba(67,214,197,.12);
}

.cinema-spotlight {
  border-radius: 0;
  border-left: 5px solid var(--primary);
}

.spotlight-copy {
  padding-left: clamp(28px, 6vw, 66px);
}

.spotlight-copy h1 {
  text-wrap: balance;
}

.spotlight-badges span {
  border-radius: 0;
}

.spotlight-badges span:last-child {
  border-color: rgba(255,102,87,.5);
  color: #ffd5cf;
}

body:not([data-page="admin"]) .video-card {
  border-radius: 0;
  border-color: transparent;
}

body:not([data-page="admin"]) .video-card:nth-child(3n + 1) .video-thumb {
  border-bottom: 3px solid var(--primary);
}

body:not([data-page="admin"]) .video-card:nth-child(3n + 2) .video-thumb {
  border-bottom: 3px solid var(--accent);
}

body:not([data-page="admin"]) .video-card:nth-child(3n) .video-thumb {
  border-bottom: 3px solid var(--gold);
}

body:not([data-page="admin"]) .price-tag,
body:not([data-page="admin"]) .quality-tag,
body:not([data-page="admin"]) .category-tab,
body:not([data-page="admin"]) .search-box,
.wallet-panel,
.account-hero .profile-head,
.video-detail {
  border-radius: 0;
}

body:not([data-page="admin"]) .play-mark {
  background: var(--primary);
}

.search-box:focus-within {
  box-shadow: inset 4px 0 var(--accent);
}

.account-hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
}

.wallet-panel {
  border-color: rgba(255,102,87,.36);
  background: #1e1313;
}

.profile-avatar {
  border-radius: 0;
  background: linear-gradient(135deg, var(--primary) 0 50%, var(--accent) 50%);
  color: #091011;
  transform: rotate(-3deg);
}

.login-page::before {
  background:
    linear-gradient(90deg, rgba(8,11,13,.98), rgba(8,11,13,.52)),
    radial-gradient(circle at 78% 30%, rgba(115, 94, 255, .32), transparent 34%),
    radial-gradient(circle at 64% 78%, rgba(255, 174, 0, .12), transparent 30%);
}

body:not([data-page="admin"]) .login-card {
  border-radius: 0;
  border-left: 5px solid var(--primary);
}

@media (max-width: 760px) {
  .cinema-spotlight {
    border-left-width: 3px;
  }

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

@media (max-width: 760px) {
  body:not([data-page="admin"]) .app-header {
    height: 58px;
  }

  body:not([data-page="admin"]) .page-content {
    width: min(100% - 24px, 1160px);
    padding-top: 14px;
  }

  .home-intro {
    min-height: 126px;
    margin-bottom: 12px;
    padding: 18px 0;
  }

  .home-intro h1 {
    font-size: 42px;
  }

  .home-intro p:last-child,
  .home-intro .btn {
    display: none;
  }

  body:not([data-page="admin"]) .video-grid,
  body:not([data-page="admin"]) .featured-grid,
  body:not([data-page="admin"]) .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body:not([data-page="admin"]) .video-title {
    min-height: 38px;
    font-size: 12px;
  }

  body:not([data-page="admin"]) .play-mark {
    display: none;
  }
}

@media (max-width: 480px) {
  body:not([data-page="admin"]) .video-grid,
  body:not([data-page="admin"]) .featured-grid,
  body:not([data-page="admin"]) .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Client UX hardening */
.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;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  color: #071018;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #7dd3fc;
  outline-offset: 3px;
}

body:not([data-page="admin"]) .section-head {
  min-height: 52px;
}

body:not([data-page="admin"]) .section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--text);
}

body:not([data-page="admin"]) .catalog-tools {
  margin-bottom: 20px;
}

body:not([data-page="admin"]) .search-box {
  width: min(390px, 100%);
  min-height: 48px;
  transition: border-color .18s ease, background .18s ease;
}

body:not([data-page="admin"]) .search-box:focus-within {
  border-color: rgba(31,182,255,.72);
  background: #1b2a32;
}

.search-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.catalog-summary {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

body:not([data-page="admin"]) .category-tab {
  min-height: 44px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

body:not([data-page="admin"]) .category-tab:hover {
  background: var(--surface-2);
}

body:not([data-page="admin"]) .category-tab.active:hover {
  background: var(--primary);
}

body:not([data-page="admin"]) .video-card {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body:not([data-page="admin"]) .video-card:hover,
body:not([data-page="admin"]) .video-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(31,182,255,.46);
  box-shadow: 0 18px 42px rgba(0,0,0,.3);
}

body:not([data-page="admin"]) .video-link:focus-visible {
  outline-offset: -3px;
}

body:not([data-page="admin"]) .play-mark {
  transition: opacity .18s ease, transform .18s ease;
}

body:not([data-page="admin"]) .play-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

body:not([data-page="admin"]) .video-card:hover .play-mark,
body:not([data-page="admin"]) .video-card:focus-within .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

body:not([data-page="admin"]) .price-tag.access-ready {
  background: var(--accent);
  color: #04130f;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.watch-label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.video-card:hover .watch-label,
.video-card:focus-within .watch-label {
  opacity: 1;
  transform: translateX(0);
}

.empty-state {
  display: grid;
  gap: 7px;
}

.empty-state strong {
  color: var(--text);
  font-size: 17px;
}

@media (max-width: 760px) {
  body:not([data-page="admin"]) .section-head {
    min-height: 44px;
    flex-direction: row;
    align-items: end;
  }

  body:not([data-page="admin"]) .section-head h1,
  body:not([data-page="admin"]) .catalog-tools h1 {
    font-size: 26px;
  }

  body:not([data-page="admin"]) .catalog-tools {
    gap: 16px;
  }

  body:not([data-page="admin"]) .video-title {
    min-height: auto;
    font-size: 13px;
  }

  .watch-label { display: none; }
}

@media (max-width: 390px) {
  body:not([data-page="admin"]) .section-link {
    font-size: 13px;
  }
}

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

/* AMIN TV cinematic experience */
body:not([data-page="admin"]) {
  --bg: #090d10;
  --surface: #11181d;
  --surface-2: #182229;
  --muted: #a8b5bb;
  --border: rgba(255,255,255,.11);
  --primary: #20aee8;
  --accent: #42d392;
  --gold: #f3c969;
  background: #090d10;
  overscroll-behavior-y: contain;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body:not([data-page="admin"]) .app-header {
  background: rgba(9,13,16,.88);
}

.nav-glyph {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.nav-home {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 10.75 12 3l9 7.75V21h-6v-6H9v6H3V10.75Zm2 1V19h2v-6h10v6h2v-7.25l-7-6.03-7 6.03Z'/%3E%3C/svg%3E");
}

.nav-catalog {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M4 4h16v16H4V4Zm2 2v12h12V6H6Zm4 3 6 3-6 3V9Z'/%3E%3C/svg%3E");
}

.nav-account {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0-2a3 3 0 1 1 0-6 3 3 0 0 1 0 6Zm0 3c-5 0-9 2.5-9 6v3h18v-3c0-3.5-4-6-9-6Zm-7 6c0-1.8 2.8-4 7-4s7 2.2 7 4v1H5v-1Z'/%3E%3C/svg%3E");
}

.cinema-spotlight {
  position: relative;
  min-height: clamp(420px, 56vw, 630px);
  margin-bottom: 42px;
  overflow: hidden;
  border-radius: 8px;
  background: #11181d;
  isolation: isolate;
}

.spotlight-media,
.spotlight-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.spotlight-media {
  object-fit: cover;
  transform: scale(1.01);
}

.spotlight-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,8,10,.96) 0%, rgba(5,8,10,.78) 36%, rgba(5,8,10,.12) 74%),
    linear-gradient(0deg, rgba(5,8,10,.9) 0%, transparent 48%);
}

.spotlight-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: clamp(420px, 56vw, 630px);
  width: min(600px, 68%);
  padding: clamp(28px, 6vw, 72px);
}

.spotlight-copy h1 {
  max-width: 12ch;
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.spotlight-copy > p:not(.eyebrow) {
  max-width: 56ch;
  margin-bottom: 24px;
  color: #d3dade;
  font-size: 16px;
  line-height: 1.6;
}

.spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.spotlight-badges span {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  background: rgba(4,8,10,.55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.spotlight-play {
  gap: 9px;
}

.button-play-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

body:not([data-page="admin"]) .content-section {
  margin-top: 42px;
}

body:not([data-page="admin"]) .content-section:first-of-type {
  margin-top: 0;
}

body:not([data-page="admin"]) .section-head h1,
body:not([data-page="admin"]) .section-head h2,
body:not([data-page="admin"]) .catalog-tools h1 {
  font-size: clamp(27px, 3vw, 38px);
}

body:not([data-page="admin"]) .video-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:not([data-page="admin"]) .featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:not([data-page="admin"]) .video-card {
  background: transparent;
  box-shadow: none;
}

body:not([data-page="admin"]) .video-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  pointer-events: none;
}

body:not([data-page="admin"]) .video-meta {
  padding: 12px 2px 4px;
}

body:not([data-page="admin"]) .video-title {
  color: #f8fafb;
  font-size: 15px;
}

body:not([data-page="admin"]) .video-card:hover,
body:not([data-page="admin"]) .video-card:focus-within {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: none;
}

.video-card-footer {
  min-height: 20px;
}

.account-layout {
  width: min(1160px, calc(100% - 36px));
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.account-hero .profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.account-hero .profile-head h1 {
  margin-bottom: 7px;
  font-size: clamp(28px, 4vw, 44px);
}

.account-hero .profile-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.account-hero .profile-avatar {
  margin: 0;
  flex: 0 0 auto;
}

.wallet-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(32,174,232,.32);
  border-radius: 8px;
  background: #11212a;
}

.wallet-panel > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wallet-panel > strong {
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  font-variant-numeric: tabular-nums;
}

.wallet-panel > strong small {
  color: var(--muted);
  font-size: 14px;
}

.account-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.menu-item-danger {
  color: #ff9a9a;
}

.login-page {
  position: relative;
  overflow: hidden;
  background: #070a0c;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,10,12,.98), rgba(7,10,12,.62)),
    radial-gradient(circle at 78% 30%, rgba(115, 94, 255, .32), transparent 34%),
    radial-gradient(circle at 64% 78%, rgba(255, 174, 0, .12), transparent 30%);
  opacity: .72;
}

body:not([data-page="admin"]) .login-card {
  position: relative;
  width: min(460px, 100%);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(13,19,23,.94);
  backdrop-filter: blur(18px);
  text-align: left;
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.login-brand span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-card h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 5vw, 38px);
}

.login-subtitle {
  margin-bottom: 34px;
}

body:not([data-page="admin"]) .phone-field {
  border-color: rgba(255,255,255,.15);
  background: #172229;
}

.video-detail {
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.player-play-mark {
  position: static;
  margin: 0 auto 14px;
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  body:not([data-page="admin"]) .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body:not([data-page="admin"]) .desktop-nav {
    display: none;
  }

  body:not([data-page="admin"]) .header-actions {
    display: none;
  }

  body:not([data-page="admin"]) .page-content {
    width: min(100% - 24px, 1160px);
  }

  body:not([data-page="admin"]) .app-header {
    width: 100%;
    padding-inline: 16px;
  }

  body:not([data-page="admin"]) .section-head > div {
    min-width: 0;
  }

  body:not([data-page="admin"]) .section-link {
    display: none;
  }

  .cinema-spotlight {
    min-height: 410px;
    margin-bottom: 30px;
  }

  .spotlight-media {
    object-position: 62% center;
  }

  .spotlight-shade {
    background:
      linear-gradient(0deg, rgba(5,8,10,.98) 0%, rgba(5,8,10,.6) 58%, rgba(5,8,10,.08) 100%);
  }

  .spotlight-copy {
    justify-content: end;
    min-height: 410px;
    width: 100%;
    padding: 22px;
  }

  .spotlight-copy h1 {
    max-width: 14ch;
    font-size: 36px;
  }

  .spotlight-copy > p:not(.eyebrow) {
    display: none;
  }

  body:not([data-page="admin"]) .video-grid,
  body:not([data-page="admin"]) .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .account-hero .profile-head {
    padding: 22px;
  }

  .account-hero .profile-avatar {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .support-dock {
    display: none;
  }
}

@media (max-width: 390px) {
  .spotlight-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .spotlight-copy .btn {
    padding: 0 12px;
  }
}
