:root {
  --bg: #090a0b;
  --ink: #f7f2e8;
  --muted: #b8b0a2;
  --quiet: #7f8790;
  --panel: #121416;
  --panel-2: #191d21;
  --panel-3: #22272d;
  --line: rgba(247, 242, 232, 0.12);
  --gold: #d5a84f;
  --teal: #49c6b0;
  --coral: #e76f61;
  --blue: #7f9cf5;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(213, 168, 79, 0.1), rgba(9, 10, 11, 0) 310px),
    linear-gradient(90deg, rgba(73, 198, 176, 0.06), rgba(231, 111, 97, 0.05)),
    var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(247, 242, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 232, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black 0, transparent 72%);
  content: "";
  pointer-events: none;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 0 clamp(16px, 4vw, 54px);
  background: rgba(9, 10, 11, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: #101215;
  border: 1px solid rgba(213, 168, 79, 0.62);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.brand-mark::before {
  position: absolute;
  inset: 8px 7px;
  background:
    linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 8px, var(--gold) 8px 11px, transparent 11px 16px, var(--gold) 16px 19px, transparent 19px);
  content: "";
}

.brand-mark::after {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 4px;
  background: var(--teal);
  border-radius: 999px;
  content: "";
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-name {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.13rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  overflow: hidden;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.site-nav a {
  min-width: 70px;
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  text-align: center;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(247, 242, 232, 0.08);
}

.site-main {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 66px;
}

.cinema-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(430px, 58vh, 620px);
  margin: 0 0 24px;
  background:
    linear-gradient(135deg, rgba(213, 168, 79, 0.18), rgba(73, 198, 176, 0.07)),
    #101215;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--hero-backdrop);
  background-position: center;
  background-size: cover;
  filter: saturate(0.95);
  opacity: 0.32;
  transform: scale(1.04);
}

.cinema-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 10, 11, 0.94) 0%, rgba(9, 10, 11, 0.76) 42%, rgba(9, 10, 11, 0.28) 100%),
    linear-gradient(180deg, rgba(9, 10, 11, 0.12), rgba(9, 10, 11, 0.86));
  content: "";
}

.cinema-hero::after {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(247, 242, 232, 0.11);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  min-height: inherit;
  padding: clamp(28px, 5vw, 70px);
}

.hero-copy {
  display: grid;
  gap: 15px;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.3rem, 6vw, 6.3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-copy h1 a:hover,
.video-card h2 a:hover,
.wide-copy strong:hover {
  color: var(--teal);
}

.hero-summary {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.meta-line,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-line span,
.meta-line time,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.meta-line span + span::before,
.meta-line time::before,
.card-meta span + span::before {
  margin-right: 8px;
  color: rgba(184, 176, 162, 0.45);
  content: "/";
}

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

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 850;
  border-radius: 8px;
}

.primary-action {
  gap: 10px;
  color: #0d0e10;
  background: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.primary-action::before {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #0d0e10;
  content: "";
}

.primary-action:hover {
  background: #e6bd64;
}

.ghost-action {
  color: var(--ink);
  background: rgba(247, 242, 232, 0.08);
  border: 1px solid var(--line);
}

.ghost-action:hover {
  background: rgba(247, 242, 232, 0.14);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  width: min(360px, 100%);
  justify-self: end;
  background: var(--panel);
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.44);
}

.hero-poster img,
.poster-link img,
.wide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster::after,
.poster-link::after,
.wide-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.42)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent);
  content: "";
  pointer-events: none;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 56px;
  height: 56px;
  background: rgba(247, 242, 232, 0.92);
  border: 1px solid rgba(9, 10, 11, 0.18);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}

.play-button::after {
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #0d0e10;
  content: "";
  transform: translate(-42%, -50%);
}

.play-button.compact {
  width: 40px;
  height: 40px;
}

.play-button.compact::after {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
}

.hero-poster:hover .play-button,
.poster-link:hover .play-button,
.wide-tile:hover .play-button {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.07);
}

.tag-strip {
  display: flex;
  gap: 10px;
  padding: 3px 0 28px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tag-strip a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
  background: rgba(247, 242, 232, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-strip a:hover {
  color: var(--ink);
  border-color: rgba(213, 168, 79, 0.55);
}

.shelf {
  margin: 0 0 42px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}

.section-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1.02;
}

.spotlight-row {
  display: grid;
  grid-auto-columns: minmax(280px, 420px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: thin;
}

.wide-tile {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: rgba(18, 20, 22, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.wide-tile:hover {
  background: rgba(25, 29, 33, 0.88);
  border-color: rgba(73, 198, 176, 0.44);
  transform: translateY(-2px);
}

.wide-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 112px;
  background: var(--panel-2);
}

.wide-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.wide-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.wide-copy span {
  overflow: hidden;
  color: var(--quiet);
  font-size: 0.8rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  transform: translateZ(0);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.poster-link:hover {
  border-color: rgba(213, 168, 79, 0.52);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.provider-badge {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 5;
  max-width: calc(100% - 18px);
  padding: 4px 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(9, 10, 11, 0.82);
  border: 1px solid rgba(247, 242, 232, 0.15);
  border-radius: 6px;
}

.video-card h2 {
  display: -webkit-box;
  min-height: 2.72em;
  margin: 12px 2px 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  gap: 0;
  min-height: 22px;
  margin: 0 2px;
  overflow: hidden;
  color: var(--quiet);
  font-size: 0.8rem;
  white-space: nowrap;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  color: rgba(247, 242, 232, 0.34);
  font-size: clamp(1.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.02;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(213, 168, 79, 0.23), transparent 45%),
    linear-gradient(315deg, rgba(73, 198, 176, 0.18), transparent 44%),
    repeating-linear-gradient(90deg, rgba(247, 242, 232, 0.045) 0 1px, transparent 1px 30px),
    #171a1f;
}

.provider-youtube {
  background:
    linear-gradient(135deg, rgba(231, 111, 97, 0.26), transparent 45%),
    linear-gradient(315deg, rgba(213, 168, 79, 0.18), transparent 44%),
    repeating-linear-gradient(90deg, rgba(247, 242, 232, 0.045) 0 1px, transparent 1px 30px),
    #19181a;
}

.provider-vimeo {
  background:
    linear-gradient(135deg, rgba(73, 198, 176, 0.26), transparent 45%),
    linear-gradient(315deg, rgba(127, 156, 245, 0.18), transparent 44%),
    repeating-linear-gradient(90deg, rgba(247, 242, 232, 0.045) 0 1px, transparent 1px 30px),
    #111b1c;
}

.provider-archive {
  background:
    linear-gradient(135deg, rgba(213, 168, 79, 0.26), transparent 45%),
    linear-gradient(315deg, rgba(231, 111, 97, 0.15), transparent 44%),
    repeating-linear-gradient(90deg, rgba(247, 242, 232, 0.045) 0 1px, transparent 1px 30px),
    #1b1915;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  background: rgba(18, 20, 22, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state p {
  margin: 0;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 0;
}

.page-nav a,
.page-nav span {
  min-width: 40px;
  height: 40px;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  background: rgba(18, 20, 22, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-nav .current,
.page-nav a:hover {
  color: #0d0e10;
  background: var(--gold);
  border-color: var(--gold);
}

.watch-view {
  background:
    linear-gradient(180deg, rgba(73, 198, 176, 0.08), rgba(9, 10, 11, 0) 260px),
    var(--bg);
}

.watch-view .site-main {
  width: min(1500px, calc(100% - 36px));
}

.watch-shell {
  display: grid;
  gap: 30px;
}

.watch-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 18px;
  align-items: stretch;
}

.watch-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 430px;
  background: #000;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.watch-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-side,
.watch-details,
.standalone {
  background: rgba(18, 20, 22, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.watch-side {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.watch-side h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.02;
}

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

.spec-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(247, 242, 232, 0.08);
}

.spec-list strong {
  color: var(--quiet);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-summary {
  margin: 0;
  color: var(--muted);
}

.watch-details {
  padding: 22px;
}

.page-content {
  max-width: 880px;
  color: var(--muted);
}

.page-content h2,
.page-content h3 {
  color: var(--ink);
}

.page-content a {
  color: var(--teal);
}

.standalone {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px);
}

.content-head {
  margin-bottom: 24px;
}

.content-head h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 780;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-cloud a:hover {
  color: #0d0e10;
  background: var(--gold);
  border-color: var(--gold);
}

.tag-cloud-link-count {
  color: var(--quiet);
  font-size: 0.78rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--quiet);
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--gold);
}

@media (max-width: 1120px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  }

  .watch-console {
    grid-template-columns: 1fr;
  }

  .watch-frame {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 66px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-name {
    max-width: 30vw;
    font-size: 1.02rem;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    min-width: auto;
    padding: 8px 7px;
    font-size: 0.8rem;
  }

  .site-main {
    width: min(1480px, calc(100% - 22px));
    padding: 22px 0 46px;
  }

  .cinema-hero {
    min-height: 0;
  }

  .cinema-hero::after {
    inset: 10px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }

  .hero-copy {
    order: 2;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 13vw, 3.7rem);
  }

  .hero-poster {
    order: 1;
    width: min(260px, 72vw);
    justify-self: start;
  }

  .tag-strip {
    padding-bottom: 24px;
  }

  .spotlight-row {
    grid-auto-columns: minmax(260px, 82vw);
  }

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

  .wide-media {
    min-height: 96px;
  }

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

  .play-button {
    width: 44px;
    height: 44px;
  }

  .play-button::after {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 13px;
  }

  .provider-badge {
    right: 7px;
    bottom: 7px;
    font-size: 0.62rem;
  }

  .video-card h2 {
    font-size: 0.9rem;
  }

  .card-meta {
    font-size: 0.74rem;
  }

  .watch-view .site-main {
    width: min(1500px, calc(100% - 18px));
  }

  .watch-side,
  .watch-details,
  .standalone {
    padding: 18px;
  }

  .site-footer {
    width: min(1480px, calc(100% - 22px));
  }
}
