:root {
    --primary-color: #d4af37;
    /* Gold */
    --secondary-color: #8a2be2;
    /* Neon Purple */
    --bg-dark: #0f0f13;
    --bg-card: #1a1a24;
    --text-light: #ffffff;
    --text-dim: #a0a0b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 0%, #1c1c2e, #0f0f13);
    background-color: var(--bg-dark);
    /* Fallback */
    color: var(--text-light);
    line-height: 1.6;
    padding-bottom: 80px;
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

h1,
h2,
h3 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Header */
.main-header {
    background-color: rgba(15, 15, 19, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.frequency {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 4px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.login-btn {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Dropdown */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(15, 15, 19, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
    transform-origin: top;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scaleY(0);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.1rem;
    text-align: center;
}

.mobile-nav .mobile-login {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    text-align: center;
}

/* Hero Banner */
/* Hero Banner - Futuristic */
.main-hero {
    height: 100vh;
    min-height: 600px;
    /* Taller for image impact */
    background-image: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?q=80&w=2670&auto=format&fit=crop');
    /* Woman in studio */
    background-size: cover;
    background-position: center 20%;
    position: relative;
    overflow: hidden;
    animation: kenBurns 30s infinite alternate linear;
    display: flex;
    justify-content: center;
    /* Center Horizontally */
    align-items: center;
    /* Center Vertically */
    text-align: center;
}

#hero-spectrum {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 3;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black);
}

/* Scanline Overlay */
.main-hero::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

@keyframes kenBurns {
    0% {
        background-position: center;
        transform: scale(1);
    }

    100% {
        background-position: center;
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 15, 19, 0.9), rgba(15, 15, 19, 0.4));
    display: flex;
    align-items: center;
    z-index: 5;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    animation: fadeIn 1.5s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

.hero-content-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Smart On-Air Widget */
.on-air-widget {
    background: rgba(255, 255, 255, 0.05);
    /* Ultra light glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    /* Pill shape */
    margin-top: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.on-air-widget:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #ccc;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-indicator i {
    color: #ff0000;
    animation: blink 1.5s infinite;
    margin-right: 5px;
}

/* Album Carousel */
.album-carousel {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 20px;
    width: 100%;
    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    /* mask-image removed to ensure visibility of the first item */
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.album-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item:first-child {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

@media(max-width: 480px) {

    /* Hide Carousel on mobile as requested */
    .album-carousel {
        display: none !important;
    }

    .carousel-item {
        /* No need to style if hidden, but keeping just in case */
        width: 70px;
        height: 70px;
    }
}

.on-air-widget h3 {
    font-size: 1.4rem;
    color: #fff;
    margin: 5px 0 12px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Updated Widget Layout */
.widget-content-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

#hero-album-art {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
}

#hero-album-art:hover {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--primary-color);
}

.widget-info {
    flex: 1;
    min-width: 0;
    /* Fix flex ellipsis */
}

/* Mobile adjust for widget */
@media (max-width: 480px) {
    .widget-content-wrapper {
        flex-direction: column;
        /* Stack image and text */
        text-align: center;
        gap: 15px;
    }

    #hero-album-art {
        width: 200px;
        /* Large size for visibility */
        height: 200px;
        margin: 0 auto;
        /* Center image */
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
        /* Stronger glow */
    }

    .widget-info {
        width: 100%;
    }

    .widget-header {
        justify-content: center;
        /* Center header items */
    }

    .on-air-widget h3 {
        font-size: 1.2rem;
        white-space: normal;
        /* Allow wrap on mobile */
    }
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 1s linear;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Glitch Effect */
.glitch {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
        0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
    color: var(--text-light);
    width: 100%;
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100%;
    background: transparent;
    /* Fix: Don't obscure text with solid bg */
    z-index: -1;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 15px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 83px, 0);
    }

    40% {
        clip: rect(32px, 9999px, 5px, 0);
    }

    60% {
        clip: rect(93px, 9999px, 49px, 0);
    }

    80% {
        clip: rect(12px, 9999px, 78px, 0);
    }

    100% {
        clip: rect(44px, 9999px, 5px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(20px, 9999px, 95px, 0);
    }

    20% {
        clip: rect(63px, 9999px, 13px, 0);
    }

    40% {
        clip: rect(37px, 9999px, 35px, 0);
    }

    60% {
        clip: rect(13px, 9999px, 9px, 0);
    }

    80% {
        clip: rect(82px, 9999px, 88px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 2px, 0);
    }
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    margin-top: 10px;
    text-shadow: 0 0 10px var(--primary-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments for Hero */
@media (max-width: 768px) {
    .main-hero {
        height: auto;
        /* Let it grow with content */
        min-height: 100vh;
        /* Ensure enough space for 200px image + text */
        padding-bottom: 40px;
        /* Space for the widget bottom */
        align-items: flex-start;
        /* Start from top to avoid centering overflow issues */
        padding-top: 80px;
        /* Push content down properly */
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: var(--bg-card);
}

.slider-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    /* Force slide to be 100% width of slider */
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    height: auto;
    /* Maintains aspect ratio */
    display: block;
    object-fit: cover;
    /* Ensures coverage if height is constrained, though auto height prevents this usually */
    object-position: center;
    /* Centers the image if cropping occurs */
}

/* Mobile check: ensure no fixed heights force cropping */
/* Mobile check: ensure robust display */
/* Mobile check: Natural height for full visibility */
@media (max-width: 768px) {
    .hero-slider {
        height: auto !important;
        min-height: 0 !important;
    }

    .slide {
        height: auto !important;
        background: transparent;
    }

    .slide img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        /* Remove any forced max-height unless extreme */
    }
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    text-align: center;
}

/* Sections General */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    /* Neon Purple Glow */
    border-color: var(--secondary-color);
}

.news-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 20px;
}

.news-tag {
    background: var(--secondary-color);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: inline-block;
}

.news-content h3 {
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.center-btn {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    padding: 10px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Video Section */
.video-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Schedule Section */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.program-card {
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.program-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.active-program {
    border-color: var(--secondary-color);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.1);
}

.dj-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-size: cover;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.days-label {
    display: block;
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.time {
    display: block;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.badge-live {
    background: red;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    animation: pulse 1.5s infinite;
}

/* Contact Section */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.interaction-form input,
.interaction-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
}

.interaction-form button {
    width: 100%;
}

/* Footer */
.main-footer {
    background: #050505;
    padding: 40px 0 100px;
    /* Extra padding for player */
    text-align: center;
}

.social-links {
    margin: 20px 0;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-light);
    margin: 0 10px;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
}

/* Hero Player Controls */
.hero-player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease 0.5s backwards;
}

.hero-play-btn {
    width: 60px;
    /* Larger play button */
    height: 60px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-play-btn:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

.hero-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.hero-volume input[type="range"] {
    width: 100px;
}

/* Remove Old Sticky Player if any remains or override */
.player-bar {
    display: none !important;
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.play-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.neon-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.neon-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.now-playing {
    flex-grow: 1;
    margin: 0 40px;
    background: #000;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #333;
}

.album-cover {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
}

.equalizer span {
    display: inline-block;
    width: 3px;
    height: 15px;
    background: var(--secondary-color);
    margin: 0 1px;
    animation: equalizer 1s infinite alternate;
}

.equalizer span:nth-child(2) {
    animation-delay: 0.1s;
}

.equalizer span:nth-child(3) {
    animation-delay: 0.2s;
}

.equalizer span:nth-child(4) {
    animation-delay: 0.3s;
}

.equalizer span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes equalizer {
    0% {
        height: 5px;
    }

    100% {
        height: 20px;
    }
}

.track-info {
    margin-left: 15px;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.scrolling-text {
    display: inline-block;
    animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--secondary-color);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

/* News Modal Specifics */
.news-modal-content {
    max-width: 800px;
    text-align: left;
    max-height: 80vh;
    overflow-y: auto;
}

.news-modal-content img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

.news-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.news-modal-content p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #ddd;
}

.news-link-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }

    /* ALIGN LIKE LOCUTORES (Cards) */
    .hero-content h2.glitch,
    .section-title {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;

        /* Mimic Card Width/Padding */
        width: 100% !important;
        max-width: 340px !important;
        /* Typical card width */
        margin: 0 auto 15px auto !important;
        padding: 0 10px !important;

        display: block !important;
        text-align: center !important;

        white-space: normal !important;
        word-wrap: break-word !important;

        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Reset Spans */
    .section-title span {
        display: inline !important;
        color: var(--primary-color);
        text-shadow: none !important;
    }

    /*--- Deep Mobile Optimization ---*/

    /* 1. Reset Global Section Padding for Mobile */
    .section {
        padding: 30px 0 !important;
        /* Compact spacing */
    }

    .container {
        padding: 0 15px;
        /* More screen real estate */
    }

    /* 2. Compact Footer */
    .main-footer .container {
        padding: 20px 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
        margin-top: 10px;
    }

    .footer-logo h2 {
        font-size: 1.2rem;
    }

    .copyright {
        margin-top: 20px;
        font-size: 0.8rem;
    }

    /* 3. Helper Grids Compact */
    .schedule-grid,
    .news-grid,
    .video-grid {
        gap: 15px !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-box {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .logo-box h1 {
        font-size: 1.2rem;
    }

    .main-header .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-menu-btn {
        position: absolute;
        left: 20px;
        top: 20px;
    }

    .now-playing {
        display: none;
        /* Hide scrolling text on small screens to save space */
    }

    .player-container {
        justify-content: space-between;
        width: 100%;
    }

    /* Force Player Visibility on Mobile */
    .player-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999999 !important;
        /* Super high z-index */
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(15, 15, 19, 0.95) !important;
        /* Ensure background is present */
        padding-bottom: max(15px, env(safe-area-inset-bottom)) !important;
        /* Ensure padding matches new standard */

        /* Force Hardware Acceleration to fix "stuck at bottom of content" bug */
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        top: auto !important;
        /* Ensure top doesn't conflict */
    }

    /* Fix "Peça Sua Música" AND ALL OTHERS - Static & Centered */
    #contact .section-title,
    #live-studio .section-title,
    #videos .section-title,
    #schedule .section-title,
    #news .section-title {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        text-align: center !important;
        margin: 0 auto 30px auto !important;
        /* Consistent spacing */
        width: 100% !important;
        display: block !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;

        /* Ensure Font Size matches */
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        max-width: 340px !important;
        white-space: normal !important;
        /* Ensure Font Size matches */
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        max-width: 340px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile Hero Player Adjustments */
    .hero-player-controls {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px auto;
    }

    .hero-play-btn {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .hero-volume {
        width: 100%;
        justify-content: center;
    }

    .hero-volume input[type="range"] {
        flex-grow: 1;
        max-width: 200px;
    }
}

.pulsing-icon {
    animation: pulse-icon 1.5s infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--primary-color);
    }

    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px var(--primary-color);
    }

    100% {
        transform: scale(1);
        text-shadow: 0 0 10px var(--primary-color);
    }
}

/* Live Studio Section */
.live-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #15151e 100%);
    position: relative;
    padding-bottom: 40px;
}

.live-player-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #000;
    border: 1px solid var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.15);
    position: relative;
}

.live-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 0, 0, 0.85);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.pulsing-dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Video.js Theme Customization */
.video-js {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.video-js .vjs-big-play-button {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 3rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.video-js .vjs-big-play-button:hover {
    background-color: var(--primary-color);
    color: #000;
}

.video-js .vjs-control-bar {
    background: rgba(0, 0, 0, 0.8);
}

.video-js .vjs-play-progress {
    background-color: var(--primary-color);
}

.video-js .vjs-slider {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Official Iframe Wrapper */
.iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    /* Fix for particles containment if needed */
}

/* Floating Particles Animation (Moved out of nesting) */
.iframe-wrapper .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.iframe-wrapper .particles span {
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.4);
    animation: moveParticles 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.iframe-wrapper .particles span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.iframe-wrapper .particles span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.iframe-wrapper .particles span:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.iframe-wrapper .particles span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.iframe-wrapper .particles span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.iframe-wrapper .particles span:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.iframe-wrapper .particles span:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.iframe-wrapper .particles span:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.iframe-wrapper .particles span:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.iframe-wrapper .particles span:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes moveParticles {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

#theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(26, 26, 36, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#theme-btn:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px var(--primary-color);
}

.theme-options {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.theme-switcher:hover .theme-options,
.theme-switcher:active .theme-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.theme-option {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.theme-option:hover {
    transform: scale(1.2);
}

/* Mobile: Move switcher up a bit so it doesn't cover content */
@media (max-width: 768px) {
    .theme-switcher {
        bottom: 180px;
        /* HIGHER UP */
        right: 15px;
        z-index: 2147483647;
        /* MAX INT */
        pointer-events: auto !important;
    }

    /* Fix Toast on Mobile - Position over Hero Banner */
    .toast-container {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        bottom: auto !important;
        /* Stop using bottom */
        top: 90px !important;
        /* Position over Hero (below header) */
        flex-direction: column !important;
        /* Stack downwards from top */
        align-items: center !important;
    }
}

/* Premium Toast Notification */
.toast-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    /* Stacks upwards from bottom */
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: rgba(15, 15, 19, 0.95);
    border: 1px solid var(--primary-color);
    border-left-width: 5px;
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    transform: translateY(100px);
    /* Start below */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    pointer-events: all;
    font-family: 'Outfit', sans-serif;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: bold;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* Sponsor Image Fix for Mobile */
@media (max-width: 480px) {
    .slider-wrapper img {
        height: auto;
        /* Let height adjust to width */
        width: 100%;
        /* Full width */
        object-fit: contain;
        /* Ensure full image is visible */
        max-height: 180px;
        /* Increased from 100px to avoid cutting */
        margin: 0 auto;
        display: block;
    }

    .hero-slider {
        /* Adjust container height if needed for mobile */
        height: auto;
        min-height: 150px;
        /* Increased space */
        padding: 5px 0;
        margin-top: -10px;
        /* Pull up slightly as requested "sobe um pouco" */
        overflow: visible;
        /* Prevent clipping */
    }
}

/* --- PWA / Standalone Specific Fixes --- */
@media all and (display-mode: standalone) {
    body {
        overscroll-behavior-y: none;
    }

    .main-header {
        padding-top: max(10px, env(safe-area-inset-top));
    }

    .main-hero {
        /* Additional padding to prevent header overlap in PWA */
        padding-top: calc(40px + env(safe-area-inset-top));
    }

    #hero-album-art {
        z-index: 50;
        /* High z-index to ensure visibility */
        position: relative;
        /* Ensure it behaves well in flex container */
        flex-shrink: 0;
    }

    .on-air-widget {
        z-index: 40;
        position: relative;
        /* Ensure widget is not hidden by overflow */
        overflow: visible;
    }

    .player-bar {
        padding-bottom: calc(25px + env(safe-area-inset-bottom));
        bottom: 0 !important;
        /* Force stick to bottom */
    }
}