/* LESPlays site styles — static, no build step */
:root {
  --bg: #07080d;
  --bg-soft: #0c0f16;
  --bg-elev: #12161f;
  --bg-card: #171c28;
  --line: rgba(232, 201, 120, 0.16);
  --line-strong: rgba(232, 201, 120, 0.32);
  --gold: #e8c978;
  --gold-2: #f6e3b3;
  --ink: #f4f0e6;
  --muted: #9aa3b2;
  --muted-2: #7b8494;
  --cyan: #7ee0d6;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --max: 1160px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Tektur", "Outfit", sans-serif;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(232, 201, 120, 0.08), transparent 50%),
    radial-gradient(900px 600px at 100% 0%, rgba(126, 224, 214, 0.06), transparent 45%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 0.16em; }
a:hover { color: var(--gold); }
:focus-visible { outline: none; box-shadow: var(--focus); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: #1a1408;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 13, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.section,
.page-hero,
.toolbar,
.about-hero,
.watch,
.prose {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}
.logo-text {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}
.logo-text span { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--gold); }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary,
.play-btn {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1408;
  border-color: #d7b56a;
}
.btn-primary:hover,
.play-btn:hover { color: #1a1408; filter: brightness(1.05); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-youtube {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}
.btn-youtube:hover { color: #fff; filter: brightness(1.08); }

.hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.2rem;
  align-items: center;
}
.hero h1,
.page-hero h1,
.watch h1,
.about-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin: 0.2rem 0 0.8rem;
}
.lede { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }
.eyebrow, .kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.3rem 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 0;
}
.stats div {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}
.stats dt { color: var(--muted-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stats dd { margin: 0.15rem 0 0; font-family: var(--display); font-size: 1.2rem; }

.hero-player {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.player img,
.player iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  min-width: 12rem;
}
.play-glyph {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent currentColor;
  display: inline-block;
}
.card-media .play-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%) scale(1.4);
  color: #1a1408;
  filter: drop-shadow(0 0 12px rgba(232, 201, 120, 0.8));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card-media:hover .play-glyph,
.card-media:focus-visible .play-glyph { opacity: 1; }
.hero-caption { padding: 1rem 1.15rem 1.2rem; }
.hero-caption h2 { margin: 0.15rem 0 0.3rem; font-size: 1.25rem; }
.hero-caption h2 a { color: var(--ink); text-decoration: none; }
.meta { color: var(--muted); margin: 0; font-size: 0.92rem; }

.section { padding: 3rem 0 1rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.section-head h2 {
  font-family: var(--display);
  margin: 0.15rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.text-link { font-weight: 600; color: var(--gold); }

.grid,
.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.series-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  scroll-snap-type: x mandatory;
}
.series-row > * { scroll-snap-align: start; }

.card,
.series-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover,
.series-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-media img,
.series-card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(7, 8, 13, 0.86);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}
.card-body { padding: 0.9rem 1rem 1.05rem; }
.card-title { margin: 0.15rem 0 0.35rem; font-size: 1rem; line-height: 1.35; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--gold-2); }

.page-hero { padding: 2.4rem 0 0.5rem; }
.toolbar { padding: 1rem 0 1.5rem; }
.search-field label,
.filter-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
input[type="search"],
select {
  width: 100%;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
}

.about-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.8rem;
  align-items: center;
  padding: 2.4rem 0 1rem;
}
.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-strong);
}
.prose { padding-bottom: 3rem; }
.prose h2 { font-family: var(--display); margin-top: 2rem; }
.fact-list { padding-left: 1.1rem; }
.fact-list li { margin: 0.4rem 0; }

.watch { padding: 1.5rem 0 3rem; }
.watch .player {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.watch-header { padding: 1.2rem 0 0; }

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.2rem;
  background: var(--bg-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; align-items: start; }
.footnote {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.2rem auto 0;
  color: var(--muted-2);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .hero,
  .about-hero,
  .footer-inner,
  .grid,
  .series-grid,
  .stats,
  .filter-row { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1rem 1rem;
    background: rgba(7, 8, 13, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .grid,
  .series-grid,
  .stats,
  .filter-row,
  .about-hero,
  .footer-inner { grid-template-columns: 1fr; }
  .header-inner { width: min(var(--max), calc(100% - 2rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
