@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-display: swap; /* Add font-display for better loading performance */
    background-color: #000000;
    padding-top: 71px; /* Add padding to prevent content from being hidden by fixed header */
    background-image: url('/Fondo.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

#intro-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999; /* Highest z-index to be on top of everything */
    display: none; /* Hidden by default, controlled by JS */
    justify-content: center;
    align-items: center;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#page-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

.main-header {
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* For Safari support */
    color: #f2f2f2;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for the glass effect */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.main-nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav .nav-links li {
    margin: 0 15px;
}

.main-nav .nav-links a {
    color: #f2f2f2;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal; /* Changed from bold */
    transition: all 0.3s ease;
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: #f2f2f2;
}

.main-nav .nav-links > li > a:hover {
    color: transparent;
    background-size: 100% 100%;
}

/* --- Dropdown Menu Styles --- */
.nav-item-dropdown {
    position: relative;
}

.nav-link-dropdown .dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease-in-out;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    border: 1px solid #333;
    list-style: none;
    padding: 5px 0;
    margin: 10px 0 0 0;
    min-width: 200px;
    z-index: 1002;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(15, 15, 15, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, margin 0.2s ease-in-out;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.nav-item-dropdown:hover .nav-link-dropdown {
    background-size: 100% 100%;
    color: transparent;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    color: #f2f2f2;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    color: #f2f2f2 !important;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 5px; /* Add gap for SVGs */
}

.social-links a {
    margin-left: 10px; /* Adjust margin */
    display: inline-block;
    color: #f2f2f2;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
    color: #dc2625; /* Add color change on hover */
}

.social-links a:hover .social-icon {
    filter: invert(50%) sepia(88%) saturate(3015%) hue-rotate(314deg) brightness(91%) contrast(96%);
}

.social-links .social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle; /* Align icons properly */
}

/* --- MENU TOGGLE (BURGER) STYLES --- */
.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    z-index: 1002;
}

.hamburger-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 24px;
    transform: translate(-50%, -50%);
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    background-color: #f2f2f2;
    transition: transform 0.25s ease-in-out;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Active state for burger */
.menu-toggle[aria-expanded="true"] .hamburger-inner {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- HERO BANNER --- */
.hero-banner {
    width: 100%;
    line-height: 0; /* Removes any extra space below the image */
    position: relative;
    color: #f2f2f2;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    min-height: calc(100vh - 71px); /* Make hero fill viewport height minus header */
    max-height: 800px; /* Optional: set a max height */
    text-align: center;
}

.hero-banner .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative; /* Changed from absolute */
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 40px 5%; /* Use percentage for responsive padding */
    box-sizing: border-box;
    line-height: 1.6;
    text-align: center;
}

.hero-content .hero-logo {
    max-width: 300px; /* Adjusted logo size */
    height: auto;
    margin: 0 auto 20px auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(15, 15, 15, 0.7);
    color: #f2f2f2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 30px;
    max-width: 600px;
    white-space: normal;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(15, 15, 15, 0.7);
    color: #f0f0f0;
}

.hero-content .watch-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    color: #f2f2f2;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0 15px rgba(221, 36, 118, 0.4);
    animation: pulse-glow-gradient 2s infinite ease-in-out;
}

.hero-content .watch-now-btn .play-icon-btn {
    width: 24px;
    height: 24px;
}

.hero-content .watch-now-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(221, 36, 118, 0.7);
    animation: none;
}

/* --- Video Popup Styles --- */
.video-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000; /* Higher than header */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-popup-container.show {
    display: flex;
}

.video-popup-content {
    position: relative;
    width: 100%;
    max-width: 960px;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 90vh;
    background-color: #000000;
}

#video-player-wrapper {
    width: 100%;
    height: 100%;
}

#video-player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#video-player-wrapper video {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.channel-controls {
    display: none;
}

.video-popup-content .channel-controls {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.video-popup-content:hover .channel-controls,
.video-popup-content .channel-controls.is-visible {
    opacity: 1;
}

.channel-btn {
    background-color: rgba(28, 28, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f2f2f2;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, border-color 0.2s;
    backdrop-filter: blur(5px);
}

.channel-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.channel-btn.active {
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    border: none;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(221, 36, 118, 0.5);
}

#gex-player-popup, #gex-player-live {
    width: 100%;
    height: 100%;
}

#hls-video-player {
    width: 100%;
    height: 100%;
    background-color: #000000;
}

.video-popup-content .close-popup-btn {
    position: absolute;
    top: -40px;
    right: -5px;
    font-size: 2.5rem;
    color: #f2f2f2;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    text-shadow: 0 0 5px rgba(15, 15, 15, 0.7);
    transition: transform 0.2s ease, color 0.2s ease;
}

.video-popup-content .close-popup-btn:hover {
    transform: scale(1.1);
    color: #ff512f;
}

.live-stream-player {
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CAROUSEL STYLES --- */
.carousel-section {
    padding: 60px 0;
    background-color: #000000;
    color: #f2f2f2;
    overflow: hidden; /* Prevent horizontal scrollbar on body */
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5%;
}

.carousel-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-button {
    background: #222;
    border: 1px solid #444;
    color: #f2f2f2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    padding-bottom: 4px; /* Optical alignment */
    box-sizing: border-box;
}

.carousel-button:hover {
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    border: none;
    transform: scale(1.05);
}

.carousel-container {
    overflow-x: scroll; /* Allow horizontal scrolling */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    position: relative;
    cursor: grab;
    user-select: none; /* Prevent text selection while dragging */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 25px;
    padding: 10px 5%;
    will-change: transform;
    transition: transform 0.3s ease-out; /* For snapping back */
}

.carousel-item {
    flex: 0 0 160px;
    height: 160px;
    transition: transform 0.3s ease;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #333;
    transition: border-color 0.3s ease;
}

.carousel-item:hover img {
    border-color: #dc2625;
}

.carousel-item--rectangular {
    flex: 0 0 200px; /* A vertical item */
    height: auto;
    aspect-ratio: 9 / 16;
}

.carousel-item--rectangular picture, .carousel-item--rectangular img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-item--rectangular img {
    border-radius: 8px; /* Rounded corners instead of circle */
    border: none;
}

.carousel-item--rectangular:hover img {
    border: none; /* No border on hover for rectangular */
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 60px 5%;
    background-color: #000000;
    color: #f2f2f2;
}

@media screen and (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: transparent;
    padding: 0;
    text-align: center;
    border-radius: 0;
    border: none;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 20px;
    color: #f2f2f2;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    stroke: url(#gex-gradient);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #f2f2f2;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
    margin: 0;
}

/* --- PROMO BANNER SECTION --- */
.promo-banner-section {
    padding: 40px 5%;
    background-color: #000000;
}

.promo-banner-section a {
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.promo-banner-section a:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(15, 15, 15, 0.5);
}

.promo-banner-section img, .promo-banner-section picture {
    width: 100%;
    height: auto;
    display: block;
}

/* --- App Download Section --- */
.app-download-section {
    padding: 60px 5%;
    background-color: #000000;
    text-align: center;
}

.app-download-section a {
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 0;
}

.app-download-section a:hover {
    transform: scale(1.05);
}

.app-download-section img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* --- POPUP STYLES --- */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    background-image: url('/Fondo.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding-top: 0;
    box-sizing: border-box;
}

.popup-container.show {
    display: flex;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #f2f2f2;
    width: 90%;
    max-width: 380px; /* Adjusted max width */
    position: relative;
    padding: 20px; /* Reduced padding */
    box-sizing: border-box; /* Ensure padding is included in width */
    /* Glassmorphism styles */
    background: rgba(28, 28, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* For Safari */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.close-popup-btn {
    position: absolute;
    top: 10px; /* Adjusted position */
    right: 10px; /* Adjusted position */
    background: none;
    border: none;
    color: #888;
    font-size: 2.2rem; /* Slightly smaller */
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-popup-btn:hover {
    color: #f2f2f2;
}

.now-playing {
    font-size: 1rem;
    color: #f2f2f2;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.on-air-button {
    color: #f2f2f2;
    font-size: 0.8rem; /* Slightly smaller */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem; /* Reduced margin */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.on-air-button::before {
    content: '';
    display: block;
    width: 8px; /* Smaller dot */
    height: 8px; /* Smaller dot */
    border-radius: 50%;
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    box-shadow: 0 0 8px rgba(221, 36, 118, 0.8), 0 0 12px rgba(221, 36, 118, 0.6);
    animation: pulse-live-gradient 1.5s infinite ease-in-out;
}

@keyframes pulse-live {
    0% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(255, 51, 51, 0.7), 0 0 10px rgba(255, 51, 51, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(255, 51, 51, 1), 0 0 20px rgba(255, 51, 51, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(255, 51, 51, 0.7), 0 0 10px rgba(255, 51, 51, 0.5);
    }
}

@keyframes pulse-live-gradient {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(221, 36, 118, 0.7), 0 0 12px rgba(221, 36, 118, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 14px rgba(221, 36, 118, 1), 0 0 22px rgba(221, 36, 118, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(221, 36, 118, 0.7), 0 0 12px rgba(221, 36, 118, 0.5);
    }
}

.album-art-container {
    position: relative;
    width: 200px; /* Reduced size */
    height: 200px; /* Reduced size */
    margin-bottom: 1.5rem; /* Reduced margin */
}

.album-art {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.album-art-animated-border {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ff512f; /* Using one color of the gradient for simplicity */
    animation: spin 2s linear infinite;
    animation-play-state: paused; /* Paused by default */
    z-index: 1;
}

.album-art-container.playing .album-art-animated-border {
    animation-play-state: running; /* Running when playing class is added */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.song-info {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem; /* Reduced margin */
}

.song-details {
    text-align: center;
}

.song-title {
    font-size: 1.5rem; /* Reduced font size */
    font-weight: bold;
    color: #f2f2f2;
    margin: 0;
}

.song-artist {
    font-size: 1rem; /* Reduced font size */
    color: #cccccc;
    margin: 5px 0 0 0;
}

.heart-icon {
    display: none; /* Removed from view */
}

.progress-bar-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cccccc;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    visibility: hidden; /* Hide for live stream */
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background-color: #444;
    border-radius: 2px;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    border-radius: 2px;
    transition: width 0.1s linear; /* Smooth progress update */
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff512f;
    animation: loading-spin 1s linear infinite;
    display: none;
    box-sizing: border-box;
    pointer-events: none; /* Make sure it doesn't block the button */
}

@keyframes loading-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.controls-container {
    position: relative;
    width: 70px; /* Reduced size */
    height: 70px; /* Reduced size */
    margin-top: 0;
    margin-bottom: 1.5rem; /* Reduced margin */
}

.play-pause-btn {
    width: 70px; /* Reduced size */
    height: 70px; /* Reduced size */
    border-radius: 50%;
    border: none;
    background-image: linear-gradient(145deg, #ff512f, #dd2476);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(221, 36, 118, 0.4);
    animation: pulse-glow-gradient 2s infinite ease-in-out;
}

.play-pause-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(221, 36, 118, 0.7);
    animation: none; /* Stop pulsing on hover */
}

.pause-icon {
    display: none;
}

.play-icon {
    display: block;
}

.volume-container {
    width: 80%;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced gap */
    margin-top: 0;
}

.volume-icon {
    flex-shrink: 0;
    color: #ccc;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: #444;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
    --track-color: linear-gradient(45deg, #ff512f, #dd2476);
}

.volume-slider:hover {
    opacity: 1;
}

/* Add fill progress for range input */
.volume-slider {
    background: linear-gradient(to right, #ff512f 0%, #dd2476 100%, #444 100%, #444 100%);
}

.volume-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 5px;
}

.volume-slider::-moz-range-track {
    background: transparent;
    height: 5px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #dd2476;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    margin-top: -5px; /* (15px thumb height - 5px track height) / 2 */
    box-shadow: 0 0 12px rgba(221, 36, 118, 0.9), 0 0 5px rgba(221, 36, 118, 0.7);
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #dd2476;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(221, 36, 118, 0.9), 0 0 5px rgba(221, 36, 118, 0.7);
}

/* --- FOOTER STYLES --- */
.site-footer {
    background-color: #000;
    color: #ccc;
    padding: 40px 5%;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo-section .footer-logo {
    height: 40px;
    width: auto;
}

.footer-links-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-section a:hover {
    color: #ff512f;
}

.footer-social-section {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social-section .social-icon {
    width: 24px;
    height: 24px;
}

.footer-social-section a {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-social-section a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-powered-by {
    text-align: center;
    margin-bottom: 20px;
}

.footer-powered-by p {
    margin: 0;
    font-size: 13px;
    color: #ccc;
    font-weight: 300;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    line-height: 1.5;
    font-size: 12px;
    color: #888; /* Added color for consistency */
}

/* --- SOUNDS PAGE / RADIOS PAGE STYLES --- */
.sounds-layout-container {
    display: grid;
    grid-template-columns: 300px 1fr; /* Sidebar and main content */
    grid-template-areas: "sidebar main";
    height: calc(100vh - 71px); /* Full height minus header */
    gap: 24px;
    padding: 24px;
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
    overflow: hidden;
    background: transparent; /* Ensure it doesn't cover body background */
}

.sounds-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.sounds-playlist-container {
    background-color: rgba(28, 28, 28, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 8px;
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.clock-container {
    background-color: rgba(28, 28, 28, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    color: #f2f2f2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.clock-header {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.clock-time {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(221, 36, 118, 0.4);
    font-family: 'Poppins', monospace;
}

.sounds-playlist-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sounds-playlist-container li {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    gap: 12px;
}

.sounds-playlist-container li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sounds-playlist-container li.active {
    background: linear-gradient(to right, rgba(255, 81, 47, 0.2), rgba(221, 36, 118, 0.2));
}

.sounds-playlist-container li.playing {
    background: linear-gradient(to right, rgba(255, 81, 47, 0.3), rgba(221, 36, 118, 0.3));
}

.track-art-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.track-art-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.track-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sounds-playlist-container li:hover .track-play-overlay {
    opacity: 1;
}

li.active .track-play-overlay {
    opacity: 0 !important;
}

.track-info {
    flex-grow: 1;
    overflow: hidden;
    color: #f2f2f2;
}

.track-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.85rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-on-air {
    display: none; /* Hide for now, can be used later */
    font-size: 0.75rem;
    color: #f2f2f2;
    font-weight: bold;
    background: linear-gradient(45deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

li.active .track-title {
    background: linear-gradient(45deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.track-status-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-live-indicator {
    width: 16px;
    height: 16px;
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    border-radius: 50%;
    animation: pulse-live-gradient 1.5s infinite ease-in-out;
    display: none; /* Controlled by JS */
}

.sounds-ad-container-sidebar {
    flex-shrink: 0;
}

.sounds-ad-container-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.sounds-main-content {
    grid-area: main;
    display: flex;
    flex-direction: column; /* Default to column for mobile-first thinking */
    gap: 24px;
    overflow: hidden;
}

.sounds-player-view {
    flex-grow: 1;
    background-color: rgba(28, 28, 28, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.player-view-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

.player-view-art {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.player-view-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.player-view-details {
    color: #f2f2f2;
    position: relative;
    flex-grow: 1;
}

.player-view-type {
    font-size: 0.9rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
}

.player-view-details h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.player-view-details p {
    font-size: 1.1rem;
    color: #ccc;
    margin: 4px 0 0 0;
}

.on-air-badge {
    position: relative;
    background: linear-gradient(45deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
    margin-bottom: 8px;
}

.on-air-badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    animation: pulse-live-gradient 1.5s infinite ease-in-out;
}

@keyframes pulse-live-gradient {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(221, 36, 118, 0.7), 0 0 12px rgba(221, 36, 118, 0.5);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 14px rgba(221, 36, 118, 1), 0 0 22px rgba(221, 36, 118, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(221, 36, 118, 0.7), 0 0 12px rgba(221, 36, 118, 0.5);
    }
}

.player-view-body {
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-view-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.player-view-controls-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
}

.control-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

.control-btn:hover {
    color: #fff;
}

.control-btn.play-pause {
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    color: #fff;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 15px rgba(221, 36, 118, 0.4);
    animation: pulse-glow-gradient 2s infinite ease-in-out;
}

.control-btn.play-pause:hover {
    box-shadow: 0 6px 20px rgba(221, 36, 118, 0.6);
    animation: none;
}

.sounds-play-pause-container {
    position: relative;
    width: 56px;
    height: 56px;
}

.sounds-play-pause-container .loading-indicator {
    width: 100%;
    height: 100%;
    border-width: 5px;
}

.player-station-description {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.sounds-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    max-width: 500px;
}

.sounds-progress span {
    font-size: 0.85rem;
    color: #aaa;
}

.sounds-progress .progress-bar {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.sounds-progress .progress-fill {
    height: 100%;
    width: 0;
    background-image: linear-gradient(45deg, #ff512f, #dd2476);
    border-radius: 2px;
}

.sounds-hero-banner {
    margin-top: auto;
    padding-top: 32px;
}

.sounds-hero-banner a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.sounds-hero-banner a:hover {
    transform: scale(1.02);
}

.sounds-hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.sounds-ad-container-main {
    display: none; /* Hidden on desktop by default */
}

/* --- STATIC PAGE (PRIVACY POLICY) --- */
.static-page-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #121212;
    color: #eee;
    border-radius: 8px;
    line-height: 1.8;
}

.static-page-container h1 {
    color: #f2f2f2;
    font-size: 2.5rem;
    margin-top: 0;
    border-bottom: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, #ff512f, #dd2476);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.static-page-container h2 {
    color: #f2f2f2;
    font-size: 1.5rem;
    margin-top: 40px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.static-page-container p, .static-page-container li {
    font-size: 1rem;
    color: #ccc;
}

.static-page-container a {
    background: linear-gradient(45deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-weight: 500;
}

.static-page-container a:hover {
    text-decoration: underline;
    text-decoration-color: #ff512f;
}

.static-page-container ul {
    list-style-type: disc;
    padding-left: 25px;
}

.static-page-container .last-updated {
    font-style: italic;
    color: #888;
    margin-bottom: 30px;
}

.static-page-container .disclaimer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    font-style: italic;
    color: #999;
}

/* --- MOBILE BOTTOM NAV --- */
.mobile-bottom-nav {
    display: none; /* Hidden by default, shown on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #f2f2f2;
    flex-grow: 1;
    height: 100%;
    transition: color 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.mobile-bottom-nav .nav-item svg {
    stroke: currentColor;
    margin-bottom: 2px; /* Add a small gap between icon and text */
}

.mobile-bottom-nav .nav-item.active {
    background: linear-gradient(45deg, #ff512f, #dd2476);
    -webkit-background-clip: text;
    background-clip: text;
    color: #ff512f; /* Fallback for color */
}

.mobile-bottom-nav .nav-item.active span {
    color: transparent; /* Text will be filled by gradient */
}

.mobile-bottom-nav .nav-item.active svg {
    stroke: url(#gex-gradient);
    color: #ff512f; /* Fallback for browsers that don't support gradient strokes */
}

.mobile-bottom-nav .nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* --- MOBILE MENU STYLES --- */
@media (max-width: 900px) {
    body {
        padding-bottom: 65px; /* Add space for bottom nav */
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 0;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        z-index: 1000; /* Ensure it's under the overlay */
    }

    /* --- Mobile Dropdown Overrides --- */
    .nav-item-dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }

    .nav-item-dropdown .nav-link-dropdown {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-item-dropdown .dropdown-menu {
        position: static;
        transform: none;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        width: 100%;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        display: none; /* Controlled by JS */
        transition: none;
    }

    .nav-item-dropdown.is-open .dropdown-menu {
        display: block;
    }

    .nav-item-dropdown.is-open .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .nav-item-dropdown .dropdown-menu li {
        width: 100%;
        border: none !important;
    }

    .nav-item-dropdown .dropdown-menu li a {
        font-size: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 50px; /* Indent submenu item */
        color: #ccc;
    }

    .nav-wrapper.is-open {
        transform: translateX(0);
    }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .main-nav .nav-links li {
        margin: 0;
        width: 100%;
    }

    .main-nav .nav-links li:not(:last-child) {
        border-bottom: 1px solid #333;
    }

    .main-nav .nav-links a {
        font-size: 14px;
        display: block;
        padding: 15px 30px;
        width: 100%;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    }

    .social-links {
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid #333;
        width: 100%;
        justify-content: flex-start;
        padding-left: 30px;
        box-sizing: border-box;
    }

    .social-links a {
        margin-left: 0;
        margin-right: 20px;
    }

    .social-links .social-icon {
        width: 30px;
        height: 30px;
    }

    /* Hero Responsive */
    .hero-content .hero-logo {
        max-width: 200px; /* Smaller logo on mobile */
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
        white-space: normal;
    }
    .hero-content .watch-now-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .hero-banner {
        height: auto; /* Allow height to adjust to content on smaller screens */
        min-height: calc(100vh - 71px); /* Full height minus header */
        align-items: center;
    }

    .hero-content {
        padding: 20px 8%;
    }

    /* Carousel Responsive */
    .carousel-item {
        flex: 0 0 120px;
        height: 120px;
    }
    .carousel-item--rectangular {
        flex: 0 0 120px;
        height: 213px; /* Approximate 9:16 aspect ratio for a 120px width */
    }
    .carousel-track {
        gap: 15px;
    }

    /* Hide the original header-right container, which is now .nav-wrapper */
    .header-right {
        display: none;
    }

    /* Adjust main header for mobile */
    .main-header {
        justify-content: space-between;
    }

    /* Sounds Page Responsive */
    .sounds-layout-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar";
        height: auto;
        padding: 16px;
        gap: 32px;
    }

    .sounds-sidebar {
        background-color: transparent;
        order: 2; /* Make sidebar appear after main content */
    }

    .sounds-main-content {
        padding: 0; /* Remove padding from wrapper */
        order: 1; /* Make main content appear first */
    }
    
    .sounds-player-view {
        padding: 16px; /* Adjust padding for mobile */
    }

    .player-view-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .player-view-art {
        width: 180px;
        height: 180px;
    }
    .player-view-details h1 {
        font-size: 2rem;
    }
    
    .player-view-controls-wrapper {
        flex-direction: column;
        align-items: center; /* Center controls */
        gap: 16px;
    }

    .player-view-controls-bar {
        margin-bottom: 0;
    }

    .sounds-playlist-container {
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
    }

    .sounds-ad-container-sidebar {
        display: block;
        max-width: 300px;
        width: 100%;
        margin: 0 auto;
    }
    .sounds-ad-container-main {
        display: none;
    }
     .sounds-ad-container-main img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    /* Static Page Responsive */
    .static-page-container {
        margin: 20px;
        padding: 20px;
    }
    .static-page-container h1 {
        font-size: 1.8rem;
    }
     .static-page-container h2 {
        font-size: 1.3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-height: 670px) and (max-width: 400px) {
    .popup-content {
        padding: 15px;
    }
    .album-art-container {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }
    .song-title {
        font-size: 1.3rem;
    }
    .song-artist {
        font-size: 0.9rem;
    }
    .on-air-button, .song-info, .controls-container {
        margin-bottom: 1rem;
    }
    .controls-container {
        width: 60px;
        height: 60px;
    }
    .play-pause-btn {
        width: 60px;
        height: 60px;
    }
    .play-pause-btn svg {
        display: block;
        width: 35px;
        height: 35px;
    }
    .popup-footer-logo {
        margin-top: 1rem;
    }
}

/* --- Glow Animation --- */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(220, 38, 37, 0.3), 0 0 10px rgba(220, 38, 37, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 38, 37, 0.7), 0 0 30px rgba(220, 38, 37, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(220, 38, 37, 0.3), 0 0 10px rgba(220, 38, 37, 0.2);
    }
}

@keyframes pulse-glow-gradient {
    0% {
        box-shadow: 0 0 10px rgba(221, 36, 118, 0.3), 0 0 15px rgba(255, 81, 47, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(221, 36, 118, 0.6), 0 0 35px rgba(255, 81, 47, 0.4);
    }
    100% {
        box-shadow: 0 0 10px rgba(221, 36, 118, 0.3), 0 0 15px rgba(255, 81, 47, 0.2);
    }
}