:root {
    --bg: #020006;
    --surface: #07030f;
    --surface-soft: #0d071a;
    --accent-pink: #ff007f;
    --accent-cyan: #00eaff;
    --accent-yellow: #ffea00;
    --border: #1a1028;
    --text: #ffffff;
    --text-dim: #8a7fa8;
}

/* GLOBAL */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: radial-gradient(circle at top, #1a0b33 0, #020006 55%, #000 100%);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.4;
    overflow-x: hidden;
}

/* TOPBAR – CLUB HUD */
.topbar {
    height: 80px;
    background: linear-gradient(90deg, rgba(10,3,30,0.95), rgba(5,0,15,0.95));
    border-bottom: 2px solid var(--accent-pink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 25px rgba(255,0,127,0.35);
    backdrop-filter: blur(10px);
}

.topbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.35em;
    color: var(--accent-yellow);
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255,234,0,0.8);
}

.topbar-stats {
    display: flex;
    gap: 30px;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.stat-item span {
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0,234,255,0.7);
}

/* WRAPPER / SECTION */
.wrapper {
    max-width: 1800px;
    margin: 40px auto 60px;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-header h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #fff;
    text-shadow: 0 0 14px rgba(255,0,127,0.7);
}

.line {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent, var(--accent-pink), transparent);
    opacity: 0.6;
}

/* GRID SYSTEM */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
}

/* WERBUNG – FIX FÜR FIREFOX & FULL WIDTH */
.ad-row {
    grid-column: 1 / -1; /* Zwingt die Werbung über alle Spalten des Grids */
    display: flex;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    z-index: 5; /* Höher als die Standard-Cards */
}

.ad-slot {
    flex: 1;
    min-width: 0; /* Firefox Fix für Flex-Basis innerhalb von Grid */
    min-height: 90px;
    background: radial-gradient(circle at center, var(--surface-soft), #000);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ad-slot:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

.ad-slot img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain; /* Verhindert Verzerrung in Firefox */
    display: block;
}

@media (max-width: 1100px) {
    .radio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .radio-grid { grid-template-columns: 1fr; }
    .ad-row { flex-direction: column; }
}

/* RADIO CARD */
.radio-card {
    background: radial-gradient(circle at top, #1b0b33 0, #07030f 45%, #020006 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    z-index: 2;
}

.radio-card:hover {
    transform: translateY(-8px) scale(1.01);
    z-index: 10; /* Hover-Card überdeckt Nachbarn */
    border-color: rgba(255,0,127,0.7);
    box-shadow: 0 0 20px rgba(255,0,127,0.3), 0 26px 60px rgba(0,0,0,0.95);
}

/* VISUALIZER */
.card-visualizer {
    height: 160px;
    background: #000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    padding-bottom: 18px;
    position: relative;
}

.v-bar {
    width: 10px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-pink), var(--accent-cyan));
    border-radius: 4px 4px 0 0;
    animation: club-pulse-gpu 1.25s infinite ease-in-out;
    transform-origin: bottom;
}

@keyframes club-pulse-gpu {
    0%, 100% { transform: scaleY(0.2); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* LOGO OVERLAY */
.card-logo-overlay {
    position: absolute;
    top: 16px;
    left: 18px;
    width: 90px;
    height: 90px;
    border-radius: 14px;
    border: 2px solid var(--accent-pink);
    background: #050008;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255,0,127,0.5);
}

.card-logo-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENT & METRICS */
.card-content {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    color: var(--text);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.card-tagline {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-metrics {
    background: rgba(0,234,255,0.05);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0,234,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

.card-metrics span:first-child {
    color: var(--accent-cyan);
}

/* BUTTONS */
.card-actions {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    flex: 1;
    padding: 16px;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-align: center;
    transition: 0.2s ease;
}

.btn-play {
    background: var(--accent-pink);
    color: #000;
}

.btn-play:hover {
    background: #fff;
    box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.4);
}

.btn-details {
    background: var(--surface-soft);
    color: var(--accent-cyan);
    border-left: 1px solid var(--border);
}

.btn-details:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* SPONSOR FLAG */
.sponsor-flag {
    position: absolute;
    top: 10px;
    right: 18px;
    background: var(--accent-yellow);
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 11;
    box-shadow: 0 0 10px rgba(255, 234, 0, 0.5);
    text-transform: uppercase;
}

/* EMPTY CARD STYLING */
.radio-card-empty {
    opacity: 0.7;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.radio-card-empty .btn-play {
    background: var(--surface-soft);
    color: var(--text-dim);
}