/* ===================================================================
   EmceeTV — style.css
   Dark-mode hip-hop / graffiti theme. Palette derived from the logo:
   fire orange, electric coral, royal purple, magenta on midnight black.
   =================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg:            #0B0A0C;   /* deep midnight */
  --bg-pure:       #000000;
  --surface:       #141216;   /* raised card */
  --surface-2:     #1C1920;

  /* Accent gradient (orange -> coral/red) */
  --fire:          #FF9E00;
  --coral:         #E63946;
  --grad-fire:     linear-gradient(120deg, #FF9E00 0%, #FF6B2C 45%, #E63946 100%);

  /* Purple / magenta splashes */
  --purple:        #6A1B9A;
  --magenta:       #9C27B0;
  --grad-splash:   linear-gradient(135deg, #6A1B9A 0%, #9C27B0 100%);

  /* Text */
  --text:          #F5F2F0;
  --text-dim:      #A39FA8;
  --text-faint:    #6E6A74;

  /* Lines */
  --border:        rgba(156, 39, 176, 0.22);
  --border-soft:   rgba(255, 255, 255, 0.07);

  /* Type */
  --display:       'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --body:          'Inter', system-ui, -apple-system, sans-serif;

  --radius:        16px;
  --radius-sm:     10px;
  --shadow-mag:    0 18px 50px -20px rgba(156, 39, 176, 0.55);
  --shadow-fire:   0 12px 40px -12px rgba(230, 57, 70, 0.6);

  --maxw:          1200px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--coral); color: #fff; }

/* ---------- Shared helpers ---------- */
.accent-text {
  background: var(--grad-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fire);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.section-lead {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 46ch;
}

.section-foot { margin-top: 48px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --_pad: 15px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: var(--_pad);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  white-space: nowrap;
}
.btn-icon { width: 20px; height: 20px; fill: currentColor; }

.btn-primary {
  background: var(--grad-fire);
  color: #1a0d02;
  box-shadow: var(--shadow-fire);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 48px -12px rgba(230,57,70,.75); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--magenta); background: rgba(156,39,176,.1); }

.btn-block { width: 100%; justify-content: center; }

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--fire);
  outline-offset: 3px;
}

/* ===================================================================
   HEADER / NAV
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 10, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { flex-shrink: 0; }
.brand-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(156,39,176,.4));
}

.main-nav { margin-left: auto; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  position: relative;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: #1a0d02;
  background: var(--grad-fire);
}

.social-cluster { display: flex; gap: 8px; }
.social-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.social-btn svg { width: 18px; height: 18px; fill: var(--text-dim); transition: fill .2s ease; }
.social-btn:hover { transform: translateY(-2px); border-color: var(--magenta); background: rgba(156,39,176,.12); }
.social-btn:hover svg { fill: var(--fire); }

/* Mobile toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .3s ease, opacity .3s ease;
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px 120px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(106,27,154,.35), transparent 45%),
    radial-gradient(circle at 82% 25%, rgba(230,57,70,.28), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255,158,0,.18), transparent 55%),
    var(--bg-pure);
}
/* animated blurred glow blob */
.hero-glow {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-splash);
  filter: blur(120px);
  opacity: .3;
  border-radius: 50%;
  animation: float 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes float {
  from { transform: translate(-52%, 0) scale(1); }
  to   { transform: translate(-48%, 30px) scale(1.08); }
}
/* subtle grain */
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .04;
  pointer-events: none;
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 160px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 860px; }

.hero-eyebrow {
  font-weight: 700; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-logo {
  width: min(680px, 88%);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 20px 60px rgba(156,39,176,.5));
  animation: rise .8s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.hero-tagline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-top: 12px;
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1.1rem;
}
.hero-cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 36px;
}

/* ===================================================================
   EPISODES GRID
   =================================================================== */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.ep-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.ep-card:not(.skeleton):hover {
  transform: translateY(-6px);
  border-color: var(--magenta);
  box-shadow: var(--shadow-mag);
}
.ep-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ep-card:not(.skeleton):hover .ep-thumb img { transform: scale(1.06); }

.ep-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.55));
  opacity: 0; transition: opacity .25s ease;
}
.ep-card:hover .ep-play { opacity: 1; }
.ep-play span {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: var(--grad-fire);
  border-radius: 50%;
  box-shadow: var(--shadow-fire);
  transform: scale(.9);
  transition: transform .25s ease;
}
.ep-card:hover .ep-play span { transform: scale(1); }
.ep-play svg { width: 24px; height: 24px; fill: #1a0d02; margin-left: 3px; }

.ep-body { padding: 18px 20px 22px; }
.ep-title {
  font-weight: 700; font-size: 1.05rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-date {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--text-faint);
  letter-spacing: .03em;
}

/* Skeleton loading state */
.skeleton .ep-thumb,
.skeleton .sk-line {
  background: linear-gradient(100deg, var(--surface-2) 30%, #2a2630 50%, var(--surface-2) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.sk-line { height: 14px; border-radius: 6px; margin-top: 12px; }
.sk-line.short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===================================================================
   PHOTOS + LIGHTBOX
   =================================================================== */
.photo-grid {
  columns: 3 260px;
  column-gap: 18px;
}
.photo-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.photo-item img { width: 100%; height: auto; transition: transform .4s ease; }
.photo-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(106,27,154,.0), rgba(230,57,70,.0));
  transition: background .3s ease;
}
.photo-item:hover { border-color: var(--magenta); box-shadow: var(--shadow-mag); }
.photo-item:hover img { transform: scale(1.05); }
.photo-item:hover::after { background: linear-gradient(135deg, rgba(106,27,154,.28), rgba(230,57,70,.22)); }
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  font-size: .85rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.photo-item:hover .photo-cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: rgba(5,4,6,.94);
  backdrop-filter: blur(6px);
  padding: 24px;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }

.lb-figure {
  max-width: 90vw; max-height: 84vh;
  display: flex; flex-direction: column; align-items: center;
  transform: scale(.96);
  transition: transform .3s ease;
}
.lightbox.open .lb-figure { transform: scale(1); }
.lb-img {
  max-width: 90vw; max-height: 76vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px var(--border);
  object-fit: contain;
}
.lb-caption { margin-top: 14px; color: var(--text-dim); font-size: .95rem; }

.lb-close, .lb-nav {
  position: fixed;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lb-close {
  top: 20px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1;
}
.lb-nav {
  top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  font-size: 1.4rem;
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close:hover, .lb-nav:hover { background: var(--grad-fire); border-color: transparent; color: #1a0d02; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

/* ===================================================================
   CONTACT
   =================================================================== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy { margin-top: 20px; color: var(--text-dim); max-width: 42ch; }

.contact-details { margin-top: 32px; display: grid; gap: 20px; }
.contact-details li { display: flex; flex-direction: column; gap: 3px; }
.cd-label {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fire); font-weight: 700;
}
.contact-details a, .contact-details span:not(.cd-label) { color: var(--text); font-size: 1.05rem; }
.contact-details a:hover { color: var(--fire); }

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-pure);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(230,57,70,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
.form-note.ok { color: #4ade80; }
.form-note.err { color: var(--coral); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-pure);
}
.footer-cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-soft);
}
.footer-cta-title { font-family: var(--display); font-weight: 400; font-size: 1.9rem; text-transform: uppercase; }
.footer-cta-sub { color: var(--text-dim); margin-top: 4px; }

.footer-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.footer-logo { height: 46px; width: auto; }
.footer-tag { color: var(--text-faint); margin-top: 10px; font-size: .9rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); font-weight: 600; transition: color .2s ease; }
.footer-links a:hover { color: var(--fire); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--text-dim); font-size: .9rem; transition: color .2s ease; }
.footer-social a:hover { color: var(--fire); }

.footer-legal {
  border-top: 1px solid var(--border-soft);
  padding: 22px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: .85rem;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .photo-grid { columns: 2 180px; }

  .nav-toggle { display: flex; order: 3; }
  .main-nav { margin-left: auto; order: 2; }
  .social-cluster { display: none; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11,10,12,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav-links a.active { background: var(--grad-fire); }
}

@media (max-width: 560px) {
  .section { padding: 64px 20px; }
  .hero { min-height: 88vh; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .12em; }
  .hero-tagline { font-size: clamp(2.2rem, 9vw, 3rem); }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}
