/* Seasoned Skies Stylesheet
   Palette: Midnight Blue (#080d1a, #0f172a), Cloud White (#f8fafc, #e2e8f0), Sunrise Orange (#ff7a18, #f59e0b)
   Accent: Sky Teal (#38bdf8), Pine (#1e293b)
*/

@font-face {
  font-family: 'Geist';
  src: url('https://musechain.io/fonts/geist/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #080d1a;
  --bg-card: #0f182c;
  --bg-card-hover: #16223d;
  --bg-card-border: #1e2c4a;
  --sunrise: #ff7a18;
  --sunrise-glow: #ffa14a;
  --gold: #f59e0b;
  --sky-blue: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --brand-lime: #ccff00;
  --font-stack: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse at 15% 10%, rgba(255, 122, 24, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 60%, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #ffffff;
}

a {
  color: var(--sunrise);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--sunrise-glow);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Radio Masthead */
.radio-mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
}

.mast-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.station-call {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-beacon {
  width: 8px;
  height: 8px;
  background-color: var(--sunrise);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--sunrise);
  animation: pulse-beacon 2s infinite ease-in-out;
}

@keyframes pulse-beacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.station-freq {
  color: var(--sunrise);
  font-weight: 700;
}
.station-sep {
  color: var(--text-faint);
}
.station-host {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
}
.nav-links a {
  color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}
.badge-link {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 122, 24, 0.12);
  color: var(--sunrise) !important;
  border: 1px solid rgba(255, 122, 24, 0.3);
  font-size: 0.8rem;
}
.badge-link:hover {
  background: rgba(255, 122, 24, 0.25);
}

/* Hero Section */
.hero-stage {
  padding: 4rem 0 3rem 0;
  border-bottom: 1px solid var(--bg-card-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.episode-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sunrise);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-stage h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 1rem;
}

.lede {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Dial Prompt Box */
.dial-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-left: 4px solid var(--sunrise);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.dial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.dial-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sky-blue);
  font-weight: 600;
}

.dial-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-stack);
}
.dial-btn:hover {
  background: var(--sunrise);
  color: #000;
  border-color: var(--sunrise);
}

.dial-body blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.dial-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Cover Art Frame */
.cover-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background: #000;
}

.cover-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cover-frame:hover .cover-art {
  transform: scale(1.02);
}

.cover-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(180deg, transparent 0%, rgba(8,13,26,0.92) 80%);
  padding: 1.5rem 1rem 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sections General */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--bg-card-border);
}

.section-heading {
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.sub-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--sunrise);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Stats Ribbon */
.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: left;
}
.stat-pill .val {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sunrise);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-pill .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hand Chart */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-legend span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 4px;
}
.legend-rain { background: var(--sky-blue); }
.legend-sun { background: var(--gold); }

.hand-chart {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 8px;
  align-items: end;
  height: 180px;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--bg-card-border);
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
}
.chart-bar-group:hover, .chart-bar-group.active {
  transform: translateY(-4px);
}
.chart-bar-group.active .bar-stem {
  outline: 2px solid #ffffff;
}

.bar-dual {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
  height: 100%;
  justify-content: center;
}

.bar-rain {
  width: 45%;
  background: linear-gradient(180deg, var(--sky-blue) 0%, rgba(56, 189, 248, 0.4) 100%);
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
}

.bar-sun {
  width: 45%;
  background: linear-gradient(180deg, var(--gold) 0%, var(--sunrise) 100%);
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
}

.bar-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

.scrubber-bar {
  margin-top: 1.5rem;
}

.scrubber-bar input[type=range] {
  width: 100%;
  accent-color: var(--sunrise);
  cursor: pointer;
}

.scrub-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* Event Detail Card */
.event-card {
  background: linear-gradient(145deg, #121c33 0%, #0d1526 100%);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--sunrise);
}

.event-stamp {
  font-size: 0.78rem;
  color: var(--sunrise);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.event-title {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.event-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.event-phys h4, .event-human h4 {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.event-phys p, .event-human p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.sensor-readings {
  display: flex;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sensor-readings strong {
  color: var(--sky-blue);
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}
.faq-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 122, 24, 0.4);
}

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.faq-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sunrise);
  padding-top: 0.2rem;
}

.faq-q {
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1;
  color: var(--text-main);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  line-height: 1;
}

.faq-card.open .faq-icon {
  transform: rotate(45deg);
  color: var(--sunrise);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  padding: 0 1.25rem;
}

.faq-card.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Lounge Section */
.lounge-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.lounge-form {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.lounge-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.form-row {
  margin-bottom: 1.25rem;
}
.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-row input, .form-row textarea {
  width: 100%;
  background: #080d1a;
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--sunrise);
}

.submit-btn {
  width: 100%;
  background: var(--sunrise);
  color: #080d1a;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.submit-btn:hover {
  background: var(--sunrise-glow);
  transform: translateY(-1px);
}

.lounge-feed {
  display: flex;
  flex-direction: column;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.feed-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.feed-cards::-webkit-scrollbar {
  width: 5px;
}
.feed-cards::-webkit-scrollbar-thumb {
  background: var(--bg-card-border);
  border-radius: 4px;
}

.feed-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.item-callsign {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sunrise);
  margin-bottom: 0.4rem;
}

.item-win, .item-fail {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.4rem;
}
.item-win strong { color: #86efac; }
.item-fail strong { color: #fca5a5; }

.item-time {
  font-size: 0.7rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* Footer */
.radio-foot {
  padding: 3rem 0;
  background: #050811;
  border-top: 1px solid var(--bg-card-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.foot-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.foot-right {
  display: flex;
  gap: 1.5rem;
}
.foot-link {
  color: var(--text-muted);
}
.foot-link:hover {
  color: var(--sunrise);
}

/* Responsive adjustments */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .lounge-layout {
    grid-template-columns: 1fr;
  }
}