:root {
    --bg-color: #050510;
    --glass-bg: rgba(20, 20, 40, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #9d4edd;
    --primary-glow: #e0aaff;
    --secondary: #4361ee;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --font-main: 'Outfit', sans-serif;
}

:root[data-theme="retro"] {
    --bg-color: #1a0b2e;
    --glass-bg: rgba(26, 11, 46, 0.6);
    --glass-border: rgba(255, 0, 255, 0.3);
    --primary: #ff00ff;
    --primary-glow: #ff77ff;
    --secondary: #00ffff;
    --text-main: #ffffff;
    --text-muted: #ffb3ff;
}

:root[data-theme="cyber"] {
    --bg-color: #001100;
    --glass-bg: rgba(0, 20, 0, 0.6);
    --glass-border: rgba(0, 255, 0, 0.2);
    --primary: #00ff00;
    --primary-glow: #88ff88;
    --secondary: #00aa00;
    --text-main: #ffffff;
    --text-muted: #88aa88;
}

:root[data-theme="light"] {
    --bg-color: #f4f4f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --primary: #4361ee;
    --primary-glow: #3a0ca3;
    --secondary: #f72585;
    --text-main: #333333;
    --text-muted: #666666;
}

:root[data-theme="jukebox"] {
    --bg-color: #111111;
    --glass-bg: #222222;
    --glass-border: #ccff00; /* Neon yellow */
    --primary: #ccff00;
    --primary-glow: #00ff00; /* Neon green */
    --secondary: #ff00ff; /* Neon violet */
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Background Animations */
.background-anim {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
    transition: background 0.5s ease;
}

.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -150px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #3a0ca3; top: 40%; left: 40%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.2); }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: background 0.5s ease, border 0.5s ease;
}

.highlight {
    color: var(--primary-glow);
    text-shadow: 0 0 10px var(--primary);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    margin: 1rem 2rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-glow);
}

/* Custom Theme Dropdown */
.theme-dropdown-container {
    position: relative;
}

.icon-btn {
    background: transparent;
    color: var(--text-main);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    padding: 0.5rem;
}

.icon-btn:hover {
    color: var(--primary-glow);
    transform: scale(1.1);
}

.theme-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    border-radius: 12px;
    z-index: 200;
}

.theme-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.theme-dropdown li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-dropdown li:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-glow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Player Section */
.player-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.player-container {
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.live-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.station-name {
    font-size: 4rem;
    font-weight: 900;
    margin-top: 1rem;
}

.current-show {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Visualizer (Fake) */
.visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 60px;
    margin: 1rem 0;
}

/* Ocultar visualizador en modo Rokola */
:root[data-theme="jukebox"] .visualizer {
    display: none;
}

/* Jukebox Theme Overrides */
:root[data-theme="jukebox"] .player-container {
    background: #1a1a1a;
    border: 4px solid var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--primary), inset 0 0 20px var(--secondary);
}

:root[data-theme="jukebox"] .station-name {
    font-family: 'Courier New', Courier, monospace;
    background: #ffffcc; /* Tarjeta amarillenta */
    color: #111;
    padding: 10px 20px;
    border: 2px solid #555;
    border-radius: 5px;
    display: inline-block;
    text-shadow: none;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

:root[data-theme="jukebox"] .current-show {
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
    font-family: 'Courier New', Courier, monospace;
    background: #222;
    padding: 5px 15px;
    border-radius: 5px;
    border: 1px solid var(--primary);
}

:root[data-theme="jukebox"] .play-btn {
    border-radius: 10px;
    width: 120px;
    height: 60px;
    border: 3px solid var(--secondary);
    background: #222;
    color: var(--primary);
    box-shadow: 4px 4px 0 var(--secondary);
    transition: all 0.1s;
}

:root[data-theme="jukebox"] .play-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--secondary);
}

:root[data-theme="jukebox"] .play-btn:hover {
    background: #333;
    color: white;
}

/* Animación del Disco de Vinilo */
.vinyl-container {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    height: 150px;
}

:root[data-theme="jukebox"] .vinyl-container {
    display: flex;
}

.vinyl-record {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #333 30%, #111 60%, #000 70%);
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.8), inset 0 0 5px rgba(255,255,255,0.2);
    border: 2px solid #222;
    transition: transform 0.5s ease;
}

/* Surcos del disco */
.vinyl-record::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 0 0 5px rgba(0,0,0,0), 0 0 0 10px rgba(255,255,255,0.05), 0 0 0 15px rgba(0,0,0,0), 0 0 0 20px rgba(255,255,255,0.05);
}

.vinyl-label {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.5rem;
    font-weight: bold;
    color: #111;
    text-align: center;
    line-height: 1;
    border: 2px solid #fff;
}

.vinyl-hole {
    width: 8px;
    height: 8px;
    background: #111;
    border-radius: 50%;
    position: absolute;
    z-index: 3;
}

/* Animación de Giro */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

.vinyl-record.spinning {
    animation: spin 2s linear infinite;
}

.bar {
    width: 8px;
    background: var(--primary);
    border-radius: 4px;
    height: 10px;
    transition: height 0.1s ease;
}

.visualizer.active .bar {
    animation: eq 1s infinite alternate ease-in-out;
}

.visualizer.active .bar:nth-child(1) { animation-duration: 0.4s; }
.visualizer.active .bar:nth-child(2) { animation-duration: 0.6s; }
.visualizer.active .bar:nth-child(3) { animation-duration: 0.3s; }
.visualizer.active .bar:nth-child(4) { animation-duration: 0.8s; }
.visualizer.active .bar:nth-child(5) { animation-duration: 0.5s; }
.visualizer.active .bar:nth-child(6) { animation-duration: 0.7s; }
.visualizer.active .bar:nth-child(7) { animation-duration: 0.3s; }
.visualizer.active .bar:nth-child(8) { animation-duration: 0.6s; }
.visualizer.active .bar:nth-child(9) { animation-duration: 0.4s; }

@keyframes eq {
    0% { height: 10px; }
    100% { height: 60px; background: var(--primary-glow); }
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 5px; /* Visual center adjustment for play icon */
}

.play-btn.playing {
    padding-left: 0;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.8);
}

.play-btn:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 80%;
    color: var(--text-muted);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary-glow);
    cursor: pointer;
    margin-top: -6px;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--glass-border);
    border-radius: 2px;
}

/* Schedule Section */
.schedule-section, .chat-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.schedule-card {
    padding: 1.5rem;
    transition: transform 0.3s, background 0.3s;
}

.schedule-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.schedule-card .time {
    color: var(--primary-glow);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.schedule-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.schedule-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Chat Section */
.chat-container {
    text-align: center;
    padding: 4rem 2rem;
}

.chat-container p {
    color: var(--text-muted);
    margin: 1rem 0 2rem 0;
}

.join-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 30px;
    background: #5865F2; /* Discord Color */
    color: white;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s;
    font-family: var(--font-main);
}

.join-btn:hover {
    background: #4752C4;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .station-name { font-size: 3rem; }
    .nav-links { display: none; } /* Simple mobile adaptation for now */
}

/* Auth & Premium Styles */
.auth-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background 0.3s;
}

.auth-btn:hover {
    background: var(--primary-glow);
}

.auth-btn.outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    margin-top: 1rem;
}

.premium-section {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.premium-dashboard {
    padding: 2rem;
    text-align: center;
}

.premium-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.premium-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.premium-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.vote-box, .request-box {
    flex: 1;
    min-width: 250px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 15px;
}

.vote-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 1rem 0;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.vote-btn {
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: transform 0.2s, background 0.3s;
}

.vote-btn.like {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.vote-btn.like:hover { background: #2ecc71; color: white; transform: scale(1.05); }

.vote-btn.dislike {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.vote-btn.dislike:hover { background: #e74c3c; color: white; transform: scale(1.05); }

.request-input {
    display: flex;
    gap: 0.5rem;
}

.request-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 8px;
    font-family: var(--font-main);
    outline: none;
}

.request-input input:focus {
    border-color: var(--primary);
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover { background: var(--primary-glow); }

.status-msg {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #2ecc71;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--glass-bg);
    padding: 2rem 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: white;
}

.input-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-glow);
    font-weight: 500;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 8px;
    font-family: var(--font-main);
    outline: none;
    resize: vertical;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
}

/* Bank Grid */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.bank-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    position: relative;
    transition: transform 0.3s;
}

.bank-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.bank-card.popular {
    border-color: #f1c40f;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1c40f;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
}

.coin-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.yxc-amount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 5px 0;
}

.buy-yxc-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: background 0.3s;
}

.buy-yxc-btn:hover {
    background: var(--primary-glow);
}
