/* ============================================================
   VaultFX Radio — design tokens
   Underground, after-dark pirate radio for a city that doesn't sleep.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
    --c-bg:        #0A0C22;
    --c-panel:     #12142E;
    --c-panel-2:   #191C3D;
    --c-line:      #2A2D57;
    --c-text:      #EDEFF7;
    --c-text-dim:  #8288A8;
    --c-magenta:   #FF2E8E;
    --c-cyan:      #3FD0FF;
    --c-amber:     #FFA23F;

    --f-display: 'Rajdhani', sans-serif;
    --f-body:    'Inter', sans-serif;
    --f-mono:    'Space Mono', monospace;

    --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--c-bg);
    background-image:
        radial-gradient(ellipse at top left, rgba(255,46,142,0.08), transparent 45%),
        radial-gradient(ellipse at bottom right, rgba(63,208,255,0.06), transparent 45%);
    color: var(--c-text);
    font-family: var(--f-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
    outline: 2px solid var(--c-cyan);
    outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(11,13,16,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-line);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; max-width: 1080px; margin: 0 auto;
}
.brand {
    font-family: var(--f-display);
    font-weight: 700; font-size: 22px; letter-spacing: 0.5px;
    color: var(--c-text); display: flex; align-items: center; gap: 10px;
}
.brand-logo { height: 40px; width: auto; display: block; }
.brand .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--c-magenta);
    box-shadow: 0 0 8px 2px rgba(255,46,142,0.65);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

nav.mainnav { display: flex; gap: 22px; }
nav.mainnav a {
    color: var(--c-text-dim); font-family: var(--f-display);
    font-weight: 600; font-size: 15px; letter-spacing: 0.4px;
    text-transform: uppercase;
}
nav.mainnav a:hover { color: var(--c-text); text-decoration: none; }
nav.mainnav a.active { color: var(--c-magenta); }

/* ---------- Hero / tuner ---------- */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--c-line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
    font-family: var(--f-mono); font-size: 12px; color: var(--c-cyan);
    letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 10px;
}
.hero-logo { max-width: 320px; width: 60%; height: auto; display: block; margin-bottom: 22px; filter: drop-shadow(0 0 24px rgba(255,46,142,0.25)); }
.eyebrow .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eyebrow .bars span {
    width: 3px; background: var(--c-cyan); display: inline-block;
    animation: eq 900ms ease-in-out infinite;
}
.eyebrow .bars span:nth-child(1) { height: 40%; animation-delay: 0ms; }
.eyebrow .bars span:nth-child(2) { height: 100%; animation-delay: 150ms; }
.eyebrow .bars span:nth-child(3) { height: 65%; animation-delay: 300ms; }
.eyebrow .bars span:nth-child(4) { height: 85%; animation-delay: 450ms; }
@keyframes eq { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

.hero h1 {
    font-family: var(--f-display); font-weight: 700;
    font-size: clamp(40px, 6vw, 64px); line-height: 0.98; margin: 14px 0 12px;
    letter-spacing: 0.5px;
}
.hero h1 span { color: var(--c-magenta); }
.hero p.lede { color: var(--c-text-dim); font-size: 17px; max-width: 46ch; margin-bottom: 26px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-display); font-weight: 600; font-size: 15px;
    letter-spacing: 0.4px; text-transform: uppercase;
    padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
    cursor: pointer; transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-magenta); color: #14060A; }
.btn-primary:hover { background: #ff4778; }
.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-line); }
.btn-outline:hover { border-color: var(--c-cyan); color: var(--c-cyan); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Tuner panel — the signature element */
.tuner {
    background: linear-gradient(180deg, var(--c-panel), var(--c-panel-2));
    border: 1px solid var(--c-line);
    border-radius: 6px;
    padding: 26px;
    position: relative;
    overflow: hidden;
}
.tuner::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
}
.tuner-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tuner-label { font-family: var(--f-mono); font-size: 11px; color: var(--c-text-dim); letter-spacing: 1.5px; text-transform: uppercase; }
.tuner-freq {
    font-family: var(--f-mono); font-weight: 700; font-size: 46px; color: var(--c-cyan);
    text-shadow: 0 0 18px rgba(63,208,255,0.45);
    letter-spacing: 1px;
}
.tuner-freq small { font-size: 20px; color: var(--c-text-dim); margin-left: 4px; }

.dial { position: relative; height: 34px; margin: 18px 0 22px; background: var(--c-bg); border-radius: 3px; border: 1px solid var(--c-line); overflow: hidden; }
.dial-ticks {
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, var(--c-line) 0 1px, transparent 1px 24px);
}
.dial-needle {
    position: absolute; top: 0; bottom: 0; width: 2px; background: var(--c-magenta);
    left: 63%; box-shadow: 0 0 10px 2px rgba(255,46,142,0.8);
}
.dial-needle::after {
    content: ""; position: absolute; top: -3px; left: -4px; width: 10px; height: 10px;
    background: var(--c-magenta); border-radius: 50%;
}

.now-card { display: flex; gap: 14px; align-items: center; }
.now-art {
    width: 56px; height: 56px; border-radius: 3px; flex-shrink: 0;
    background: var(--c-bg) center/cover no-repeat; border: 1px solid var(--c-line);
    display: flex; align-items: center; justify-content: center; color: var(--c-text-dim); font-size: 20px;
}
.now-meta { min-width: 0; }
.now-status { font-family: var(--f-mono); font-size: 11px; color: var(--c-magenta); letter-spacing: 1.5px; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.now-status .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-magenta); animation: pulse 1.6s ease-in-out infinite; }
.now-title { font-family: var(--f-display); font-weight: 600; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-artist { color: var(--c-text-dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-controls { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.play-btn {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--c-cyan);
    background: transparent; color: var(--c-cyan); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: background 120ms ease, color 120ms ease;
}
.play-btn:hover { background: var(--c-cyan); color: #06201F; }
.volume { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--c-text-dim); font-family: var(--f-mono); font-size: 12px; }
.volume input[type="range"] { flex: 1; accent-color: var(--c-cyan); }

/* ---------- Sections ---------- */
section { padding: 56px 0; border-bottom: 1px solid var(--c-line); }
section:last-of-type { border-bottom: none; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--f-display); font-size: 30px; font-weight: 700; margin: 0; }
.section-head p { color: var(--c-text-dim); margin: 4px 0 0; max-width: 50ch; }

/* Schedule */
.schedule-grid { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden; }
.schedule-row { display: grid; grid-template-columns: 130px 1fr 160px; gap: 16px; background: var(--c-panel); padding: 14px 18px; align-items: center; }
.schedule-day { font-family: var(--f-mono); color: var(--c-cyan); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.schedule-show { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.schedule-dj { color: var(--c-text-dim); font-size: 13px; }
.schedule-time { font-family: var(--f-mono); color: var(--c-text-dim); font-size: 13px; text-align: right; }
@media (max-width: 620px) { .schedule-row { grid-template-columns: 1fr; text-align: left; } .schedule-time { text-align: left; } }

/* Request form */
.card { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 6px; padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--c-text-dim); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
input[type="text"], textarea, select {
    width: 100%; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 3px;
    padding: 11px 12px; color: var(--c-text); font-family: var(--f-body); font-size: 14px;
}
input:focus, textarea:focus, select:focus { border-color: var(--c-cyan); outline: none; }
textarea { resize: vertical; min-height: 80px; }

.flash { padding: 12px 16px; border-radius: 3px; font-size: 14px; margin-bottom: 20px; font-family: var(--f-mono); }
.flash-ok { background: rgba(63,208,255,0.08); border: 1px solid rgba(63,208,255,0.35); color: var(--c-cyan); }
.flash-err { background: rgba(255,46,142,0.08); border: 1px solid rgba(255,46,142,0.35); color: var(--c-magenta); }

/* Table (admin) */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
th { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--c-text-dim); }
.badge { font-family: var(--f-mono); font-size: 11px; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-pending { background: rgba(255,162,63,0.12); color: var(--c-amber); }
.badge-played { background: rgba(63,208,255,0.12); color: var(--c-cyan); }
.badge-declined { background: rgba(255,46,142,0.12); color: var(--c-magenta); }

/* Footer */
footer { padding: 34px 0 60px; color: var(--c-text-dim); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.text-dim { color: var(--c-text-dim); }
.mt-0 { margin-top: 0; }

/* ---- admin: station tabs / staff & upload extras ---- */
.station-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.station-tabs a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 20px; border: 1px solid var(--c-line); color: var(--c-text-dim);
}
.station-tabs a:hover { color: var(--c-cyan); border-color: var(--c-cyan); text-decoration: none; }
.station-tabs a.active { background: var(--c-magenta); color: #14060A; border-color: var(--c-magenta); }
.badge-admin { background: rgba(255,46,142,0.12); color: var(--c-magenta); }
.badge-dj { background: rgba(63,208,255,0.12); color: var(--c-cyan); }
.checkbox-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.checkbox-row label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-text-dim); }
.checkbox-row input[type="checkbox"] { width: auto; }
input[type="file"] {
  width: 100%; background: var(--c-bg); border: 1px dashed var(--c-line); border-radius: 4px;
  padding: 10px; color: var(--c-text-dim); font-size: 13px; margin-top: 4px;
}
.upload-toggle { display: flex; gap: 10px; margin-bottom: 10px; }
.upload-toggle button { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--c-line); background: transparent; color: var(--c-text-dim); cursor: pointer; }
.upload-toggle button.active { background: var(--c-cyan); color: #06201F; border-color: var(--c-cyan); }
