﻿: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;
}

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,
.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);
}

.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;
}

.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(58px, 8vw, 86px);
  aspect-ratio: 1;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 38%),
    linear-gradient(135deg, var(--hot), #7a0008);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 18px 58px rgba(229, 9, 20, 0.42);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.custom-center-play svg {
  width: 42%;
  height: 42%;
  margin-left: 4px;
}

.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;
}

.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 {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.custom-control-row #customFullscreenButton {
  margin-left: auto;
}

.custom-select {
  min-height: 38px;
  max-width: 150px;
  color: var(--text);
  background: rgba(16, 18, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
}

.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.ffe93a1046a1.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;
}

.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);
}

.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.ffe93a1046a1.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.favorite-stat {
  color: #ffe8eb;
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.36);
}

.poster-badge.favorite-stat svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.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,
  .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: grid;
    grid-template-columns: 38px 38px minmax(54px, 1fr) 38px;
    gap: 7px;
  }

  .custom-volume {
    width: 100%;
  }

  .custom-select {
    grid-row: 2;
    min-width: 0;
    max-width: none;
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  #customQualitySelect {
    grid-column: 1 / 3;
  }

  #customAudioSelect {
    grid-column: 3 / 5;
  }

  .custom-control-row #customFullscreenButton {
    grid-column: 4;
    grid-row: 1;
    margin-left: 0;
  }

  .custom-progress {
    gap: 5px;
  }

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

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

  .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 {
    grid-template-columns: 38px 38px minmax(0, 1fr) 38px;
  }
}
