﻿:root {
  color-scheme: dark;
  --bg: #040405;
  --bg-soft: #0d0d10;
  --panel: rgba(14, 14, 18, 0.9);
  --panel-strong: rgba(18, 18, 23, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8fb;
  --muted: #a6acba;
  --hot: #e50914;
  --hot-strong: #ff1f2d;
  --cyan: #b50914;
  --gold: #ffc857;
  --green: #39d98a;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 84% 0%, rgba(229, 9, 20, 0.18), transparent 31rem),
    radial-gradient(circle at 8% 54%, rgba(126, 0, 8, 0.12), transparent 28rem),
    linear-gradient(135deg, #020203 0%, #09090c 48%, #040405 100%);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px) 34px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(229, 9, 20, 0.12), transparent 48%),
    rgba(4, 4, 5, 0.92);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: white;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.footer-links a:hover {
  color: white;
  background: rgba(229, 9, 20, 0.14);
  border-color: rgba(229, 9, 20, 0.38);
}

.about-video-dialog {
  width: min(980px, calc(100% - 28px));
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.about-video-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.about-video-modal {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 86% 0%, rgba(229, 9, 20, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(13, 13, 16, 0.98), rgba(32, 3, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-video-head {
  display: grid;
  gap: 4px;
  padding: 0 52px 14px 0;
}

.about-video-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.about-video-modal video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 640px);
  object-fit: contain;
  background: #020203;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(6, 7, 11, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: auto;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.18));
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-links svg {
  width: 17px;
  height: 17px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(229, 9, 20, 0.13);
  border-color: rgba(229, 9, 20, 0.32);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  transform: translateY(-1px);
}

.nav-links a.is-active {
  color: white;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.94), rgba(95, 0, 7, 0.76));
  border-color: rgba(255, 31, 45, 0.72);
  box-shadow: 0 12px 34px rgba(229, 9, 20, 0.24);
}

.mobile-nav {
  display: none;
}

.page[hidden] {
  display: none !important;
}

html[data-initial-page="/"] .page:not([data-page="/"]),
html[data-initial-page="/katalog"] .page:not([data-page="/katalog"]),
html[data-initial-page="/news"] .page:not([data-page="/news"]),
html[data-initial-page="/reviews"] .page:not([data-page="/reviews"]),
html[data-initial-page="/favorites"] .page:not([data-page="/favorites"]),
html[data-initial-page="/shorts"] .page:not([data-page="/shorts"]),
html[data-initial-page="/watch"] .page:not([data-page="/watch"]),
html[data-initial-page="/profile"] .page:not([data-page="/profile"]),
html[data-initial-page="/users"] .page:not([data-page="/users"]),
html[data-initial-page="/admin"] .page:not([data-page="/admin"]) {
  display: none !important;
}

main {
  position: relative;
}

.page {
  position: relative;
  isolation: isolate;
}

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

.search-box {
  display: grid;
  grid-template-columns: 18px minmax(110px, 220px);
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.text-field {
  min-height: 44px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

select.text-field {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 17px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.06);
}

select.text-field option {
  color: var(--text);
  background: #11131d;
}

select.text-field option:checked {
  color: white;
  background: var(--hot);
}

.search-box input::placeholder,
textarea::placeholder {
  color: #747c8e;
}

.icon-button,
.primary-button,
.ghost-button,
.segmented button,
.genre-row button,
.tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border-radius: var(--radius);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.icon-button {
  width: 42px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.primary-button {
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--hot), #8f0008);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 34px rgba(229, 9, 20, 0.28);
}

.ghost-button {
  padding: 0 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.compact {
  min-height: 38px;
  padding: 0 14px;
}

.icon-button:hover,
.primary-button:hover,
.ghost-button:hover,
.segmented button:hover,
.genre-row button:hover,
.tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero-stage {
  position: relative;
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero-image {
  object-fit: contain;
  object-position: center;
  filter: saturate(1.04) contrast(1.08);
}

.home-favorites {
  padding: 24px clamp(18px, 4vw, 56px) 22px;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(12, 14, 22, 0.96), rgba(8, 9, 14, 0.96));
  border-bottom: 1px solid var(--line);
}

.home-favorites-grid {
  display: flex;
  gap: 12px;
}

.home-favorites-login {
  grid-column: 1 / -1;
  flex: 0 0 min(560px, 100%);
  max-width: 560px;
}

.home-favorites-login .primary-button {
  justify-self: start;
  margin-top: 4px;
}

.home-recent {
  position: relative;
  overflow: hidden;
  padding: 28px clamp(18px, 4vw, 56px) 34px;
  background: #050609;
  border-bottom: 1px solid var(--line);
}

.home-recent-grid {
  display: flex;
  gap: 12px;
}

.recent-showcase {
  position: relative;
  height: clamp(480px, 34vw, 650px);
  min-height: 480px;
  overflow: hidden;
  margin: 0 0 14px;
  background:
    radial-gradient(circle at 82% 24%, rgba(229, 9, 20, 0.2), transparent 32rem),
    linear-gradient(135deg, #060709 0%, #100306 58%, #25060b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.recent-showcase[hidden] {
  display: none;
}

.recent-showcase.is-loading-next::after {
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.94), rgba(5, 6, 9, 0.24) 56%, rgba(229, 9, 20, 0.08)),
    linear-gradient(180deg, transparent, rgba(5, 6, 9, 0.18));
}

.recent-backdrop {
  position: absolute;
  inset: -26px;
  background:
    radial-gradient(circle at 76% 20%, rgba(229, 9, 20, 0.22), transparent 30rem),
    linear-gradient(135deg, #050609 0%, #0d0306 54%, #26060b 100%);
  filter: none;
  transform: scale(1.01);
  animation: recentBackdropIn 260ms ease both;
  transition: opacity 260ms ease, transform 9s linear;
}

.recent-backdrop.is-poster-fallback {
  inset: -80px;
  transform: scale(1.2);
}

.recent-backdrop.is-empty-fallback {
  inset: 0;
  transform: none;
}

.recent-backdrop-image,
.recent-backdrop-poster {
  position: absolute;
  display: block;
  background: transparent;
  pointer-events: none;
}

.recent-backdrop-image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.12) contrast(1.08) brightness(0.78);
}

.recent-backdrop.is-poster-fallback .recent-backdrop-image {
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  object-fit: cover;
  object-position: center;
  filter: blur(22px) saturate(1.28) contrast(1.08) brightness(0.58);
  transform: scale(1.14);
}

.recent-backdrop-poster {
  top: 50%;
  right: clamp(48px, 12vw, 220px);
  width: min(22vw, 260px);
  max-height: 78%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  transform: translateY(-50%);
}

.recent-showcase:hover .recent-backdrop {
  transform: scale(1.025);
}

.recent-showcase:hover .recent-backdrop.is-poster-fallback {
  transform: scale(1.24);
}

.recent-showcase:hover .recent-backdrop.is-empty-fallback {
  transform: none;
}

.recent-showcase:focus-visible {
  outline: 2px solid rgba(255, 31, 45, 0.9);
  outline-offset: 3px;
}

.recent-showcase::before,
.recent-showcase::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.recent-showcase::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 30%, rgba(0, 0, 0, 0.2) 64%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 42%, rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 92% 14%, rgba(229, 9, 20, 0.25), transparent 32rem);
}

.recent-showcase::after {
  inset: -28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, 0.62) 100%);
  filter: blur(8px);
}

.recent-showcase-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  width: min(680px, 48%);
  height: 100%;
  padding: clamp(28px, 5vw, 72px);
  animation: recentCopyIn 260ms ease both;
  pointer-events: none;
}

.recent-admin-image-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  color: white;
  font-weight: 800;
  background: rgba(16, 18, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.recent-admin-image-button:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.92), rgba(116, 0, 8, 0.82));
  border-color: rgba(255, 255, 255, 0.22);
}

.recent-admin-image-button svg {
  width: 17px;
  height: 17px;
}

.recent-showcase-copy h3 {
  max-width: 620px;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 3.35vw, 3.8rem);
  line-height: 1.03;
  text-wrap: balance;
}

.recent-showcase-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #d8deec;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.62;
}

.recent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: #d9deea;
  font-weight: 800;
}

.recent-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: min(100%, 270px);
  min-width: 0;
  min-height: 34px;
  padding: 7px 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
}

.recent-meta .recent-rating {
  color: white;
  background: linear-gradient(135deg, var(--hot), #760008);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(229, 9, 20, 0.26);
}

.recent-meta .rating-imdb {
  color: #101010;
  background: linear-gradient(135deg, #f5c518, #c69509);
  border-color: rgba(255, 227, 130, 0.45);
  box-shadow: 0 10px 26px rgba(245, 197, 24, 0.18);
}

.recent-meta b,
.poster-badge b {
  flex: 0 0 auto;
  font-size: 0.68em;
  letter-spacing: 0;
  opacity: 0.88;
}

.recent-info-badge {
  width: max-content !important;
  max-width: min(100%, 300px);
}

.recent-status-badge {
  width: max-content !important;
  max-width: min(100%, 260px);
}

.recent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  pointer-events: auto;
}

.recent-timer {
  position: relative;
  display: block;
  width: min(360px, 100%);
  height: 3px;
  overflow: hidden;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.recent-timer::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--hot), var(--hot-strong));
  transform-origin: left;
  animation: recentTimer 9s linear infinite;
}

.recent-thumb-rail {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 2px 2px 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.recent-thumb-rail::-webkit-scrollbar {
  display: none;
}

.recent-thumb {
  position: relative;
  flex: 0 0 clamp(112px, 9vw, 154px);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  padding: 0;
  color: white;
  text-align: left;
  background: #080a10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  scroll-snap-align: start;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.recent-thumb:hover,
.recent-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(255, 31, 45, 0.82);
  box-shadow: 0 18px 52px rgba(229, 9, 20, 0.24);
}

.recent-thumb.is-active {
  outline: 2px solid rgba(255, 31, 45, 0.88);
  outline-offset: -3px;
}

.recent-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
}

.recent-thumb span {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 3px;
  padding: 12px;
}

.recent-thumb strong,
.recent-thumb small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-thumb small {
  color: #d8deec;
  font-size: 0.76rem;
}

@keyframes recentTimer {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes recentBackdropIn {
  from {
    opacity: 0.12;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1.01);
  }
}

@keyframes recentCopyIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-movie-rail {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 2px 2px 6px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.home-movie-rail::-webkit-scrollbar {
  display: none;
}

.home-movie-rail .movie-card {
  flex: 0 0 clamp(124px, 10vw, 168px);
  scroll-snap-align: start;
}

.home-movie-rail .poster-button {
  border-radius: 7px;
}

.home-movie-rail .poster-content {
  gap: 5px;
  padding: 9px;
}

.home-movie-rail .poster-title {
  min-height: 2.24em;
  font-size: 0.86rem;
  line-height: 1.12;
}

.home-movie-rail .poster-meta {
  gap: 6px;
  font-size: 0.67rem;
}

.home-movie-rail .poster-badges {
  gap: 4px;
}

.home-movie-rail .poster-badge {
  width: max-content;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 0.62rem;
}

.home-movie-rail .poster-badge.rating-imdb {
  width: max-content;
}

.home-movie-rail .poster-badge.video {
  width: max-content;
}

.home-movie-rail .poster-badge.exclusive {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-movie-rail .card-actions {
  gap: 6px;
  margin-top: 7px;
}

.home-movie-rail .card-actions button {
  min-height: 32px;
}

.home-movie-rail .card-actions .primary-button {
  padding-inline: 9px;
  font-size: 0.78rem;
}

.home-movie-rail .card-actions .icon-button,
.home-movie-rail .card-actions .trailer-button {
  flex-basis: 34px;
  width: 34px;
}

.home-movie-rail .card-actions .primary-button svg {
  width: 15px;
  height: 15px;
}

.continue-card .poster-button {
  position: relative;
}

.continue-card .continue-progress {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.continue-card .continue-progress b {
  display: block;
  height: 100%;
  background: #e50914;
}

.continue-card .card-actions .primary-button {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shelf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shelf-arrow {
  width: 38px;
  padding: 0;
}

.home-news {
  padding: 24px clamp(18px, 4vw, 56px) 34px;
  background: #090b12;
  border-bottom: 1px solid var(--line);
}

.home-news .section-heading {
  margin-bottom: 14px;
}

.home-news .eyebrow {
  margin-bottom: 6px;
  font-size: 0.68rem;
}

.home-news .section-heading h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
}

.home-news .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-news .news-card {
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 132px;
}

.home-news .news-image {
  aspect-ratio: auto;
  min-height: 100%;
}

.home-news .news-content {
  gap: 6px;
  padding: 11px;
}

.home-news .news-date {
  font-size: 0.64rem;
}

.home-news .news-content h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.96rem;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-news .news-content p {
  font-size: 0.8rem;
  line-height: 1.38;
  -webkit-line-clamp: 2;
}

.home-news .news-actions {
  gap: 6px;
}

.home-news .news-actions .primary-button,
.home-news .news-movie-link {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 0.78rem;
}

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

.news-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: #11141d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.news-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--hot-strong);
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.18), transparent 46%),
    #080a10;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image svg {
  width: 38px;
  height: 38px;
}

.news-content {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.news-date {
  color: var(--hot-strong);
  font-size: 0.75rem;
  font-weight: 800;
}

.news-content h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
}

.news-content p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: #c9cfdd;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-movie-link {
  justify-self: start;
  max-width: 100%;
  margin-top: 3px;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.news-list-grid {
  margin-top: 18px;
}

.news-full {
  display: grid;
  gap: 18px;
}

.news-full-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  background: #11141d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.news-full-media {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--hot-strong);
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.18), transparent 46%),
    #080a10;
}

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

.news-full-media svg {
  width: 54px;
  height: 54px;
}

.news-full-body {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 3vw, 30px);
}

.news-full-body h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.news-full-body p {
  margin: 0;
  color: #d7dce8;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.24) 0%, rgba(6, 7, 11, 0.04) 46%, rgba(6, 7, 11, 0.42) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 4vw, 44px);
  display: block;
  z-index: 1;
  width: auto;
  margin: 0;
  padding: 0;
}

.hero-content .eyebrow,
.hero-content h1,
  .hero-copy {
    display: none;
  }

.eyebrow {
  margin: 0 0 10px;
  color: var(--hot-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 6.5vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 28px;
  color: #d7dbe6;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

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

.hero-strip {
  display: none;
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 30px;
  left: clamp(18px, 4vw, 56px);
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: rgba(7, 8, 14, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.hero-strip article {
  min-width: 0;
  padding: 18px clamp(16px, 3vw, 30px);
  border-right: 1px solid var(--line);
}

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

.hero-strip span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-strip strong {
  display: block;
  overflow: hidden;
  font-size: clamp(1rem, 2vw, 1.24rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-section,
.catalog-section,
.news-section,
.reviews-section,
.favorites-section,
.shorts-section,
.profile-section,
.admin-section {
  padding: 46px clamp(18px, 4vw, 56px);
}

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

.showcase-heading {
  justify-content: flex-end;
  margin-bottom: 10px;
}

.home-favorites .section-heading,
.home-recent .section-heading {
  margin-bottom: 14px;
}

.home-favorites .eyebrow,
.home-recent .eyebrow {
  margin-bottom: 6px;
  font-size: 0.68rem;
}

.home-favorites .section-heading h2,
.home-recent .section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  color: #d7fae7;
  background: rgba(57, 217, 138, 0.11);
  border: 1px solid rgba(57, 217, 138, 0.32);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.player-column,
.side-panel {
  min-width: 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(64vh, 620px);
  background:
    linear-gradient(135deg, rgba(126, 0, 8, 0.14), transparent 34%),
    linear-gradient(315deg, rgba(229, 9, 20, 0.2), transparent 42%),
    #090a10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.favorites-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.15), transparent 44%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.favorites-hero strong {
  display: block;
  color: var(--hot-strong);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.favorites-hero span,
.favorites-hero p {
  margin: 0;
  color: var(--muted);
}

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

.favorites-login {
  grid-column: 1 / -1;
  max-width: 560px;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-card {
  display: grid;
  gap: 14px;
  align-content: start;
  background:
    linear-gradient(145deg, rgba(229, 9, 20, 0.14), rgba(255, 255, 255, 0.035) 42%),
    var(--panel);
  border-color: rgba(229, 9, 20, 0.22);
}

.profile-avatar-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  overflow: visible;
  color: white;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, var(--hot), #6b0007);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 20px 48px rgba(229, 9, 20, 0.28);
  font-size: 2.1rem;
  font-weight: 900;
}

.profile-avatar-preview > .avatar-photo,
.profile-avatar-preview > .avatar-initials,
.comment-avatar > .avatar-photo,
.comment-avatar > .avatar-initials,
.public-profile-avatar > .avatar-photo,
.public-profile-avatar > .avatar-initials {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}

.profile-avatar-preview > .avatar-photo,
.comment-avatar > .avatar-photo,
.public-profile-avatar > .avatar-photo {
  object-fit: cover;
}

.avatar-frame-image,
.avatar-frame-ring {
  position: absolute;
  inset: -18%;
  z-index: 3;
  width: 136%;
  height: 136%;
  pointer-events: none;
}

.avatar-frame-image {
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.42));
}

.avatar-frame-ring {
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(229, 9, 20, 0.72),
    0 0 26px rgba(229, 9, 20, 0.5);
}

.profile-avatar-preview[data-avatar="cinema"],
.avatar-swatch[data-avatar="cinema"] {
  background: linear-gradient(135deg, #1f9dff, #1736a6);
}

.profile-avatar-preview[data-avatar="popcorn"],
.avatar-swatch[data-avatar="popcorn"] {
  background: linear-gradient(135deg, #ffc857, #e50914);
}

.profile-avatar-preview[data-avatar="rocket"],
.avatar-swatch[data-avatar="rocket"] {
  background: linear-gradient(135deg, #ff1f2d, #360003);
}

.profile-avatar-preview[data-avatar="crown"],
.avatar-swatch[data-avatar="crown"] {
  background: linear-gradient(135deg, #ffd166, #a66b00);
}

.profile-avatar-preview[data-avatar="game"],
.avatar-swatch[data-avatar="game"] {
  background: linear-gradient(135deg, #39d98a, #101820);
}

.avatar-initials[data-avatar="neon"] { background: linear-gradient(135deg, #ed1b2b, #620008); }
.avatar-initials[data-avatar="cinema"] { background: linear-gradient(135deg, #1f9dff, #1736a6); }
.avatar-initials[data-avatar="popcorn"] { background: linear-gradient(135deg, #ffc857, #e50914); }
.avatar-initials[data-avatar="rocket"] { background: linear-gradient(135deg, #ff1f2d, #360003); }
.avatar-initials[data-avatar="crown"] { background: linear-gradient(135deg, #ffd166, #a66b00); }
.avatar-initials[data-avatar="game"] { background: linear-gradient(135deg, #39d98a, #101820); }

.profile-settings-form {
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(229, 9, 20, 0.12), transparent 24rem),
    var(--panel);
}

.profile-settings-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
}

.profile-settings-form legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.avatar-upload-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: var(--radius);
}

.avatar-upload-box span {
  font-size: 0.86rem;
  line-height: 1.45;
}

.compact-message {
  min-height: 18px;
  margin: -2px 0 10px;
  font-size: 0.86rem;
}

.avatar-option {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.avatar-option input,
.favorite-movie-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-option.is-selected,
.avatar-option:has(input:checked),
.favorite-movie-option.is-selected,
.favorite-movie-option:has(input:checked) {
  color: white;
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.45);
}

.avatar-swatch {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  color: white;
  background: linear-gradient(135deg, var(--hot), #6b0007);
  border-radius: 50%;
}

.favorite-movie-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.profile-favorite-selected {
  display: flex;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.profile-favorite-chip {
  display: grid;
  grid-template-columns: 24px minmax(70px, 150px) 26px;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 34px;
  padding: 4px;
  color: white;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.38);
  border-radius: var(--radius);
}

.profile-favorite-chip img {
  width: 24px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
}

.profile-favorite-chip span {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-favorite-chip button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.profile-favorite-chip button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.profile-favorite-chip button svg {
  width: 15px;
  height: 15px;
}

.profile-movie-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  margin-bottom: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-movie-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.profile-movie-search input {
  width: 100%;
  min-width: 0;
  color: white;
  background: transparent;
  border: 0;
  outline: 0;
}

.favorite-movie-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.favorite-movie-option img {
  width: 38px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
}

.favorite-movie-option span,
.favorite-movie-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-movie-option strong {
  display: block;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-movie-option small,
.muted-note {
  color: var(--muted);
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05060a;
}

.direct-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #05060a;
}

.custom-player {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #030407;
}

.custom-player[hidden] {
  display: none;
}

.custom-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #030407;
}

.custom-player-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 7, 0.1) 48%, rgba(3, 4, 7, 0.86)),
    linear-gradient(90deg, rgba(229, 9, 20, 0.12), transparent 34%, rgba(126, 0, 8, 0.1));
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.custom-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: block;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.custom-loading[hidden] {
  display: none;
}

.custom-loading-spinner {
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(229, 9, 20, 0.82);
  border-radius: 50%;
  opacity: 0.78;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
  animation: custom-player-spin 0.75s linear infinite;
}

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

@keyframes custom-player-spin {
  to { transform: rotate(360deg); }
}

.custom-player.is-loading .custom-center-play {
  opacity: 0;
  pointer-events: none;
}

.custom-player.is-playing .custom-player-shade {
  opacity: 0.72;
}

.custom-player.is-idle {
  cursor: none;
}

.custom-player.is-idle .custom-player-shade {
  opacity: 0;
}

.custom-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(38px, 4.5vw, 52px);
  aspect-ratio: 1;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.78));
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 3;
}

.custom-subtitle-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(92px, 12%, 126px);
  z-index: 2;
  width: max-content;
  max-width: min(88%, 980px);
  padding: 0.22em 0.48em;
  color: #fff;
  background: rgba(0, 0, 0, 0.74);
  border-radius: 0.28em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-size: clamp(16px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  text-shadow: 0 1px 3px #000;
  white-space: pre-line;
  pointer-events: none;
  transform: translateX(-50%);
  transition: bottom 0.18s ease;
}

.custom-subtitle-cue[hidden] {
  display: none;
}

.custom-player.is-idle .custom-subtitle-cue {
  bottom: clamp(26px, 5%, 54px);
}

.custom-center-play svg {
  width: 72%;
  height: 72%;
  margin-left: 0;
  stroke-width: 2.2;
}

.custom-center-play .lucide-play {
  transform: translateX(2px);
}

.custom-player.is-playing .custom-center-play,
.custom-player.is-idle .custom-center-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}

.custom-player.is-playing:not(.is-idle) .custom-center-play,
.custom-player:not(.is-playing) .custom-center-play {
  opacity: 1;
  pointer-events: auto;
}

.custom-controls {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(3, 4, 7, 0.96), rgba(3, 4, 7, 0.66), transparent);
  transform: translateY(0);
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 4;
}

.custom-player.is-idle .custom-controls {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.custom-progress,
.custom-control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-progress span {
  width: 48px;
  color: #dbe0ec;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.custom-progress input,
.custom-volume {
  accent-color: var(--hot);
}

.custom-progress input {
  flex: 1;
}

.custom-volume {
  width: 92px;
}

.custom-control-row .icon-button {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.custom-series-slot {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
}

.custom-series-slot:empty {
  min-width: 12px;
}

.custom-series-slot .episode-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.custom-series-slot .episode-controls[hidden] {
  display: none;
}

.custom-series-slot .episode-controls label {
  min-width: 0;
}

.custom-series-slot .episode-controls .field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-series-slot .episode-controls .text-field {
  width: clamp(102px, 12vw, 142px);
  min-height: 38px;
  padding: 0 30px 0 11px;
  color: #f5f7fb;
  background: rgba(16, 18, 28, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 750;
}

.custom-settings {
  position: relative;
  flex: 0 0 auto;
}

.custom-settings-button[hidden],
.custom-settings-menu[hidden],
.custom-setting-row[hidden] {
  display: none;
}

.custom-settings-button[aria-expanded="true"] {
  color: #fff;
  background: rgba(229, 9, 20, 0.34);
  border-color: rgba(255, 75, 84, 0.52);
}

.custom-settings-button[aria-expanded="true"] svg {
  transform: rotate(35deg);
}

.custom-settings-button svg {
  transition: transform 0.18s ease;
}

.custom-settings-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 8;
  display: grid;
  width: min(286px, calc(100vw - 32px));
  gap: 5px;
  padding: 10px;
  color: #f7f8fc;
  background: rgba(12, 14, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.custom-settings-menu::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: rgba(12, 14, 22, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(45deg);
}

.custom-settings-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 4px 5px 7px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 850;
}

.custom-settings-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #aeb5c3;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.custom-settings-close:hover,
.custom-settings-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.custom-settings-close svg {
  width: 16px;
  height: 16px;
}

.custom-setting-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 6px 5px 8px;
  border-radius: 10px;
}

.custom-setting-row:hover {
  background: rgba(255, 255, 255, 0.045);
}

.custom-setting-row > span {
  color: #b9c0ce;
  font-size: 0.74rem;
  font-weight: 760;
}

.custom-select {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 8px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 780;
  color-scheme: dark;
}

.custom-select option,
.custom-series-slot .episode-controls .text-field option {
  color: #f4f6fb;
  background: #171a24;
}

.custom-select:disabled {
  color: #dbe0ec;
  opacity: 0.82;
  cursor: default;
}

.custom-select[hidden] {
  display: none;
}

.player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 26px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.42), rgba(5, 6, 10, 0.88)),
    url("assets/groovezone-hero.jpg") center / cover;
}

.player-empty.is-hidden {
  display: none;
}

.player-empty svg {
  width: 58px;
  height: 58px;
  color: var(--hot-strong);
}

.player-empty strong {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.player-empty span {
  max-width: 360px;
  color: #c7ccd8;
  line-height: 1.45;
}

.now-playing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 0;
}

.now-playing h3 {
  margin-bottom: 5px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.now-playing p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.episode-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 240px));
  gap: 12px;
  margin-top: 18px;
}

.episode-controls[hidden] {
  display: none;
}

.movie-details {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.movie-details p:last-child {
  max-width: 920px;
  margin-bottom: 0;
  color: #d8dde8;
  line-height: 1.65;
}

.reward-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 760px;
  padding: 0;
  background: transparent;
  border: 0;
}

.reward-card[hidden] {
  display: none;
}

.reward-image {
  position: relative;
  display: grid;
  place-items: center;
  width: min(170px, 34vw);
  aspect-ratio: 1;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.reward-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.48;
  filter: grayscale(0.7);
  border-radius: 0;
  background: transparent;
}

.reward-card.is-unlocked .reward-image img {
  opacity: 1;
  filter: none;
}

.reward-image svg {
  position: absolute;
  right: 6px;
  bottom: 10px;
  width: 31px;
  height: 31px;
  color: white;
  padding: 6px;
  background: rgba(3, 4, 7, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.reward-tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  z-index: 12;
  width: min(340px, calc(100vw - 42px));
  padding: 12px 14px;
  color: #fff;
  line-height: 1.45;
  background: rgba(17, 19, 28, 0.96);
  border: 1px solid rgba(229, 9, 20, 0.38);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.reward-tooltip::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  border: 8px solid transparent;
  border-right-color: rgba(17, 19, 28, 0.96);
  transform: translateY(-50%);
}

.reward-card:hover .reward-tooltip,
.reward-image:focus .reward-tooltip,
.reward-image:focus-within .reward-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.reward-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.reward-copy strong {
  font-size: 1.2rem;
}

.reward-copy span {
  color: var(--muted);
  line-height: 1.45;
}

.reward-progress {
  height: 8px;
  max-width: 520px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.reward-progress b {
  display: block;
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, var(--hot), #7a0008);
  border-radius: inherit;
}

@media (max-width: 720px) {
  .reward-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .reward-tooltip {
    left: 0;
    top: calc(100% + 10px);
    transform: translateY(0) translateX(0);
  }

  .reward-tooltip::before {
    right: auto;
    left: 22px;
    top: auto;
    bottom: 100%;
    border-right-color: transparent;
    border-bottom-color: rgba(17, 19, 28, 0.96);
    transform: none;
  }

  .reward-card:hover .reward-tooltip,
  .reward-image:focus .reward-tooltip,
  .reward-image:focus-within .reward-tooltip {
    transform: translateY(0) translateX(0);
  }
}

.comments-panel {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.comments-panel[hidden] {
  display: none;
}

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

.comments-head h3 {
  font-size: 1.4rem;
}

.comment-form {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 16px;
}

.comment-form[hidden] {
  display: none;
}

.comments-list {
  display: grid;
  gap: 10px;
}

.comment-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comment-card.is-reply {
  grid-template-columns: 38px minmax(0, 1fr);
  margin-top: 8px;
  background: rgba(229, 9, 20, 0.06);
  border-color: rgba(229, 9, 20, 0.18);
}

.comment-main {
  min-width: 0;
}

.comment-replies {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid rgba(229, 9, 20, 0.22);
}

.comment-avatar,
.comment-avatar > .avatar-initials {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  overflow: visible;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--hot), #6b0007);
  border-radius: 50%;
}

.comment-avatar > .avatar-photo,
.comment-avatar > .avatar-initials {
  overflow: hidden;
}

.comment-avatar > .avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-card.is-reply .comment-avatar,
.comment-card.is-reply .comment-avatar > .avatar-initials {
  width: 38px;
}

.comment-avatar-link {
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.comment-avatar-link:hover {
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.24);
  transform: translateY(-1px);
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.comment-user-link {
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.comment-user-link:hover {
  color: var(--hot);
}

.comment-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.comment-card p {
  margin: 0;
  color: #d8dde8;
  line-height: 1.55;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.text-button:hover {
  color: white;
}

.text-button.danger:hover {
  color: var(--hot-strong);
}

.comment-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  color: #ffd8dd;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.24);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.news-comments-panel {
  max-width: 980px;
}

.public-profile-section {
  min-height: 70vh;
}

.public-profile-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 980px;
  padding: 24px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.16), rgba(38, 46, 76, 0.34)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(229, 9, 20, 0.24);
  border-radius: var(--radius);
}

.public-profile-avatar,
.public-profile-avatar > .avatar-initials {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 128px;
  aspect-ratio: 1;
  overflow: visible;
  color: white;
  font-size: 2rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--hot), #6b0007);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(229, 9, 20, 0.22);
}

.public-profile-avatar > .avatar-photo,
.public-profile-avatar > .avatar-initials {
  overflow: hidden;
}

.public-profile-avatar > .avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-profile-hero h2 {
  margin: 2px 0 8px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.public-profile-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #d9deea;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-chip:hover {
  border-color: rgba(229, 9, 20, 0.52);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.14);
}

.social-chip svg {
  width: 17px;
  height: 17px;
  color: var(--hot);
}

.compact-heading {
  margin-top: 18px;
}

.public-favorites-grid {
  max-width: 1180px;
}

.public-profile-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
}

.public-profile-dialog::backdrop {
  background: rgba(2, 3, 7, 0.72);
  backdrop-filter: blur(10px);
}

.public-profile-modal {
  position: relative;
  max-height: min(760px, calc(100dvh - 28px));
  padding: 18px;
  overflow: auto;
  background:
    radial-gradient(circle at top right, rgba(229, 9, 20, 0.16), transparent 34%),
    rgba(13, 15, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.public-profile-modal::-webkit-scrollbar { display: none; }

.public-profile-modal .close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.public-profile-modal .public-profile-hero,
.public-profile-section .public-profile-hero {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  max-width: 100%;
  padding: 0;
  margin: 0 0 18px;
  background: transparent;
  border: 0;
}

.public-profile-modal .public-profile-avatar,
.public-profile-modal .public-profile-avatar > .avatar-initials,
.public-profile-section .public-profile-avatar,
.public-profile-section .public-profile-avatar > .avatar-initials {
  width: 72px;
  font-size: 1.25rem;
  box-shadow: 0 12px 28px rgba(229, 9, 20, 0.22);
}

.public-profile-modal .public-profile-hero h2,
.public-profile-section .public-profile-hero h2 {
  margin: 1px 0 6px;
  font-size: clamp(1.7rem, 6vw, 2.35rem);
}

.public-profile-modal .public-profile-hero p:not(.eyebrow),
.public-profile-section .public-profile-hero p:not(.eyebrow) {
  font-size: 0.95rem;
}

.public-favorites-mini {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.public-favorites-mini > span {
  color: var(--hot);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-favorites-mini > div {
  display: grid;
  gap: 8px;
}

.public-favorite-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  color: white;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.public-favorite-card:hover {
  border-color: rgba(229, 9, 20, 0.48);
  background: rgba(229, 9, 20, 0.1);
}

.public-favorite-card img {
  width: 42px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.public-favorite-card strong,
.public-favorite-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-favorite-card small {
  margin-top: 3px;
  color: var(--muted);
}

.reward-admin-fields {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.24);
  border-radius: var(--radius);
}

.reward-admin-fields h4 {
  margin: 0;
}

.reward-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.reward-option {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reward-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reward-option.is-selected {
  color: white;
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.45);
}

.reward-option-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(5, 6, 10, 0.78);
  border-radius: 50%;
}

.reward-option-image img,
.profile-avatar-preview > .avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-option.is-locked .reward-option-image img {
  opacity: 0.42;
  filter: grayscale(0.8);
}

.reward-option-image svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 21px;
  height: 21px;
  padding: 4px;
  color: white;
  background: rgba(3, 4, 7, 0.82);
  border-radius: 50%;
}

.reward-option-empty svg {
  position: static;
  width: 25px;
  height: 25px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 0;
}

.reward-option strong,
.reward-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-option small {
  color: var(--muted);
}

.profile-avatar-preview {
  overflow: visible;
}

.achievement-toast {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 80;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(360px, calc(100vw - 28px));
  padding: 12px;
  color: white;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.94), rgba(95, 0, 7, 0.92)),
    #171924;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 18px 58px rgba(229, 9, 20, 0.36);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.achievement-toast[hidden] {
  display: none;
}

.achievement-toast span:first-child {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(3, 4, 7, 0.34);
  border-radius: 50%;
}

.achievement-toast img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievement-toast small {
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 900;
  opacity: 0.82;
}

.actors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px 5px 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

button.actor-pill {
  font-weight: 700;
  text-align: left;
}

.actor-pill img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.icon-button.is-active,
.like-button.is-active,
.movie-card .icon-button.is-active,
.recent-actions .icon-button.is-active {
  color: white;
  background: rgba(229, 9, 20, 0.24);
  border-color: rgba(229, 9, 20, 0.55);
}

.icon-button.is-active svg,
.like-button.is-active svg,
.movie-card .icon-button.is-active svg,
.recent-actions .icon-button.is-active svg {
  fill: currentColor;
}

.side-panel,
.admin-editor,
.admin-saved,
.analytics-panel,
.auth-card,
.admin-locked {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h3,
.admin-saved h3 {
  margin-bottom: 0;
}

.profile-state {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.profile-state span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.tabs,
.segmented {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
}

.admin-tabs button:hover,
.admin-tabs button.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(255, 47, 115, 0.16));
  border-color: rgba(229, 9, 20, 0.42);
  box-shadow: 0 12px 28px rgba(229, 9, 20, 0.12);
}

.admin-tabs svg {
  width: 17px;
  height: 17px;
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.showcase-admin-panel {
  display: grid;
  gap: 14px;
}

.showcase-title-designer {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.showcase-title-designer-head,
.showcase-font-upload,
.showcase-title-controls {
  display: flex;
  gap: 10px;
  align-items: end;
}

.showcase-title-designer-head {
  align-items: center;
  justify-content: space-between;
}

.showcase-typography-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
}

.showcase-typography-controls label {
  display: grid;
  gap: 7px;
}

.showcase-typography-controls label > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.showcase-typography-controls output {
  color: white;
  font-variant-numeric: tabular-nums;
}

.showcase-typography-controls input[type="range"] {
  width: 100%;
  accent-color: var(--hot);
}

.showcase-typography-controls .showcase-shadow-toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
}

.showcase-shadow-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--hot);
}

.showcase-effect-controls {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 10px;
  align-items: end;
}

.showcase-effect-controls label {
  display: grid;
  gap: 7px;
}

.showcase-effect-controls label > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.showcase-effect-controls .showcase-effect-toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
}

.showcase-effect-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--hot);
}

.showcase-title-designer h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.showcase-title-designer-head span,
.showcase-title-controls label > span {
  color: var(--muted);
  font-size: 0.8rem;
}

.showcase-font-upload .text-field {
  flex: 0 1 260px;
}

.showcase-font-file {
  display: inline-flex;
  flex: 1 1 280px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  overflow: hidden;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}

.showcase-font-file:hover {
  color: white;
  border-color: rgba(229, 9, 20, 0.56);
}

.showcase-font-file svg {
  flex: 0 0 auto;
  width: 17px;
}

.showcase-font-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-font-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.showcase-title-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(240px, 1.3fr) auto auto;
}

.showcase-title-controls label {
  display: grid;
  gap: 6px;
}

.showcase-title-text-control input {
  font-weight: 800;
  cursor: text;
  user-select: text;
}

.showcase-color-control input {
  width: 52px;
  height: 42px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}

.showcase-title-preview {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.92), rgba(36, 5, 10, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.showcase-admin-actions .ghost-button.is-active {
  color: white;
  background: rgba(229, 9, 20, 0.24);
  border-color: rgba(229, 9, 20, 0.5);
}

.showcase-search-box {
  max-width: 520px;
}

.showcase-admin-list {
  display: grid;
  gap: 8px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 4px;
}

.showcase-admin-summary {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(9, 9, 12, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.showcase-admin-summary strong {
  color: white;
}

.showcase-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.showcase-admin-row.is-editing-title {
  padding: 8px;
  background: rgba(229, 9, 20, 0.055);
  border: 1px solid rgba(229, 9, 20, 0.32);
  border-radius: var(--radius);
}

.showcase-admin-pick {
  display: grid;
  grid-template-columns: auto 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.showcase-admin-row.is-selected .showcase-admin-pick {
  background: rgba(229, 9, 20, 0.13);
  border-color: rgba(229, 9, 20, 0.38);
}

.showcase-admin-pick input {
  width: 18px;
  height: 18px;
  accent-color: var(--hot);
}

.showcase-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-style-button {
  min-width: 132px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .showcase-font-upload,
  .showcase-title-designer-head {
    align-items: stretch;
    flex-direction: column;
  }

  .showcase-font-upload .text-field,
  .showcase-font-file {
    flex-basis: auto;
    width: 100%;
  }

  .showcase-title-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .showcase-typography-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-effect-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-title-text-control,
  .showcase-title-controls .ghost-button {
    grid-column: 1 / -1;
  }

  .showcase-admin-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-admin-actions {
    justify-content: flex-end;
  }
}

.tabs {
  margin-bottom: 12px;
}

.tabs button,
.segmented button,
.genre-row button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}

.tabs button.active,
.segmented button.active,
.genre-row button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

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

.mini-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 7px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.mini-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: stretch;
}

.mini-item:hover,
.mini-item.is-active {
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(229, 9, 20, 0.11);
}

.mini-poster {
  width: 44px;
  height: 44px;
  background: center / cover no-repeat var(--poster-fallback);
  border-radius: 6px;
}

.mini-item strong,
.mini-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mini-item svg {
  width: 17px;
  color: var(--hot-strong);
}

.admin-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-list-head h3 {
  margin: 0;
}

.admin-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-search-box svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

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

.admin-search-box input::placeholder {
  color: var(--muted);
}

.admin-editor .mini-list {
  max-height: 640px;
  overflow: auto;
  padding-right: 4px;
}

.admin-movie-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 7px;
  align-items: stretch;
}

.admin-movie-pick {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 6px 8px 6px 6px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.admin-movie-pick:hover,
.admin-movie-pick.is-active {
  background: rgba(229, 9, 20, 0.11);
  border-color: rgba(229, 9, 20, 0.45);
}

.admin-movie-thumb {
  width: 38px;
  height: 38px;
  background: center / cover no-repeat var(--poster-fallback);
  border-radius: 6px;
}

.admin-movie-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-movie-copy strong,
.admin-movie-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-movie-copy strong {
  font-size: 0.92rem;
}

.admin-movie-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-movie-badge {
  align-self: center;
  padding: 4px 7px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(229, 9, 20, 0.16);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 999px;
}

.icon-button.danger-lite:hover {
  color: #fff;
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.42);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
  gap: 20px;
}

.analytics-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.analytics-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.analytics-head h3,
.analytics-grid h4 {
  margin: 0;
}

.analytics-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.analytics-cards article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.analytics-cards span,
.analytics-cards small,
.analytics-row small {
  color: var(--muted);
}

.analytics-cards strong {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
}

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

.analytics-grid section {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.analytics-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
}

.analytics-row span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.analytics-row strong,
.analytics-row small,
.analytics-row > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-row b {
  color: var(--hot-strong);
}

.admin-locked {
  display: grid;
  gap: 6px;
}

.admin-locked span {
  color: var(--muted);
}

.episode-admin-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.episode-admin-panel[hidden] {
  display: none !important;
}

.admin-edit-form,
.episode-form,
.episode-list {
  display: grid;
  gap: 10px;
}

.episode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  gap: 8px;
  align-items: stretch;
}

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

.form-actions button {
  flex: 1 1 160px;
}

.admin-content[hidden],
.admin-locked[hidden] {
  display: none !important;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.field-grid label {
  min-width: 0;
}

textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

textarea:focus,
.text-field:focus,
.search-box:focus-within {
  border-color: rgba(255, 31, 45, 0.46);
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

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

.movie-card {
  min-width: 0;
}

.poster-button {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  padding: 0;
  color: white;
  text-align: left;
  background: url("assets/groovezone-hero.jpg") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.poster-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.16), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.74) 0%, transparent 44%);
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-button:hover,
.poster-button:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.52);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.poster-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.poster-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.poster-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  justify-self: start;
  padding: 4px 7px;
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
}

.poster-badge.video {
  width: max-content;
  color: #d7fae7;
  border-color: rgba(57, 217, 138, 0.36);
}

.poster-badge.exclusive {
  width: max-content;
  max-width: 100%;
  color: white;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.96), rgba(95, 0, 7, 0.94));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 5px 18px rgba(229, 9, 20, 0.25);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-badge.rating-imdb {
  width: max-content;
  color: #111;
  background: linear-gradient(135deg, #f5c518, #c69509);
  border-color: rgba(255, 227, 130, 0.45);
}

.poster-badge.rating-groove {
  color: #dcefff;
  background: rgba(49, 132, 214, 0.22);
  border-color: rgba(101, 183, 255, 0.42);
}

.poster-badge.rating-groove b { color: #80c9ff; }
.poster-badge.rating-groove.excellent { color: #dcffea; background: rgba(31, 145, 87, 0.24); border-color: rgba(124, 240, 173, 0.42); }
.poster-badge.rating-groove.excellent b { color: #7cf0ad; }
.poster-badge.rating-groove.mixed { color: #fff1cd; background: rgba(180, 121, 15, 0.24); border-color: rgba(255, 208, 117, 0.42); }
.poster-badge.rating-groove.mixed b { color: #ffd075; }
.poster-badge.rating-groove.weak { color: #ffe1e3; background: rgba(176, 40, 49, 0.24); border-color: rgba(255, 127, 135, 0.42); }
.poster-badge.rating-groove.weak b { color: #ff7f87; }

.poster-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.36em;
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #d9deea;
  font-size: 0.78rem;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.card-actions button {
  min-height: 36px;
}

.card-actions .primary-button {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 12px;
}

.card-actions .trailer-button {
  flex: 0 0 40px;
}

.card-actions .icon-button {
  flex: 0 0 40px;
}

.now-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.favorite-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  color: #ffe8eb;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.34);
  border-radius: var(--radius);
  font-weight: 900;
}

.favorite-count-badge svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.empty-results {
  margin: 30px 0 0;
  color: var(--muted);
}

.shorts-layout {
  display: flex;
  gap: 22px;
  align-items: start;
  justify-content: center;
}

.shorts-feed {
  display: grid;
  width: var(--short-feed-width, min(520px, calc(100vw - 32px)));
  height: var(--short-feed-height, min(760px, calc(100svh - 150px)));
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.shorts-feed::-webkit-scrollbar {
  display: none;
}

.short-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: var(--short-feed-height, min(760px, calc(100svh - 150px)));
  min-height: 0;
  background: #05060a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.short-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #05060a;
  border: 0;
}

.short-movie-logo {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  max-width: min(58%, 260px);
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.72));
}

.short-movie-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
}

.short-movie-logo.is-text {
  padding: 8px 11px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  font-weight: 950;
  line-height: 1.06;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.86), rgba(4, 4, 5, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.short-youtube-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.short-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  pointer-events: none;
}

.short-overlay strong,
.short-overlay span {
  display: block;
}

.short-overlay span {
  margin-top: 4px;
  color: #dbe0ec;
  font-size: 0.88rem;
}

.short-actions {
  display: grid;
  gap: 10px;
  pointer-events: auto;
}

.short-actions .icon-button {
  display: grid;
  height: auto;
  min-height: 44px;
  gap: 2px;
  padding: 7px;
}

.short-actions .icon-button span {
  margin: 0;
  font-size: 0.72rem;
}

.short-upload-panel {
  max-width: 520px;
  margin: 0 auto 22px;
  display: grid;
  gap: 14px;
}

.short-upload-form {
  display: grid;
  gap: 10px;
}

.short-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.short-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.short-row small {
  color: var(--muted);
}

.short-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.72rem;
}

.short-status.approved {
  color: #d7fae7;
  border-color: rgba(57, 217, 138, 0.34);
}

.short-status.rejected {
  color: #ffd2db;
  border-color: rgba(229, 9, 20, 0.38);
}

.shorts-admin-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.news-admin-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.news-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.news-form,
.admin-news-list {
  display: grid;
  gap: 12px;
}

.admin-news-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-news-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--hot-strong);
  background: #080a10;
  border-radius: 6px;
}

.admin-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.admin-news-copy span,
.admin-news-copy small {
  color: var(--muted);
}

.admin-news-actions {
  display: flex;
  gap: 7px;
}

.compact-field {
  width: auto;
  min-width: 170px;
}

.admin-shorts-list {
  display: grid;
  gap: 12px;
}

.admin-short-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-short-card video,
.admin-short-media {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #05060a;
  border: 0;
  border-radius: 6px;
}

.admin-short-card div {
  display: grid;
  gap: 7px;
}

.admin-short-card span,
.admin-short-card small {
  color: var(--muted);
}

.auth-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
}

.admin-dialog {
  width: min(560px, calc(100% - 28px));
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 10px;
}

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

.add-movie-card {
  gap: 12px;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

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

.email-settings {
  display: grid;
  gap: 12px;
}

.email-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.verification-code-input {
  letter-spacing: 0.24em;
  font-variant-numeric: tabular-nums;
}

.verification-hint {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.link-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent, #e50914);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.password-reset-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(229, 9, 20, 0.16), transparent 42%),
    var(--background, #090b10);
}

.password-reset-card {
  width: min(430px, 100%);
}

.password-reset-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
}

.password-reset-brand {
  width: min(220px, 72%);
  margin-bottom: 18px;
}

.password-reset-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.password-reset-home {
  justify-content: center;
  margin-top: 4px;
  text-decoration: none;
}

@media (max-width: 620px) {
  .email-action-row {
    grid-template-columns: 1fr;
  }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(380px, calc(100% - 36px));
  padding: 13px 15px;
  color: var(--text);
  background: rgba(15, 17, 25, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

@media (max-width: 1080px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .app-shell,
  main,
  .page,
  .watch-layout,
  .player-panel {
    min-width: 0;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-links a {
    flex: 1 1 220px;
    justify-content: center;
  }

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

  .nav-links {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    width: min(680px, 100%);
    min-height: 64px;
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    overflow-x: auto;
    color: var(--muted);
    background: rgba(8, 9, 14, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -14px 38px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 0.68rem;
    font-weight: 800;
  }

  .mobile-nav a.is-active {
    color: white;
    background: rgba(229, 9, 20, 0.17);
  }

  .mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .watch-layout,
  .admin-grid,
  .analytics-grid,
  .shorts-layout {
    grid-template-columns: 1fr;
  }

  .admin-editor .mini-list {
    max-height: 420px;
  }

  .shorts-upload-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
  }

  .brand img {
    height: 28px;
    max-width: 178px;
    object-fit: contain;
  }

  .topbar-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .search-box {
    grid-template-columns: 18px minmax(0, 1fr);
    min-height: 38px;
    padding: 0 10px;
  }

  #authButton {
    max-width: 124px;
    overflow: hidden;
    padding-inline: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .icon-button {
    width: 38px;
    min-height: 38px;
  }

  .hero-stage {
    height: auto;
    min-height: 0;
  }

  .hero-content {
    left: 14px;
    bottom: 14px;
  }

  .hero-copy {
    max-width: 94%;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-strip article {
    padding: 13px 15px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .watch-section,
  .catalog-section,
  .news-section,
  .reviews-section,
  .favorites-section,
  .shorts-section,
  .profile-section,
  .public-profile-section,
  .admin-section {
    padding: 18px 10px 28px;
  }

  .public-profile-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .public-profile-avatar,
  .public-profile-avatar > .avatar-initials {
    width: 96px;
    font-size: 1.45rem;
  }

  .social-chip {
    min-height: 36px;
    padding-inline: 11px;
  }

  .home-favorites,
  .home-recent {
    padding: 22px 10px 28px;
  }

  .recent-showcase {
    height: 360px;
    min-height: 360px;
  }

  .recent-showcase::before {
    background:
      linear-gradient(0deg, rgba(3, 4, 7, 0.94) 0%, rgba(3, 4, 7, 0.7) 52%, rgba(3, 4, 7, 0.16) 100%),
      linear-gradient(90deg, rgba(3, 4, 7, 0.78), transparent 72%);
  }

  .recent-showcase-copy {
    justify-content: flex-end;
    width: 100%;
    padding: 18px;
  }

  .recent-showcase-copy h3 {
    font-size: clamp(1.65rem, 7.2vw, 2.35rem);
  }

  .recent-showcase-copy p:not(.eyebrow) {
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .recent-meta {
    gap: 6px;
    font-size: 0.78rem;
  }

  .recent-meta span {
    min-height: 30px;
    padding: 6px 8px;
  }

  .recent-thumb {
    flex-basis: 116px;
    border-radius: 9px;
  }

  .recent-thumb span {
    padding: 9px;
  }

  .recent-thumb strong {
    font-size: 0.82rem;
  }

  .recent-thumb small {
    font-size: 0.68rem;
  }

  .home-favorites-grid,
  .home-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .home-news {
    padding: 22px 10px 28px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .news-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

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

  .home-news .news-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 112px;
  }

  .home-news .news-content {
    padding: 10px;
  }

  .home-news .news-content p {
    -webkit-line-clamp: 1;
  }

  .news-image {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .news-content {
    gap: 7px;
    padding: 12px;
  }

  .news-actions {
    gap: 7px;
  }

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

  .news-full-media {
    min-height: 190px;
    aspect-ratio: 16 / 9;
  }

  .news-full-body h3 {
    font-size: 1.65rem;
  }

  .news-content h3 {
    font-size: 1rem;
  }

  .news-content p {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }

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

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tabs button {
    flex: 0 0 auto;
  }

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

  .admin-movie-pick {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .admin-movie-badge {
    grid-column: 2;
    justify-self: start;
  }

  .admin-news-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .admin-news-actions {
    grid-column: 1 / -1;
    justify-content: end;
  }

  .player-frame {
    border-radius: 6px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .custom-controls {
    gap: 7px;
    padding: 9px;
  }

  .custom-control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .custom-volume {
    width: min(82px, 19vw);
  }

  .custom-select {
    min-width: 0;
    min-height: 32px;
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  .custom-series-slot.has-series {
    order: 10;
    flex: 1 0 100%;
  }

  .custom-series-slot.has-series .episode-controls {
    width: 100%;
  }

  .custom-series-slot.has-series .episode-controls label {
    flex: 1 1 0;
  }

  .custom-series-slot.has-series .episode-controls .text-field {
    width: 100%;
  }

  .custom-settings-menu {
    right: -45px;
    bottom: calc(100% + 11px);
  }

  .custom-settings-menu::after {
    right: 59px;
  }

  .custom-progress {
    gap: 5px;
  }

  .custom-progress span {
    width: 38px;
    font-size: 0.66rem;
  }

  .custom-center-play {
    width: 40px;
  }

  .now-playing {
    gap: 10px;
    padding-top: 12px;
  }

  .now-playing h3 {
    margin-bottom: 3px;
    font-size: 1.22rem;
  }

  .now-playing p {
    font-size: 0.8rem;
  }

  .movie-details {
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .actors-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .actors-list::-webkit-scrollbar {
    display: none;
  }

  .actor-pill {
    flex: 0 0 auto;
  }

  .analytics-head {
    align-items: start;
    flex-direction: column;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segmented button {
    flex: 1 0 auto;
  }

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

  .profile-grid,
  .profile-settings-grid,
  .field-grid,
  .episode-controls {
    grid-template-columns: 1fr;
  }

  .favorites-hero {
    align-items: start;
    flex-direction: column;
  }

  .favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .profile-avatar-preview {
    width: 104px;
    font-size: 1.6rem;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .poster-content {
    gap: 6px;
    padding: 10px;
  }

  .poster-title {
    font-size: 0.88rem;
  }

  .poster-badge {
    padding: 3px 5px;
    font-size: 0.64rem;
  }

  .poster-badge.exclusive {
    flex-basis: 100%;
    width: max-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-actions {
    gap: 7px;
    margin-top: 8px;
  }

  .card-actions .primary-button {
    min-width: 0;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .shorts-feed {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .short-card {
    min-height: min(680px, calc(100vh - 135px));
  }

  .admin-short-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

}

@media (max-width: 480px) {
  .home-favorites-grid,
  .home-recent-grid,
  .favorites-grid,
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

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

  .poster-meta {
    gap: 5px;
    font-size: 0.68rem;
  }

  .card-actions .primary-button svg {
    display: none;
  }

  .custom-volume {
    display: none;
  }

  .custom-control-row {
    gap: 6px;
  }

  .custom-settings-menu {
    right: -44px;
    width: min(270px, calc(100vw - 26px));
  }

  .custom-setting-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* Reviews */
.reviews-heading > div {
  max-width: 760px;
}

.reviews-heading p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.reviews-top-section,
.reviews-recent-section { display: grid; gap: 16px; margin-bottom: 28px; }

.reviews-top-section {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 22%, rgba(229, 9, 20, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(23, 25, 32, 0.96), rgba(11, 12, 17, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.reviews-top-section::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  pointer-events: none;
}

.reviews-subheading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.reviews-subheading { position: relative; z-index: 1; }
.reviews-subheading h3 { margin: 2px 0 0; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.reviews-subheading > span { color: var(--muted); font-size: 0.78rem; text-align: right; }
.reviews-top-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.08fr) minmax(0, .94fr);
  align-items: end;
  gap: clamp(10px, 1.5vw, 20px);
  min-height: 455px;
  padding-top: 22px;
}

.reviews-top-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  overflow: hidden;
  min-height: 384px;
  padding: 22px 18px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px 22px 8px 8px;
  background: #171920 var(--top-review-image) center / cover no-repeat;
  color: #fff;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 22px 48px rgba(0,0,0,.3);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.reviews-top-card-rank-1 { grid-column: 2; min-height: 446px; border-color: rgba(255, 201, 84, .34); }
.reviews-top-card-rank-2 { grid-column: 1; grid-row: 1; min-height: 406px; border-color: rgba(204, 216, 235, .25); }
.reviews-top-card-rank-3 { grid-column: 3; grid-row: 1; min-height: 376px; border-color: rgba(205, 134, 87, .28); }
.reviews-top-card:hover { z-index: 3; transform: translateY(-8px); border-color: rgba(229, 9, 20, 0.62); box-shadow: 0 30px 62px rgba(0,0,0,.5); }
.reviews-top-card-rank-1:hover { border-color: rgba(255, 201, 84, .72); }
.reviews-top-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 12, 0.48), rgba(7, 8, 12, 0.9) 42%, #090a0e 76%); backdrop-filter: blur(9px); }
.reviews-top-rank { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(8,9,13,.68); box-shadow: 0 8px 22px rgba(0,0,0,.28); color: #d5d9e2; line-height: 1; backdrop-filter: blur(10px); }
.reviews-top-rank svg { width: 15px; height: 15px; }
.reviews-top-rank strong { font-size: 1rem; }
.reviews-top-rank small { color: #aeb4c0; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.reviews-top-card-rank-1 .reviews-top-rank { border-color: rgba(255,201,84,.35); color: #ffd66f; }
.reviews-top-card-rank-2 .reviews-top-rank { color: #dbe4f2; }
.reviews-top-card-rank-3 .reviews-top-rank { color: #dca06f; }
.reviews-top-poster { position: relative; display: grid; place-items: center; align-self: center; overflow: hidden; width: clamp(116px, 11vw, 154px); aspect-ratio: 2 / 3; margin: 14px 0 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: linear-gradient(145deg,#232630,#111319); box-shadow: 0 18px 40px rgba(0,0,0,.58); }
.reviews-top-card-rank-1 .reviews-top-poster { width: clamp(138px, 13vw, 178px); border-color: rgba(255,201,84,.38); box-shadow: 0 22px 54px rgba(0,0,0,.64), 0 0 36px rgba(255,201,84,.08); }
.reviews-top-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.reviews-top-card:hover .reviews-top-poster img { transform: scale(1.035); }
.reviews-top-poster > svg { width: 34px; height: 34px; color: #666d7a; }
.reviews-top-copy { display: grid; align-self: end; width: 100%; gap: 5px; margin-bottom: 13px; }
.reviews-top-copy small,
.reviews-top-copy span { color: #aeb4c0; font-size: 0.72rem; }
.reviews-top-copy strong { overflow: hidden; font-size: clamp(.95rem, 1.2vw, 1.12rem); line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.reviews-top-score { display: flex; align-items: end; justify-content: space-between; width: 100%; padding: 12px 2px 14px; border-top: 1px solid rgba(255,255,255,.08); text-align: left; }
.reviews-top-score > small { max-width: 58px; color: #898f9b; font-size: .62rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .06em; }
.reviews-top-score strong { color: #fff; font-size: 1.48rem; font-weight: 950; line-height: 1; }
.reviews-top-score em { color: #8d939f; font-size: .56rem; font-style: normal; }
.reviews-top-card-rank-1 .reviews-top-score strong { color: #ffd66f; font-size: 1.72rem; }
.reviews-top-step { display: flex; align-items: baseline; justify-content: center; gap: 7px; width: calc(100% + 36px); min-height: 46px; padding: 10px 18px; background: linear-gradient(180deg,#252936,#181a22); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.reviews-top-step strong { color: rgba(255,255,255,.94); font-size: 1.45rem; line-height: 1; }
.reviews-top-step small { color: #8f96a3; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.reviews-top-card-rank-1 .reviews-top-step { min-height: 66px; background: linear-gradient(180deg,#4a3820,#271e13); }
.reviews-top-card-rank-2 .reviews-top-step { min-height: 54px; background: linear-gradient(180deg,#323843,#1d2128); }
.reviews-top-card-rank-3 .reviews-top-step { background: linear-gradient(180deg,#3b2b23,#211914); }
.reviews-top-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; padding: 20px; border: 1px dashed rgba(255,255,255,.11); border-radius: 14px; color: var(--muted); }

.review-movie-page { margin-bottom: 24px; }
.review-movie-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  isolation: isolate;
  background: #111319;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 24px 70px rgba(0,0,0,.34);
}

.review-movie-background { position: absolute; z-index: 0; inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); object-fit: cover; object-position: center 28%; filter: blur(11px) saturate(1.12); opacity: .7; transform: scale(1.055); }
.review-movie-hero::after { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(5,6,10,.72) 0%, rgba(5,6,10,.42) 46%, rgba(5,6,10,.18) 100%), linear-gradient(0deg, rgba(5,6,10,.84) 0%, rgba(5,6,10,.08) 62%, rgba(5,6,10,.22) 100%); content: ""; }
.review-movie-shade { position: absolute; z-index: 0; inset: 0; background: radial-gradient(circle at 18% 78%, rgba(229,9,20,.12), transparent 28%); }
.review-movie-shade::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.04); border-radius: inherit; background: radial-gradient(circle at 18% 78%, rgba(229,9,20,.17), transparent 28%); content: ""; }
.review-movie-back { position: absolute; z-index: 2; top: 24px; left: 24px; background: rgba(8,9,13,.64); backdrop-filter: blur(14px); }
.review-movie-main { position: absolute; z-index: 1; left: clamp(24px,4vw,60px); bottom: 46px; display: flex; align-items: end; gap: clamp(22px,2.2vw,34px); max-width: 58%; }
.review-movie-main > img { width: clamp(165px, 11vw, 190px); aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; box-shadow: 0 20px 52px rgba(0,0,0,.62); }
.review-movie-main .review-meta { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(8,9,13,.55); color: #f0f2f7; font-size: .78rem; font-weight: 800; letter-spacing: .04em; backdrop-filter: blur(10px); }
.review-movie-main h2 { margin: 14px 0 10px; font-size: clamp(2.8rem,4.8vw,4.8rem); line-height: .9; letter-spacing: -.045em; text-shadow: 0 5px 28px rgba(0,0,0,.7); }
.review-movie-main p { margin: 0; color: #e3e6ed; font-size: clamp(.95rem,1.15vw,1.12rem); font-weight: 650; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.review-movie-ratings { position: absolute; z-index: 1; right: clamp(24px,4vw,58px); bottom: 46px; display: grid; grid-template-columns: 1.45fr 1fr 1fr; overflow: hidden; min-width: min(560px,43%); border: 1px solid rgba(255,255,255,.18); border-radius: 19px; background: rgba(10,12,17,.72); box-shadow: 0 18px 46px rgba(0,0,0,.36); backdrop-filter: blur(20px) saturate(1.25); }
.review-movie-ratings > div { display: grid; align-content: center; gap: 7px; min-height: 136px; padding: 20px; border-left: 1px solid rgba(255,255,255,.1); text-align: center; }
.review-movie-ratings > div:first-child { border-left: 0; }
.review-movie-ratings small { color: #b8beca; font-size: .76rem; font-weight: 650; }
.review-movie-ratings strong { color: #fff; font-size: 2.15rem; line-height: 1; }
.review-movie-ratings strong span { margin-left: 2px; color: #969daa; font-size: .68rem; }
.review-movie-ratings em { color: #aeb4c0; font-size: .73rem; font-style: normal; }
.review-movie-rating-primary strong { font-size: 2.45rem; }
.review-movie-rating-primary.excellent strong { color: #7cf0ad; }
.review-movie-rating-primary.good strong { color: #84c4ff; }
.review-movie-rating-primary.mixed strong { color: #ffd075; }
.review-movie-rating-primary.weak strong { color: #ff7f87; }

.reviews-grid.movie-review-list { grid-template-columns: 1fr; }
.movie-user-review-card { position: relative; isolation: isolate; display: grid; gap: 24px; overflow: hidden; min-height: 300px; padding: clamp(24px,3vw,36px); border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: #0c0e13; box-shadow: 0 20px 55px rgba(0,0,0,.2); }
.movie-user-review-card::before { position: absolute; z-index: -2; inset: 0; background: var(--user-review-image) right 30% / cover no-repeat; content: ""; opacity: .16; filter: saturate(.9) contrast(1.08); transform: scale(1.02); }
.movie-user-review-card::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(10,11,16,.98) 0%, rgba(10,11,16,.94) 48%, rgba(10,11,16,.72) 100%), radial-gradient(circle at 100% 0, rgba(229,9,20,.12), transparent 38%); content: ""; }
.movie-user-review-card header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 4px; }
.movie-review-author { display: flex; align-items: center; gap: 15px; padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.movie-review-author > span:last-child { display: grid; gap: 4px; }
.movie-review-author > span:last-child strong { font-size: 1.08rem; }
.movie-review-author small { color: #aeb4c0; font-size: .79rem; }
.movie-review-avatar { position: relative; display: grid; place-items: center; width: 58px; height: 58px; overflow: visible; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: #272a34; box-shadow: 0 10px 26px rgba(0,0,0,.34); }
.movie-review-avatar .avatar-photo,
.movie-review-avatar .avatar-initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.movie-review-avatar .avatar-initials { display: grid; place-items: center; }
.movie-review-avatar .avatar-frame-image { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); object-fit: contain; clip-path: circle(50% at 50% 50%); }
.movie-user-review-score { display: flex; align-items: baseline; min-width: 106px; justify-content: center; padding: 14px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; background: rgba(0,0,0,.38); box-shadow: inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.movie-user-review-score strong { font-size: 1.9rem; line-height: 1; }
.movie-user-review-score span { color: #969daa; font-size: .74rem; }
.movie-user-review-score.excellent { color: #7cf0ad; }.movie-user-review-score.good { color: #84c4ff; }.movie-user-review-score.mixed { color: #ffd075; }.movie-user-review-score.weak { color: #ff7f87; }
.movie-user-review-mini-scores { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(7,8,12,.48); backdrop-filter: blur(12px); }
.movie-user-review-mini-scores span { position: relative; display: grid; gap: 7px; padding: 14px 10px; border-left: 1px solid rgba(255,255,255,.08); color: #aeb4c0; font-size: .76rem; font-weight: 650; text-align: center; }
.movie-user-review-mini-scores span::before { position: absolute; top: 0; right: 18%; left: 18%; height: 2px; border-radius: 99px; background: linear-gradient(90deg,transparent,rgba(229,9,20,.75),transparent); content: ""; opacity: .65; }
.movie-user-review-mini-scores span:first-child { border-left: 0; }
.movie-user-review-mini-scores strong { color: #fff; font-size: 1.15rem; }
.movie-user-review-card > p { max-width: 1040px; margin: 0; color: #eef0f5; font-size: 1.02rem; line-height: 1.72; white-space: pre-line; }
.movie-user-review-no-text { color: #b7bdc8 !important; font-style: italic; }
.movie-user-review-card footer { display: flex; justify-content: flex-end; }
.review-like-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; background: rgba(8,9,13,.56); color: #d8dce5; cursor: pointer; backdrop-filter: blur(10px); }
.review-like-button svg { width: 16px; }.review-like-button span { color: #fff; font-weight: 800; }.review-like-button em { font-size: .72rem; font-style: normal; }
.review-like-button:hover,.review-like-button.is-liked { border-color: rgba(229,9,20,.45); background: rgba(229,9,20,.1); color: #ff6c73; }
.review-like-button.is-liked svg { fill: currentColor; }
.own-review-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; }
.own-review-label svg { width: 16px; color: #7cf0ad; }

.user-review-composer {
  display: grid;
  gap: 20px;
  margin: 0 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0, rgba(229, 9, 20, 0.12), transparent 38%), #15171d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.user-review-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.user-review-composer-head h3 { margin: 2px 0 6px; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.user-review-composer-head p:last-child { margin: 0; color: var(--muted); }

.user-review-score-preview {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 108px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}

.user-review-score-preview strong { font-size: 2rem; line-height: 1; }
.user-review-score-preview span { color: var(--muted); font-size: 0.82rem; }
.user-review-score-preview.excellent { color: #7cf0ad; }
.user-review-score-preview.good { color: #84c4ff; }
.user-review-score-preview.mixed { color: #ffd075; }
.user-review-score-preview.weak { color: #ff7f87; }

.user-review-locked {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.22);
}

.user-review-locked > svg { flex: 0 0 auto; color: #ff7f87; }
.user-review-locked > div { display: grid; gap: 4px; flex: 1; }
.user-review-locked span { color: var(--muted); font-size: 0.85rem; }

.user-review-form { display: grid; gap: 18px; }
.user-review-movie-field { position: relative; display: grid; gap: 7px; max-width: 760px; z-index: 20; }

.user-review-movie-picker-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 66px;
  padding: 8px 14px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.user-review-movie-picker-button:hover,
.user-review-movie-picker-button[aria-expanded="true"] { border-color: rgba(229, 9, 20, 0.62); background: rgba(229, 9, 20, 0.065); }
.user-review-movie-picker-button:focus-visible { outline: 2px solid rgba(229, 9, 20, 0.75); outline-offset: 2px; }
.user-review-movie-picker-button > svg { width: 18px; color: var(--muted); }

.user-review-movie-picker-poster,
.user-review-movie-option-poster {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #242730;
  color: var(--muted);
}

.user-review-movie-picker-poster { width: 46px; height: 50px; }
.user-review-movie-picker-poster img,
.user-review-movie-option-poster img { width: 100%; height: 100%; object-fit: cover; }
.user-review-movie-picker-copy { display: grid; gap: 4px; min-width: 0; }
.user-review-movie-picker-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.98rem; }
.user-review-movie-picker-copy small { color: var(--muted); }

.user-review-movie-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(20, 22, 28, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
}

.user-review-movie-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: #0f1116;
}

.user-review-movie-search svg { width: 17px; color: var(--muted); }
.user-review-movie-search input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; }
.user-review-movie-search input::placeholder { color: #737886; }

.user-review-movie-results {
  display: grid;
  gap: 4px;
  max-height: 330px;
  margin-top: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.user-review-movie-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 6px 10px 6px 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.user-review-movie-option:hover,
.user-review-movie-option:focus-visible { outline: 0; border-color: rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.055); }
.user-review-movie-option.is-selected { border-color: rgba(229, 9, 20, 0.34); background: rgba(229, 9, 20, 0.1); }
.user-review-movie-option-poster { width: 42px; height: 48px; }
.user-review-movie-option > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.user-review-movie-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-review-movie-option small { color: var(--muted); }
.user-review-movie-option > svg { width: 18px; color: #ff626a; }
.user-review-movie-no-results { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 110px; color: var(--muted); }

.user-review-score-groups { display: grid; gap: 18px; }

.user-review-score-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: rgba(4, 5, 8, 0.23);
}

.technical-score-group { border-left: 3px solid #e50914; }
.adjustment-score-group { border-left: 3px solid #8a5cff; background: linear-gradient(100deg, rgba(86, 50, 151, 0.1), rgba(4, 5, 8, 0.23) 42%); }

.user-review-score-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.user-review-score-group-head > div { display: flex; align-items: center; gap: 10px; }
.user-review-score-group-head > div > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(229, 9, 20, 0.14); color: #ff6970; font-size: 0.68rem; font-weight: 900; }
.adjustment-score-group .user-review-score-group-head > div > span { background: rgba(138, 92, 255, 0.16); color: #bca5ff; }
.user-review-score-group-head h4 { margin: 0; color: #fff; font-size: 1.02rem; }
.user-review-score-group-head p { margin: 0; color: var(--muted); font-size: 0.76rem; text-align: right; }

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

.user-review-slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.user-review-slider-title { display: inline-flex; align-items: center; gap: 7px; color: #eef1f7; font-weight: 700; }
.user-review-slider output { color: #fff; font-variant-numeric: tabular-nums; font-weight: 800; }
.user-review-slider input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--hot); cursor: pointer; }

.criterion-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--muted);
  cursor: help;
  outline: none;
}

.criterion-info > svg { width: 16px; height: 16px; }
.criterion-info:focus-visible { box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.55); }

.criterion-tooltip {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(300px, 75vw);
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: #242730;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  color: #e6e9f0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.criterion-info:hover .criterion-tooltip,
.criterion-info:focus .criterion-tooltip,
.criterion-info:focus-within .criterion-tooltip { opacity: 1; transform: translate(-50%, 0); }

.user-review-form .field-label small { color: var(--muted); font-weight: 500; }
.user-review-form textarea { resize: vertical; min-height: 120px; }
.user-review-form-footer { display: grid; gap: 8px; }
.user-review-counter { justify-self: end; color: var(--muted); font-size: 0.75rem; }
.user-review-form-footer .form-message { min-height: 18px; margin: 0; }
.review-author-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

@media (min-width: 721px) and (max-width: 1180px) {
  .review-movie-hero { min-height: 700px; }
  .review-movie-main { top: 92px; right: 30px; bottom: auto; max-width: none; }
  .review-movie-ratings { right: 30px; bottom: 30px; left: 30px; min-width: 0; }
}

@media (max-width: 720px) {
  .reviews-top-section { padding: 20px 14px; border-radius: 18px; }
  .reviews-top-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .reviews-top-card-rank-1,
  .reviews-top-card-rank-2,
  .reviews-top-card-rank-3 { grid-column: 1; grid-row: auto; min-height: 0; }
  .reviews-top-card { grid-template-columns: 92px minmax(0,1fr) auto; grid-template-rows: auto 1fr auto; justify-items: stretch; min-height: 190px; padding: 15px 15px 0; border-radius: 16px 16px 7px 7px; text-align: left; }
  .reviews-top-rank { grid-column: 2 / 4; justify-self: start; min-height: 30px; padding: 6px 10px; }
  .reviews-top-poster,
  .reviews-top-card-rank-1 .reviews-top-poster { grid-column: 1; grid-row: 1 / 3; width: 78px; margin: 0 14px 12px 0; }
  .reviews-top-copy { grid-column: 2 / 4; grid-row: 2; align-self: center; margin: 8px 0 10px; }
  .reviews-top-copy strong { white-space: normal; }
  .reviews-top-score { grid-column: 2 / 4; grid-row: 3; padding: 9px 0 12px; }
  .reviews-top-step { grid-column: 1 / 4; grid-row: 4; width: calc(100% + 30px); min-height: 42px; margin-left: -15px; }
  .reviews-top-card-rank-1 .reviews-top-step,
  .reviews-top-card-rank-2 .reviews-top-step { min-height: 48px; }
  .reviews-subheading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .reviews-subheading > span { text-align: left; }
  .review-movie-hero { min-height: 700px; border-radius: 18px; background-position: 58% center; }
  .review-movie-shade { background: linear-gradient(180deg,rgba(5,6,10,.5),rgba(5,6,10,.88) 48%,rgba(5,6,10,.97)),linear-gradient(90deg,rgba(5,6,10,.68),rgba(5,6,10,.3)); }
  .review-movie-main { top: 84px; right: 18px; bottom: auto; left: 18px; align-items: center; max-width: none; }
  .review-movie-main > img { width: 108px; }
  .review-movie-main h2 { font-size: clamp(1.8rem,9vw,2.7rem); }
  .review-movie-ratings { right: 14px; bottom: 18px; left: 14px; grid-template-columns: 1fr 1fr; min-width: 0; }
  .review-movie-rating-primary { grid-column: 1 / -1; }
  .review-movie-ratings > div { min-height: 92px; }
  .movie-user-review-card { min-height: 0; gap: 18px; padding: 20px 16px; border-radius: 17px; }
  .movie-user-review-card::before { background-position: 62% center; opacity: .12; }
  .movie-review-avatar { width: 50px; height: 50px; }
  .movie-user-review-score { min-width: 86px; padding: 11px 12px; }
  .movie-user-review-score strong { font-size: 1.55rem; }
  .movie-user-review-mini-scores { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .movie-user-review-mini-scores span { padding: 12px 6px; font-size: .68rem; }
  .movie-user-review-mini-scores span:nth-child(4) { border-left: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .movie-user-review-mini-scores span:nth-child(n+5) { border-top: 1px solid rgba(255,255,255,.07); }
  .review-like-button em { display: none; }
  .user-review-composer-head { align-items: flex-start; }
  .user-review-score-preview { min-width: 88px; padding: 11px 12px; }
  .user-review-score-preview strong { font-size: 1.65rem; }
  .user-review-sliders { grid-template-columns: 1fr; }
  .user-review-score-group { padding: 14px; }
  .user-review-score-group-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .user-review-score-group-head p { padding-left: 38px; text-align: left; }
  .user-review-movie-picker-panel { position: fixed; z-index: 80; inset: auto 10px 10px; max-height: min(72vh, 560px); }
  .user-review-movie-results { max-height: calc(min(72vh, 560px) - 76px); }
  .user-review-locked { align-items: flex-start; flex-wrap: wrap; }
  .user-review-locked .primary-button { width: 100%; }
}

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

.review-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #141721, #0e1119);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-card-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  color: var(--hot-strong);
  background: radial-gradient(circle at 20% 20%, rgba(229, 9, 20, 0.28), transparent 44%), #080a10;
}

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

.review-card-media > svg {
  width: 44px;
  height: 44px;
}

.review-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.review-card-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.review-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #c9cfdd;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.review-meta,
.review-byline {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.review-card-footer > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.review-score-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: baseline;
  min-width: 78px;
  padding: 9px 11px;
  color: #fff;
  background: rgba(8, 10, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.review-score-badge strong {
  font-size: 1.45rem;
  line-height: 1;
}

.review-score-badge span {
  margin-left: 3px;
  color: #bfc5d2;
  font-size: 0.72rem;
}

.review-score-badge.excellent,
.admin-review-score.excellent { border-color: rgba(71, 220, 136, 0.65); color: #7cf0ad; }
.review-score-badge.good,
.admin-review-score.good { border-color: rgba(72, 164, 255, 0.65); color: #84c4ff; }
.review-score-badge.mixed,
.admin-review-score.mixed { border-color: rgba(255, 190, 76, 0.65); color: #ffd075; }
.review-score-badge.weak,
.admin-review-score.weak { border-color: rgba(229, 9, 20, 0.65); color: #ff7f87; }

.review-methodology {
  margin-top: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-methodology summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.review-methodology summary::-webkit-details-marker { display: none; }
.review-methodology summary span { display: flex; align-items: center; gap: 9px; }
.review-methodology[open] summary > svg { transform: rotate(180deg); }

.review-methodology-body {
  display: grid;
  gap: 20px;
  padding: 0 20px 22px;
}

.review-formula {
  margin: 0;
  padding: 16px;
  color: #fff;
  font-weight: 750;
  line-height: 1.55;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.28);
  border-radius: 9px;
}

.review-methodology-grid,
.review-adjustment-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.review-methodology-grid article,
.review-adjustment-tables > div {
  display: grid;
  gap: 6px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.review-methodology-grid span,
.review-adjustment-tables p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.review-adjustment-tables h3 { margin: 0; }

.review-animation-methodology {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(93, 78, 255, 0.12), rgba(229, 9, 20, 0.06));
  border: 1px solid rgba(139, 126, 255, 0.3);
  border-radius: 9px;
}

.review-animation-methodology h3,
.review-animation-methodology p { margin: 0; }
.review-animation-methodology p { color: var(--muted); line-height: 1.55; }

.score-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.score-scale span {
  padding: 5px 7px;
  color: #dce1eb;
  font-size: 0.72rem;
  background: #090b11;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.review-full { display: grid; }

.review-full-card {
  display: grid;
  gap: 20px;
}

.review-full-hero {
  position: relative;
  min-height: min(520px, 64vh);
  overflow: hidden;
  background: linear-gradient(135deg, #171a24, #080a10);
  background-image: var(--review-image);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-full-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 10, 0.96) 0%, rgba(5, 6, 10, 0.74) 48%, rgba(5, 6, 10, 0.22) 100%), linear-gradient(0deg, rgba(5, 6, 10, 0.74), transparent 52%);
}

.review-back {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
}

.review-full-heading {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 4vw, 54px);
  bottom: clamp(24px, 5vw, 56px);
  width: min(700px, calc(100% - 140px));
}

.review-full-heading h2 {
  max-width: 680px;
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.review-full-heading p {
  max-width: 680px;
  margin: 0 0 12px;
  color: #d9deea;
  font-size: clamp(0.96rem, 1.5vw, 1.15rem);
  line-height: 1.55;
}

.review-score-badge-large {
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(24px, 5vw, 52px);
  min-width: 102px;
  padding: 13px 15px;
}

.review-score-badge-large strong { font-size: 2rem; }

.review-score-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.review-criterion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.review-criterion > span { color: #d7dce8; font-size: 0.84rem; }
.review-criterion > strong { color: #fff; }
.review-criterion > div { grid-column: 1 / -1; overflow: hidden; height: 5px; background: #242936; border-radius: 99px; }
.review-criterion > div i { display: block; height: 100%; background: linear-gradient(90deg, var(--hot), #ff7043); border-radius: inherit; }

.review-calculation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #0b0d14;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.review-calculation span {
  display: grid;
  gap: 3px;
  padding: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.review-calculation strong { color: #fff; font-size: 1.06rem; }
.review-calculation-total { background: rgba(229, 9, 20, 0.12); border-radius: 7px; }

.review-article-text {
  max-width: 860px;
  color: #d9deea;
  font-size: 1.03rem;
  line-height: 1.78;
  white-space: pre-line;
}

.reviews-admin-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reviews-admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.review-form,
.admin-reviews-list { display: grid; gap: 12px; }

.review-score-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.review-score-editor legend { padding: 0 7px; color: #fff; font-weight: 800; }
.review-score-editor label { display: grid; gap: 6px; color: var(--muted); font-size: 0.8rem; }
.review-score-editor input { width: 100%; }

.review-live-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  background: #090b11;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.review-live-score > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 7px;
}

.review-live-score strong { color: #fff; }
.review-live-score .review-live-total { grid-column: 1 / -1; color: #fff; background: rgba(229, 9, 20, 0.16); }
.review-live-total strong { color: #ff9ca1; font-size: 1.35rem; }

.admin-review-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.admin-review-score {
  display: grid;
  place-items: center;
  width: 62px;
  aspect-ratio: 1;
  font-size: 1.15rem;
  font-weight: 900;
  background: #090b11;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.admin-review-copy { display: grid; min-width: 0; gap: 4px; }
.admin-review-copy strong,
.admin-review-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-review-copy span,
.admin-review-copy small { color: var(--muted); }

@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-admin-layout { grid-template-columns: 1fr; }
  .review-score-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .reviews-grid,
  .review-methodology-grid,
  .review-adjustment-tables,
  .review-score-breakdown { grid-template-columns: 1fr; }
  .review-full-hero { min-height: 520px; }
  .review-full-heading { right: 20px; bottom: 90px; width: auto; }
  .review-score-badge-large { right: auto; left: 20px; bottom: 20px; }
  .review-calculation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card-footer { align-items: start; flex-direction: column; }
}

@media (max-width: 480px) {
  .review-score-editor,
  .review-live-score,
  .review-calculation { grid-template-columns: 1fr; }
  .review-live-score .review-live-total { grid-column: auto; }
  .admin-review-card { grid-template-columns: 54px minmax(0, 1fr); }
  .admin-review-score { width: 54px; }
  .admin-review-card .admin-news-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Compact user reviews live on the selected movie page. */
.reviews-grid.movie-review-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.compact-user-review-card {
  min-height: 190px;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(24, 26, 33, 0.98), rgba(12, 13, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.compact-user-review-card::before,
.compact-user-review-card::after { display: none; }

.compact-user-review-card header { align-items: flex-start; }

.compact-review-preview {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.65em;
  margin: 0;
  color: #dce0e8;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compact-user-review-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-user-review-card footer > div { display: flex; align-items: center; }
.review-read-button { gap: 7px; white-space: nowrap; }
.review-read-button svg { width: 15px; height: 15px; }

.movie-user-review-no-text {
  display: flex;
  align-items: center;
  min-height: 4.65em;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}

.movie-user-review-no-text svg { width: 16px; height: 16px; }

.review-reader-dialog {
  width: min(820px, calc(100vw - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: auto;
  color: #fff;
  background: linear-gradient(155deg, #161820, #0c0d12 66%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.review-reader-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.review-reader-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.review-reader-article {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 42px);
}

.review-reader-article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 48px;
}

.review-reader-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

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

.review-reader-scores > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}

.review-reader-scores > div > span { overflow: hidden; color: #cfd3dc; text-overflow: ellipsis; white-space: nowrap; }
.review-reader-scores > div > strong { color: #fff; }
.review-reader-scores i { grid-column: 1 / -1; height: 4px; overflow: hidden; background: #2a2e38; border-radius: 99px; }
.review-reader-scores b { display: block; height: 100%; background: linear-gradient(90deg, #e50914, #ff7254); border-radius: inherit; }

.review-reader-text {
  padding-top: 22px;
  color: #e5e8ef;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.04rem;
  line-height: 1.75;
  white-space: pre-line;
}

@media (max-width: 900px) {
  .reviews-grid.movie-review-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .compact-user-review-card footer { align-items: stretch; flex-direction: column; }
  .review-read-button { width: 100%; justify-content: center; }
  .review-reader-scores { grid-template-columns: 1fr; }
  .review-reader-article > header { align-items: stretch; flex-direction: column; }
}

.reviews-grid.movie-review-list,
.compact-user-review-card { overflow: visible; }

.compact-user-review-card:has(.review-score-summary:hover),
.compact-user-review-card:has(.review-score-summary.is-open),
.compact-user-review-card:has(.movie-user-review-score:focus-visible) {
  z-index: 30;
}

.score-only-review-card {
  min-height: 0;
  gap: 8px;
  padding: 14px;
}

.score-only-review-card .movie-review-avatar {
  width: 50px;
  height: 50px;
}

.score-only-review-card .movie-user-review-score { padding: 10px 12px; }
.score-only-review-card .movie-user-review-score strong { font-size: 1.6rem; }
.score-only-review-card footer { padding-top: 8px; }

.review-score-summary {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
}

button.movie-user-review-score {
  color: inherit;
  font: inherit;
  cursor: help;
}

.movie-user-review-score > i {
  width: 14px;
  height: 14px;
  margin-left: 7px;
  color: #9da4b2;
  align-self: center;
}

.movie-user-review-score:hover,
.movie-user-review-score:focus-visible,
.review-score-summary.is-open .movie-user-review-score {
  background: rgba(22, 25, 33, 0.96);
  border-color: currentColor;
  outline: none;
  transform: translateY(-1px);
}

.review-score-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 52px));
  gap: 12px;
  padding: 16px;
  color: #edf0f6;
  background: rgba(12, 14, 19, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.66);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.review-score-popover::before {
  position: absolute;
  top: -6px;
  right: 43px;
  width: 11px;
  height: 11px;
  background: #0c0e13;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotate(45deg);
}

.review-score-summary:hover .review-score-popover,
.movie-user-review-score:focus-visible + .review-score-popover,
.review-score-summary.is-open .review-score-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.review-score-popover-title { font-size: 0.92rem; }

.review-score-popover-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.review-score-popover-list span,
.review-score-popover-formula span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-score-popover-list span {
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.review-score-popover-list em {
  overflow: hidden;
  color: #b7bdc8;
  font-size: 0.73rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-score-popover-list b { color: #fff; font-size: 0.78rem; }

.review-score-popover-formula {
  display: grid;
  gap: 6px;
  padding-top: 11px;
  color: #aeb5c2;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
}

.review-score-popover-formula b { color: #fff; }
.review-score-popover small { color: #747c8b; font-size: 0.68rem; }

@media (max-width: 600px) {
  .review-score-popover { position: fixed; top: 50%; right: 14px; left: 14px; width: auto; transform: translateY(calc(-50% - 6px)); }
  .review-score-summary:hover .review-score-popover,
  .movie-user-review-score:focus-visible + .review-score-popover,
  .review-score-summary.is-open .review-score-popover { transform: translateY(-50%); }
  .review-score-popover::before { display: none; }
}

.user-review-composer.has-existing-review:not(.is-editing-review) {
  gap: 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(18, 39, 31, 0.82), rgba(18, 20, 26, 0.96));
}

.user-review-composer.has-existing-review:not(.is-editing-review) .user-review-composer-head { display: none; }

.user-review-existing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.user-review-existing-summary[hidden] { display: none; }
.user-review-existing-summary > div { display: flex; align-items: center; gap: 12px; }
.user-review-existing-summary > div > span:last-child { display: grid; gap: 2px; }
.user-review-existing-summary small { color: #9fa7b4; font-size: 0.72rem; }
.user-review-existing-summary strong { color: #7cf0ad; font-size: 1.35rem; line-height: 1; }
.user-review-existing-summary strong em { margin-left: 2px; color: #9fa7b4; font-size: 0.7rem; font-style: normal; }

.existing-review-check {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #7cf0ad;
  background: rgba(124, 240, 173, 0.1);
  border: 1px solid rgba(124, 240, 173, 0.25);
  border-radius: 50%;
}

.existing-review-check svg { width: 19px; height: 19px; }
.compact-user-review-card footer > div { gap: 8px; flex-wrap: wrap; }
.own-review-edit-button { min-height: 36px; padding: 7px 10px; }
.own-review-edit-button svg { width: 14px; height: 14px; }

.aggregate-review-score { position: relative; }
.review-movie-ratings { overflow: visible; }
.aggregate-review-score.is-interactive { cursor: help; }
.aggregate-review-score.is-interactive > strong { display: flex; align-items: baseline; justify-content: center; }
.aggregate-review-score.is-interactive > strong > i { width: 14px; height: 14px; margin-left: 7px; color: #9da4b2; align-self: center; }
.aggregate-review-score.is-interactive:hover,
.aggregate-review-score.is-interactive:focus-visible,
.aggregate-review-score.is-open { outline: none; background: rgba(17, 20, 27, 0.96); }
.review-movie-ratings:has(.aggregate-review-score:hover),
.review-movie-ratings:has(.aggregate-review-score.is-open),
.review-movie-ratings:has(.aggregate-review-score:focus-visible) { z-index: 8; }

.aggregate-score-popover {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  width: min(330px, calc(100vw - 48px));
  gap: 11px;
  padding: 15px;
  color: #edf0f6;
  text-align: left;
  background: rgba(11, 13, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.aggregate-score-popover::after {
  position: absolute;
  right: 48px;
  bottom: -6px;
  width: 11px;
  height: 11px;
  background: #0b0d12;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotate(45deg);
}

.aggregate-review-score:hover .aggregate-score-popover,
.aggregate-review-score:focus-visible .aggregate-score-popover,
.aggregate-review-score.is-open .aggregate-score-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.review-movie-ratings .aggregate-score-popover > b { color: #fff; font-size: 0.9rem; }
.aggregate-score-popover > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.aggregate-score-popover > div > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; }
.review-movie-ratings .aggregate-score-popover em { overflow: hidden; color: #b7bdc8; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.review-movie-ratings .aggregate-score-popover strong { color: #fff; font-size: 0.78rem; }
.review-movie-ratings .aggregate-score-popover > small { color: #747c8b; font-size: 0.68rem; }

@media (max-width: 600px) {
  .user-review-existing-summary { align-items: stretch; flex-direction: column; }
  .user-review-existing-summary > button { width: 100%; justify-content: center; }
  .aggregate-score-popover { right: -8px; }
}

.movie-review-action-button {
  min-height: 40px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.movie-review-action-button svg { width: 16px; height: 16px; }

.movie-review-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-height: min(92vh, 980px);
  padding: 0;
  overflow: auto;
  color: #fff;
  background: #111319;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.78);
}

.movie-review-dialog::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(9px);
}

.movie-review-dialog-head {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: rgba(12, 14, 19, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.movie-review-dialog-head h2 { margin: 3px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.movie-review-dialog-head .eyebrow { margin: 0; }
.movie-review-dialog #movieReviewDialogMount { padding: 0; }
.movie-review-dialog .user-review-composer { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.movie-review-dialog .user-review-movie-field { display: none; }

@media (max-width: 680px) {
  .movie-review-dialog { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 16px; }
  .movie-review-dialog-head { padding: 14px 16px; }
  .movie-review-dialog .user-review-composer { padding: 16px; }
  .movie-review-dialog .user-review-composer-head { align-items: flex-start; flex-direction: column; }
}

.user-review-movie-picker-panel {
  max-height: min(78vh, 760px);
  padding: 14px;
  overflow-y: auto;
}

.review-movie-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.review-movie-search-heading > div { display: grid; gap: 3px; }
.review-movie-search-heading h3 { margin: 1px 0 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.review-movie-search-heading .eyebrow { margin: 0; }
.review-movie-search-heading small { color: var(--muted); font-size: 0.72rem; }
.review-api-badge { padding: 5px 8px; color: #ffd075; background: rgba(255, 208, 117, 0.08); border: 1px solid rgba(255, 208, 117, 0.24); border-radius: 99px; font-size: 0.67rem; font-weight: 800; }

.review-movie-filter-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(2, 0.8fr) 1.1fr 0.9fr auto;
  gap: 8px;
  margin-top: 9px;
}

.review-movie-filter-grid label { display: grid; gap: 5px; min-width: 0; }
.review-movie-filter-grid label > span { color: #9299a7; font-size: 0.66rem; font-weight: 700; }
.review-movie-filter-grid select,
.review-movie-filter-grid input {
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  color: #fff;
  background: #0f1116;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  font: inherit;
  font-size: 0.76rem;
}

.review-movie-filter-grid button { align-self: end; height: 38px; }
.review-movie-filter-actions { display: flex; align-items: end; gap: 7px; }
.review-movie-search-status { min-height: 18px; margin-top: 9px; color: #8f97a5; font-size: 0.72rem; }
.user-review-movie-no-results.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.review-database-movie-option { grid-template-columns: 48px minmax(0, 1fr) auto; min-height: 72px; }
.review-database-movie-option .user-review-movie-option-poster { width: 48px; height: 62px; }
.review-database-movie-option em { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: #87909f; font-size: 0.68rem; font-style: normal; }
.review-database-movie-option em svg { width: 13px; height: 13px; color: #7cf0ad; }
.review-search-ratings { display: grid; justify-items: end; gap: 5px; }
.review-search-ratings b { padding: 4px 6px; color: #dce1ea; background: rgba(255, 255, 255, 0.055); border-radius: 6px; font-size: 0.66rem; white-space: nowrap; }
.review-movie-load-more { width: 100%; justify-content: center; margin-top: 9px; }
.review-watch-button { width: fit-content; margin-top: 18px; }
.review-not-in-catalog { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: #a7aeba; font-size: 0.76rem; }
.review-not-in-catalog svg { width: 15px; height: 15px; }

.review-movie-discovery {
  margin: 0 0 28px;
  padding: clamp(18px, 2.6vw, 26px);
  background: linear-gradient(145deg, rgba(23, 25, 32, 0.98), rgba(12, 14, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.review-movie-discovery[hidden] { display: none; }
.review-movie-discovery-results { max-height: 520px; margin-top: 4px; padding-right: 4px; }

@media (max-width: 900px) {
  .review-movie-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .review-movie-search-heading { align-items: flex-start; }
  .review-movie-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-movie-filter-grid button { width: 100%; }
  .review-movie-filter-actions { grid-column: 1 / -1; }
  .review-database-movie-option { grid-template-columns: 42px minmax(0, 1fr); }
  .review-database-movie-option .user-review-movie-option-poster { width: 42px; height: 56px; }
  .review-search-ratings { grid-column: 2; grid-auto-flow: column; justify-content: start; }
}

/* Horizontal movie-review carousel and compact review preview on watch pages. */
.reviews-list-tools,
.reviews-carousel-controls,
.watch-reviews-summary {
  display: flex;
  align-items: center;
}

.reviews-list-tools { justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 0.78rem; text-align: right; }
.reviews-carousel-controls { gap: 7px; }
.reviews-carousel-controls .icon-button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.reviews-carousel-controls .icon-button:hover { border-color: rgba(229,9,20,.45); background: rgba(229,9,20,.12); }

.reviews-grid.movie-review-list {
  display: grid;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, calc((100% - 54px) / 4));
  align-items: stretch;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(229,9,20,.6) rgba(255,255,255,.06);
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.reviews-grid.movie-review-list::-webkit-scrollbar { height: 6px; }
.reviews-grid.movie-review-list::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 99px; }
.reviews-grid.movie-review-list::-webkit-scrollbar-thumb { background: rgba(229,9,20,.65); border-radius: 99px; }
.reviews-grid.movie-review-list .compact-user-review-card { min-width: 0; height: 100%; scroll-snap-align: start; }

/* The breakdown stays usable even inside the horizontally clipped carousel. */
.movie-review-list .review-score-popover {
  position: fixed;
  z-index: 120;
  top: var(--score-popover-top, 12px);
  right: auto;
  left: var(--score-popover-left, 12px);
  width: min(360px, calc(100vw - 32px));
  transform: translateY(-6px);
}
.movie-review-list .review-score-summary:hover .review-score-popover,
.movie-review-list .movie-user-review-score:focus-visible + .review-score-popover,
.movie-review-list .review-score-summary.is-open .review-score-popover { transform: translateY(0); }
.movie-review-list .review-score-popover::before { display: none; }

.watch-reviews-panel {
  display: grid;
  gap: 15px;
  margin-top: 18px;
  padding: clamp(17px, 2.4vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0, rgba(229,9,20,.11), transparent 38%), linear-gradient(145deg, #15171d, #0d0f14);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.watch-reviews-panel[hidden] { display: none; }
.watch-reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.watch-reviews-heading h3 { margin: 2px 0 0; font-size: clamp(1.25rem, 2vw, 1.65rem); }
.watch-reviews-heading .eyebrow { margin: 0; }
.watch-reviews-summary { justify-content: flex-end; gap: 10px; }
.watch-reviews-summary > strong { font-size: 1.35rem; line-height: 1; }
.watch-reviews-summary > strong.excellent { color: #7cf0ad; }
.watch-reviews-summary > strong.good { color: #84c4ff; }
.watch-reviews-summary > strong.mixed { color: #ffd075; }
.watch-reviews-summary > strong.weak { color: #ff7f87; }
.watch-reviews-summary > span { color: var(--muted); font-size: .74rem; }
.watch-reviews-summary button { gap: 7px; margin-left: 5px; }
.watch-reviews-summary button svg { width: 15px; height: 15px; }

.watch-reviews-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 290px);
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 7px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(229,9,20,.55) transparent;
}

.watch-review-chip {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto 15px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  color: #fff;
  text-align: left;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.watch-review-chip:hover { border-color: rgba(229,9,20,.42); background: rgba(229,9,20,.08); transform: translateY(-1px); }
.watch-review-chip-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #272a34; }
.watch-review-chip-avatar .avatar-photo,
.watch-review-chip-avatar .avatar-initials { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.watch-review-chip-avatar .avatar-initials { display: grid; place-items: center; }
.watch-review-chip-avatar .avatar-frame-image { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); object-fit: contain; clip-path: circle(50% at 50% 50%); }
.watch-review-chip-author { display: grid; min-width: 0; gap: 3px; }
.watch-review-chip-author strong,
.watch-review-chip-author small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-review-chip-author strong { font-size: .88rem; }
.watch-review-chip-author small { color: var(--muted); font-size: .67rem; }
.watch-review-chip-score { display: flex; align-items: baseline; }
.watch-review-chip-score strong { font-size: 1.2rem; }
.watch-review-chip-score small { color: #9098a6; font-size: .58rem; }
.watch-review-chip-score.excellent { color: #7cf0ad; }
.watch-review-chip-score.good { color: #84c4ff; }
.watch-review-chip-score.mixed { color: #ffd075; }
.watch-review-chip-score.weak { color: #ff7f87; }
.watch-review-chip > svg { width: 15px; height: 15px; color: #777f8d; }

@media (max-width: 1200px) {
  .reviews-grid.movie-review-list { grid-auto-columns: minmax(280px, calc((100% - 36px) / 3)); }
}

@media (max-width: 900px) {
  .reviews-grid.movie-review-list { grid-auto-columns: minmax(280px, calc((100% - 18px) / 2)); }
  .watch-reviews-heading { align-items: flex-start; flex-direction: column; }
  .watch-reviews-summary { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .reviews-subheading { align-items: flex-start; }
}

@media (max-width: 600px) {
  .reviews-list-tools { width: 100%; align-items: flex-start; justify-content: space-between; text-align: left; }
  .reviews-grid.movie-review-list { grid-auto-columns: minmax(270px, 88%); }
  .watch-reviews-summary > span { flex: 1; }
  .watch-reviews-summary button { width: 100%; justify-content: center; margin: 2px 0 0; }
  .watch-reviews-strip { grid-auto-columns: minmax(245px, 88%); }
}

.profile-reviews-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: clamp(18px, 2.7vw, 28px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0, rgba(229,9,20,.11), transparent 34%), linear-gradient(145deg, #17191f, #0e1015);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.profile-reviews-panel[hidden] { display: none; }
.public-profile-reviews { display: grid; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.public-profile-reviews .profile-reviews-list { gap: 8px; }
.public-profile-review-card {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.public-profile-review-card:hover,
.public-profile-review-card:focus-visible { border-color: rgba(229,9,20,.42); background: rgba(229,9,20,.07); outline: none; transform: translateY(-1px); }
.public-profile-review-card .profile-review-poster { width: 56px; height: 78px; cursor: inherit; }
.public-profile-review-card .profile-review-copy { gap: 2px; }
.public-profile-review-card .profile-review-copy > strong { font-size: .88rem; }
.public-profile-review-card .profile-review-copy > p { margin-top: 3px; font-size: .7rem; -webkit-line-clamp: 1; }
.public-profile-review-card .profile-review-score { padding: 6px 7px; }
.public-profile-review-card .profile-review-score strong { font-size: 1rem; }
.public-profile-review-card .profile-review-actions { margin-top: -2px; }
.public-profile-review-card .profile-review-actions button { min-height: 30px; padding: 5px 8px; font-size: .7rem; }
.profile-reviews-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.profile-reviews-heading h3 { margin: 2px 0 0; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.profile-reviews-heading .eyebrow { margin: 0; }
.profile-reviews-heading > span { color: var(--muted); font-size: .76rem; }
.profile-reviews-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.profile-review-card {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr) auto;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.profile-review-poster { grid-row: 1 / span 2; width: 68px; height: 94px; overflow: hidden; padding: 0; color: #78808e; background: #0a0b0f; border: 0; border-radius: 9px; cursor: pointer; }
.profile-review-poster img { width: 100%; height: 100%; object-fit: cover; }
.profile-review-poster svg { width: 24px; height: 24px; }
.profile-review-copy { display: grid; min-width: 0; align-content: start; gap: 3px; }
.profile-review-copy > span,
.profile-review-copy > small { color: var(--muted); font-size: .67rem; }
.profile-review-copy > strong { overflow: hidden; font-size: .98rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-review-copy > p { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: #cfd4de; font-size: .75rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.profile-review-copy > p.profile-review-no-text { color: #858d9b; font-style: italic; }
.profile-review-score { display: flex; align-items: baseline; align-self: start; padding: 8px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(0,0,0,.28); }
.profile-review-score strong { font-size: 1.15rem; }
.profile-review-score span { color: #8f97a5; font-size: .58rem; }
.profile-review-score.excellent { color: #7cf0ad; }
.profile-review-score.good { color: #84c4ff; }
.profile-review-score.mixed { color: #ffd075; }
.profile-review-score.weak { color: #ff7f87; }
.profile-review-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; gap: 7px; align-self: end; }
.profile-review-actions button { min-height: 34px; padding: 7px 10px; }
.profile-review-actions button svg { width: 14px; height: 14px; }

@media (max-width: 1050px) {
  .profile-reviews-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .profile-reviews-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .profile-review-card { grid-template-columns: 58px minmax(0,1fr) auto; padding: 10px; }
  .profile-review-poster { width: 58px; height: 82px; }
  .profile-review-actions { grid-column: 1 / -1; }
  .profile-review-actions button { flex: 1; justify-content: center; }

  .compact-user-review-card header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
  }
  .compact-user-review-card .movie-review-author { min-width: 0; gap: 10px; }
  .compact-user-review-card .movie-review-avatar { flex: 0 0 42px; width: 42px; height: 42px; }
  .compact-user-review-card .movie-review-author > span:last-child { min-width: 0; }
  .compact-user-review-card .movie-review-author strong,
  .compact-user-review-card .movie-review-author small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .compact-user-review-card .review-score-summary { min-width: 0; }
  .compact-user-review-card .movie-user-review-score,
  .compact-user-review-card.score-only-review-card .movie-user-review-score { min-width: 74px; padding: 9px 8px; }
  .compact-user-review-card .movie-user-review-score strong,
  .compact-user-review-card.score-only-review-card .movie-user-review-score strong { font-size: 1.35rem; }
  .compact-user-review-card .movie-user-review-score > i { width: 13px; height: 13px; margin-left: 4px; }
}


/* Aggregated list of movies rated by GrooveZone+ viewers. */
.rated-movies-controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 1.65fr) repeat(2, minmax(150px, .72fr)) minmax(210px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(24,27,35,.94), rgba(12,14,19,.96));
  box-shadow: 0 16px 42px rgba(0,0,0,.2);
}

.rated-movies-controls[hidden],
.rated-movies-pagination[hidden] { display: none; }
.rated-movies-search {
  display: grid;
  grid-template-columns: 20px minmax(0,1fr) 30px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 9px 0 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  color: #9ca4b2;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.rated-movies-search:focus-within { border-color: rgba(229,9,20,.7); background: rgba(255,255,255,.075); box-shadow: 0 0 0 3px rgba(229,9,20,.11); }
.rated-movies-search > svg { width: 18px; height: 18px; }
.rated-movies-search input { min-width: 0; color: #fff; background: transparent; border: 0; outline: 0; font: inherit; }
.rated-movies-search input::placeholder { color: #7e8694; }
.rated-movies-search > button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 9px; background: rgba(255,255,255,.07); color: #aeb5c1; cursor: pointer; }
.rated-movies-search > button:hover { background: rgba(229,9,20,.18); color: #fff; }
.rated-movies-search > button[hidden] { visibility: hidden; }
.rated-movies-search > button svg { width: 15px; height: 15px; }
.rated-movies-filter { display: grid; gap: 6px; }
.rated-movies-filter > span { padding-left: 2px; color: #8f97a5; font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.rated-movies-filter .text-field { min-height: 48px; padding-right: 36px; font-weight: 650; }
.rated-movies-reset { min-height: 48px; padding-inline: 15px; }
.rated-movies-reset:disabled { opacity: .38; cursor: default; }

.reviews-grid.rated-movies-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rated-movie-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: #111319 var(--rated-movie-image) center / cover no-repeat;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rated-movie-card:hover,
.rated-movie-card:focus-visible {
  z-index: 2;
  border-color: rgba(229, 9, 20, 0.58);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.4);
  outline: none;
  transform: translateY(-4px);
}

.rated-movie-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,9,13,.98) 0%, rgba(8,9,13,.9) 58%, rgba(8,9,13,.7) 100%); backdrop-filter: blur(6px); }
.rated-movie-poster { display: grid; place-items: center; overflow: hidden; width: 92px; aspect-ratio: 2 / 3; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: #222630; color: #8e95a3; box-shadow: 0 14px 32px rgba(0,0,0,.5); }
.rated-movie-poster img { width: 100%; height: 100%; object-fit: cover; }
.rated-movie-poster svg { width: 28px; height: 28px; }
.rated-movie-copy { display: grid; min-width: 0; gap: 7px; }
.rated-movie-copy small { color: #b7bdc9; font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.rated-movie-copy strong { overflow: hidden; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.rated-movie-copy > span { color: #9da4b1; font-size: .75rem; }
.rated-movie-stats { display: grid; grid-template-columns: auto auto 24px; align-items: center; gap: 12px; }
.rated-movie-stats > svg { width: 20px; color: #9ba2af; }
.rated-movie-score { display: grid; gap: 5px; min-width: 118px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(6,7,10,.48); backdrop-filter: blur(12px); }
.rated-movie-score small { color: #9fa6b3; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rated-movie-score strong { font-size: 1.65rem; line-height: 1; }
.rated-movie-score em { margin-left: 2px; color: #9299a6; font-size: .58rem; font-style: normal; }
.rated-movie-score.excellent strong { color: #7cf0ad; }
.rated-movie-score.good strong { color: #84c4ff; }
.rated-movie-score.mixed strong { color: #ffd075; }
.rated-movie-score.weak strong { color: #ff7f87; }
.rated-movie-count { display: grid; justify-items: center; gap: 2px; min-width: 52px; }
.rated-movie-count strong { font-size: 1.05rem; }
.rated-movie-count small { color: #9da4b1; font-size: .64rem; }

.rated-movies-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.rated-movies-pagination .icon-button,
.rated-movies-pages button {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: #c8cdd6;
}
.rated-movies-pagination .icon-button:hover:not(:disabled),
.rated-movies-pages button:hover:not(.active) { border-color: rgba(229,9,20,.48); background: rgba(229,9,20,.12); color: #fff; }
.rated-movies-pagination .icon-button:disabled { opacity: .32; cursor: default; }
.rated-movies-pages { display: flex; align-items: center; gap: 7px; }
.rated-movies-pages button { display: grid; place-items: center; font-weight: 800; cursor: pointer; }
.rated-movies-pages button.active { border-color: #e50914; background: #e50914; color: #fff; box-shadow: 0 8px 24px rgba(229,9,20,.27); }
.rated-movies-ellipsis { min-width: 24px; color: #777f8d; text-align: center; }
.rated-movies-page-info { margin-left: 6px; color: #8f97a5; font-size: .75rem; }

@media (max-width: 1080px) {
  .rated-movies-controls { grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(145px, .75fr)); }
  .rated-movies-sort { grid-column: 1 / 3; }
  .rated-movies-reset { grid-column: 3; }
  .reviews-grid.rated-movies-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .rated-movies-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rated-movies-search { grid-column: 1 / -1; }
  .rated-movies-sort { grid-column: 1; }
  .rated-movies-reset { grid-column: 2; }
  .rated-movies-page-info { display: none; }
}

@media (max-width: 620px) {
  .rated-movies-controls { gap: 10px; margin-top: 14px; padding: 12px; border-radius: 15px; }
  .rated-movies-filter > span { font-size: .62rem; }
  .rated-movies-filter .text-field { padding-inline: 10px 28px; font-size: .78rem; }
  .rated-movies-reset span { display: none; }
  .rated-movies-reset { padding: 0; }
  .rated-movie-card { grid-template-columns: 70px minmax(0,1fr); gap: 13px; min-height: 170px; padding: 14px; border-radius: 16px; }
  .rated-movie-poster { grid-row: 1 / 3; width: 70px; }
  .rated-movie-copy strong { white-space: normal; }
  .rated-movie-stats { grid-column: 2; grid-template-columns: minmax(0,1fr) auto 18px; gap: 8px; }
  .rated-movie-score { min-width: 0; padding: 10px 11px; }
  .rated-movie-score strong { font-size: 1.35rem; }
  .rated-movie-count { min-width: 46px; }
  .rated-movies-pagination { gap: 6px; }
  .rated-movies-pagination .icon-button,
  .rated-movies-pages button { width: 38px; height: 38px; min-height: 38px; border-radius: 10px; }
  .rated-movies-pages { gap: 5px; }
}

/* Hide scrollbar chrome without disabling scrolling. */
html,
body,
* {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
