:root {
  color-scheme: dark;
  --bg: #111317;
  --panel: #1b2026;
  --panel-strong: #242a31;
  --text: #f4f0e8;
  --muted: #b8c1c1;
  --line: rgba(255, 255, 255, 0.14);
  --amber: #f1b84b;
  --teal: #54c6bd;
  --red: #dc5a50;
  --green: #87c26f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
}

main,
.site-footer {
  transition: margin 160ms ease;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--text);
  color: #111317;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 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(17, 19, 23, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-ad {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  box-shadow: inset 0 0 0 5px rgba(84, 198, 189, 0.14), 0 0 24px rgba(84, 198, 189, 0.42);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  background: var(--amber);
  transform-origin: left center;
  transform: rotate(-28deg);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

button {
  border: 0;
  cursor: pointer;
}

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

.header-controls[hidden] {
  display: none !important;
}

.account-pill {
  max-width: 180px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(84, 198, 189, 0.34);
  border-radius: 6px;
  color: var(--teal);
  background: rgba(84, 198, 189, 0.1);
  font-size: 0.86rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-action,
.hero-search button,
.radar-band button {
  min-height: 44px;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--amber);
  color: #16110a;
  font-weight: 850;
}

.header-action:hover,
.hero-search button:hover,
.radar-band button:hover {
  filter: brightness(1.06);
}

.header-login {
  min-height: 44px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: min(820px, 92vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 108px clamp(18px, 5vw, 72px) 98px;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 19, 23, 0.98) 0%, rgba(17, 19, 23, 0.86) 34%, rgba(17, 19, 23, 0.28) 72%),
    linear-gradient(0deg, rgba(17, 19, 23, 0.94) 0%, rgba(17, 19, 23, 0.12) 38%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.35rem, 10vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  max-width: 8ch;
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(640px, 100%);
  margin-top: 30px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: #111317;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 0 13px;
}

textarea {
  min-height: 96px;
  padding-block: 12px;
  resize: vertical;
}

.hero-search input {
  border-color: transparent;
  background: rgba(17, 19, 23, 0.82);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.23);
}

.hero-stats strong {
  color: var(--text);
}

.radar-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: #171a1f;
  border-bottom: 1px solid var(--line);
}

.radar-band > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
}

.radar-band p,
.radar-band strong {
  margin: 0;
}

.radar-band p {
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.radar-band strong {
  grid-column: 2;
  max-width: 760px;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.radar-dot {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(220, 90, 80, 0.14), 0 0 24px rgba(220, 90, 80, 0.46);
}

@media (min-width: 1320px) {
  main,
  .site-footer {
    margin-inline: 152px;
  }

  .side-ad {
    position: fixed;
    top: 82px;
    bottom: 0;
    z-index: 12;
    width: 120px;
    display: grid;
    grid-template-rows: 1.15fr 1fr 1.25fr;
    gap: 10px;
    padding: 10px;
    border-inline: 1px solid rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(180deg, rgba(241, 184, 75, 0.08), rgba(84, 198, 189, 0.06)),
      rgba(17, 19, 23, 0.92);
    color: var(--text);
    text-align: center;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    overflow: hidden;
  }

  .side-ad-left {
    left: 16px;
  }

  .side-ad-right {
    right: 16px;
  }

  .side-ad-card {
    min-height: 0;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 12px 9px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
  }

  .side-ad-card::before {
    content: "";
    width: 34px;
    height: 34px;
    justify-self: center;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.22;
    box-shadow: 0 0 22px currentColor;
  }

  .side-ad span {
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .side-ad strong {
    font-size: 1.05rem;
    line-height: 1.05;
  }

  .side-ad p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .side-ad-card-hot {
    color: var(--red);
    background: linear-gradient(180deg, rgba(220, 90, 80, 0.18), rgba(255, 255, 255, 0.05));
  }

  .side-ad-card-soft {
    color: var(--amber);
    background: linear-gradient(180deg, rgba(241, 184, 75, 0.18), rgba(255, 255, 255, 0.05));
  }

  .side-ad-card-signal {
    color: var(--teal);
    background: linear-gradient(180deg, rgba(84, 198, 189, 0.18), rgba(255, 255, 255, 0.05));
  }

  .side-ad-card-cool {
    color: #78a8ff;
    background: linear-gradient(180deg, rgba(120, 168, 255, 0.18), rgba(255, 255, 255, 0.05));
  }

  .side-ad-card-premiere {
    color: var(--green);
    background: linear-gradient(180deg, rgba(135, 194, 111, 0.18), rgba(255, 255, 255, 0.05));
  }

  .side-ad-card-dark {
    color: #d8c7ff;
    background: linear-gradient(180deg, rgba(216, 199, 255, 0.16), rgba(255, 255, 255, 0.05));
  }
}

.section-shell,
.split-section {
  padding: 72px clamp(18px, 5vw, 72px);
}

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

.section-heading h2,
.feature-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(27, 32, 38, 0.88);
}

.nav-section {
  display: grid;
  gap: 10px;
}

.nav-section + .nav-section {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section h3 {
  margin: 0;
  color: var(--amber);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.side-link-grid,
.side-year-list {
  display: grid;
  gap: 7px;
}

.side-year-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-link,
.side-year,
.sort-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(17, 19, 23, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.side-link {
  justify-content: start;
  padding: 0 10px;
  text-align: left;
}

.side-link:hover,
.side-link:focus-visible,
.side-year:hover,
.side-year:focus-visible,
.sort-button:hover,
.sort-button:focus-visible {
  color: var(--text);
  border-color: rgba(84, 198, 189, 0.52);
}

.side-link.is-active,
.side-year.is-active,
.sort-button.is-active {
  background: var(--teal);
  color: #07100f;
  border-color: var(--teal);
}

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

.tool-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 190px) minmax(170px, 220px) minmax(130px, 170px);
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sort-button {
  padding: 0 12px;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
}

.year-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  scrollbar-width: thin;
}

.year-chip-list {
  display: flex;
  gap: 8px;
}

.year-chip {
  min-width: 66px;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(17, 19, 23, 0.84);
  color: var(--muted);
  font-weight: 850;
}

.year-chip:hover,
.year-chip:focus-visible {
  color: var(--text);
  border-color: rgba(84, 198, 189, 0.52);
}

.year-chip.is-active {
  background: var(--teal);
  color: #07100f;
  border-color: var(--teal);
}

.ghost-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: transparent;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  align-items: start;
}

.catalog-main .movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.movie-card {
  height: 292px;
  min-height: 292px;
  display: grid;
  grid-template-rows: 18px 218px minmax(0, 1fr);
  padding: 8px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 10%, var(--card-glow), transparent 34%),
    linear-gradient(145deg, var(--card-a), var(--card-b));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.movie-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.movie-poster {
  width: 100%;
  height: 218px;
  aspect-ratio: auto;
  margin-top: 8px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.movie-poster-placeholder {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(155deg, color-mix(in srgb, var(--card-a) 46%, #181e24), color-mix(in srgb, var(--card-b) 34%, #0f141a));
}

.movie-card header {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 800;
  overflow: hidden;
}

.movie-card header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card h3 {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.12;
  min-height: 2.05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-poster + div h3 {
  margin-top: 8px;
}

.movie-card > div:last-child {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.movie-meta-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0 0 7px;
  min-height: 24px;
  overflow: hidden;
}

.movie-meta-line span {
  min-width: 0;
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tags {
  display: none;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.tags span {
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.68rem;
}

.watch-button {
  width: 100%;
  min-height: 32px;
  margin-top: auto;
  border-radius: 6px;
  background: rgba(244, 240, 232, 0.95);
  color: #15191f;
  font-size: 0.78rem;
  font-weight: 900;
}

.watch-button:hover {
  background: var(--amber);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #f0eadf;
  color: #171514;
}

.feature-copy p:not(.eyebrow) {
  max-width: 540px;
  color: #5b5550;
  font-size: 1.06rem;
  line-height: 1.65;
}

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

.premiere-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 102px;
  padding: 18px;
  border: 1px solid rgba(23, 21, 20, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.premiere-list span {
  color: #8f6557;
  font-weight: 900;
}

.premiere-list h3,
.premiere-list p {
  margin: 0;
}

.premiere-list p {
  margin-top: 5px;
  color: #5b5550;
}

.premiere-list strong {
  color: #171514;
  font-size: 1.25rem;
}

.collections {
  background:
    linear-gradient(180deg, rgba(84, 198, 189, 0.08), transparent 260px),
    #111317;
}

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

.collection-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28)),
    var(--panel-strong);
}

.collection-grid p {
  margin: 0 0 9px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.collection-grid h3 {
  margin: 0 0 9px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.collection-grid span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden],
.signup-only[hidden] {
  display: none;
}

.auth-modal,
.watch-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171a1f;
  color: var(--text);
  box-shadow: var(--shadow);
}

.auth-modal {
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-right: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab {
  min-height: 40px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.auth-tab.is-active {
  background: var(--teal);
  color: #07100f;
}

.auth-modal h2,
.watch-modal h2 {
  margin: 22px 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1;
}

.auth-note,
.form-message {
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-message {
  min-height: 24px;
  margin: 0;
}

.auth-submit {
  width: 100%;
}

.watch-modal {
  width: min(860px, 100%);
}

.fake-player,
.real-player,
.embed-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #090b0e;
}

.fake-player {
  display: grid;
  place-items: center;
  position: relative;
  background:
    radial-gradient(circle at 65% 35%, rgba(84, 198, 189, 0.28), transparent 30%),
    linear-gradient(145deg, #232a31, #090b0e);
  border-bottom: 1px solid var(--line);
}

.fake-player[hidden],
.real-player[hidden],
.embed-player[hidden] {
  display: none;
}

.real-player,
.embed-player {
  display: block;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.player-error {
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  color: #ffd8d3;
  background: rgba(220, 90, 80, 0.14);
  line-height: 1.45;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--amber);
  position: relative;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-42%, -50%);
  border-left: 22px solid #15110a;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}

.player-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.player-bar span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--red);
}

.watch-details {
  padding: 22px;
}

.watch-details p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.watch-related,
.watch-comments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.watch-related h3,
.watch-comments h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

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

.season-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.season-block h4 {
  margin: 6px 0 0;
  color: var(--amber);
  font-size: 0.92rem;
  text-transform: uppercase;
}

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

.related-item {
  min-height: 58px;
  display: grid;
  gap: 3px;
  justify-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-align: left;
}

.related-item:hover,
.related-item:focus-visible {
  border-color: rgba(84, 198, 189, 0.6);
  background: rgba(84, 198, 189, 0.12);
}

.related-item span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.related-item strong {
  line-height: 1.2;
}

.episode-item {
  min-height: 52px;
}

.related-empty,
.comment-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.comment-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.comment-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.comment-item strong {
  color: var(--text);
}

.comment-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .main-nav {
    display: none;
  }

  .movie-grid,
  .catalog-main .movie-grid,
  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

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

  .episode-grid {
    grid-template-columns: 1fr;
  }

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

  .catalog-sidebar {
    position: static;
  }

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

  .side-year-list {
    grid-template-columns: repeat(6, minmax(58px, 1fr));
  }

  .tool-panel,
  .split-section {
    grid-template-columns: 1fr;
  }

  .header-controls {
    justify-content: start;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .header-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .account-pill {
    grid-column: 1 / -1;
    max-width: none;
  }

  .hero {
    min-height: 88vh;
    padding: 92px 16px 76px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 19, 23, 0.96), rgba(17, 19, 23, 0.72)),
      linear-gradient(0deg, rgba(17, 19, 23, 0.96), rgba(17, 19, 23, 0.16));
  }

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

  .radar-band,
  .section-heading,
  .catalog-meta,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .year-rail {
    margin-inline: -2px;
  }

  .movie-grid,
  .catalog-main .movie-grid,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-link-grid {
    grid-template-columns: 1fr;
  }

  .side-year-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-shell,
  .split-section {
    padding: 54px 16px;
  }

  .section-login {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Kinogo-style catalog refresh: compact, fast, and navigation-first. */
body {
  background:
    linear-gradient(180deg, #101010 0%, #161616 54%, #101010 100%);
}

.site-header {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 0 clamp(14px, 4vw, 52px);
  min-height: 66px;
  background: #151515;
  border-bottom: 3px solid #d8911f;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.42);
}

.brand {
  align-self: stretch;
  padding: 0 18px;
  margin-left: -18px;
  background: linear-gradient(180deg, #f4b33c, #c97713);
  color: #16120b;
  font-size: 1.28rem;
  justify-content: center;
  text-transform: uppercase;
}

.brand-mark {
  border-color: #16120b;
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.12);
}

.brand-mark::after {
  background: #16120b;
}

.main-nav {
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  overflow-x: auto;
}

.main-nav a {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 0;
  color: #e8e0d2;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #252525;
  color: #f4b33c;
}

main,
.site-footer {
  max-width: 1180px;
  margin-inline: auto;
}

.hero {
  min-height: 270px;
  margin-top: 84px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #1d1d1d;
  box-shadow: var(--shadow);
}

.hero-image {
  opacity: 0.28;
  filter: saturate(0.65) contrast(1.06);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.98), rgba(18, 18, 18, 0.78) 48%, rgba(18, 18, 18, 0.45)),
    linear-gradient(0deg, rgba(18, 18, 18, 0.92), transparent 60%);
}

.hero-content {
  width: min(760px, 100%);
}

.eyebrow {
  color: #f0aa32;
}

.hero h1,
.section-heading h2 {
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.35rem, 7vw, 4.6rem);
}

.hero-copy {
  max-width: 690px;
  margin-top: 14px;
  font-size: 1.02rem;
}

.hero-search {
  margin-top: 20px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.36);
}

.hero-search input {
  min-height: 42px;
  background: #101010;
}

.hero-search button,
.radar-band button,
.header-action {
  background: linear-gradient(180deg, #f4b33c, #c97713);
  color: #171008;
  text-transform: uppercase;
}

.hero-stats,
.radar-band {
  display: none;
}

.section-shell,
.split-section {
  padding: 22px 0 42px;
}

.section-heading {
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #202020;
}

.section-heading h2 {
  font-size: clamp(1.18rem, 2vw, 1.65rem);
}

.catalog-layout {
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: #181818;
}

.catalog-sidebar {
  position: static;
  align-self: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #222;
}

.nav-section {
  gap: 0;
}

.nav-section + .nav-section {
  padding-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-section h3 {
  padding: 12px 14px;
  background: #2b2b2b;
  color: #f4b33c;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.side-link-grid,
.side-year-list {
  gap: 0;
}

.side-year-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.side-link,
.side-year {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #222;
  color: #c9c2b7;
  font-size: 0.78rem;
  font-weight: 750;
}

.side-link {
  padding: 0 14px;
}

.side-year {
  padding: 0 8px;
}

.side-link:hover,
.side-link:focus-visible,
.side-year:hover,
.side-year:focus-visible,
.side-link.is-active,
.side-year.is-active {
  background: #d8911f;
  color: #130e08;
  border-color: rgba(255, 255, 255, 0.06);
}

.catalog-main {
  padding: 14px;
  background: #181818;
}

.tool-panel {
  grid-template-columns: minmax(220px, 1fr) 140px 170px 130px;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  background: #232323;
  border-color: rgba(255, 255, 255, 0.08);
}

.field label {
  color: #f4b33c;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.field input,
.field select,
.hero-search input {
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.09);
  background: #111;
}

.sort-bar {
  align-items: center;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #202020;
}

.sort-bar::before {
  content: "Сортировка:";
  color: #c9c2b7;
  font-size: 0.82rem;
  font-weight: 800;
  margin-right: 2px;
}

.sort-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #151515;
  color: #c9c2b7;
  font-size: 0.74rem;
}

.sort-button:hover,
.sort-button:focus-visible,
.sort-button.is-active {
  background: #d8911f;
  color: #130e08;
}

.year-rail {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  background: #202020;
  border-color: rgba(255, 255, 255, 0.08);
}

.year-chip {
  border-radius: 4px;
  background: #151515;
  font-size: 0.72rem;
}

.year-chip.is-active,
.year-chip:hover,
.year-chip:focus-visible {
  background: #d8911f;
  color: #130e08;
}

.catalog-meta {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #202020;
  color: #c9c2b7;
}

#result-count::before {
  content: "Показано: ";
  color: #f4b33c;
  font-weight: 900;
}

.movie-grid,
.catalog-main .movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 12px;
}

.movie-card {
  height: 304px;
  min-height: 304px;
  grid-template-rows: 20px 230px minmax(0, 1fr);
  padding: 7px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.1);
  background: #242424;
  box-shadow: none;
}

.movie-card:hover {
  border-color: #d8911f;
  box-shadow: 0 0 0 1px rgba(216, 145, 31, 0.55), 0 12px 26px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.movie-poster {
  height: 230px;
  margin-top: 7px;
  border-radius: 3px;
  background: #111;
  box-shadow: none;
}

.movie-card header {
  color: #f4b33c;
  font-size: 0.72rem;
}

.movie-card h3 {
  margin-top: 8px;
  color: #eee7db;
  font-size: 0.78rem;
  line-height: 1.18;
  text-align: center;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .brand {
    min-height: 58px;
    margin-left: 0;
  }

  .main-nav {
    display: flex;
    padding-inline: 8px;
    background: #151515;
  }

  .main-nav a {
    min-height: 44px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  main,
  .site-footer {
    max-width: none;
    margin-inline: 12px;
  }

  .hero {
    margin-top: 122px;
  }

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

  .catalog-sidebar {
    display: block;
  }

  .side-link-grid,
  .side-year-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  main,
  .site-footer {
    margin-inline: 8px;
  }

  .hero {
    min-height: 250px;
    padding: 22px 16px;
  }

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

  .section-heading {
    display: block;
  }

  .section-login {
    margin-top: 10px;
  }

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

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

  .movie-card {
    height: 286px;
    min-height: 286px;
    grid-template-rows: 20px 212px minmax(0, 1fr);
  }

  .movie-poster {
    height: 212px;
  }
}

@media (min-width: 1320px) {
  :root {
    --ad-content-width: min(1180px, calc(100vw - 340px));
    --side-ad-width: max(120px, calc((100vw - var(--ad-content-width)) / 2 - 24px));
  }

  main,
  .site-footer {
    width: min(1180px, calc(100vw - 340px));
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-header {
    grid-template-columns: 220px minmax(0, 960px);
    justify-content: center;
    padding-inline: 0;
  }

  .brand {
    margin-left: 0;
  }

  .side-ad {
    top: 66px;
    width: var(--side-ad-width);
    grid-template-rows: 1fr;
    gap: 0;
    padding: 12px;
    background:
      linear-gradient(180deg, rgba(216, 145, 31, 0.15), rgba(0, 0, 0, 0.22)),
      #171717;
  }

  .side-ad-left {
    left: 0;
  }

  .side-ad-right {
    right: 0;
  }

  .side-ad-card {
    min-height: 100%;
    border-radius: 4px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    gap: 16px;
    padding: 26px 18px;
  }

  .side-ad-card::before {
    width: 74px;
    height: 74px;
  }

  .side-ad span {
    font-size: 0.86rem;
  }

  .side-ad strong {
    font-size: clamp(1.4rem, 1.6vw, 2rem);
  }

  .side-ad p {
    max-width: 190px;
    justify-self: center;
    font-size: 1rem;
  }
}

@media (min-width: 1600px) {
  main,
  .site-footer {
    width: 1180px;
  }

  .side-ad-left {
    left: 0;
  }

  .side-ad-right {
    right: 0;
  }
}

/* Calm palette pass: softer contrast and easier long browsing. */
:root {
  --bg: #14171a;
  --panel: #1d2226;
  --panel-strong: #242a2e;
  --text: #ebe7de;
  --muted: #b9c0bb;
  --line: rgba(235, 231, 222, 0.12);
  --amber: #caa86a;
  --teal: #82aaa4;
  --red: #b67c72;
  --green: #9cad84;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

body {
  background:
    linear-gradient(180deg, #15191c 0%, #181c20 54%, #131619 100%);
}

.site-header {
  background: rgba(24, 28, 31, 0.96);
  border-bottom-color: #8f8065;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

.brand,
.hero-search button,
.radar-band button,
.header-action,
.sort-button:hover,
.sort-button:focus-visible,
.sort-button.is-active,
.year-chip.is-active,
.year-chip:hover,
.year-chip:focus-visible,
.side-link:hover,
.side-link:focus-visible,
.side-year:hover,
.side-year:focus-visible,
.side-link.is-active,
.side-year.is-active {
  background: linear-gradient(180deg, #d0b782, #a88d61);
  color: #171512;
}

.main-nav a {
  color: #cfc9bd;
  border-left-color: rgba(235, 231, 222, 0.07);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #24292d;
  color: #e5d4ad;
}

.hero,
.section-heading,
.catalog-main,
.tool-panel,
.sort-bar,
.year-rail,
.catalog-meta,
.movie-card {
  background-color: #202529;
  border-color: rgba(235, 231, 222, 0.1);
}

.hero {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero-image {
  opacity: 0.2;
  filter: saturate(0.45) contrast(0.96);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(21, 25, 28, 0.98), rgba(21, 25, 28, 0.82) 48%, rgba(21, 25, 28, 0.5)),
    linear-gradient(0deg, rgba(21, 25, 28, 0.94), transparent 60%);
}

.catalog-layout {
  background: #181d20;
  border-color: rgba(235, 231, 222, 0.1);
}

.catalog-sidebar,
.nav-section h3,
.side-link,
.side-year {
  background: #202529;
}

.nav-section h3,
.field label,
.eyebrow,
#result-count::before,
.movie-card header,
.side-ad span {
  color: #d0b782;
}

.side-link,
.side-year,
.sort-button,
.year-chip {
  background: #181d20;
  color: #c8c3b8;
  border-color: rgba(235, 231, 222, 0.08);
}

.field input,
.field select,
.hero-search input {
  background: #15191c;
  color: #ebe7de;
  border-color: rgba(235, 231, 222, 0.1);
}

.movie-card {
  background: #22272b;
}

.movie-card:hover {
  border-color: rgba(208, 183, 130, 0.7);
  box-shadow: 0 0 0 1px rgba(208, 183, 130, 0.28), 0 12px 24px rgba(0, 0, 0, 0.24);
}

.movie-poster {
  background: #15191c;
  border-color: rgba(235, 231, 222, 0.1);
}

.side-ad {
  background:
    linear-gradient(180deg, rgba(130, 170, 164, 0.12), rgba(0, 0, 0, 0.16)),
    #171c1f;
}

.side-ad-card-hot,
.side-ad-card-cool,
.side-ad-card-soft,
.side-ad-card-signal,
.side-ad-card-premiere,
.side-ad-card-dark {
  color: #9fb9b3;
  background: linear-gradient(180deg, rgba(130, 170, 164, 0.16), rgba(235, 231, 222, 0.04));
}

.side-ad p,
.catalog-meta,
.hero-copy {
  color: #b9c0bb;
}
