/*
Theme Name: SMG Radio Shell Pro
Theme URI: https://stevensonmediagroup.com
Author: Stevenson Media Group
Description: A ultra-modern, glassmorphic radio theme with dynamic schedule detection, custom logo, SPA audio engine, and live metadata.
Version: 3.0
Text Domain: smg-radio
*/

:root {
    --smg-bg: #08080a;
    --smg-surface: #111116;
    --smg-surface-glass: rgba(22, 22, 30, 0.75);
    --smg-card: #161620;
    --smg-primary: #ff1a2d;
    --smg-primary-glow: rgba(255, 26, 45, 0.45);
    --smg-accent: #ff4d60;
    --smg-text: #ffffff;
    --smg-text-muted: #9496a1;
    --smg-border: rgba(255, 255, 255, 0.08);
    --player-height: 94px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--smg-bg);
    color: var(--smg-text);
    padding-bottom: var(--player-height);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--smg-text); text-decoration: none; transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
a:hover { color: var(--smg-primary); }

/* --- HEADER --- */
#smg-header {
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 50px;
    height: 88px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--smg-border);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 900;
    color: var(--smg-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo img.custom-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

#smg-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#smg-header nav ul li a {
    color: var(--smg-text-muted);
}
#smg-header nav ul li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.header-actions { display: flex; align-items: center; gap: 16px; }

.btn-listen-live {
    background: linear-gradient(135deg, var(--smg-primary), #d9001b);
    color: white;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--smg-primary-glow);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-listen-live:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px var(--smg-primary-glow);
}

/* Pulsing Live Dot */
.live-indicator {
    width: 8px;
    height: 8px;
    background: #00ff77;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff77;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Swup Container */
#swup { padding-bottom: 60px; }
.transition-fade { transition: 0.35s ease; opacity: 1; }
html.is-animating .transition-fade { opacity: 0; transform: translateY(6px); }

/* --- HERO BANNER --- */
.smg-hero-banner {
    position: relative;
    width: 100%;
    min-height: 540px;
    background: radial-gradient(circle at 80% 30%, rgba(255, 26, 45, 0.15) 0%, transparent 60%),
                linear-gradient(to right, #08080a 35%, rgba(8, 8, 10, 0.7) 100%),
                url('img/studio-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 6%;
    border-bottom: 1px solid var(--smg-border);
}

.hero-show-info {
    max-width: 650px;
    z-index: 2;
}

.on-air-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 26, 45, 0.16);
    border: 1px solid rgba(255, 26, 45, 0.4);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.on-air-pill span.txt {
    color: var(--smg-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.on-air-pill span.time {
    color: var(--smg-text-muted);
    font-size: 11px;
    font-weight: 600;
}

.hero-show-info h1 {
    font-size: 4.2rem;
    margin: 0 0 12px 0;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 60%, #b0b2c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-show-host {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--smg-primary);
    margin-bottom: 12px;
}

.hero-show-info p {
    font-size: 1.15rem;
    color: var(--smg-text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* --- FLOATING NOW PLAYING WIDGET --- */
.floating-now-playing {
    position: absolute;
    bottom: -45px;
    right: 6%;
    background: var(--smg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--smg-border);
    width: 480px;
    z-index: 10;
    transition: 0.3s;
}

.floating-now-playing:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 26, 45, 0.2), 0 0 0 1px rgba(255,255,255,0.15);
}

.floating-now-playing img {
    width: 105px;
    height: 105px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.fnp-meta {
    overflow: hidden;
    flex: 1;
}

.fnp-meta .badge {
    background: var(--smg-primary);
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: inline-block;
}

.fnp-meta h3 {
    margin: 0 0 3px 0;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.fnp-meta p {
    margin: 0;
    color: var(--smg-text-muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fnp-controls {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    align-items: center;
}

.fnp-controls button.vote-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--smg-border);
    color: white;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.fnp-controls button.vote-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.btn-apple-music {
    background: #ffffff;
    color: #000000;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.btn-apple-music:hover {
    background: #eaeaea;
    color: #000;
    transform: translateY(-1px);
}

/* --- FULL-WIDTH SECTIONS --- */
.section-container {
    max-width: 1440px;
    margin: 90px auto 0;
    padding: 0 6%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--smg-border);
    padding-bottom: 18px;
    margin-bottom: 35px;
}

.section-header h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-header a {
    color: var(--smg-primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Horizontal Song History */
.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 28px;
}

.recent-card {
    text-align: left;
    transition: 0.25s;
}
.recent-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.recent-card:hover img {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 20px var(--smg-primary-glow);
}
.recent-card h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-card p {
    margin: 0;
    font-size: 13px;
    color: var(--smg-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modern News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.news-card {
    background: var(--smg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--smg-border);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.3s;
}
.news-card:hover img {
    filter: brightness(1.08);
}
.news-content {
    padding: 26px;
}
.news-content .cat {
    color: var(--smg-primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}
.news-content h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
}

/* --- PERSISTENT STICKY PLAYER --- */
#smg-sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--player-height);
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--smg-border);
    display: flex;
    align-items: center;
    padding: 0 50px;
    z-index: 9999;
    box-sizing: border-box;
}

.player-controls button {
    background: linear-gradient(135deg, var(--smg-primary), #d9001b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px var(--smg-primary-glow);
    flex-shrink: 0;
    transition: 0.25s;
}
.player-controls button:hover {
    transform: scale(1.06);
    box-shadow: 0 0 35px var(--smg-primary-glow);
}

.now-playing-meta {
    margin-left: 24px;
    overflow: hidden;
}

.now-playing-title {
    font-weight: 800;
    font-size: 17px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.now-playing-artist {
    color: var(--smg-text-muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Live Equalizer Animation inside player */
.player-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    margin-left: 40px;
    height: 22px;
}
.player-eq span {
    width: 3px;
    background: var(--smg-primary);
    border-radius: 2px;
    animation: eq-bounce 1.2s infinite ease-in-out;
}
.player-eq span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.player-eq span:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.player-eq span:nth-child(3) { height: 50%; animation-delay: 0.2s; }
.player-eq span:nth-child(4) { height: 95%; animation-delay: 0.4s; }

@keyframes eq-bounce {
    0%, 100% { height: 25%; }
    50% { height: 100%; }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    :root {
        --player-height: 80px;
    }

    #smg-header {
        padding: 0 20px;
        height: 75px;
    }

    #smg-header nav ul {
        display: none;
    }

    .btn-listen-live {
        padding: 8px 16px;
        font-size: 12px;
    }

    .smg-hero-banner {
        min-height: auto;
        padding: 40px 20px 90px;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-show-info h1 {
        font-size: 2.5rem;
    }

    .hero-show-host {
        font-size: 1.1rem;
    }

    .hero-show-info p {
        font-size: 0.95rem;
    }

    .floating-now-playing {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
        flex-direction: column;
        text-align: center;
    }

    .floating-now-playing img {
        width: 120px;
        height: 120px;
    }

    .fnp-meta h3 {
        max-width: 100%;
        white-space: normal;
    }

    .fnp-controls {
        justify-content: center;
    }

    .section-container {
        margin-top: 50px;
        padding: 0 20px;
    }

    .recent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    #smg-sticky-player {
        padding: 0 20px;
    }

    .player-controls button {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .now-playing-title {
        font-size: 14px;
        max-width: 220px;
    }

    .now-playing-artist {
        font-size: 12px;
        max-width: 220px;
    }

    .player-eq {
        display: none;
    }
}
