/* styles.css */

:root {
  --accent: #ff7a00;
  --accent-2: #ffa552;
  --black: #0b0b0f;
  --gray-900: #121317;
  --gray-800: #1b1d23;
  --gray-700: #23262e;
  --gray-600: #2c3039;
  --text: #e8e9ee;
  --muted: #b9bcc6;
  --success: #25d366;
  --danger: #ff3b3b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
}

* { box-sizing: border-box }
html, body { margin: 0; padding: 0; }

body {
  background: linear-gradient(180deg, var(--black), var(--gray-900));
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ----- NAVIGATION ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(11,11,15,.7);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative; /* Needed for mobile panel positioning */
}

/* ----- BRAND / LOGO ----- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}

.brand-mark {
  width: 150px;
  height: 200px;
  display: inline-block;
  background-image: url('../../img/Logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ----- DESKTOP NAV LINKS ----- */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--gray-800);
}

.cta {
  background: linear-gradient(180deg, var(--accent), #ff6a00);
  color: #111;
  font-weight: 700;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(255,122,0,.35);
  transition: transform .1s ease;
}

.cta:hover { transform: translateY(-1px); }

/* ----- BURGER BUTTON (hidden on desktop) ----- */
.burger {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: 0.3s;
}

.burger:hover {
  background: var(--gray-800);
}

/* ----- MOBILE PANEL (hidden by default, toggled by JS) ----- */
#mobilePanel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 64px;
  background: var(--gray-900);
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-direction: column;
  padding: 14px;
  z-index: 100;
}

#mobilePanel a {
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
}

#mobilePanel a:hover {
  background: var(--gray-800);
  color: var(--text);
}

#mobilePanel .cta {
  width: fit-content;
  margin: 6px 12px;
}

/* ----- SHOW MOBILE PANEL WHEN body HAS .mobile-open ----- */
body.mobile-open #mobilePanel {
  display: flex;
}

/* ----- RESPONSIVE: MOBILE BREAKPOINT ----- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  #mobilePanel {
    display: none; /* Hidden until toggled */
  }

  body.mobile-open #mobilePanel {
    display: flex; /* Shown when body has .mobile-open */
  }
}

/* ----- HERO SECTION ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
  background:
    radial-gradient(1200px 300px at 50% -50px, rgba(255,122,0,.18), transparent 60%),
    radial-gradient(900px 200px at 20% -80px, rgba(255,122,0,.12), transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
}

h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  margin: 10px 0 14px;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  max-width: 52ch;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin: 18px 0 6px;
  flex-wrap: wrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.18);
  padding: 10px 16px;
  border-radius: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.metric {
  background: linear-gradient(180deg, var(--gray-800), var(--gray-700));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 14px;
}

.metric strong { font-size: 22px; }

.hero-art {
  background: linear-gradient(180deg, var(--gray-800), var(--gray-700));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 70% 20%, rgba(255,122,0,.18), transparent 60%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.hero-ring {
  width: 70%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.12);
  position: relative;
  animation: spin 28s linear infinite;
}

.hero-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(200deg, var(--accent), var(--accent-2));
  color: #111;
  font-weight: 800;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(255,122,0,.35);
  letter-spacing: .4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr 1fr; }
}

/* ----- SECTIONS ----- */
section { padding: 54px 0; }
.section-title { font-size: 28px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 18px; }

/* ----- CARDS GRID ----- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--gray-800), var(--gray-700));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(0);
  transition: transform .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,122,0,.35);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}

.thumb {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)),
    radial-gradient(600px 160px at 40% 0%, rgba(255,122,0,.25), transparent 60%),
    linear-gradient(180deg, #2e3037, #24262d);
  border: 1px solid rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  color: var(--muted);
}

/* ----- TRAILER MODAL ----- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 100;
  background: rgba(0,0,0,.6);
}

.modal.open { display: grid; }

.modal-box {
  width: min(920px, 92vw);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,.1);
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

/* ----- NEWSLETTER ----- */
.newsletter {
  background: linear-gradient(180deg, var(--gray-800), var(--gray-700));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; } }

.field {
  display: flex;
  background: var(--gray-900);
  border: 1px solid rgba(255,255,255,.12);
  padding: 6px;
  border-radius: 12px;
}

.field input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 10px;
  outline: none;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.hint.ok { color: var(--success); }
.hint.err { color: var(--danger); }

/* ----- FOOTER ----- */
footer {
  padding: 28px 0 46px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.05);
  background: linear-gradient(180deg, var(--gray-900), #0c0c10);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-700));
}

.right { text-align: right; }
@media (max-width: 560px) { .right { text-align: left; } }

/* ----- UTILITIES ----- */
.muted { color: var(--muted); }
.divider { height: 1px; background: rgba(255,255,255,.06); margin: 10px 0; }
.reveal { opacity: 0; transform: translateY(6px); transition: all .6s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ----- SCROLL TO TOP ----- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, var(--gray-800), var(--gray-700));
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover { transform: translateY(-2px); }

/* ================================================================
   AUDIO PLAYER (Black & Orange Theme)
   ================================================================ */

/* ----- MOBILE PANEL (container for games link + audio player) ----- */
.mobile-panel-container {
  background: #1a1a1a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 3px solid #ff7b00;
  font-family: Arial, sans-serif;
}

/* ----- GAMES LINK ----- */
.games-link {
  color: #ff7b00;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 8px 14px;
  border: 2px solid #ff7b00;
  border-radius: 30px;
  transition: 0.3s;
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.games-link:hover {
  background: #ff7b00;
  color: #1a1a1a;
}

/* ----- AUDIO PLAYER (the "box" – takes remaining space) ----- */
.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2a2a2a;
  padding: 6px 16px 6px 10px;
  border-radius: 40px;
  border: 1px solid #ff7b00;
  flex: 1;
  min-width: 200px;
  overflow: hidden; /* Prevents content from spilling */
}

/* ----- PLAY BUTTON ----- */
.play-btn {
  background: #ff7b00;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  font-weight: bold;
  flex-shrink: 0;
}

.play-btn:hover {
  background: #e06a00;
  transform: scale(1.05);
}

.play-btn:active {
  transform: scale(0.95);
}

/* ----- STATION NAME ----- */
.station-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ----- LIVE STATUS ----- */
.status-text {
  color: #ff7b00;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ----- TICKER (inline – no box, no background) ----- */
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scrollTicker 25s linear infinite;
  color: #cccccc;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.ticker-content span {
  margin: 0 6px;
}

.ticker-content span:nth-child(even) {
  color: #ff7b00;
  margin: 0 3px;
}

.ticker-wrap:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* ----- RESPONSIVE FOR MOBILE PANEL ----- */
@media (max-width: 600px) {
  .mobile-panel-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .games-link {
    text-align: center;
  }

  .audio-player {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ticker-content {
    font-size: 11px;
    animation-duration: 18s;
  }
}
