:root {
    --primary: #d4a373; /* Warm Cafe con Leche */
    --accent: #bc6c25;  /* Intense Roasted Coffee */
    --bg-dark: #1a0f0a; /* Dark espresso bean */
    --glass: rgba(26, 15, 10, 0.85);
    --glass-border: rgba(212, 163, 115, 0.3); /* Soft Gold border */
    --text-main: #fefae0; /* Creamy white */
    --text-muted: #bcbd8b; /* Muted greenish-beige */
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(26, 15, 10, 0.2), rgba(26, 15, 10, 0.2)), 
                url('cafeteria.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fondo Dinámico */
.bg-video, .bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* 3-Column Layout */
.layout-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .layout-grid {
        flex-direction: column;
    }
}


/* Typography */
.title-style {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    margin-bottom: 0.5rem;
}

/* Neon Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(188, 108, 37, 0.2);
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 10px rgba(236, 72, 153, 0.2);
    pointer-events: none;
}

/* Player Layout - Compact Horizontal */
.player-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: background 0.5s ease, background-image 0.5s ease;
}

.player-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.player-info-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.play-circle-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.2);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    font-size: 1.5rem;
    padding-left: 5px; /* Adjust triangle alignment */
}

.play-circle-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #c084fc, #9333ea);
}

.song-info h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
}

.song-artist {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Bottom Bar */
.bottom-info-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.avatar-container {
    width: 54px;
    height: 54px;
    background: var(--glass);
    border: 2px solid var(--primary);
    border-radius: 50%; /* Cambio a circular */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambiado a cover para que llene el círculo */
}

.bottom-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bottom-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #cbd5e1;
}

.bottom-subtitle {
    font-size: 0.75rem;
    color: #64748b;
}

.req-btn {
    background: #6366f1;
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    background: #9333ea;
    transform: scale(1.05);
}

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

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    border: 1.5px solid;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Volume Control */
.volume-control input[type="range"] {
    width: 150px;
    height: 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    outline: none;
    cursor: pointer;
}

/* Admin Styles */
.admin-body {
    background: #020617;
}

.neon-border {
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

hr {
    border: 0;
    border-top: 1px solid var(--glass-border);
}

input[type="text"], input[type="password"], input[type="file"] {
    outline: none;
}

/* Listener Counter with Image */
.listener-counter {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
}

.oyentes-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.listener-number {
    position: absolute;
    font-size: 1.1rem;
    font-weight: 800;
    color: #a855f7;
    margin-top: 1px; /* Ajuste fino para que quede justo en el centro de los auriculares */
}

/* --- MODAL DE PETICIONES (Estilo Café) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--glass);
    border: 2px solid var(--primary);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a0f0a;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    color: #1a0f0a;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 2rem;
    color: var(--text-main);
    text-align: center;
}

.modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Formulario */
.req-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.req-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.req-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    font-family: inherit;
}

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

.btn-send {
    background: var(--primary);
    color: #1a0f0a;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.2s;
}

.btn-send:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.btn-close-modal {
    background: #444;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Volume Row */
.volume-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.vol-slider {
    width: 100px;
    height: 5px;
    accent-color: #a855f7;
    cursor: pointer;
}

/* Promo Cards (X and Discord) */
.promo-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    flex: 1; /* Permite que las columnas laterales ocupen el espacio equitativamente */
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 1.5rem;
}

.promo-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 500;
}

/* Promotional Buttons - Unified Coffee Style */
.btn-x, .btn-discord {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 2px solid rgba(212, 163, 115, 0.2);
    color: #fefae0;
}

.btn-x {
    background: linear-gradient(135deg, #61402a, #3b2416);
    box-shadow: 0 4px 15px rgba(97, 64, 42, 0.3);
}

.btn-discord {
    background: linear-gradient(135deg, #d4a373, #a67c52);
    color: #1a0f0a;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-x:hover, .btn-discord:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(188, 108, 37, 0.4);
}
