/* CSS Variables & Theme */
:root {
    --bg-color: #0b0b15;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --primary: #8a2be2;
    /* BlueViolet */
    --secondary: #ff00cc;
    /* Neon Pink */
    --accent: #00f2ff;
    /* Cyan */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.globe-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -50px;
    left: -100px;
    animation: float 15s infinite alternate;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation: float 20s infinite alternate-reverse;
}

.globe-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 40%;
    opacity: 0.3;
    animation: pulse 10s infinite;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Navigation */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border-top: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .highlight {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 0, 204, 0.4);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 204, 0.6);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff4444;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Player Card */
.player-card {
    padding: 30px;
    border-radius: 24px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stream-selector {
    margin-top: 15px;
    width: 100%;
}

.stream-selector label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stream-selector select,
.stream-selector input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.stream-selector input[type="text"] {
    margin-top: 10px;
}

.stream-selector select:focus,
.stream-selector input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Dark styling for dropdown options */
.stream-selector select option,
.stream-selector select optgroup {
    background-color: #0b0b15;
    /* Forces dark background */
    color: white;
    padding: 10px;
}

.stream-selector select optgroup {
    color: var(--accent);
    font-weight: 700;
    font-style: normal;
    background-color: #1a1a2e;
    /* Slightly lighter for headers */
}

.stream-selector option {
    background: #0b0b15;
    color: white;
    padding: 10px;
}

/* YouTube Player Card */
.youtube-player-card {
    padding: 30px;
    border-radius: 24px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.youtube-player-card iframe {
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.youtube-player-card code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Premium YouTube Button */
.glass-btn-premium {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    list-style: none;
    /* Removes default triangle */
}

.glass-btn-premium:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(138, 43, 226, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Removes default details marker in Webkit/Chrome */
.glass-btn-premium::-webkit-details-marker {
    display: none;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff4d4d;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff0000;
}

.pulse-ring {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ff0000;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Load Button */
.btn-load {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.btn-load:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

/* Code elements */
code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.album-art {
    width: 120px;
    height: 120px;
    background: black;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.album-art iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Prevent clicks on video, force use of custom controls */
}

.music-icon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.visualizer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 10px 10px;
}

.bar {
    width: 8px;
    background: white;
    border-radius: 5px;
    animation: soundBars 0.8s infinite var(--delay);
}

.bar:nth-child(1) {
    --delay: 0.1s;
    animation-duration: 0.6s;
    height: 30%;
}

.bar:nth-child(2) {
    --delay: 0.2s;
    animation-duration: 0.8s;
    height: 60%;
}

.bar:nth-child(3) {
    --delay: 0.3s;
    animation-duration: 0.5s;
    height: 40%;
}

.bar:nth-child(4) {
    --delay: 0.4s;
    animation-duration: 0.7s;
    height: 80%;
}

.bar:nth-child(5) {
    --delay: 0.5s;
    animation-duration: 0.6s;
    height: 50%;
}

@keyframes soundBars {

    0%,
    100% {
        height: 20%;
        opacity: 0.5;
    }

    50% {
        height: 90%;
        opacity: 1;
    }
}

.player-card.paused .bar {
    animation-play-state: paused;
    height: 20% !important;
}

.player-controls {
    flex-grow: 1;
}

.song-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.song-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.controls-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    color: var(--accent);
}

.control-btn.lg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.control-btn.lg:hover {
    transform: scale(1.1);
    color: var(--secondary);
    background: white;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

input[type=range] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .schedule-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

.schedule-card {
    padding: 30px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.schedule-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.schedule-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 255, 255, 0.05));
}

.schedule-card .status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.7rem;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.schedule-card .time {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.schedule-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.schedule-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.schedule-card .host {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* App Section */
.app-container {
    text-align: center;
    padding: 60px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.glass-btn:hover {
    background: white;
    color: black;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: white;
}

.news-form {
    display: flex;
    gap: 10px;
}

.news-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 5px;
    color: white;
    flex-grow: 1;
}

.news-form button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0b0b15;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .player-card {
        flex-direction: column;
        text-align: center;
    }

    .controls-main {
        justify-content: center;
    }

    .volume-control {
        justify-content: center;
    }
}