/* ==========================================================================
   082 · LONGWAVE (موجة طويلة) — 1:1 Narrative Documentary Podcast & Broadcast Journal
   Newsprint #F2E8D5 / #E8DBC2 · Broadcast Navy #1E2645 / #29335C · Vermilion #E4572E · Mustard #F3A712
   ========================================================================== */

:root {
  --lw-cream: #F2E8D5;
  --lw-warm: #E8DBC2;
  --lw-navy: #29335C;
  --lw-deep: #1E2645;
  --lw-red: #E4572E;
  --lw-mustard: #F3A712;
  --lw-ink: #1B1B1B;
  --lw-serif: 'Amiri', Georgia, serif;
  --lw-sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --lw-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--lw-cream);
  color: var(--lw-ink);
  font-family: var(--lw-sans);
  letter-spacing: 0;
}

body {
  background: var(--lw-cream);
  color: var(--lw-ink);
  font-family: var(--lw-sans);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--lw-mono); }

/* Tactile Broadcast Keycap Buttons */
.lw-keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 2px solid var(--lw-ink);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--lw-ink);
  background: var(--lw-cream);
  color: var(--lw-ink);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lw-keycap:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--lw-ink);
}

.lw-keycap:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--lw-ink);
}

.lw-keycap-red {
  background: var(--lw-red);
  color: #FFFFFF;
}

.lw-keycap-mustard {
  background: var(--lw-mustard);
  color: var(--lw-ink);
}

/* ======================== STICKY BROADCAST TOP BAR ======================== */
.lw-header {
  position: sticky;
  top: 0;
  z-index: 65;
  height: 68px;
  padding: 0 28px;
  background: var(--lw-deep);
  color: var(--lw-cream);
  border-bottom: 2px solid rgba(242, 232, 213, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lw-serif);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.lw-onair-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lw-red);
  box-shadow: 0 0 12px var(--lw-red);
}

.lw-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  color: rgba(242, 232, 213, 0.84);
  white-space: nowrap;
}

.lw-nav a:hover { color: var(--lw-mustard); }

/* ======================== 1. HERO (100dvh BROADCAST STUDIO + FM DIAL) ======================== */
.lw-hero {
  position: relative;
  min-height: calc(100dvh - 68px);
  background: var(--lw-deep);
  color: var(--lw-cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 3px solid var(--lw-ink);
}

.lw-masthead-bg {
  position: absolute;
  top: 12px;
  inset-inline: 0;
  text-align: center;
  font-family: var(--lw-serif);
  font-size: clamp(4.5rem, 16vw, 13.5rem);
  font-weight: 700;
  line-height: 0.85;
  color: rgba(243, 167, 18, 0.14);
  mix-blend-mode: color-dodge;
  pointer-events: none;
  z-index: 1;
  direction: ltr;
}

.lw-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  z-index: 0;
}

.lw-scope-canvas {
  position: absolute;
  inset-inline: 0;
  bottom: 92px;
  width: 100%;
  height: 130px;
  z-index: 2;
  pointer-events: none;
}

.lw-hero-inner {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 52px 28px 28px;
}

.lw-kicker {
  display: inline-block;
  font-family: var(--lw-mono);
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(228, 87, 46, 0.22);
  border: 1px solid var(--lw-red);
  color: var(--lw-mustard);
  margin-bottom: 14px;
}

.lw-h1 {
  font-family: var(--lw-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  line-height: 1.16;
  max-width: 780px;
  margin-bottom: 16px;
}

.lw-h1 em {
  font-style: italic;
  color: var(--lw-mustard);
}

.lw-lead {
  max-width: 610px;
  font-size: 16px;
  color: rgba(242, 232, 213, 0.86);
  margin-bottom: 24px;
}

/* Interactive FM Radio Dial Bar (88–108 MHz) */
.lw-dial-bar {
  position: relative;
  z-index: 5;
  background: #141A31;
  border-top: 2px solid rgba(242, 232, 213, 0.22);
  padding: 16px 28px;
}

.lw-dial-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.lw-freq-readout {
  background: #0D1122;
  border: 2px solid var(--lw-mustard);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--lw-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--lw-mustard);
  white-space: nowrap;
}

.lw-ruler-wrap {
  position: relative;
  padding: 8px 0;
}

.lw-ruler-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--lw-mono);
  font-size: 10.5px;
  color: rgba(242, 232, 213, 0.65);
  margin-bottom: 6px;
  direction: ltr;
}

.lw-dial-slider {
  width: 100%;
  accent-color: var(--lw-red);
  cursor: pointer;
}

/* ======================== SECTIONS ======================== */
.lw-sec {
  padding: 84px 28px;
  border-bottom: 2px solid var(--lw-ink);
}

.lw-container {
  max-width: 1180px;
  margin: 0 auto;
}

.lw-h2 {
  font-family: var(--lw-serif);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.18;
}

/* Intro Stats */
.lw-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.lw-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lw-stat-card {
  background: var(--lw-warm);
  border: 2px solid var(--lw-ink);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--lw-ink);
}

.lw-stat-card strong {
  display: block;
  font-family: var(--lw-serif);
  font-size: 32px;
  color: var(--lw-red);
  line-height: 1.1;
}

/* Running Order Stage (#1E2645) */
.lw-run-sec {
  background: var(--lw-deep);
  color: var(--lw-cream);
  padding: 84px 28px;
  border-bottom: 3px solid var(--lw-ink);
}

.lw-slot-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.lw-slot-card {
  background: var(--lw-navy);
  border: 2px solid rgba(242, 232, 213, 0.26);
  border-radius: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

/* 4-Row Playable Episode Table */
.lw-ep-table {
  margin-top: 32px;
  border: 2px solid var(--lw-ink);
  border-radius: 14px;
  overflow: hidden;
  background: #FAF4E8;
  box-shadow: 6px 6px 0 var(--lw-ink);
}

.lw-ep-row {
  display: grid;
  grid-template-columns: 54px 90px 1.4fr 1fr 90px 110px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1.5px solid rgba(27, 27, 27, 0.18);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lw-ep-row:last-child { border-bottom: none; }

.lw-ep-row.active {
  background: var(--lw-navy);
  color: var(--lw-cream);
}

.lw-play-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.lw-ep-row.active .lw-play-pill {
  background: var(--lw-red);
  border-color: var(--lw-red);
  color: #FFFFFF;
}

/* Host & Production Simulator */
.lw-warm-sec {
  background: var(--lw-warm);
}

.lw-members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 34px;
}

.lw-tier-card {
  background: #FAF4E8;
  border: 2px solid var(--lw-ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 6px 6px 0 var(--lw-ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lw-tier-card.featured {
  background: var(--lw-navy);
  color: var(--lw-cream);
  box-shadow: 8px 8px 0 var(--lw-red);
  transform: translateY(-6px);
}

/* RSS Strip & Footer */
.lw-rss-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.lw-footer {
  background: var(--lw-navy);
  color: var(--lw-cream);
  padding: 64px 28px 36px;
}

.lw-outline-mark {
  font-family: var(--lw-serif);
  font-size: clamp(3.6rem, 13vw, 10rem);
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(243, 167, 18, 0.45);
  line-height: 0.95;
  margin: 22px 0 30px;
  direction: ltr;
}

.lw-showcase-nav {
  border-top: 1px solid rgba(242, 232, 213, 0.22);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .lw-nav { display: none; }
  .lw-intro-grid,
  .lw-stats-row,
  .lw-members-grid,
  .lw-dial-inner,
  .lw-slot-card {
    grid-template-columns: 1fr;
  }
  .lw-ep-row {
    grid-template-columns: 44px 1fr auto;
  }
  .lw-ep-hide-sm { display: none; }
}
