/* ===== Grundlagen ===== */
* { box-sizing: border-box; }
:root {
    --neon-pink: #ff2ec4;
    --neon-cyan: #34f5ff;
    --neon-purple: #a742ff;
    --neon-yellow: #f9f871;
    --neon-green: #39ff88;
}
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #eee;
    background: #05030a;
}
a { color: var(--neon-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Radio-Seite ===== */
.radio-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 56px 16px 100px;
    position: relative;
    overflow-x: hidden;
}

.radio-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 10%, rgba(255,46,196,0.35), transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 15%, rgba(52,245,255,0.30), transparent 60%),
        radial-gradient(ellipse 60% 50% at 15% 90%, rgba(167,66,255,0.30), transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(57,255,136,0.22), transparent 60%),
        #05030a;
    background-size: 220% 220%;
    animation: bgShift 20s ease-in-out infinite;
    z-index: -3;
}
@keyframes bgShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.grid-floor {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 55vh;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(52,245,255,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,46,196,0.18) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 90%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 90%);
    transform: perspective(400px) rotateX(60deg);
    transform-origin: bottom;
    animation: gridMove 6s linear infinite;
}
@keyframes gridMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 0 48px, 48px 0; }
}

.bg-visualizer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: screen;
}

.radio-wrap { width: 100%; max-width: 460px; position: relative; z-index: 1; }

/* ===== Hero ===== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.logo-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(from 0deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan), var(--neon-green), var(--neon-pink));
    animation: spinRing 5s linear infinite;
    box-shadow: 0 0 25px rgba(255,46,196,0.55), 0 0 55px rgba(52,245,255,0.35);
    margin-bottom: 16px;
}
@keyframes spinRing {
    100% { transform: rotate(360deg); }
}
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #0b0512;
    border: 3px solid #05030a;
}

.on-air {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(255,46,196,0.12);
    border: 1px solid rgba(255,46,196,0.6);
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255,46,196,0.45);
    margin-bottom: 14px;
}

.live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-pink), 0 0 16px var(--neon-pink);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.radio-header {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    color: #fff;
    text-shadow:
        0 0 8px rgba(255,255,255,0.6),
        0 0 22px var(--neon-pink),
        0 0 44px var(--neon-pink),
        0 0 80px var(--neon-purple);
    animation: flicker 5s infinite;
}
@keyframes flicker {
    0%, 19%, 21%, 23%, 45%, 47%, 100% { opacity: 1; }
    20%, 22%, 46% { opacity: 0.85; }
}

.brand-tagline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 20px rgba(52,245,255,0.7);
    text-transform: uppercase;
}

/* ===== Player-Karte mit Glow-Rand ===== */
.player-card-wrap {
    padding: 2px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan), var(--neon-green), var(--neon-pink));
    background-size: 300% 300%;
    animation: borderFlow 8s linear infinite;
    box-shadow: 0 0 35px rgba(255,46,196,0.35), 0 0 70px rgba(52,245,255,0.2), 0 25px 70px rgba(0,0,0,0.7);
}
@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.player-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20,8,32,0.96), rgba(10,4,18,0.98));
    border-radius: 26px;
    padding: 30px 28px 26px;
    text-align: center;
    overflow: hidden;
}

.cover-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 18px;
    z-index: 1;
}
.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow:
        0 0 0 2px rgba(255,255,255,0.06),
        0 0 30px rgba(167,66,255,0.55),
        0 15px 40px rgba(0,0,0,0.7);
}

.eq {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 22px;
    background: rgba(0,0,0,0.55);
    padding: 6px 8px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity .3s;
    backdrop-filter: blur(4px);
}
.eq.playing { opacity: 1; }
.eq span {
    width: 3px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: eq 1s infinite ease-in-out;
    border-radius: 2px;
}
.eq span:nth-child(1) { height: 5px; animation-delay: 0s; background: var(--neon-pink); box-shadow: 0 0 8px var(--neon-pink); }
.eq span:nth-child(2) { height: 16px; animation-delay: .15s; }
.eq span:nth-child(3) { height: 9px; animation-delay: .3s; background: var(--neon-purple); box-shadow: 0 0 8px var(--neon-purple); }
.eq span:nth-child(4) { height: 18px; animation-delay: .45s; }
.eq span:nth-child(5) { height: 8px; animation-delay: .6s; background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
@keyframes eq {
    0%, 100% { transform: scaleY(0.35); }
    50% { transform: scaleY(1); }
}

.meta { margin-bottom: 6px; position: relative; z-index: 1; }
.title { font-size: 20px; font-weight: 800; text-shadow: 0 0 14px rgba(255,46,196,0.6); }
.artist { font-size: 14px; color: var(--neon-cyan); margin-top: 4px; text-shadow: 0 0 10px rgba(52,245,255,0.5); }

.card-visualizer {
    display: block;
    width: 100%;
    height: 64px;
    margin: 10px 0 6px;
    position: relative;
    z-index: 1;
}

.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.progress-bar {
    flex: 1;
    height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 12px rgba(255,46,196,0.8);
    transition: width 1s linear;
}

.controls { display: flex; flex-direction: column; gap: 14px; align-items: center; position: relative; z-index: 1; }
.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: #fff;
    border: none;
    padding: 15px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(255,46,196,0.7), 0 0 40px rgba(167,66,255,0.55), 0 8px 24px rgba(0,0,0,0.5);
    transition: transform .15s, box-shadow .3s;
}
.play-icon { font-size: 12px; }
.play-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 26px rgba(255,46,196,0.9), 0 0 55px rgba(167,66,255,0.7); }
.play-btn.playing { background: rgba(255,255,255,0.08); box-shadow: 0 0 14px rgba(52,245,255,0.6); }

.volume-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #aaa; }
.volume-row input[type=range] { accent-color: var(--neon-pink); }

.next-up { margin-top: 16px; font-size: 12px; color: #999; position: relative; z-index: 1; }

.playlist-card {
    margin-top: 26px;
    background: linear-gradient(180deg, rgba(20,8,32,0.75), rgba(10,4,18,0.8));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(167,66,255,0.35);
    border-radius: 22px;
    padding: 20px 24px;
    box-shadow: 0 0 30px rgba(167,66,255,0.18), 0 15px 40px rgba(0,0,0,0.5);
}
.playlist-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(52,245,255,0.6);
    margin: 0 0 14px;
}
.dot-cyan {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    display: inline-block;
}
.playlist-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.playlist-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 2px;
}
.playlist-list li.current {
    background: linear-gradient(90deg, rgba(255,46,196,0.18), rgba(167,66,255,0.12));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(255,46,196,0.25) inset;
}
.playlist-list li span.dur { color: #888; font-size: 12px; }

.powered-by {
    text-align: center;
    margin-top: 26px;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
}
.powered-by span {
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(52,245,255,0.7), 0 0 18px rgba(52,245,255,0.4);
}

.legal-note {
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    color: #777;
    letter-spacing: 0.3px;
}

/* ===== Disclaimer-Overlay ===== */
.disclaimer-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3,1,8,0.88);
    backdrop-filter: blur(10px);
    transition: opacity .25s ease;
}
.disclaimer-overlay.fade-out { opacity: 0; }

.disclaimer-box {
    max-width: 440px;
    width: 100%;
    background: linear-gradient(180deg, rgba(20,8,32,0.98), rgba(10,4,18,0.99));
    border: 1px solid rgba(255,46,196,0.35);
    border-radius: 22px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255,46,196,0.3), 0 0 80px rgba(52,245,255,0.15), 0 25px 70px rgba(0,0,0,0.7);
}
.disclaimer-icon {
    font-size: 34px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(52,245,255,0.6));
}
.disclaimer-box h2 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-pink), 0 0 24px rgba(255,46,196,0.5);
}
.disclaimer-box p {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    margin: 0 0 14px;
    text-align: left;
}
.disclaimer-box p strong { color: #fff; }
.disclaimer-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: #fff;
    border: none;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(255,46,196,0.6), 0 0 36px rgba(167,66,255,0.5);
    transition: transform .15s;
}
.disclaimer-btn:hover { transform: translateY(-2px); }

/* ===== Admin ===== */
.admin-body { min-height: 100vh; background: #0b0c10; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-nav {
    width: 220px;
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-title { font-weight: 700; margin-bottom: 16px; font-size: 15px; }
.admin-nav a {
    color: #ccc;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.admin-nav a.logout { margin-top: auto; color: #ff8a8a; }

.admin-main { flex: 1; padding: 32px 40px; max-width: 900px; }
.admin-main h1 { margin-top: 0; }

.cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 18px 22px;
    min-width: 180px;
}
.card-label { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.card-value { font-size: 22px; font-weight: 700; margin-top: 6px; }

.login-box {
    max-width: 360px;
    margin: 80px auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
}
.login-box h1 { font-size: 18px; }

.upload-form, .login-box form { display: flex; flex-direction: column; gap: 6px; }
.upload-form label, .login-box label { font-size: 13px; color: #999; margin-top: 10px; }
.upload-form input, .login-box input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: #14161c;
    color: #eee;
}
.upload-form button, .login-box button {
    margin-top: 18px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #7c5cff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.upload-form button:hover, .login-box button:hover { background: #6a4ae8; }

.error { color: #ff8a8a; background: rgba(255,0,0,0.08); padding: 10px 14px; border-radius: 8px; }
.success { color: #8affa0; background: rgba(0,255,0,0.06); padding: 10px 14px; border-radius: 8px; }

.track-grid-head {
    display: grid;
    grid-template-columns: 40px 2fr 40px 40px;
    gap: 10px;
    padding: 8px;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.track-grid-head span:nth-child(3),
.track-grid-head span:nth-child(4) { text-align: center; }

.track-row {
    display: grid;
    grid-template-columns: 40px 2fr 40px 40px;
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
}
.track-row:hover { background: rgba(255,255,255,0.03); }
.track-row.inactive { opacity: 0.4; }

.track-row .cell { margin: 0; }
.reorder-cell { display: flex; flex-direction: column; gap: 2px; }

.edit-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.edit-cell .col-title { flex: 1 1 160px; min-width: 120px; }
.edit-cell .col-artist { flex: 1 1 120px; min-width: 100px; }
.edit-cell .col-duration { display: flex; flex-direction: column; font-size: 11px; color: #777; }
.edit-cell .col-status { font-size: 12px; white-space: nowrap; }

.track-row input[type=text], .track-row input[type=number] {
    background: #14161c; border: 1px solid rgba(255,255,255,0.1); color: #eee;
    border-radius: 6px; padding: 6px 8px; font-size: 13px;
}
.track-row .hint { font-size: 11px; color: #777; }
.track-row button {
    background: rgba(255,255,255,0.08); border: none; color: #eee;
    padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 12px;
}
.track-row button:hover { background: rgba(255,255,255,0.16); }
.track-row button.danger { background: rgba(255,60,60,0.15); color: #ff8a8a; }
.action-cell { display: flex; justify-content: center; }

@media (max-width: 700px) {
    .track-grid-head { display: none; }
    .track-row { grid-template-columns: 1fr; }
}
