@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
    --bg-dark: #0a0a12;
    --bg-darker: #05050a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary: #ff2e63;
    --primary-glow: #ff2e6355;
    --secondary: #08d9d6;
    --accent: #7c3aed;
    --text-main: #f5f5f7;
    --text-muted: #9a9ab0;
    --success: #2ecc71;
    --danger: #ff4757;
    --radius: 18px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 15% 20%, #24123f 0%, transparent 45%),
                radial-gradient(circle at 85% 15%, #0e2f3a 0%, transparent 40%),
                radial-gradient(circle at 50% 90%, #2b0e2e 0%, transparent 50%),
                var(--bg-darker);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px 60px;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.25), transparent),
        radial-gradient(1px 1px at 140px 90px, rgba(255,255,255,.2), transparent),
        radial-gradient(2px 2px at 260px 40px, rgba(255,255,255,.15), transparent),
        radial-gradient(1px 1px at 320px 160px, rgba(255,255,255,.2), transparent);
    background-repeat: repeat;
    background-size: 400px 300px;
    pointer-events: none;
    opacity: .6;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 1;
}

/* ---------- Header / Now Playing ---------- */
.station-header {
    text-align: center;
    margin-bottom: 28px;
}

.station-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px var(--primary-glow);
    margin-bottom: 14px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.station-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.station-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---------- Now Playing Card ---------- */
.now-playing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

.now-playing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.vinyl {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, #1a1a24 0px, #1a1a24 2px, #26263a 3px, #26263a 4px);
    border: 3px solid var(--primary);
    position: relative;
    animation: spin 3.5s linear infinite;
}

.vinyl::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--secondary);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.now-playing-info { flex: 1; min-width: 0; }

.now-playing-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 4px;
}

.now-playing-song {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-meta {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.now-playing-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ---------- Form Card ---------- */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(18px);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.form-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    margin-bottom: 4px;
}

.form-card .subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 22px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #d8d8e8;
}

.field input,
.field textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1.5px solid var(--card-border);
    border-radius: 12px;
    padding: 13px 15px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14.5px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input::placeholder,
.field textarea::placeholder { color: #6b6b82; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.field textarea { resize: vertical; min-height: 70px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--primary-glow); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.spinner {
    width: 16px; height: 16px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.submit-btn.loading .spinner { display: inline-block; }
.submit-btn.loading .btn-text { display: none; }

.alert {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    animation: slideIn .3s ease;
}

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

.alert.success { background: rgba(46, 204, 113, .12); border: 1px solid rgba(46, 204, 113, .35); color: #6ee7a8; }
.alert.error   { background: rgba(255, 71, 87, .12); border: 1px solid rgba(255, 71, 87, .35); color: #ff8792; }
.alert.show    { display: flex; }

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #5a5a70;
    position: relative;
    z-index: 1;
}

footer a { color: var(--secondary); text-decoration: none; }

@media (max-width: 480px) {
    .now-playing-card { flex-direction: column; text-align: center; }
    .now-playing-meta { justify-content: center; }
}
