/* =========================================
   FEPLabs Radio — fan site styles
   Dark "shack" theme · amber + phosphor accents
   ========================================= */

:root {
  --bg:           #07090f;
  --bg-2:         #0c1018;
  --bg-3:         #11161f;
  --surface:      #131927;
  --surface-2:    #1a2233;
  --line:         rgba(255, 255, 255, 0.07);
  --line-strong:  rgba(255, 255, 255, 0.14);

  --text:         #e9eef7;
  --text-soft:    #b9c2d3;
  --text-dim:     #7d8699;

  --amber:        #f59e0b;       /* warm amber accent */
  --amber-2:      #ffb020;
  --green:        #34d399;       /* phosphor green */
  --green-2:      #00ff9c;
  --red:          #ef4444;       /* recording dot */
  --blue:         #60a5fa;

  --radius:       14px;
  --radius-lg:    22px;

  --shadow-card:  0 10px 30px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.5);
  --shadow-soft:  0 6px 20px rgba(0,0,0,0.35);

  --maxw:         1200px;

  --font-sans:    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular,
                  Menlo, Monaco, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  background-image:
    radial-gradient(900px 600px at 80% -10%, rgba(245,158,11,0.08), transparent 60%),
    radial-gradient(900px 600px at 10% 20%, rgba(52,211,153,0.06), transparent 60%);
  background-attachment: fixed;
}

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

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

button { font-family: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: #000; padding: 10px 14px;
  border-radius: 0 0 8px 0; font-weight: 600; z-index: 1000;
}
.skip-link:focus { left: 0; }

::selection { background: var(--amber); color: #000; }

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

/* --------- Topbar --------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7,9,15,0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
}
.brand-mark {
  position: relative;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(239,68,68,0.7);
  animation: pulse 1.6s ease-in-out infinite;
}
.brand-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--amber);
  opacity: 0.65;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.92); }
}
.brand-name em {
  color: var(--amber);
  font-style: normal;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.topbar-nav a {
  transition: color 0.15s ease;
}
.topbar-nav a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: #dc2626; transform: translateY(-1px); color: #fff; }

/* --------- Hero --------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0 0 56px;
}
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  filter: saturate(1.1);
}
.hero-banner-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(7,9,15,0.55) 0%,
      rgba(7,9,15,0.92) 65%,
      rgba(7,9,15,1) 100%),
    linear-gradient(90deg,
      rgba(7,9,15,0.5) 0%,
      transparent 50%,
      rgba(7,9,15,0.5) 100%);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 24px;
  text-align: center;
  position: relative;
}
.hero-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 18px;
  padding: 4px;
  background: linear-gradient(135deg, var(--amber), var(--green));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 14px 40px rgba(0,0,0,0.6);
}
.hero-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}
.hero-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-eyebrow .call { color: var(--amber); font-weight: 600; }
.hero-eyebrow .dot { color: var(--green); margin: 0 4px; }

.hero-title {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.hero-tagline {
  margin: 14px auto 10px;
  max-width: 720px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-soft);
  font-weight: 500;
  font-style: italic;
}
.hero-sub {
  margin: 0 auto 28px;
  max-width: 760px;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  padding: 18px 28px;
  margin: 8px 0 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(19, 25, 39, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  min-width: 70px;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--amber);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 2px;
}

.hero-cta {
  display: inline-flex; flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --------- Buttons --------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}
.btn-primary:hover { background: #dc2626; transform: translateY(-1px); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* --------- Sections --------- */
.section {
  padding: 80px 0;
  position: relative;
}
.section + .section { padding-top: 60px; }

/* --------- Live Stream section --------- */
.section-live {
  position: relative;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(239,68,68,0.08), transparent 65%),
    linear-gradient(180deg, rgba(239,68,68,0.04), transparent 50%);
  border-top: 1px solid rgba(239,68,68,0.18);
  border-bottom: 1px solid rgba(239,68,68,0.18);
  overflow: hidden;
}
.section-live::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--amber) 50%, var(--red) 100%);
}

.live-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(239,68,68,0.8);
  animation: pulse 1.4s ease-in-out infinite;
}
.live-label {
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 12px;
}
.live-tagline {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 999px;
  color: var(--amber-2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-style: normal;
}
.live-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.btn-live {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}
.btn-live:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.badge-live {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 2;
  text-transform: uppercase;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-num {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  margin-right: 10px;
}
.section-num.small {
  font-size: 12px;
  margin: 0 0 6px;
  display: block;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-sub {
  margin: 14px auto 0;
  color: var(--text-soft);
  font-size: 16px;
  max-width: 640px;
}

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

/* --------- Video Grid --------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.video-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-soft);
}
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(245,158,11,0.25);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .thumb img { transform: scale(1.04); }

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.play::before {
  content: "";
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  position: relative;
}
.play::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #000;
  margin-left: 4px;
}
.video-card:hover .play { opacity: 1; }

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.video-body {
  padding: 18px 18px 22px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-2);
  border: 1px solid rgba(245, 158, 11, 0.28);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.video-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-card:hover .video-title { color: var(--amber-2); }
.video-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------- About --------- */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col p { color: var(--text-soft); }
.two-col .lead { font-size: 18px; color: var(--text); }
.two-col strong { color: var(--amber-2); }

.topics {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 92px;
  box-shadow: var(--shadow-soft);
}
.topics-title {
  margin: 0 0 18px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  font-family: var(--font-mono);
}
.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 18px;
}
.topic-list li {
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 18px;
  position: relative;
}
.topic-list li::before {
  content: "▸";
  color: var(--amber);
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1.5;
}

/* --------- Connect --------- */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
}
.connect-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.connect-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245,158,11,0.45), rgba(52,211,153,0.35));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.connect-card:hover { transform: translateY(-3px); }
.connect-card:hover::before { opacity: 1; }

.connect-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.10);
  color: var(--amber);
  margin-bottom: 16px;
}
.connect-card:nth-child(2) .connect-icon { background: rgba(96,165,250,0.12); color: var(--blue); }
.connect-card:nth-child(3) .connect-icon { background: rgba(239,68,68,0.10);  color: var(--red); }
.connect-card:nth-child(4) .connect-icon { background: rgba(52,211,153,0.12); color: var(--green); }

.connect-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.connect-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-soft);
  flex: 1;
}
.connect-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.connect-card:hover .connect-cta { color: var(--amber-2); }

/* --------- Footer --------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-left {
  display: flex; flex-direction: column; gap: 2px;
}
.footer-brand {
  font-weight: 700;
  color: var(--text);
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.footer-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 520px;
  text-align: right;
}

/* --------- Responsive --------- */
@media (max-width: 960px) {
  .video-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col      { grid-template-columns: 1fr; gap: 32px; }
  .topics       { position: static; }
}

@media (max-width: 640px) {
  .topbar-nav a:not(.nav-cta) { display: none; }
  .topbar-nav { gap: 8px; }
  .hero-inner { padding-top: 72px; }
  .hero-stats { gap: 16px 24px; padding: 14px 18px; }
  .stat-num { font-size: 20px; }
  .section { padding: 60px 0; }
  .video-grid   { grid-template-columns: 1fr; }
  .live-grid    { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .topic-list   { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta  { text-align: left; }
  .container    { padding: 0 18px; }
  .topbar-inner { padding: 12px 18px; }
}

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