/* ==========================================
   VARIABLES (Thème Rap/Nuit pro)
   ========================================== */
:root {
    --bg-dark: #0a0a0c;
    --primary-neon: #a855f7;
    --primary-hover: #c084fc;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    background-image: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.15), transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================
   ANIMATIONS GLOBALES
   ========================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }
    100% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
}

/* ==========================================
   HEADER
   ========================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeUp 0.5s ease-out;
}

.logo { font-size: 28px; font-weight: 900; letter-spacing: 2px; }
.logo span { color: var(--primary-neon); text-shadow: 0 0 15px rgba(168, 85, 247, 0.5); }

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary-neon);
    transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--text-main); text-shadow: 0 0 10px var(--primary-neon); }

/* ==========================================
   BOUTONS
   ========================================== */
.btn-glow {
    background: linear-gradient(45deg, #7e22ce, #a855f7);
    color: white; border: none; padding: 12px 25px; border-radius: 30px;
    font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none; display: inline-block;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.btn-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }
.btn-glow:active { transform: translateY(1px); }

.btn-outline {
    background: transparent; color: var(--primary-neon); border: 2px solid var(--primary-neon);
    padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer;
    width: 100%; margin-top: 15px; transition: all 0.3s ease; text-align: center; display: inline-block;
}
.btn-outline:hover { background: var(--primary-neon); color: white; transform: translateY(-2px); }

/* ==========================================
   HERO / LECTEUR PUBLIC
   ========================================== */
main { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }

.hero { text-align: center; margin-bottom: 60px; animation: fadeUp 0.6s ease-out 0.2s both; }

.live-badge {
    display: inline-flex; align-items: center; padding: 5px 15px;
    border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 20px;
    transition: all 0.3s ease;
}
.live-badge.online { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.live-badge.status-pause-badge { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.live-badge.offline { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }

.dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.online .dot { background-color: #ef4444; animation: pulse-red 1.5s infinite; }
.status-pause-badge .dot { background-color: #f59e0b; animation: pulse-orange 1.5s infinite; }
.offline .dot { background-color: var(--text-muted); }

@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@keyframes pulse-orange { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }

.song-title { font-size: 48px; font-weight: 900; margin-bottom: 10px; line-height: 1.1; transition: all 0.3s; }
.artist-name { color: var(--primary-neon); font-size: 20px; font-weight: 700; margin-bottom: 40px; }

/* BARRE DE PROGRESSION LIVE */
.player-ui { max-width: 500px; margin: 0 auto; animation: fadeUp 0.8s ease-out 0.4s both; }
.live-progress-container { display: flex; align-items: center; gap: 15px; width: 100%; margin-bottom: 20px; }
#time-current, #time-total { font-family: monospace; font-size: 14px; color: var(--text-muted); font-weight: bold; min-width: 45px; }
#time-current { color: var(--primary-neon); }
.progress-bar { flex-grow: 1; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.progress { width: 0%; height: 100%; background: linear-gradient(90deg, #7e22ce, #a855f7); box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); transition: width 0.2s linear; }

/* ==========================================
   PANNEAUX & FILE D'ATTENTE
   ========================================== */
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.glass-panel {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 15px; padding: 30px; backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.6s ease-out both;
}
.glass-panel:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.glass-panel h3 { margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }

.queue-list { list-style: none; }
.queue-list li {
    padding: 15px; background: rgba(255,255,255,0.02); border-radius: 10px;
    margin-bottom: 10px; display: flex; align-items: center; border: 1px solid transparent;
    transition: all 0.3s ease; transform-origin: left;
}
.queue-list li:hover { transform: translateX(5px) scale(1.02); background: rgba(255,255,255,0.05); border-color: rgba(168, 85, 247, 0.3); }

.vip-item { border-left: 4px solid #f59e0b !important; background: rgba(245, 158, 11, 0.05) !important; }
.vip-item:hover { border-color: #f59e0b !important; box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }

.rank { font-weight: 900; margin-right: 15px; width: 25px; color: var(--text-muted); }
.song-info { flex-grow: 1; display: flex; flex-direction: column; }
.song-info strong { font-size: 16px; color: var(--text-main); }
.song-info .social { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

.tag-pro { background: linear-gradient(45deg, #f59e0b, #fbbf24); color: #000; font-size: 10px; padding: 3px 8px; border-radius: 5px; font-weight: 900; }
.tag-normal { font-size: 11px; color: var(--text-muted); background: rgba(255, 255, 255, 0.1); padding: 4px 8px; border-radius: 4px; }

/* ==========================================
   RÉSEAUX SOCIAUX & CONTACT (La partie manquante !)
   ========================================== */
.contact-section { text-align: center; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }

.social-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border);
    padding: 20px; border-radius: 10px; text-decoration: none; color: white;
    transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.social-card i { font-size: 24px; transition: 0.3s; }
.social-card:hover { 
    background: rgba(168, 85, 247, 0.1); border-color: var(--primary-neon);
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.tiktok i { color: #ff0050; }
.twitch i { color: #9146ff; }
.instagram i { color: #e1306c; }
.email i { color: var(--primary-neon); }

/* ==========================================
   PAGE PARTAGE / POP-UP
   ========================================== */
.share-page { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 100px); padding: 20px; }
.share-container { width: 100%; max-width: 500px; padding: 40px; animation: fadeUp 0.5s ease-out forwards; }

.input-group input {
    width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--glass-border);
    color: var(--text-main); padding: 15px; border-radius: 8px; margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif; font-size: 16px; outline: none; transition: all 0.3s ease;
}
.input-group input:focus { border-color: var(--primary-neon); box-shadow: 0 0 15px rgba(168, 85, 247, 0.3); transform: translateY(-2px); }

.queue-status { text-align: center; margin-bottom: 30px; color: var(--text-muted); font-size: 15px; font-weight: 700; background: rgba(255, 255, 255, 0.03); padding: 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); }
.queue-number { color: var(--primary-neon); font-size: 20px; font-weight: 900; text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); margin: 0 5px; animation: pulse-glow 2s infinite; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-content { width: 90%; max-width: 450px; padding: 40px 30px; border-radius: 15px; animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ==========================================
   PANEL ADMIN
   ========================================== */
.admin-dashboard { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
.admin-stats { display: flex; gap: 15px; align-items: center; }
.stat-badge { background: rgba(255, 255, 255, 0.1); padding: 8px 15px; border-radius: 8px; font-weight: bold; font-size: 14px; }
.stat-badge.money { color: #10b981; background: rgba(16, 185, 129, 0.1); border: 1px solid #10b981; }

.btn-play-admin { background: var(--primary-neon); border: none; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; margin-left: 10px; transition: 0.3s; font-size: 16px; }
.btn-play-admin:hover { transform: scale(1.15) rotate(5deg); box-shadow: 0 0 15px var(--primary-neon); }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.btn-delete-admin { background: #ef4444; color: white; border: none; padding: 8px 12px; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 12px; transition: 0.3s; }
.btn-delete-admin:hover { background: #b91c1c; transform: scale(1.1); }

.admin-controls { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.status-btn { padding: 12px 20px; border-radius: 8px; border: none; font-weight: bold; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.status-on { background: #ef4444; color: white; }
.status-pause { background: #f59e0b; color: white; }
.status-off { background: #333; color: white; }
.status-btn:hover { transform: scale(1.05); }
.status-on:hover { box-shadow: 0 0 15px #ef4444; }
.status-pause:hover { box-shadow: 0 0 15px #f59e0b; }
.btn-danger { background: transparent; border: 1px solid #ef4444; color: #ef4444; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-danger:hover { background: #ef4444; color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3); }

/* ==========================================
   RESPONSIVE DESIGN (TÉLÉPHONES ET TABLETTES)
   ========================================== */
@media (max-width: 900px) {
    .dashboard, .admin-dashboard { grid-template-columns: 1fr; }
    .song-title { font-size: 40px; }
}

@media (max-width: 768px) {
    header { flex-direction: column; padding: 15px; gap: 15px; text-align: center; }
    nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
    nav a { margin: 0; font-size: 13px; }

    .admin-stats { flex-direction: column; width: 100%; gap: 10px; }
    .stat-badge { width: 100%; text-align: center; }
    #clear-all { width: 100%; margin-top: 10px; }

    .song-title { font-size: 32px; margin-top: 10px; }
    .artist-name { font-size: 16px; margin-bottom: 25px; }

    main { padding: 30px 15px; }
    .dashboard, .admin-dashboard { gap: 20px; padding: 20px 10px; }
    .glass-panel { padding: 20px 15px; }

    .admin-controls { flex-direction: column; width: 100%; }
    .status-btn { width: 100%; font-size: 16px; padding: 15px; }

    .song-info strong { font-size: 14px; word-break: break-word; }
    .admin-actions { flex-direction: column; }
    .btn-play-admin { margin-left: 0; margin-bottom: 5px; }

    .share-container { padding: 25px 15px; }
    .input-group input { padding: 12px; font-size: 15px; }
}