/* =========================
   BASE / RESET
========================= */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: white;
    overflow-x: hidden;
    margin: 0;
    padding: 20px;

    background: linear-gradient(135deg, #d85a71, #c28655, #d38c99);
}

/* background glow */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: radial-gradient(circle at top, #ff4d6d, transparent 60%),
                radial-gradient(circle at bottom, #ff4d6d, transparent 60%);

    z-index: -1;
}

/* =========================
   HERO / HEADER
========================= */
.hero {
    position: relative;
    text-align: center;
    padding: 100px 20px;
    color: #d63c0d;

    background:
        
        url("images/music-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 5px;
}

.hero p {
    opacity: 0.9;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 18px;
    background: #ff4d6d;
    color: rgb(8, 0, 0);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: 0.3s;
}

.btn:hover {
    background: #ff2e63;
    transform: translateY(-2px);
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* =========================
   GLASS UI SYSTEM
========================= */
.live,
.card,
.radio-player,
.player-box,
.live-panel,
.hero-player {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 77, 109, 0.25);
    backdrop-filter: blur(14px);
    border-radius: 18px;
}

/* =========================
   LIVE BOX
========================= */
.live {
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.live h2 {
    color: #f5f1f2;
}

/* =========================
   GRID
========================= */
/* =========================
   SHOWS GRID (4 PER ROW)
========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* EXACTLY 4 per row */
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* =========================
   CARDS
========================= */
.card {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.5);    
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}
.card h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card img {
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.card span {
    font-weight: bold;
    color: #38bdf8;
}
/* =========================
   PAGINATIOn
========================= */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    transition: 0.2s ease;
}

.pagination a:hover {
    background: #38bdf8;
    color: #000;
}

.pagination a.active {
    background: #38bdf8;
    color: #000;
    font-weight: bold;
}

#shows-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

#djs-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* =========================
   DJ + TRACK PANEL
========================= */
/* LIVE PANEL */
.live-panel {
    flex: 5;
    min-width: 260px;
    max-width: 350px;
}

/* DJ CARD */
.dj-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,77,109,0.3);
    padding: 18px;
    border-radius: 15px;
    text-align: center;
    width: 200px;
}

.dj-img {
    width: 100%;
    max-width: 160px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

/* TRACK CARD */
.track-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,77,109,0.3);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 220px;
}

.track-card h2 {
    margin: 10 10 10px;
}

/* =========================
   PLAYER
========================= */

/* PLAYER */
.player-box {
    flex: 1;
    min-width: 300px;
    max-width: 420px;
    height: 500px;

    margin: 0; /* remove auto margin so it aligns */
}

/* iframe fills container */
.player-box iframe {
    width: 100%;
    height: 500px;
}

/* =========================
   RADIO PLAYER CARD
========================= */
.radio-player {
    padding: 15px;
    text-align: center;
    max-width: 300px;
    margin: 20px auto;
}

/* =========================
   AUDIO (fallback)
========================= */
audio {
    width: 50%;
    max-width: 320px;
    margin-top: 20px;
    border-radius: 8px;
}

/* =========================
   CHAT / IFRAME
========================= */
iframe {
    border-radius: 10px;
    border: none;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #ff4d6d;
    color: #aaa;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

/* =========================
   LIVE INDICATOR
========================= */
.live-badge {
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 20px;
    margin-bottom: 15px;
}

/* =========================
   ALBUM ART
========================= */
.album-art {
    width: 180px;
    height: 240px;
    border-radius: 14px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* =========================
   MUSIC BACKGROUND
========================= */
.music-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;

    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* floating notes */
.note {
    position: absolute;
    color: rgba(255, 255, 255, 0.08);
    font-size: 24px;
    animation: floatUp 12s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* MAIN WRAPPER */
.main-live-area {
    display: flex;
    justify-content: center;
    align-items: normal;
    gap: 15px;

    flex-wrap: wrap; /* makes it mobile responsive */
    margin-top: 30px;
}


@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.music-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background:
        radial-gradient(circle at 20% 30%, rgba(255,77,109,0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(129,43,99,0.3) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);

    animation: waveMove 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes waveMove {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

