/* Global Styles & Variables */
:root {
    --bg-dark: #111319;
    --bg-card: #1c1f2a;
    --primary-color: #d1121d;
    --primary-hover: #f02430;
    --accent-silver: #d4d7df;
    --text-white: #ffffff;
    --text-muted: #a0a5b5;
    --whatsapp-color: #25d366;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    animation: pulse 1.5s infinite ease-in-out;
}

.sound-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin-bottom: 15px;
}

.sound-wave span {
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #ff416c, #ff4b2b);
    border-radius: 3px;
    animation: wave 1.2s infinite ease-in-out;
}

.sound-wave span:nth-child(1) { animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { animation-delay: 0.2s; }
.sound-wave span:nth-child(3) { animation-delay: 0.3s; }
.sound-wave span:nth-child(4) { animation-delay: 0.4s; }
.sound-wave span:nth-child(5) { animation-delay: 0.5s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 40px; }
}

@keyframes pulse {
    0% { transform: scale(0.98); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.8; }
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* Header & Centered Logo */
.main-header {
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(17,19,25,0) 100%);
    padding: 30px 0 15px 0;
    text-align: center;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.site-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.badge-live {
    display: inline-flex;
    align-items: center;
    background: rgba(209, 18, 29, 0.15);
    border: 1px solid var(--primary-color);
    color: #ff4d58;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-live .dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--primary-color);
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Player Section */
.player-section {
    padding: 20px 0 40px 0;
}

.player-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(145deg, #1f2330, #171922);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.equalizer-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e61e2a, #8b0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(209, 18, 29, 0.4);
}

.player-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.station-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.audio-player-wrapper {
    background: rgba(0,0,0,0.3);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.play-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e61e2a, #a80a14);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(209, 18, 29, 0.4);
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(209, 18, 29, 0.6);
}

.play-btn #play-icon {
    margin-left: 3px; /* visual center for play icon */
}

.play-btn.playing #play-icon {
    margin-left: 0;
}

.player-status {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#status-text {
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-silver);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.volume-container input[type="range"] {
    -webkit-appearance: none;
    width: 130px;
    height: 6px;
    border-radius: 3px;
    background: #333848;
    outline: none;
}

.volume-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

/* Features Grid */
.features-section {
    padding: 20px 0 50px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px 25px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact & Social Section */
.contact-section {
    padding: 10px 0 60px 0;
}

.contact-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.contact-card h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.25);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.social-share h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

.share-btn.whatsapp { background-color: #25d366; }
.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter { background-color: #000000; border: 1px solid #333; }
.share-btn.telegram { background-color: #0088cc; }

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #ffffff;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Footer */
.main-footer {
    background-color: #0b0c10;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-location {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-silver);
    margin-bottom: 8px;
}

.footer-location i {
    color: var(--primary-color);
    margin-right: 5px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-logo {
        max-width: 220px;
    }
    
    .player-card {
        padding: 25px 20px;
    }

    .player-controls {
        flex-direction: column;
        text-align: center;
    }

    .player-info {
        flex-direction: column;
        text-align: center;
    }

    .player-status {
        align-items: center;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
    }
}
