/* Unified public experience layer. Admin styles remain in styles.css. */

body:not([data-page="admin"]) {
  --bg: #07090c;
  --surface: #0e141a;
  --surface-2: #151e27;
  --surface-3: #202b36;
  --text: #f7f4ef;
  --muted: #a9b1bc;
  --border: rgba(255, 255, 255, .12);
  --border-strong: rgba(255, 255, 255, .22);
  --primary: #ff6758;
  --primary-hover: #ff7c70;
  --accent: #49d7c3;
  --gold: #ffd36a;
  --danger: #ff7a85;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 2%, rgba(255, 103, 88, .09), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(73, 215, 195, .07), transparent 32rem),
    var(--bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body:not([data-page="admin"]) .app-header {
  height: 72px;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(7, 9, 12, .84);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(135%);
}

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

body:not([data-page="admin"]) .app-logo {
  padding-left: 15px;
  color: var(--text);
  font-size: 23px;
  letter-spacing: -.04em;
}

body:not([data-page="admin"]) .app-logo::before {
  width: 6px;
  height: 25px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateY(-50%) skew(-13deg);
}

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

body:not([data-page="admin"]) .desktop-nav a {
  min-height: 44px;
  padding-inline: 15px;
  border-radius: var(--radius-small);
  color: #aeb7c2;
  font-size: 13px;
  transition: color .2s ease, background .2s ease;
}

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

body:not([data-page="admin"]) .page-content {
  width: min(1280px, calc(100% - 48px));
  min-height: calc(100dvh - 180px);
  padding: 28px 0 104px;
}

body:not([data-page="admin"]) .btn {
  min-height: 48px;
  border-radius: var(--radius-small);
  font-weight: 850;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}

body:not([data-page="admin"]) .btn:hover {
  transform: translateY(-2px);
}

body:not([data-page="admin"]) .btn:active {
  transform: translateY(0) scale(.985);
}

body:not([data-page="admin"]) .btn:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

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

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

body:not([data-page="admin"]) .btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
}

body:not([data-page="admin"]) .btn-ghost:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .28);
}

body:not([data-page="admin"]) .balance-chip {
  border-color: rgba(73, 215, 195, .3);
  background: rgba(73, 215, 195, .1);
}

.cinema-spotlight {
  min-height: clamp(570px, 51vw, 700px);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(110deg, rgba(255, 103, 88, .08), transparent 30%),
    var(--surface);
}

.cinema-spotlight.is-ready {
  animation: spotlight-reveal .55s cubic-bezier(.2, .8, .2, 1) both;
}

.cinema-spotlight::after {
  top: 0;
  width: 5px;
  height: 148px;
  border-radius: 0 0 4px 0;
  background: var(--primary);
}

.spotlight-media {
  transform: scale(1.015);
  filter: saturate(.9) contrast(1.04);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.cinema-spotlight:hover .spotlight-media {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.05);
}

.spotlight-shade {
  background:
    linear-gradient(90deg, rgba(5, 7, 9, .99) 0%, rgba(5, 7, 9, .9) 35%, rgba(5, 7, 9, .32) 69%, rgba(5, 7, 9, .08) 100%),
    linear-gradient(0deg, rgba(5, 7, 9, .94) 0%, transparent 58%);
}

.spotlight-copy {
  min-height: clamp(570px, 51vw, 700px);
  width: min(720px, 70%);
  padding: clamp(34px, 6vw, 82px);
}

.spotlight-copy h1 {
  max-width: 11ch;
  margin: 8px 0 18px;
  font-size: clamp(48px, 5.9vw, 82px);
  line-height: .94;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.spotlight-copy > p:not(.eyebrow) {
  max-width: 49ch;
  margin-bottom: 22px;
  color: #d8dde2;
  font-size: 16px;
  line-height: 1.62;
}

.spotlight-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 590px;
  margin-bottom: 20px;
}

.spotlight-topline .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.spotlight-topline .eyebrow i,
.signal-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(255, 103, 88, .12), 0 0 18px rgba(255, 103, 88, .7);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.spotlight-badges {
  margin: 0;
}

.spotlight-badges span,
.spotlight-badges span:last-child {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 9, 12, .62);
  backdrop-filter: blur(10px);
}

.spotlight-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.spotlight-credit i {
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.spotlight-badges span:last-child {
  border-color: rgba(255, 103, 88, .52);
  color: #ffd4cf;
}

.spotlight-proof {
  gap: 8px 19px;
  margin: -4px 0 23px;
  color: #d6dce1;
}

.spotlight-proof span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.spotlight-play {
  min-width: 174px;
}

.spotlight-bottomline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: rgba(255, 255, 255, .52);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.spotlight-bottomline::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--primary);
}

.spotlight-bottomline strong {
  color: rgba(255, 255, 255, .82);
}

.spotlight-rail {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 26px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .7);
}

.spotlight-rail span {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.spotlight-rail i {
  width: 1px;
  height: 54px;
  background: linear-gradient(var(--accent), transparent);
}

.spotlight-rail small {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.signal-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  margin-bottom: 18px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(14, 20, 26, .82);
  backdrop-filter: blur(16px);
}

.signal-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.signal-track {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
  color: #9ea8b2;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.signal-track i {
  flex: 0 0 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.signal-ticker > a {
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.signal-ticker > a:hover {
  color: var(--accent);
}

.value-strip {
  margin: 0 0 74px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, .035), transparent), var(--surface);
}

.value-strip article {
  min-height: 98px;
  padding: 20px 24px;
}

.value-strip strong {
  font-size: 14px;
}

.value-strip small {
  color: #aeb8c2;
}

.value-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-small);
  background: var(--surface-2);
}

.discovery-section {
  margin: 0 0 68px;
}

.discovery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.discovery-head h2 {
  margin: 0;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.discovery-head > p {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.mood-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 184px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mood-card::before,
.mood-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.mood-card::before {
  width: 190px;
  height: 190px;
  right: -72px;
  top: -84px;
  background: rgba(255, 255, 255, .14);
}

.mood-card::after {
  width: 100px;
  height: 100px;
  right: 28px;
  bottom: -64px;
  border: 22px solid rgba(255, 255, 255, .09);
}

.mood-card:hover,
.mood-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.mood-card span {
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mood-card strong {
  max-width: 10ch;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.mood-card small {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
}

.mood-premiere {
  background: linear-gradient(145deg, #5d1d26, #201013 72%);
}

.mood-series {
  background: linear-gradient(145deg, #123f46, #0d1f23 72%);
}

.mood-comedy {
  background: linear-gradient(145deg, #74551a, #241b0b 72%);
}

.mood-free {
  background: linear-gradient(145deg, #205746, #0c211a 72%);
}

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

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

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(29px, 3.1vw, 42px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

body:not([data-page="admin"]) .eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

body:not([data-page="admin"]) .section-link {
  color: #dfe5e9;
}

body:not([data-page="admin"]) .section-link:hover {
  color: var(--accent);
}

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

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

body:not([data-page="admin"]) .featured-grid .video-card:first-child {
  grid-column: span 2;
}

body:not([data-page="admin"]) .video-card {
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

body:not([data-page="admin"]) .video-card:nth-child(n) .video-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .075) 48%, transparent 58%) 0 0 / 220% 100%,
    var(--surface-2);
  box-shadow: 0 13px 32px rgba(0, 0, 0, .2);
  animation: poster-skeleton 1.4s ease-in-out infinite;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

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

body:not([data-page="admin"]) .video-card:hover .video-thumb,
body:not([data-page="admin"]) .video-card:focus-within .video-thumb {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .38);
}

body:not([data-page="admin"]) .video-thumb img {
  opacity: 0;
  transition: opacity .25s ease, transform .45s cubic-bezier(.2, .8, .2, 1), filter .3s ease;
}

body:not([data-page="admin"]) .video-thumb img.is-loaded {
  opacity: 1;
}

body:not([data-page="admin"]) .video-thumb.is-loaded {
  animation: none;
  background: var(--surface-2);
}

body:not([data-page="admin"]) .video-card:hover .video-thumb img,
body:not([data-page="admin"]) .video-card:focus-within .video-thumb img {
  transform: scale(1.055);
  filter: saturate(1.06);
}

body:not([data-page="admin"]) .video-thumb::after {
  height: 46%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68));
}

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

.video-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #8f9aa5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.video-kicker i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.editorial-index {
  position: absolute;
  z-index: 3;
  left: 13px;
  bottom: 9px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.07em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .65);
}

.featured-grid .video-card:first-child .video-title {
  max-width: 28ch;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -.025em;
}

body:not([data-page="admin"]) .video-title {
  min-height: 0;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.35;
}

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

body:not([data-page="admin"]) .price-tag,
body:not([data-page="admin"]) .quality-tag {
  top: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

body:not([data-page="admin"]) .price-tag {
  top: auto;
  right: 11px;
  bottom: 11px;
  color: #251b02;
  background: var(--gold);
}

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

body:not([data-page="admin"]) .quality-tag {
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  background: rgba(6, 9, 12, .72);
  backdrop-filter: blur(8px);
}

.favorite-button {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 9, 12, .76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.favorite-button:hover,
.favorite-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: #06110f;
  background: var(--accent);
  outline: none;
}

.favorite-button.is-active {
  border-color: var(--accent);
  color: #06110f;
  background: var(--accent);
}

.favorite-button:disabled {
  opacity: .6;
  cursor: wait;
}

.favorite-button svg,
.library-cta svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.favorite-button.is-active svg,
.library-cta.is-active svg {
  fill: currentColor;
}

.card-progress {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
}

.card-progress > span {
  display: block;
  height: 100%;
  border-radius: 0 99px 99px 0;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(255, 103, 88, .65);
}

body:not([data-page="admin"]) .play-mark {
  width: 52px;
  height: 52px;
  opacity: 0;
  color: #210705;
  background: var(--primary);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

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

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

.personal-section {
  position: relative;
}

.personal-section::before {
  content: "";
  position: absolute;
  top: -24px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), rgba(73, 215, 195, .55), transparent 72%);
  opacity: .55;
}

.personal-empty {
  grid-column: 1 / -1;
}

.library-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
}

.library-cta.is-active {
  border-color: var(--accent);
  color: #06110f;
  background: var(--accent);
}

@keyframes poster-skeleton {
  from { background-position: 120% 0, 0 0; }
  to { background-position: -120% 0, 0 0; }
}

@keyframes spotlight-reveal {
  from { opacity: .4; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes live-pulse {
  0%, 100% { opacity: .55; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1); }
}

body:not([data-page="admin"]) .catalog-tools {
  min-height: 136px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--border);
}

.catalog-title {
  max-width: 600px;
}

.catalog-lead {
  max-width: 49ch;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-actions {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(170px, auto);
  gap: 10px;
  align-items: end;
}

body:not([data-page="admin"]) .search-box,
.sort-box {
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface);
}

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

body:not([data-page="admin"]) .search-box:focus-within,
.sort-box:focus-within {
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(73, 215, 195, .1);
}

.sort-box {
  display: grid;
  align-content: center;
  padding: 7px 12px;
}

.sort-box span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sort-box select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.sort-box option {
  color: var(--text);
  background: var(--surface-2);
}

body:not([data-page="admin"]) .category-tabs {
  gap: 8px;
  margin-bottom: 5px;
  scrollbar-width: none;
}

body:not([data-page="admin"]) .category-tabs::-webkit-scrollbar {
  display: none;
}

body:not([data-page="admin"]) .category-tab {
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #c8d0d7;
  background: transparent;
}

body:not([data-page="admin"]) .category-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .055);
}

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

.catalog-summary {
  margin: 11px 0 16px;
}

.video-detail {
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
}

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

.purchase-offer {
  border: 1px solid rgba(255, 103, 88, .35);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(73, 20, 19, .32);
}

.purchase-offer-ready {
  border-color: rgba(73, 215, 195, .35);
  border-left-color: var(--accent);
  background: rgba(12, 51, 43, .35);
}

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

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

.account-hero .profile-head {
  background: linear-gradient(135deg, rgba(255, 255, 255, .035), transparent), var(--surface);
}

.wallet-panel {
  border-color: rgba(255, 103, 88, .28);
  background: linear-gradient(145deg, rgba(255, 103, 88, .12), transparent), var(--surface);
}

.profile-avatar {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), #ff9b68 48%, var(--accent));
  transform: rotate(-2deg);
}

.login-page {
  min-height: 100dvh;
  overflow: hidden;
  background: #05070a;
}

.login-page::before {
  background:
    linear-gradient(90deg, rgba(5, 7, 10, .98) 0%, rgba(5, 7, 10, .75) 48%, rgba(5, 7, 10, .42)),
    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: .88;
  transform: scale(1.02);
}

.login-page::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, #05070a);
  pointer-events: none;
}

body:not([data-page="admin"]) .login-card {
  width: min(480px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(12, 17, 22, .92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(125%);
}

.login-brand {
  margin-bottom: 20px;
}

.login-card h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

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

.form-label {
  display: block;
  margin: 22px 0 8px;
  color: #d9dfe3;
  font-size: 12px;
  font-weight: 800;
}

body:not([data-page="admin"]) .phone-field,
body:not([data-page="admin"]) .otp-input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--surface-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}

body:not([data-page="admin"]) .phone-field {
  margin: 0 0 18px;
}

body:not([data-page="admin"]) .phone-field:focus-within,
body:not([data-page="admin"]) .otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(73, 215, 195, .1);
}

.login-benefits {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  color: #bdc5cc;
  font-size: 12px;
  list-style: none;
}

.login-benefits li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 9px 2px 0;
  border-radius: 50%;
  background: var(--accent);
}

.modal-backdrop {
  background: rgba(2, 4, 6, .78);
  backdrop-filter: blur(16px);
}

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

.modal-header {
  min-height: 66px;
  padding: 15px 18px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

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

.toast-container {
  bottom: 24px;
}

.toast {
  max-width: min(390px, calc(100vw - 32px));
  border-radius: var(--radius-small);
  background: rgba(16, 21, 27, .96);
  backdrop-filter: blur(14px);
}

.studio-footer {
  width: min(1280px, calc(100% - 48px));
  margin-top: 16px;
  padding: 34px 0 72px;
}

.doc-page {
  width: min(820px, calc(100% - 36px));
  margin-block: 32px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.doc-page h1 {
  margin-top: 42px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.doc-page h2 {
  margin-top: 32px;
}

.not-found {
  min-height: 100dvh;
}

.not-found h1 {
  color: var(--primary);
}

@media (max-width: 1020px) {
  .mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-actions {
    grid-template-columns: minmax(250px, 1fr) 170px;
  }

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

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

  body:not([data-page="admin"]) .featured-grid .video-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body:not([data-page="admin"]) {
    background:
      radial-gradient(circle at 20% 0%, rgba(255, 103, 88, .1), transparent 19rem),
      var(--bg);
  }

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

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

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

  .cinema-spotlight {
    min-height: 520px;
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .cinema-spotlight::after {
    width: 4px;
    height: 94px;
  }

  .cinema-spotlight:hover .spotlight-media {
    transform: scale(1.015);
  }

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

  .spotlight-shade {
    background:
      linear-gradient(0deg, rgba(5, 7, 9, .99) 0%, rgba(5, 7, 9, .74) 53%, rgba(5, 7, 9, .1) 100%),
      linear-gradient(90deg, rgba(5, 7, 9, .58), transparent 72%);
  }

  .spotlight-copy {
    min-height: 520px;
    width: 100%;
    padding: 24px;
  }

  .spotlight-copy h1 {
    max-width: 15ch;
    margin-bottom: 12px;
    font-size: clamp(32px, 10vw, 39px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  .spotlight-topline {
    display: block;
    margin-bottom: 12px;
  }

  .spotlight-topline .eyebrow {
    margin-bottom: 12px;
  }

  .spotlight-credit {
    font-size: 9px;
  }

  .spotlight-rail,
  .spotlight-bottomline {
    display: none;
  }

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

  .spotlight-proof {
    gap: 7px 14px;
    margin: 0 0 16px;
    font-size: 11px;
  }

  .spotlight-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .spotlight-copy .btn {
    width: 100%;
  }

  .value-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 48px;
    padding: 10px;
    border: 0;
    background: transparent;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .signal-ticker {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .signal-ticker > a {
    display: none;
  }

  .value-strip::-webkit-scrollbar {
    display: none;
  }

  .value-strip article {
    min-width: min(82vw, 310px);
    min-height: 84px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    scroll-snap-align: start;
  }

  .value-strip article:last-child {
    border: 1px solid var(--border);
  }

  .discovery-section {
    margin-bottom: 52px;
  }

  .discovery-head {
    display: block;
    margin-bottom: 18px;
  }

  .discovery-head h2 {
    font-size: 29px;
  }

  .discovery-head > p {
    margin-top: 10px;
    font-size: 14px;
  }

  .mood-grid {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    margin-right: -12px;
    padding-right: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mood-grid::-webkit-scrollbar {
    display: none;
  }

  .mood-card {
    min-width: min(72vw, 260px);
    min-height: 166px;
    scroll-snap-align: start;
  }

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

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

  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: 29px;
  }

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

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

  body:not([data-page="admin"]) .featured-grid .video-card:first-child {
    grid-column: 1 / -1;
  }

  body:not([data-page="admin"]) .personal-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    margin-right: -12px;
    padding: 0 12px 8px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body:not([data-page="admin"]) .personal-grid::-webkit-scrollbar {
    display: none;
  }

  body:not([data-page="admin"]) .personal-grid .video-card {
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: start;
  }

  body:not([data-page="admin"]) .personal-grid .personal-empty {
    flex-basis: 100%;
  }

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

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

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

  body:not([data-page="admin"]) .catalog-tools {
    min-height: 0;
    align-items: stretch;
    padding-top: 22px;
  }

  .catalog-lead {
    font-size: 14px;
  }

  .catalog-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .sort-box {
    min-height: 50px;
  }

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

  .account-hero .profile-avatar {
    width: 70px;
    height: 70px;
  }

  .studio-footer {
    width: min(100% - 24px, 1280px);
    padding-bottom: 96px;
  }

  .login-page {
    place-items: center;
    padding: 18px;
  }

  body:not([data-page="admin"]) .login-card {
    padding: 28px 22px;
  }

  .login-brand {
    align-items: start;
  }

  .login-brand span {
    max-width: 120px;
    text-align: right;
  }
}

@media (max-width: 390px) {
  .spotlight-copy {
    padding: 21px;
  }

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

  .spotlight-proof {
    gap: 6px 11px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .spotlight-media,
  .mood-card,
  body:not([data-page="admin"]) .video-thumb,
  body:not([data-page="admin"]) .video-thumb img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Language switcher (RU / ТҶ) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch .lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.62);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-switch .lang-option:hover,
.lang-switch .lang-option:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switch .lang-option.is-active {
  color: #07090c;
  background: #fff;
}

body.light .lang-switch {
  border-color: rgba(9, 12, 16, 0.16);
  background: rgba(9, 12, 16, 0.04);
}

body.light .lang-switch .lang-option {
  color: rgba(9, 12, 16, 0.62);
}

body.light .lang-switch .lang-option.is-active {
  color: #fff;
  background: #14181f;
}

.login-card .lang-switch,
.not-found .lang-switch {
  margin: 0 auto 18px;
}

.not-found .lang-switch {
  margin-top: 22px;
}

@media (max-width: 560px) {
  .lang-switch .lang-option {
    min-width: 34px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* 2026-09 compact cinema redesign. This final layer intentionally normalizes
   older visual experiments while preserving their component behavior. */
body:not([data-page="admin"]) {
  --bg: #02030a;
  --surface: #1a1b34;
  --surface-2: #232441;
  --surface-3: #2d2f50;
  --text: #f3f4fb;
  --muted: #9ca5bf;
  --border: #343856;
  --border-strong: #555b80;
  --primary: #6d63ff;
  --primary-hover: #8179ff;
  --accent: #10b981;
  --gold: #ffad14;
  --danger: #ff6376;
  --radius: 12px;
  --radius-small: 9px;
  --shadow: 0 18px 52px rgba(0, 0, 0, .34);
  color: var(--text);
  background:
    linear-gradient(110deg, rgba(0, 148, 170, .08), transparent 30%),
    linear-gradient(250deg, rgba(111, 0, 146, .13), transparent 33%),
    var(--bg);
  background-attachment: fixed;
}

body:not([data-page="admin"]) :focus-visible {
  outline: 3px solid rgba(129, 121, 255, .72);
  outline-offset: 3px;
}

body:not([data-page="admin"]) .app-header {
  height: 62px;
  padding-inline: max(22px, calc((100vw - 1240px) / 2));
  border-top: 3px solid #393943;
  border-bottom: 1px solid #343856;
  background: #181936;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: none;
}

body:not([data-page="admin"]) .app-header::after,
body:not([data-page="admin"]) .app-logo::before {
  display: none;
}

body:not([data-page="admin"]) .app-logo {
  display: inline-flex;
  align-items: baseline;
  padding: 0;
  color: #aaa3d6;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -.045em;
  text-transform: lowercase;
}

body:not([data-page="admin"]) .app-logo strong {
  color: var(--gold);
  font: inherit;
}

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

body:not([data-page="admin"]) .desktop-nav a {
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  color: #7f89ad;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

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

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

.nav-glyph {
  width: 17px;
  height: 17px;
}

body:not([data-page="admin"]) .header-actions {
  gap: 10px;
}

body:not([data-page="admin"]) .balance-chip,
body:not([data-page="admin"]) .avatar {
  min-height: 38px;
  border-color: #343856;
  background: #20213d;
}

body:not([data-page="admin"]) .balance-chip {
  border-radius: 999px;
  color: var(--gold);
}

body:not([data-page="admin"]) .avatar {
  width: 38px;
  height: 38px;
  color: #fff;
  border-color: #7068ff;
  border-radius: 50%;
  background: #5349ec;
}

.lang-switch {
  border-color: #343856;
  background: #20213d;
}

.lang-switch .lang-option {
  color: #8d96b5;
}

.lang-switch .lang-option.is-active {
  color: #fff;
  background: #5349ec;
}

body:not([data-page="admin"]) .page-content {
  width: min(1240px, calc(100% - 44px));
  min-height: calc(100dvh - 150px);
  padding: 24px 0 92px;
}

body:not([data-page="admin"]) .btn {
  min-height: 46px;
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
}

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

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

body:not([data-page="admin"]) .btn-success {
  color: #fff;
  background: linear-gradient(90deg, #13bd91, #08a96f);
}

body:not([data-page="admin"]) .btn-success:hover {
  background: linear-gradient(90deg, #19cda0, #0bb87a);
}

body:not([data-page="admin"]) .btn-ghost {
  color: #dfe2f5;
  border-color: #3d4263;
  background: #1d1e38;
}

/* Home: image first, title and actions below, matching the compact reference. */
.cinema-spotlight {
  display: grid;
  min-height: 0;
  margin: 0 0 34px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: auto;
}

.cinema-spotlight::after,
.spotlight-shade,
.spotlight-rail,
.spotlight-topline,
.spotlight-credit,
.spotlight-proof,
.spotlight-bottomline {
  display: none;
}

.spotlight-media {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #343856;
  border-radius: 12px;
  object-fit: cover;
  transform: none;
  filter: none;
}

.cinema-spotlight:hover .spotlight-media {
  transform: none;
  filter: none;
}

.spotlight-copy {
  position: relative;
  z-index: auto;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 28px 0 0;
}

.spotlight-copy h1 {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(29px, 3.4vw, 43px);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.spotlight-copy > p:not(.eyebrow) {
  max-width: 72ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.spotlight-copy .hero-actions {
  display: flex;
  gap: 10px;
  margin: 0;
}

.signal-ticker,
.value-strip,
.discovery-section {
  display: none;
}

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

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

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(25px, 2.7vw, 34px);
  line-height: 1.15;
}

body:not([data-page="admin"]) .eyebrow {
  color: #8179ff;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .08em;
}

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: 16px 18px;
}

body:not([data-page="admin"]) .featured-grid .video-card:first-child {
  grid-column: auto;
}

body:not([data-page="admin"]) .video-card {
  overflow: hidden;
  border: 1px solid #2c304d;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  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: #565c88;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32);
}

body:not([data-page="admin"]) .video-card:nth-child(n) .video-thumb {
  aspect-ratio: 16 / 9;
  border: 0;
  border-bottom: 1px solid #2c304d;
  border-radius: 0;
  background: #252642;
  box-shadow: none;
}

body:not([data-page="admin"]) .video-card:hover .video-thumb,
body:not([data-page="admin"]) .video-card:focus-within .video-thumb {
  transform: none;
  border-color: #2c304d;
  box-shadow: none;
}

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

body:not([data-page="admin"]) .video-thumb::after,
.editorial-index,
.video-kicker,
.watch-label,
body:not([data-page="admin"]) .play-mark {
  display: none;
}

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

body:not([data-page="admin"]) .video-title,
.featured-grid .video-card:first-child .video-title {
  display: -webkit-box;
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #f0f1f8;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.38;
  letter-spacing: -.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card-footer {
  min-height: 18px;
  margin-top: 7px;
}

body:not([data-page="admin"]) .video-date {
  color: #7f89a8;
  font-size: 11px;
}

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

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

body:not([data-page="admin"]) .quality-tag {
  top: 8px;
  left: 8px;
  background: rgba(18, 18, 36, .82);
}

.favorite-button {
  top: 7px;
  right: 7px;
  width: 38px;
  height: 38px;
  color: #daddf1;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(22, 23, 47, .84);
}

/* Catalog tools stay available but no longer dominate the first viewport. */
body:not([data-page="admin"]) .catalog-tools {
  min-height: 0;
  justify-content: flex-end;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.catalog-title {
  display: none;
}

.catalog-actions {
  grid-template-columns: minmax(240px, 340px) 170px;
  width: min(100%, 520px);
}

body:not([data-page="admin"]) .search-box,
.sort-box {
  min-height: 44px;
  border-color: #343856;
  border-radius: 9px;
  background: #17182f;
}

body:not([data-page="admin"]) .search-box:focus-within,
.sort-box:focus-within {
  border-color: #756cff;
  background: #1d1e39;
  box-shadow: 0 0 0 3px rgba(109, 99, 255, .15);
}

body:not([data-page="admin"]) .category-tabs {
  gap: 10px;
  margin: 0 0 14px;
}

body:not([data-page="admin"]) .category-tab {
  min-height: 36px;
  padding-inline: 18px;
  border-color: #343856;
  border-radius: 999px;
  color: #a5aec8;
  background: transparent;
  font-size: 13px;
}

body:not([data-page="admin"]) .category-tab.active,
body:not([data-page="admin"]) .category-tab.active:hover {
  color: #fff;
  border-color: #6d63ff;
  background: #6d63ff;
}

.catalog-summary {
  margin: 8px 0 14px;
  color: #737d9e;
  font-size: 12px;
}

/* Detail: cinematic artwork, title, sharing and purchase controls in one column. */
.video-detail {
  display: block;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.video-detail-poster {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-color: #343856;
  border-radius: 12px;
  box-shadow: none;
}

.video-detail-poster .poster-proof {
  display: none;
}

.video-detail-copy {
  display: block;
}

.video-detail-copy > .eyebrow {
  display: none;
}

.video-detail-copy h1 {
  margin: 30px 0 12px;
  font-size: clamp(29px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.video-detail-description {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.detail-share {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #343856;
  border-radius: 14px;
  background: rgba(20, 19, 41, .8);
}

.detail-share-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #dfe1ef;
  font-size: 14px;
}

.detail-share-title svg {
  width: 17px;
  height: 17px;
  fill: #756cff;
}

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

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: filter .2s ease, transform .2s ease;
}

.share-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.share-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-whatsapp {
  background: #22cf70;
}

.share-telegram {
  background: #149ed7;
}

.video-facts {
  margin: 18px 0;
}

.video-facts div {
  border-color: #343856;
  border-radius: 10px;
  background: #17182f;
}

.purchase-offer,
.purchase-offer-ready {
  margin-top: 18px;
  border: 1px solid #343856;
  border-left: 1px solid #343856;
  border-radius: 14px;
  background: #17182f;
}

.detail-back-link {
  display: inline-flex;
  margin-top: 18px;
  color: #979fff;
}

/* Account mirrors the compact centered profile and stacked settings panel. */
.account-layout {
  width: min(1240px, calc(100% - 44px));
}

.account-hero {
  display: block;
  margin: 22px 0 24px;
}

.account-hero .profile-head {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 34px 20px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.account-hero .profile-avatar {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #756cff, #7542ad);
  box-shadow: 0 10px 24px rgba(109, 99, 255, .32);
  transform: none;
}

.account-hero .profile-head .eyebrow,
.account-hero .profile-head p:last-child {
  display: none;
}

.account-hero .profile-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.account-details {
  display: block;
  overflow: hidden;
  border: 1px solid #343856;
  border-radius: 15px;
  background: var(--surface);
}

.account-details .profile-row {
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid #343856;
  border-radius: 0;
  background: transparent;
}

.account-details .profile-row:last-child {
  border-bottom: 0;
}

.account-details .profile-row span:first-child {
  color: var(--muted);
}

.account-details .profile-row strong {
  font-variant-numeric: tabular-nums;
}

.account-details .profile-row:last-child strong {
  color: var(--gold);
}

.account-topup {
  margin: 22px 0 24px;
}

.menu-list {
  gap: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid #343856;
  border-radius: 15px;
  background: var(--surface);
}

.menu-item,
button.menu-item {
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid #343856;
  border-radius: 0;
  background: transparent;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item:hover {
  background: rgba(255, 255, 255, .035);
}

.menu-item strong {
  color: #8179ff;
}

.login-page {
  background: #03040c;
}

.login-page::before {
  background:
    linear-gradient(90deg, rgba(3, 4, 12, .98), rgba(17, 7, 31, .74)),
    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%);
}

.cinema-spotlight.is-empty {
  display: grid;
  place-items: center;
}

.spotlight-empty {
  width: min(520px, calc(100% - 40px));
  margin: auto;
}

body:not([data-page="admin"]) .login-card {
  border: 1px solid #3a3d61;
  border-left: 1px solid #3a3d61;
  border-radius: 15px;
  background: rgba(24, 25, 54, .94);
}

body:not([data-page="admin"]) .phone-field,
body:not([data-page="admin"]) .otp-input {
  border-color: #3a3d61;
  background: #20213d;
}

.studio-footer {
  width: min(1240px, calc(100% - 44px));
  border-color: #262a45;
}

@media (max-width: 900px) {
  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));
  }
}

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

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

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

  .cinema-spotlight {
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .spotlight-media {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    object-position: center;
  }

  .spotlight-copy {
    min-height: 0;
    padding: 18px 0 0;
  }

  .spotlight-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(25px, 8vw, 33px);
  }

  .spotlight-copy > p:not(.eyebrow) {
    display: block;
    font-size: 14px;
  }

  .spotlight-copy .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  body:not([data-page="admin"]) .video-title,
  .featured-grid .video-card:first-child .video-title {
    min-height: 38px;
    font-size: 13px;
  }

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

  .catalog-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .video-detail-copy h1 {
    margin-top: 20px;
    font-size: 27px;
  }

  .detail-share {
    padding: 16px;
  }

  .video-facts {
    grid-template-columns: 1fr;
  }

  .account-hero {
    margin-top: 8px;
  }

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

  .account-details .profile-row,
  .menu-item,
  button.menu-item {
    padding-inline: 16px;
  }

  .bottom-nav {
    border-color: #3a3d61;
    background: rgba(24, 25, 54, .94);
  }
}

@media (max-width: 420px) {
  .detail-share-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .share-button,
  body:not([data-page="admin"]) .video-card {
    transition: none;
    transform: none;
  }
}
