/* ============ YourStation FM — Theme ============ */
:root {
  --bg: #0b0f1a;
  --bg-alt: #101625;
  --card: #151d30;
  --card-hover: #1b2440;
  --text: #eef1f7;
  --muted: #9aa4b8;
  --accent: #e63946;
  --accent-2: #ff7a18;
  --gradient: linear-gradient(135deg, #e63946 0%, #ff7a18 100%);
  --radius: 14px;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-bottom: 76px; /* room for player bar */
}
h1,h2,h3,h4 { font-family: 'Poppins', sans-serif; line-height: 1.2; }
a { color: var(--accent-2); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1150px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .25s;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 20px rgba(230,57,70,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(230,57,70,.55); }
.btn-outline { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-light { background: #fff; color: #111; }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Topbar & Nav ---------- */
.topbar { background: #070a12; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { display: flex; gap: 24px; justify-content: space-between; padding: 8px 0; color: var(--muted); flex-wrap: wrap; }
.topbar-item { color: var(--muted); }
a.topbar-item:hover { color: var(--accent-2); }
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(11,15,26,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { background: var(--gradient); color: #fff; font-family: 'Poppins'; font-weight: 800; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.brand-text { font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: var(--text); }
.nav-menu { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-menu a { color: var(--text); font-weight: 500; font-size: 15px; padding: 9px 15px; border-radius: 8px; transition: .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-2); background: rgba(255,122,24,.08); }
.nav-menu a.nav-listen { background: var(--gradient); color: #fff; font-weight: 600; margin-left: 6px; }
.nav-menu a.nav-listen:hover { transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 110px 0 90px; text-align: center; overflow: hidden;
  background:
    radial-gradient(700px 340px at 80% -10%, rgba(255,122,24,.22), transparent 60%),
    radial-gradient(700px 380px at 15% 110%, rgba(230,57,70,.22), transparent 60%),
    var(--bg);
}
.hero-eyebrow { color: var(--accent-2); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.hero-title { font-size: clamp(40px, 7vw, 74px); font-weight: 900; margin: 14px 0 8px; }
.hero-title .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.cd-box { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 14px 10px; min-width: 82px; }
.cd-box span { display: block; font-family: 'Poppins'; font-size: 30px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-box small { color: var(--muted); text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.cd-label { width: 100%; color: var(--muted); margin-top: 6px; }
.countdown.done .cd-box { display: none; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-eyebrow { color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.section-head h2, .h-accent { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-top: 6px; }
.h-accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.pillar-card { background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 28px 22px; transition: .25s; }
.pillar-card:hover { transform: translateY(-5px); border-color: rgba(255,122,24,.4); background: var(--card-hover); }
.pillar-card h3 { color: var(--accent-2); margin-bottom: 10px; font-size: 20px; }
.pillar-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Schedule ---------- */
.schedule-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.schedule-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--card); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 15px 20px; transition: .2s;
}
.schedule-row:hover { border-color: rgba(255,122,24,.35); }
.schedule-row.on-air { border-color: var(--accent); background: linear-gradient(90deg, rgba(230,57,70,.12), var(--card)); }
.schedule-time { font-family: 'Poppins'; font-weight: 700; color: var(--accent-2); min-width: 150px; font-size: 14px; }
.schedule-title { font-weight: 600; flex: 1; }
.schedule-title small { color: var(--muted); font-weight: 400; }
.schedule-desc { width: 100%; color: var(--muted); font-size: 14px; }
.on-air-badge { background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 4px 12px; border-radius: 30px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- Day tabs ---------- */
.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.day-tab { padding: 9px 18px; border-radius: 30px; background: var(--card); color: var(--text); font-weight: 500; font-size: 14px; border: 1px solid rgba(255,255,255,.08); }
.day-tab:hover { border-color: var(--accent-2); color: var(--accent-2); }
.day-tab.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.show-card, .news-card { background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.show-card:hover, .news-card:hover { transform: translateY(-5px); border-color: rgba(255,122,24,.35); box-shadow: var(--shadow); }
.show-thumb { width: 100%; height: 150px; object-fit: cover; }
.show-body, .news-body { padding: 20px; }
.show-body h3, .news-body h3 { margin: 8px 0 6px; font-size: 18px; }
.show-body p, .news-body p { color: var(--muted); font-size: 14.5px; }
.news-img { width: 100%; height: 170px; object-fit: cover; }
.chip { display: inline-block; background: rgba(255,122,24,.12); color: var(--accent-2); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 30px; }
.chip-green { background: rgba(46,204,113,.15); color: #2ecc71; }
.read-more { font-weight: 600; font-size: 14px; }

/* ---------- Presenters ---------- */
.presenter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.presenter-card { background: var(--card); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 28px 20px; text-align: center; transition: .25s; }
.presenter-card:hover { transform: translateY(-5px); border-color: rgba(255,122,24,.35); }
.presenter-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid transparent; background: var(--gradient) border-box; }
.presenter-card h3 { font-size: 19px; }
.presenter-role { color: var(--accent-2); font-weight: 600; font-size: 13.5px; display: block; margin: 4px 0 12px; }
.presenter-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.avatar-initials { display: flex; align-items: center; justify-content: center; background: var(--gradient); color: #fff; font-family: 'Poppins'; font-weight: 800; }
.presenter-img.avatar-initials { font-size: 40px; }
.show-thumb.avatar-initials { font-size: 42px; height: 150px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-sm { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; font-size: 15px; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; justify-content: center; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); color: var(--text); font-size: 12px; font-weight: 700; transition: .2s; }
.socials a:hover { background: var(--gradient); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient); padding: 60px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 30px; }
.cta-inner p { opacity: .92; max-width: 560px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 80px 0 50px; text-align: center; background: radial-gradient(600px 300px at 50% -20%, rgba(255,122,24,.18), transparent 65%), var(--bg-alt); border-bottom: 1px solid rgba(255,255,255,.06); }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; }
.page-hero p { color: var(--muted); margin-top: 10px; }

/* ---------- Two column / forms ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.side-card { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; }
.side-card h3 { margin-bottom: 14px; }
.side-card p { margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.side-card a { color: var(--accent-2); }
.map { width: 100%; height: 240px; border: 0; border-radius: 10px; margin-bottom: 18px; filter: grayscale(.3) contrast(1.05); }
.form label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.form input, .form textarea, .form select, .install-card input {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12); background: #0d1322; color: var(--text);
  font-family: inherit; font-size: 15px; transition: .2s;
}
.form input:focus, .form textarea:focus, .form select:focus, .install-card input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(255,122,24,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row:has(> :nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
.check-list { list-style: none; margin: 8px 0 20px; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: #2ecc71; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.alert-success { background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.35); color: #7ee2a8; }
.alert-error { background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.4); color: #ff9aa5; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article h1 { font-size: clamp(26px, 4vw, 40px); margin: 14px 0 10px; }
.article-img { border-radius: var(--radius); margin: 22px 0; }
.article-body { font-size: 17px; color: #d5dae6; }

/* ---------- Footer ---------- */
.site-footer { background: #070a12; border-top: 1px solid rgba(255,255,255,.06); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; padding-bottom: 44px; }
.footer-title { font-size: 17px; margin-bottom: 16px; color: var(--accent-2); }
.site-footer p, .footer-links li { color: var(--muted); font-size: 14.5px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-2); }
.footer-grid .socials { justify-content: flex-start; margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.footer-bottom strong { color: var(--accent-2); }

/* ---------- Player bar ---------- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: center; gap: 16px;
  background: rgba(13,17,28,.97); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.09); padding: 10px 20px;
}
.player-btn { width: 46px; height: 46px; min-width: 46px; border-radius: 50%; border: none; background: var(--gradient); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(230,57,70,.45); transition: .2s; }
.player-btn:hover { transform: scale(1.06); }
.player-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.live-badge { background: #e63946; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 4px; animation: pulse 1.6s infinite; }
.player-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.player-text strong { font-family: 'Poppins'; font-size: 14.5px; }
.player-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.player-volume { margin-left: auto; width: 110px; accent-color: var(--accent-2); }
.player-eq { display: none; align-items: flex-end; gap: 3px; height: 22px; }
.player-eq.playing { display: flex; }
.player-eq span { width: 4px; background: var(--gradient); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.player-eq span:nth-child(1) { height: 60%; animation-delay: 0s; }
.player-eq span:nth-child(2) { height: 100%; animation-delay: .25s; }
.player-eq span:nth-child(3) { height: 45%; animation-delay: .5s; }
.player-eq span:nth-child(4) { height: 80%; animation-delay: .12s; }
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* ---------- Install / login ---------- */
.install-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(700px 400px at 50% -10%, rgba(255,122,24,.15), transparent 60%), var(--bg); }
.install-card { width: min(440px, 100%); background: var(--card); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.install-card h1 { font-size: 24px; margin-bottom: 18px; }
.install-card label { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.install-card code, .admin-card code { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 5px; font-size: 13px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-alt); padding-bottom: 40px; }
.admin-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: #0a0e18; border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 24px; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav-link { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.admin-nav-link:hover { color: var(--text); }
.admin-nav-link.active { background: var(--gradient); color: #fff; }
.admin-user { margin-left: auto; color: var(--muted); font-size: 14px; }
.admin-main { width: min(1050px, 94%); margin: 36px auto; }
.admin-main h1 { font-size: 28px; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 24px; text-align: center; transition: .2s; }
.stat-card:hover { border-color: rgba(255,122,24,.4); transform: translateY(-3px); }
.stat-card strong { display: block; font-family: 'Poppins'; font-size: 34px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--muted); font-size: 14px; }
.admin-card { background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.admin-card h2 { font-size: 19px; margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14.5px; }
.admin-table th { background: rgba(255,255,255,.04); font-family: 'Poppins'; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: none; }
.row-unread td { background: rgba(255,122,24,.05); }
.row-actions { white-space: nowrap; }
.row-actions a { margin-right: 10px; font-weight: 600; font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #0b0f1a; border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 5%; gap: 2px; }
  .nav-menu.open { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .form-row, .form-row:has(> :nth-child(3)) { grid-template-columns: 1fr; }
  .schedule-time { min-width: 100%; }
  .player-volume { display: none; }
  .topbar-inner { justify-content: center; text-align: center; }
}
