:root {
  --bg: #0b0d10;
  --bg-soft: #111418;
  --surface: #15191e;
  --surface-2: #1c2228;
  --text: #f6f8ff;
  --muted: #9aa4af;
  --line: rgba(255, 255, 255, 0.1);
  --brand: #54e4b1;
  --brand-2: #7aa2ff;
  --danger: #fb7185;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #0a0f1d 0%, #0d1324 100%);
  color: var(--text);
  font:
    16px/1.6 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #111;
  padding: 10px 14px;
  z-index: 9999;
  border-radius: 8px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 26, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #08111f;
  font-weight: 900;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 11px;
}
.hero {
  padding: 76px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: -20% auto auto 55%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1,
.movie-hero h1,
.error-page h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  max-width: 820px;
}
.hero-copy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}
.hero-panel {
  background: linear-gradient(
    180deg,
    rgba(28, 39, 67, 0.96),
    rgba(18, 25, 44, 0.96)
  );
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.search-box {
  display: flex;
  gap: 10px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  background: #0d1426;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  outline: none;
}
.search-box input:focus,
.filters select:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button--primary {
  background: linear-gradient(135deg, var(--brand), #34d399);
  color: #07160f;
}
.button--secondary {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.trust-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.trust-item strong {
  display: block;
  font-size: 14px;
}
.trust-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.browse-section {
  padding: 36px 0 70px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2,
.content-section h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}
.section-heading > a {
  color: var(--brand);
  font-weight: 700;
}
.results-status {
  margin: 0;
  color: var(--muted);
}
.filter-bar {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(120px, 0.7fr)) auto;
  gap: 10px;
  margin: 0 0 26px;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.filters input,
.filters select,
.filter-bar input,
.filter-bar select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  outline: none;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.movie-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.movie-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  transition: 0.2s ease;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 183, 0.3);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
}
.movie-card__poster {
  display: block;
  position: relative;
  aspect-ratio: 2/3;
  background: #0f1628;
  overflow: hidden;
}
.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.movie-card:hover .movie-card__poster img {
  transform: scale(1.025);
}
.movie-card__rating {
  position: absolute;
  right: 9px;
  top: 9px;
  background: rgba(6, 10, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.movie-card__body {
  padding: 13px;
}
.movie-card h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0;
}
.movie-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.movie-card__meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skeleton-card {
  height: 355px;
  background: linear-gradient(100deg, #141d33 35%, #1f2a47 50%, #141d33 65%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}
.empty-state {
  grid-column: 1/-1;
  padding: 44px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.empty-state h2 {
  margin: 0;
}
.empty-state p {
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.pagination span {
  color: var(--muted);
  min-width: 120px;
  text-align: center;
}
.info-strip {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}
.info-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.info-strip h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.info-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.site-footer {
  padding: 42px 0 26px;
  border-top: 1px solid var(--line);
  margin-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}
.footer-grid p {
  color: var(--muted);
  max-width: 600px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 30px;
}
.movie-hero {
  position: relative;
  padding: 52px 0;
  overflow: hidden;
  background: var(--bg-soft);
}
.movie-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 21, 0.97) 12%,
      rgba(7, 11, 21, 0.78) 58%,
      rgba(7, 11, 21, 0.92)
    ),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(0.8);
}
.movie-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 34px;
  align-items: center;
}
.movie-poster-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}
.movie-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.breadcrumbs a:hover {
  color: var(--text);
}
.movie-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
}
.alternate-title {
  color: var(--muted);
  font-size: 18px;
  margin: 8px 0;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.hero-stats > span {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 13px;
}
.rating-pill {
  color: #fde68a !important;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.chip {
  background: rgba(110, 231, 183, 0.09);
  border: 1px solid rgba(110, 231, 183, 0.2);
  color: #bbf7d0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.movie-lead {
  max-width: 820px;
  color: #d5dceb;
  font-size: 17px;
}
.movie-content {
  padding-top: 34px;
}
.content-section {
  background: rgba(21, 29, 51, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}
.content-sidebar {
  min-width: 0;
}
.side-card {
  background: rgba(21, 29, 51, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}
.side-card--notice {
  border-color: rgba(110, 231, 183, 0.22);
  background: rgba(110, 231, 183, 0.055);
}
.side-card--notice p {
  color: var(--muted);
  margin-bottom: 0;
}
.info-badge {
  font-size: 12px;
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.08);
  padding: 6px 9px;
  border-radius: 999px;
}
.fake-player {
  min-height: 440px;
  background:
    radial-gradient(
      circle at center,
      rgba(96, 165, 250, 0.08),
      transparent 30%
    ),
    #050814;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.fake-player strong {
  font-size: 20px;
  margin-top: 14px;
}
.fake-player > span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.player-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--brand);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.player-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d8e0ef;
  font-size: 12px;
}
.player-controls div {
  height: 4px;
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.prose {
  font-size: 17px;
  color: #d8deea;
  white-space: pre-line;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cast-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px;
}
.cast-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #0d1424;
}
.cast-card strong,
.cast-card span,
.cast-card a {
  display: block;
}
.cast-card span {
  font-size: 13px;
  color: var(--muted);
}
.cast-card a {
  font-size: 12px;
  color: var(--brand);
  margin-top: 3px;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.screenshot {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 13px;
  overflow: hidden;
}
.screenshot img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.data-table th {
  color: var(--muted);
  font-weight: 700;
}
.data-table code {
  color: #c7d2fe;
}
.section-note,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.guide-list {
  display: grid;
  gap: 10px;
}
.guide-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  border-radius: 12px;
}
.guide-item p {
  margin: 5px 0 0;
  color: var(--muted);
}
.facts-list,
.facts-grid {
  margin: 0;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.fact-row:last-child {
  border-bottom: 0;
}
.fact-row dt {
  color: var(--muted);
}
.fact-row dd {
  margin: 0;
  text-align: right;
  word-break: break-word;
}
.fact-row dd a {
  color: var(--brand);
}
.facts-grid--wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.details-body {
  padding-top: 14px;
}
details summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 800;
}
details summary span:last-child {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.related-section {
  margin-top: 24px;
}
.error-page {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.error-page h1 {
  font-size: clamp(40px, 6vw, 68px);
}
.error-page p {
  color: var(--muted);
  max-width: 650px;
}
dialog {
  max-width: min(1000px, 92vw);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050814;
  padding: 10px;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}
dialog img {
  max-height: 82vh;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.page-hero {
  padding: 62px 0 28px;
}
.page-hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
}
.page-content {
  max-width: 820px;
}
.page-content section {
  margin-bottom: 30px;
}
.page-content h2 {
  margin-bottom: 8px;
}
.page-content p,
.page-content li {
  color: #c9d1df;
}
.page-content a {
  color: var(--brand);
}
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .filter-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-field:first-child {
    grid-column: 1/-1;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .content-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .side-card {
    margin: 0;
  }
  .movie-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    background: #0d1426;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .hero {
    padding-top: 48px;
  }
  .trust-row,
  .info-strip__grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .movie-grid,
  .movie-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-field:first-child {
    grid-column: 1/-1;
  }
  .movie-hero__inner {
    grid-template-columns: 120px 1fr;
    gap: 18px;
    align-items: start;
  }
  .movie-hero h1 {
    font-size: 36px;
  }
  .movie-lead {
    font-size: 15px;
  }
  .content-sidebar {
    grid-template-columns: 1fr;
  }
  .cast-grid,
  .facts-grid--wide {
    grid-template-columns: 1fr;
  }
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .fake-player {
    min-height: 300px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .search-box {
    flex-direction: column;
  }
}
@media (max-width: 500px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }
  .header-inner {
    min-height: 62px;
  }
  .brand small {
    display: none;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-panel {
    padding: 15px;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .filter-field:first-child {
    grid-column: auto;
  }
  .movie-hero {
    padding: 28px 0;
  }
  .movie-hero__inner {
    grid-template-columns: 92px 1fr;
  }
  .movie-hero h1 {
    font-size: 30px;
  }
  .hero-stats {
    gap: 6px;
  }
  .hero-stats > span {
    font-size: 11px;
    padding: 5px 7px;
  }
  .chip-row {
    display: none;
  }
  .movie-lead {
    grid-column: 1/-1;
  }
  .content-section {
    padding: 17px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .cast-card img {
    width: 52px;
    height: 52px;
  }
  .fake-player {
    min-height: 240px;
  }
  .movie-card__body {
    padding: 10px;
  }
  .movie-card h3 {
    font-size: 14px;
  }
  .movie-card__meta {
    font-size: 11px;
  }
}

/* Homepage v2 — original MovieInfo identity inspired by modern media catalogs, not copied from any third-party site. */
.home-page {
  background: #0b0d10;
  color: #f5f7f8;
  min-height: 100vh;
}
.home-page .button {
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
}
.home-page .button--primary {
  background: var(--brand);
  color: #07120e;
  box-shadow: 0 8px 30px rgba(84, 228, 177, 0.13);
}
.button--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.home-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 212px;
  background: #0f1114;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding: 17px 13px 18px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.home-sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  letter-spacing: -0.025em;
}
.home-brand__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px 11px 9px 11px;
  background: linear-gradient(145deg, #58e9b5 5%, #37cda2 100%);
  box-shadow: 0 8px 24px rgba(84, 228, 177, 0.16);
  transform: rotate(-5deg);
}
.home-brand__mark:before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #092018;
  border-radius: 4px;
  transform: rotate(5deg);
}
.home-brand__mark span {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #092018;
  margin-left: 2px;
  transform: rotate(5deg);
}
.home-brand__name {
  font-size: 16px;
}
.sidebar-close,
.sidebar-open {
  border: 0;
  background: transparent;
  color: #dce2e6;
}
.sidebar-close {
  display: none;
  font-size: 26px;
  line-height: 1;
}
.side-nav {
  display: grid;
  gap: 3px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aeb6be;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.side-nav a:hover,
.side-nav a.is-active {
  color: #fff;
  background: #1b1f24;
}
.side-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}
.side-nav__icon {
  width: 18px;
  text-align: center;
  color: #dfe5e9;
}
.side-nav__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #59626b;
  margin-left: 6px;
  margin-right: 7px;
}
.side-nav__label {
  margin: 20px 10px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #69737d;
  font-weight: 800;
}
.sidebar-note {
  margin-top: auto;
  background: linear-gradient(
    155deg,
    rgba(84, 228, 177, 0.11),
    rgba(122, 162, 255, 0.05)
  );
  border: 1px solid rgba(84, 228, 177, 0.14);
  border-radius: 11px;
  padding: 12px;
}
.sidebar-note strong {
  font-size: 12px;
}
.sidebar-note p {
  font-size: 10.5px;
  line-height: 1.5;
  color: #8f9aa3;
  margin: 5px 0 0;
}
.sidebar-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 14px 4px 0;
}
.sidebar-footer-links a {
  font-size: 10.5px;
  color: #77818a;
}
.sidebar-footer-links a:hover {
  color: #fff;
}
.sidebar-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 70;
  border: 0;
}
.home-app {
  margin-left: 212px;
  min-width: 0;
}
.home-topbar {
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: rgba(11, 13, 16, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-open,
.home-brand--mobile {
  display: none;
}
.top-search {
  width: min(610px, 57vw);
  display: flex;
  align-items: center;
  background: #202429;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.top-search__icon {
  padding-left: 12px;
  color: #8b949e;
}
.top-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f7f8;
  padding: 9px 10px;
  font-size: 12px;
}
.top-search input::placeholder {
  color: #777f87;
}
.top-search button {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #2a3036;
  color: #dce2e6;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 750;
}
.top-search button:hover {
  background: #323940;
}
.topbar-purpose {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb7bf;
  font-size: 11px;
}
.purpose-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(84, 228, 177, 0.08);
}
.home-main {
  padding: 18px 24px 62px;
  max-width: 1540px;
  margin: 0 auto;
}
.spotlight {
  min-height: 410px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #14171b;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.spotlight__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: -3;
  filter: saturate(0.86) contrast(1.04);
}
.spotlight__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 7, 9, 0.98) 0%,
      rgba(5, 7, 9, 0.86) 35%,
      rgba(5, 7, 9, 0.38) 69%,
      rgba(5, 7, 9, 0.5) 100%
    ),
    linear-gradient(0deg, rgba(5, 7, 9, 0.72), transparent 48%);
}
.spotlight__content {
  width: min(680px, 65%);
  padding: 42px 42px 38px;
}
.spotlight__eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 850;
}
.spotlight h1 {
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 650px;
}
.spotlight__summary {
  font-size: 14px;
  line-height: 1.65;
  color: #c2c9cf;
  margin: 15px 0 0;
  max-width: 610px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}
.spotlight__meta span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #e0e5e9;
}
.spotlight__meta .is-rating {
  color: #ffe48b;
}
.spotlight__actions {
  display: flex;
  gap: 8px;
}
.spotlight__poster-wrap {
  position: absolute;
  right: 46px;
  bottom: 31px;
  width: 160px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  transform: rotate(2.2deg);
}
.spotlight__poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.quick-genres {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 14px 1px 2px;
  scrollbar-width: none;
}
.quick-genres::-webkit-scrollbar {
  display: none;
}
.quick-genres a {
  white-space: nowrap;
  font-size: 11px;
  color: #aeb7bf;
  background: #15191d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 7px 11px;
  border-radius: 999px;
}
.quick-genres a:hover {
  border-color: rgba(84, 228, 177, 0.28);
  color: #fff;
}
.featured-rows {
  margin-top: 20px;
}
.rail-section {
  margin: 0 0 27px;
  scroll-margin-top: 78px;
}
.rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.rail-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rail-heading__accent {
  width: 4px;
  height: 15px;
  border-radius: 99px;
  background: linear-gradient(var(--brand), #ff9b54);
}
.rail-heading h2 {
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.01em;
}
.rail-heading > a {
  font-size: 10.5px;
  color: #8e98a1;
}
.rail-heading > a:hover {
  color: var(--brand);
}
.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(136px, 1fr);
  grid-template-rows: 1fr;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  padding: 1px 1px 8px;
  scrollbar-color: #343a40 transparent;
}
.movie-rail .movie-card {
  scroll-snap-align: start;
  border-radius: 8px;
  background: #15191d;
  border-color: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}
.movie-rail .movie-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.movie-rail .movie-card__poster {
  border-radius: 7px 7px 0 0;
}
.movie-rail .movie-card__body {
  padding: 8px 8px 9px;
}
.movie-rail .movie-card h3 {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-rail .movie-card__meta {
  font-size: 9.5px;
  margin-top: 5px;
}
.movie-rail .movie-card__rating {
  font-size: 9px;
  padding: 3px 5px;
  right: 5px;
  top: 5px;
}
.movie-rail .movie-card__quality {
  font-size: 8px;
  padding: 3px 5px;
  left: 5px;
  top: 5px;
}
.rail-loading {
  height: 268px;
  min-width: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(100deg, #15191d 35%, #1f2429 50%, #15191d 65%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  color: #7d8790;
  font-size: 11px;
  border-radius: 8px;
}
.catalog-section {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 74px;
}
.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.catalog-heading h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0;
}
.catalog-heading .eyebrow {
  margin-bottom: 3px;
}
.catalog-filters {
  display: grid;
  grid-template-columns:
    minmax(200px, 1.4fr) repeat(4, minmax(118px, 0.65fr))
    auto;
  gap: 9px;
  background: #111419;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 18px;
}
.catalog-filters .filter-field {
  gap: 4px;
}
.catalog-filters .filter-field label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.catalog-filters input,
.catalog-filters select {
  background: #1a1e23;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 11px;
}
.catalog-filters .button {
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 11px;
}
.catalog-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.catalog-grid .movie-card {
  border-radius: 9px;
  background: #15191d;
}
.catalog-grid .movie-card__body {
  padding: 9px;
}
.catalog-grid .movie-card h3 {
  font-size: 12px;
}
.catalog-grid .movie-card__meta {
  font-size: 10px;
}
.movie-card__quality {
  position: absolute;
  left: 9px;
  top: 9px;
  background: var(--brand);
  color: #07120e;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.015em;
}
.movie-card__poster:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.23));
  pointer-events: none;
}
.results-status {
  font-size: 11px;
}
.pagination--numbered {
  margin-top: 27px;
  gap: 8px;
}
.page-nav,
.page-number {
  height: 36px;
  min-width: 36px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #15191d;
  color: #b9c0c6;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 750;
  padding: 0 10px;
}
.page-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.page-nav:hover,
.page-number:hover {
  border-color: rgba(84, 228, 177, 0.28);
  color: #fff;
}
.page-number.is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #07120e;
}
.page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-ellipsis {
  color: #6f7881;
  padding: 0 3px;
  font-size: 11px;
}
.home-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 24px 34px;
  max-width: 1540px;
  margin: 0 auto;
  color: #89939c;
}
.home-footer > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.home-footer p {
  font-size: 11px;
  max-width: 680px;
  margin: 0;
}
.home-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 12px;
}
.home-footer__links a {
  font-size: 11px;
  color: #99a3ac;
}
.home-footer small {
  font-size: 10px;
  color: #69737c;
}

@media (min-width: 1320px) {
  .movie-rail {
    grid-auto-columns: minmax(145px, 1fr);
  }
  .catalog-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .catalog-filters {
    grid-template-columns: 1.2fr repeat(2, 1fr);
  }
  .filter-field--search {
    grid-column: 1/-1;
  }
  .filter-field--button {
    align-self: end;
  }
  .spotlight__poster-wrap {
    right: 30px;
  }
}
@media (max-width: 900px) {
  .home-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    width: 230px;
  }
  .home-sidebar.is-open {
    transform: translateX(0);
  }
  .home-sidebar.is-open ~ .sidebar-scrim {
    display: block;
  }
  .sidebar-close {
    display: block;
  }
  .home-app {
    margin-left: 0;
  }
  .home-topbar {
    padding: 0 16px;
    gap: 10px;
  }
  .sidebar-open {
    display: block;
    font-size: 19px;
    padding: 6px;
  }
  .home-brand--mobile {
    display: flex;
  }
  .home-brand--mobile .home-brand__name {
    display: none;
  }
  .top-search {
    width: auto;
    flex: 1;
  }
  .topbar-purpose {
    display: none;
  }
  .home-main {
    padding: 14px 16px 50px;
  }
  .spotlight {
    min-height: 380px;
  }
  .spotlight__content {
    padding: 32px;
    width: 72%;
  }
  .spotlight__poster-wrap {
    width: 132px;
    right: 24px;
  }
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .movie-rail {
    grid-auto-columns: 145px;
  }
}
@media (max-width: 680px) {
  .home-topbar {
    height: 54px;
  }
  .top-search button {
    display: none;
  }
  .top-search input {
    font-size: 11px;
  }
  .spotlight {
    min-height: 395px;
    align-items: flex-end;
  }
  .spotlight__backdrop {
    opacity: 0.8;
  }
  .spotlight__shade {
    background: linear-gradient(
      0deg,
      rgba(5, 7, 9, 0.98) 9%,
      rgba(5, 7, 9, 0.79) 58%,
      rgba(5, 7, 9, 0.35)
    );
  }
  .spotlight__content {
    width: 100%;
    padding: 24px 20px;
  }
  .spotlight h1 {
    font-size: 34px;
    padding-right: 78px;
  }
  .spotlight__summary {
    font-size: 12.5px;
    max-width: 100%;
    -webkit-line-clamp: 2;
  }
  .spotlight__poster-wrap {
    width: 72px;
    right: 18px;
    bottom: 195px;
    border-radius: 7px;
  }
  .spotlight__meta {
    margin: 13px 0;
  }
  .spotlight__meta span {
    font-size: 9.5px;
  }
  .quick-genres {
    margin-inline: -2px;
  }
  .catalog-heading {
    align-items: start;
    flex-direction: column;
  }
  .catalog-heading h2 {
    font-size: 24px;
  }
  .catalog-filters {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
  .filter-field--search {
    grid-column: 1/-1;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }
  .catalog-grid .movie-card__rating {
    font-size: 9px;
    padding: 3px 5px;
    right: 5px;
    top: 5px;
  }
  .catalog-grid .movie-card__quality {
    font-size: 8px;
    padding: 3px 5px;
    left: 5px;
    top: 5px;
  }
  .page-nav span {
    display: none;
  }
  .page-nav {
    min-width: 36px;
    padding: 0;
  }
  .page-number {
    min-width: 34px;
    padding: 0;
  }
  .pagination--numbered {
    gap: 5px;
  }
  .page-numbers {
    gap: 4px;
  }
  .home-footer {
    padding-inline: 16px;
  }
  .home-footer > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
  .movie-rail {
    grid-auto-columns: 128px;
  }
}
@media (max-width: 430px) {
  .home-brand--mobile {
    display: none;
  }
  .home-main {
    padding-inline: 11px;
  }
  .home-topbar {
    padding-inline: 10px;
  }
  .spotlight {
    min-height: 370px;
  }
  .spotlight__content {
    padding: 20px 16px;
  }
  .spotlight h1 {
    font-size: 29px;
    padding-right: 66px;
  }
  .spotlight__poster-wrap {
    width: 62px;
    right: 14px;
    bottom: 190px;
  }
  .spotlight__actions .button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .catalog-filters {
    grid-template-columns: 1fr;
  }
  .filter-field--search {
    grid-column: auto;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-number {
    min-width: 32px;
    height: 34px;
  }
  .page-nav {
    height: 34px;
  }
  .home-footer__links {
    gap: 11px;
  }
}

/* Torrent quality links on movie detail pages */
.torrent-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.torrent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(84, 228, 177, 0.055),
    rgba(255, 255, 255, 0.018)
  );
}
.torrent-option__info {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.torrent-option__info > div {
  min-width: 0;
}
.torrent-option__info strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.torrent-option__info span:not(.torrent-quality) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.torrent-quality {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(84, 228, 177, 0.13);
  border: 1px solid rgba(84, 228, 177, 0.22);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}
.button--torrent {
  flex: 0 0 auto;
  background: var(--brand);
  color: #07120e;
  border-color: var(--brand);
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 9px;
}
.button--torrent:hover {
  box-shadow: 0 8px 24px rgba(84, 228, 177, 0.14);
}
@media (max-width: 760px) {
  .torrent-options {
    grid-template-columns: 1fr;
  }
  .torrent-option {
    align-items: stretch;
    flex-direction: column;
  }
  .button--torrent {
    width: 100%;
  }
}

/* Movie detail hero + player refinements */
@media (min-width: 1001px) {
  .movie-hero__inner {
    grid-template-columns: 450px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .movie-hero__inner {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
  }
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.button--torrent-hero {
  background: linear-gradient(135deg, var(--brand), #34d399);
  border-color: transparent;
  color: #07160f;
  font-size: 13px;
  padding: 11px 14px;
  box-shadow: 0 10px 26px rgba(84, 228, 177, 0.1);
}
.button--torrent-hero:hover {
  box-shadow: 0 12px 30px rgba(84, 228, 177, 0.18);
}
.fake-player {
  min-height: 0;
  aspect-ratio: 16/9;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.53), rgba(0, 0, 0, 0.53)),
    var(--player-image, linear-gradient(#111, #111));
  background-size: cover;
  background-position: center;
  border-radius: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.fake-player:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 0 18%,
    rgba(0, 0, 0, 0.08) 45%,
    rgba(0, 0, 0, 0.22) 100%
  );
  z-index: -1;
}
.player-play {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #30d36b;
  border: 7px solid rgba(34, 197, 94, 0.24);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #062612;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.player-play:hover {
  transform: scale(1.055);
  background: #36df73;
  box-shadow:
    0 14px 42px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
.player-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
.player-play span {
  font-size: 38px;
  line-height: 1;
  transform: translateX(3px);
}
.player-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.28);
}
.player-status[hidden] {
  display: none !important;
}
.player-status strong {
  display: block;
  margin: 12px 0 0;
  font-size: 17px;
  color: #fff;
}
.player-status > span:last-child {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}
.player-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-top-color: #30d36b;
  animation: player-spin 0.8s linear infinite;
}
.fake-player.is-loading {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.67), rgba(0, 0, 0, 0.67)),
    var(--player-image, linear-gradient(#111, #111));
}
@keyframes player-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .player-spinner {
    animation-duration: 1.6s;
  }
  .player-play {
    transition: none;
  }
}
@media (max-width: 760px) {
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .fake-player {
    aspect-ratio: 16/10;
  }
  .player-play {
    width: 72px;
    height: 72px;
    border-width: 6px;
  }
  .player-play span {
    font-size: 29px;
  }
}

/* =========================================================
   Movie detail mobile responsiveness — movie-box.sbs
   Keeps the 450px / 1fr desktop hero, but fully stacks the
   detail page on phones so no movie data causes page overflow.
   ========================================================= */
#movie-page,
#movie-page .movie-hero__content,
#movie-page .content-main,
#movie-page .content-sidebar,
#movie-page .content-section,
#movie-page .side-card {
  min-width: 0;
}

#movie-page .breadcrumbs span:last-child,
#movie-page .movie-lead,
#movie-page .prose,
#movie-page .fact-row dd,
#movie-page .cast-card strong,
#movie-page .cast-card span {
  overflow-wrap: anywhere;
  word-break: normal;
}

#movie-page .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
#movie-page .data-table {
  max-width: none;
}

@media (max-width: 760px) {
  #movie-page .movie-hero {
    padding: 24px 0 30px;
  }
  #movie-page .movie-hero:before {
    background:
      linear-gradient(
        180deg,
        rgba(7, 11, 21, 0.78) 0%,
        rgba(7, 11, 21, 0.95) 46%,
        rgba(7, 11, 21, 0.99) 100%
      ),
      var(--hero-bg);
    background-size: cover;
    background-position: center top;
  }
  #movie-page .movie-hero__inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px;
    align-items: start;
  }
  #movie-page .movie-poster-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 14px;
  }
  img.movie-poster {
    max-height: 400px;
    object-fit: contain;
  }
  #movie-page .movie-hero__content {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  #movie-page .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 7px;
    margin: 0 0 14px;
    font-size: 11px;
    line-height: 1.45;
  }
  #movie-page .breadcrumbs span:last-child {
    min-width: 0;
    max-width: 100%;
  }
  #movie-page .movie-hero h1 {
    font-size: clamp(29px, 9vw, 40px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  #movie-page .alternate-title {
    font-size: 15px;
    line-height: 1.5;
    margin: 7px 0 0;
  }
  #movie-page .hero-stats {
    gap: 7px;
    margin: 15px 0 12px;
  }
  #movie-page .hero-stats > span {
    font-size: 11px;
    line-height: 1.2;
    padding: 6px 8px;
  }
  #movie-page .chip-row {
    display: flex;
    gap: 6px;
    margin: 10px 0 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  #movie-page .chip-row::-webkit-scrollbar {
    display: none;
  }
  #movie-page .chip {
    flex: 0 0 auto;
    font-size: 10px;
    padding: 5px 8px;
  }
  #movie-page .movie-lead {
    grid-column: auto;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: none;
  }
  #movie-page .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 17px;
  }
  #movie-page .hero-actions .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 11px 12px;
  }

  #movie-page .movie-content {
    padding-top: 18px;
  }
  #movie-page .content-grid {
    display: block;
  }
  #movie-page .content-section {
    padding: 15px;
    margin-bottom: 14px;
    border-radius: 14px;
  }
  #movie-page .content-sidebar {
    display: block;
  }
  #movie-page .side-card {
    padding: 15px;
    margin: 0 0 14px;
    border-radius: 14px;
  }
  #movie-page .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }
  #movie-page .section-heading h2,
  #movie-page .content-section h2,
  #movie-page .side-card h2 {
    font-size: clamp(21px, 6vw, 27px);
    line-height: 1.16;
  }
  #movie-page .info-badge {
    font-size: 10px;
    padding: 5px 8px;
  }

  #movie-page .fake-player {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    min-height: 0;
    border-radius: 10px;
  }
  #movie-page .player-play {
    width: 66px;
    height: 66px;
    border-width: 5px;
  }
  #movie-page .player-play span {
    font-size: 27px;
  }
  #movie-page .player-status {
    padding: 14px;
  }
  #movie-page .player-status strong {
    font-size: 15px;
    margin-top: 10px;
  }
  #movie-page .player-status > span:last-child {
    font-size: 11px;
    line-height: 1.45;
  }
  #movie-page .player-spinner {
    width: 38px;
    height: 38px;
    border-width: 3px;
  }

  #movie-page .prose {
    font-size: 15px;
    line-height: 1.72;
  }
  #movie-page .cast-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  #movie-page .cast-card {
    min-width: 0;
    gap: 10px;
    padding: 10px;
  }
  #movie-page .cast-card > div {
    min-width: 0;
  }
  #movie-page .cast-card img {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
  }
  #movie-page .screenshot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  #movie-page .screenshot {
    width: 100%;
  }

  #movie-page .torrent-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  #movie-page .torrent-option {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  #movie-page .torrent-option__info {
    min-width: 0;
    align-items: flex-start;
    gap: 9px;
  }
  #movie-page .torrent-option__info > div {
    min-width: 0;
    flex: 1;
  }
  #movie-page .torrent-option__info span:not(.torrent-quality) {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.45;
  }
  #movie-page .torrent-quality {
    min-width: 54px;
    font-size: 11px;
    padding: 6px 7px;
  }
  #movie-page .button--torrent {
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
  #movie-page .section-note {
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  #movie-page .fact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 10px 0;
  }
  #movie-page .fact-row dt {
    font-size: 12px;
  }
  #movie-page .fact-row dd {
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    min-width: 0;
  }
  #movie-page .facts-grid--wide {
    grid-template-columns: minmax(0, 1fr);
  }
  #movie-page details summary {
    align-items: flex-start;
    flex-wrap: wrap;
    line-height: 1.45;
  }
  #movie-page .details-body {
    padding-top: 10px;
  }

  #movie-page .table-wrap {
    margin-inline: -3px;
    padding-bottom: 5px;
  }
  #movie-page .data-table {
    min-width: 690px;
  }
  #movie-page .data-table th,
  #movie-page .data-table td {
    padding: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  #movie-page .related-section {
    margin-top: 16px;
  }
  #movie-page .movie-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #movie-page .movie-grid--compact .movie-card {
    min-width: 0;
  }

  #image-dialog {
    width: min(94vw, 760px);
    max-width: 94vw;
    padding: 6px;
  }
  #image-dialog img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
  }
  #image-dialog .dialog-close {
    right: 10px;
    top: 10px;
  }
}

@media (max-width: 420px) {
  #movie-page .movie-hero {
    padding-top: 20px;
  }

  #movie-page .movie-hero h1 {
    font-size: clamp(27px, 9.2vw, 34px);
  }
  #movie-page .hero-stats > span {
    font-size: 10px;
  }
  #movie-page .content-section,
  #movie-page .side-card {
    padding: 13px;
  }
  #movie-page .fake-player {
    border-radius: 8px;
  }
  #movie-page .player-play {
    width: 60px;
    height: 60px;
  }
  #movie-page .player-play span {
    font-size: 24px;
  }
  #movie-page .movie-grid--compact {
    gap: 8px;
  }
}
