*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #d4a853;
  --bg: #0a0a0a;
  --surface: #111111;
  --text: #ededed;
  --muted: #888888;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Ticker ── */
.ticker {
  display: block;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
  text-decoration: none;
  transition: background 0.2s;
}

.ticker:hover {
  background: rgba(255,255,255,0.03);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 18s linear infinite;
}

.ticker-track span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Courier New", monospace;
}

.ticker-track em {
  color: var(--gold);
  font-style: normal;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Header ── */
header {
  padding: 64px 48px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "Courier New", monospace;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

h1 span {
  color: var(--muted);
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-top: 32px;
}

/* ── Grid ── */
main {
  padding: 0 48px 96px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-block {
  margin-bottom: 64px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Courier New", monospace;
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  header, main { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  header, main { padding-left: 16px; padding-right: 16px; }
}

/* ── Card ── */
.card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-caption {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.05em;
  padding: 0 4px;
}

.card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  border-radius: 2px;
}

.card.card-poster {
  aspect-ratio: 2 / 3;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card.card-poster img {
  object-fit: contain;
  background: #000;
}

.card:hover img {
  transform: scale(1.05);
}

.card-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

.card:hover .card-scrim {
  background: rgba(0,0,0,0.65);
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-play {
  opacity: 1;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn svg {
  fill: var(--gold);
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.card-poster .play-btn svg {
  margin-left: 0;
}

/* ── Poster Lightbox ── */
#poster-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

#poster-lightbox.open {
  display: flex;
}

.poster-lightbox-inner {
  position: relative;
  max-height: 90vh;
  display: flex;
  align-items: center;
}

.poster-lightbox-inner img {
  max-height: 85vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}

/* ── Video Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

#lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
}

.lightbox-inner video {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: #000;
  display: block;
}

.lightbox-bar {
  position: absolute;
  top: -36px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-category {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "Courier New", monospace;
}

.lb-arrow {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 24px;
  cursor: pointer;
  padding: 16px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.lb-arrow:hover {
  color: var(--gold);
}

.lightbox-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #fff;
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 48px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-name {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "Courier New", monospace;
}

.footer-copy {
  font-size: 11px;
  color: #444;
}

@media (max-width: 900px) {
  footer { padding-left: 24px; padding-right: 24px; }
}
