/* ==========================================================================
   Gurbani Radio — Royal Devotional Radio Interface (Pure CSS/SVG Edition)
   ========================================================================== */

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

:root {
    --gr-gold-light: #f5d576;
    --gr-gold-mid: #c9973a;
    --gr-gold-dark: #8a6421;
    --gr-navy-bg-start: #1a2547;
    --gr-navy-bg-end: #0d1428;
    --gr-navy-pill: rgba(6, 18, 41, 0.85);
    --gr-accent-orange: #ea580c;
    --gr-accent-blue: #38bdf8;
}

/* Force-hide native audio / MEJS player elements */
audio#gr-audio-element, 
audio#gr-audio-element-a, 
audio#gr-audio-element-b, 
.mejs-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
}

.gr-player-wrapper {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 24px 12px !important;
    box-sizing: border-box !important;
}

/* Master Royal Blue & Gold Card Container */
.gr-player-card {
    position: relative !important;
    width: 100% !important;
    max-width: 460px !important;
    background: radial-gradient(circle at 50% 40%, var(--gr-navy-bg-start) 0%, var(--gr-navy-bg-end) 100%) !important;
    border: 3px solid var(--gr-gold-mid) !important;
    outline: 1px solid var(--gr-gold-dark) !important;
    outline-offset: -7px !important;
    border-radius: 32px !important;
    padding: 24px 22px 20px 22px !important;
    color: #f3f4f6 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(201, 151, 58, 0.25) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Four Corner Flourishes */
.gr-flourish {
    position: absolute !important;
    width: 32px !important;
    height: 32px !important;
    pointer-events: none !important;
    z-index: 3 !important;
}
.gr-flourish-tl { top: 10px !important; left: 10px !important; }
.gr-flourish-tr { top: 10px !important; right: 10px !important; transform: scaleX(-1) !important; }
.gr-flourish-bl { bottom: 10px !important; left: 10px !important; transform: scaleY(-1) !important; }
.gr-flourish-br { bottom: 10px !important; right: 10px !important; transform: scaleX(-1) scaleY(-1) !important; }

/* Header Bar: Synced Badge & Ornate Channel Selector */
.gr-player-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Synced Soundwaves Badge */
.gr-badge-live {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--gr-navy-pill) !important;
    border: 1px solid var(--gr-gold-mid) !important;
    color: var(--gr-accent-blue) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6) !important;
}

.gr-sound-waves {
    display: flex !important;
    align-items: flex-end !important;
    gap: 3px !important;
    height: 14px !important;
}

.gr-sound-waves span {
    width: 3px !important;
    background: linear-gradient(to top, var(--gr-gold-mid), var(--gr-accent-blue)) !important;
    border-radius: 2px !important;
    height: 4px !important;
}

.gr-player-card.is-playing .gr-sound-waves span {
    animation: grWave 1.2s infinite ease-in-out alternate !important;
}

.gr-player-card.is-playing .gr-sound-waves span:nth-child(1) { animation-delay: 0.1s !important; }
.gr-player-card.is-playing .gr-sound-waves span:nth-child(2) { animation-delay: 0.3s !important; }
.gr-player-card.is-playing .gr-sound-waves span:nth-child(3) { animation-delay: 0.2s !important; }
.gr-player-card.is-playing .gr-sound-waves span:nth-child(4) { animation-delay: 0.4s !important; }

@keyframes grWave {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* Ornate Channel Select Dropdown */
.gr-channel-select-wrapper {
    position: relative !important;
    flex-shrink: 1 !important;
    max-width: 60% !important;
}

.gr-channel-select-wrapper select#gr-channel-select {
    background-color: var(--gr-navy-pill) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23c9973a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    border: 1px solid var(--gr-gold-mid) !important;
    color: var(--gr-gold-light) !important;
    padding: 8px 28px 8px 12px !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    outline: none !important;
    cursor: pointer !important;
    width: 100% !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(201, 151, 58, 0.2) !important;
    transition: all 0.25s ease !important;
}

.gr-channel-select-wrapper select#gr-channel-select:hover,
.gr-channel-select-wrapper select#gr-channel-select:focus {
    border-color: var(--gr-gold-light) !important;
    box-shadow: 0 4px 20px rgba(201, 151, 58, 0.4) !important;
}

.gr-channel-select-wrapper select#gr-channel-select option {
    background-color: var(--gr-navy-bg-end) !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

/* Center Golden Mandala & STILL Ik Onkar Emblem (DOES NOT ROTATE) */
.gr-disc-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 10px 0 16px 0 !important;
    position: relative !important;
}

.gr-mandala-frame {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, #241a06 10%, var(--gr-navy-bg-start) 65%, var(--gr-navy-bg-end) 100%) !important;
    border: 3px double var(--gr-gold-mid) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 30px rgba(201, 151, 58, 0.4), inset 0 0 20px rgba(201, 151, 58, 0.3) !important;
    margin-bottom: 12px !important;
    position: relative !important;
    transform: none !important; /* STILL EMBLEM — NO ROTATION */
    animation: none !important;   /* STILL EMBLEM — NO ROTATION */
}

.gr-mandala-inner {
    width: 82px !important;
    height: 82px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, var(--gr-gold-light) 0%, var(--gr-gold-dark) 80%) !important;
    border: 2px solid var(--gr-gold-light) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.8) !important;
}

.gr-ik-onkar-logo {
    font-family: serif !important;
    font-size: 46px !important;
    font-weight: bold !important;
    color: var(--gr-navy-bg-end) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6) !important;
    line-height: 1 !important;
    user-select: none !important;
}

/* Category Pill */
.gr-category-pill-wrapper {
    margin-top: -6px !important;
    z-index: 2 !important;
}

.gr-category-pill {
    display: inline-block !important;
    padding: 3px 18px !important;
    background: var(--gr-navy-pill) !important;
    border: 1px solid var(--gr-gold-mid) !important;
    color: var(--gr-gold-light) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Now Playing Display */
.gr-now-playing-container {
    text-align: center !important;
    margin-bottom: 16px !important;
}

.gr-current-track-label {
    font-family: 'Cinzel', serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 2.5px !important;
    color: var(--gr-gold-mid) !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
}

.gr-track-title {
    font-family: 'Cinzel', serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #ffffff !important;
    margin-bottom: 12px !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* Visual Progress Bar with Diamond Marker */
.gr-progress-container {
    width: 100% !important;
    margin-bottom: 18px !important;
    pointer-events: none !important;
}

.gr-progress-bar-track {
    width: 100% !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    position: relative !important;
    overflow: visible !important;
    margin-bottom: 8px !important;
}

.gr-progress-bar-fill {
    width: 0%;
    height: 100% !important;
    background: linear-gradient(90deg, var(--gr-gold-dark) 0%, var(--gr-gold-mid) 50%, var(--gr-gold-light) 100%) !important;
    border-radius: 4px !important;
    position: relative !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8) !important;
    transition: width 0.2s linear !important;
}

.gr-diamond-thumb {
    position: absolute !important;
    right: -7px !important;
    top: -5px !important;
    width: 14px !important;
    height: 14px !important;
    background: var(--gr-accent-blue) !important;
    border: 2px solid #ffffff !important;
    transform: none !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px var(--gr-accent-blue) !important;
}

.gr-time-display {
    font-size: 13px !important;
    color: #d1d5db !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-align: center !important;
}

/* Lower Controls Section (Previous Card / Gem Play / Next Card) */
.gr-controls-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

/* Ornate Nav Cards (Previous / Next) */
.gr-nav-card {
    flex: 1 !important;
    background: var(--gr-navy-pill) !important;
    border: 1px solid rgba(201, 151, 58, 0.45) !important;
    border-radius: 14px !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
    min-height: 48px !important;
    overflow: hidden !important;
}

.gr-nav-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    color: var(--gr-gold-mid) !important;
    margin-bottom: 2px !important;
}

.gr-nav-value {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    max-width: 110px !important;
    text-align: center !important;
}

/* Ornate Gem Play/Pause Button */
#gr-play-btn.gr-btn-play {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, var(--gr-gold-light) 0%, var(--gr-gold-mid) 70%, var(--gr-gold-dark) 100%) !important;
    border: 3px solid var(--gr-gold-light) !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.8), inset 0 0 12px rgba(255, 255, 255, 0.8) !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
    outline: none !important;
    flex-shrink: 0 !important;
}

#gr-play-btn.gr-btn-play:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 0 35px rgba(245, 158, 11, 1), inset 0 0 15px rgba(255, 255, 255, 1) !important;
}

#gr-play-btn.gr-btn-play:active {
    transform: scale(0.95) !important;
}

.gr-gem-button-inner {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, var(--gr-accent-orange) 0%, #9a3412 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--gr-gold-light) !important;
}

#gr-play-btn.gr-btn-play svg {
    width: 24px !important;
    height: 24px !important;
    fill: #ffffff !important;
    pointer-events: none !important;
}

#gr-play-btn.gr-btn-play svg.gr-svg-play { display: block !important; }
#gr-play-btn.gr-btn-play svg.gr-svg-pause { display: none !important; }

.gr-player-card.is-playing #gr-play-btn.gr-btn-play svg.gr-svg-play { display: none !important; }
.gr-player-card.is-playing #gr-play-btn.gr-btn-play svg.gr-svg-pause { display: block !important; }

/* Volume Toolbar */
.gr-volume-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

#gr-mute-btn.gr-btn-mute {
    background: transparent !important;
    border: none !important;
    color: var(--gr-gold-mid) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px !important;
    border-radius: 50% !important;
    outline: none !important;
}

#gr-mute-btn.gr-btn-mute svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

.gr-volume-slider {
    width: 100px !important;
    height: 5px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    outline: none !important;
    cursor: pointer !important;
}

.gr-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: var(--gr-gold-mid) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
}

/* Footer Status Pill */
.gr-player-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.gr-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--gr-navy-pill) !important;
    border: 1px solid rgba(201, 151, 58, 0.4) !important;
    padding: 5px 16px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    color: #93c5fd !important;
    font-weight: 600 !important;
    max-width: 100% !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.gr-status-dot {
    width: 7px !important;
    height: 7px !important;
    background-color: var(--gr-accent-blue) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 6px var(--gr-accent-blue) !important;
}

.gr-btn-donate {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 14px !important;
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: var(--gr-gold-light) !important;
    border-radius: 14px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.gr-btn-donate:hover {
    background: rgba(245, 158, 11, 0.3) !important;
    color: #ffffff !important;
}

/* Task 4: Responsive Media Queries Across All Device Breakpoints */
@media (min-width: 1200px) {
    .gr-player-card {
        max-width: 480px !important;
    }
}

@media (max-width: 768px) {
    .gr-player-card {
        max-width: 440px !important;
        padding: 22px 18px 18px 18px !important;
    }
}

@media (max-width: 414px) {
    .gr-player-card {
        padding: 20px 14px 16px 14px !important;
        border-radius: 26px !important;
    }
    .gr-track-title {
        font-size: 17px !important;
        min-height: 34px !important;
    }
    .gr-nav-value {
        max-width: 85px !important;
        font-size: 11px !important;
    }
    .gr-mandala-frame {
        width: 115px !important;
        height: 115px !important;
    }
    .gr-mandala-inner {
        width: 72px !important;
        height: 72px !important;
    }
    .gr-ik-onkar-logo {
        font-size: 38px !important;
    }
}

@media (max-width: 360px) {
    .gr-player-card {
        padding: 16px 12px 14px 12px !important;
        border-radius: 20px !important;
    }
    .gr-nav-value {
        max-width: 70px !important;
        font-size: 10px !important;
    }
    .gr-track-title {
        font-size: 15px !important;
    }
    #gr-play-btn.gr-btn-play {
        width: 54px !important;
        min-width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
    }
    .gr-gem-button-inner {
        width: 36px !important;
        height: 36px !important;
    }
}
