:root {
    --left-bg: #0c2340;       /* Fond Bleu océan profond */
    --right-bg: #291d38;      /* Fond Pourpre sombre */
    --left-accent: #00e676;   /* Accent Vert menthe */
    --right-accent: #517aeb;  /* Accent Corail vif */
    --card-bg: rgba(15, 25, 40, 0.92);
    --text-light: #ffffff;
    --text-muted: #b2dfdb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Fond scindé 50/50 */
body {
    background: linear-gradient(90deg, var(--left-bg) 50%, var(--right-bg) 50%);
    color: var(--text-light);
    min-height: 100vh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.admin-container {
    max-width: 900px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.logo-5050 {
    display: inline-flex;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #fff;
    margin-bottom: 8px;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.logo-5050 span:first-child {
    background: var(--left-accent);
    color: #000;
    padding: 4px 12px;
}

.logo-5050 span:last-child {
    background: var(--right-accent);
    color: #fff;
    padding: 4px 12px;
}

h1 {
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 22px 18px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid var(--left-accent);
    border-right: 4px solid var(--right-accent);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: -8px 8px 25px rgba(255, 255, 255, 0.08), 8px 8px 25px rgba(0, 0, 0, 0.5);
}

.singer-name {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--left-accent), #d4d4d4, var(--right-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 6px 0;
}

.singer-song {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

/* --- ROUE CYLINDRIQUE (STYLE RÉVEIL) --- */
.wheel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.step-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #1f1f1f;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.step-btn:active {
    transform: scale(0.92);
}

.wheel-wrapper {
    position: relative;
    width: 190px;
    height: 220px;
    background: #0a0a0a;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.9);
}

/* Effet d'ombre haut/bas pour donner le relief du rouleau */
.wheel-wrapper::before,
.wheel-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 75px;
    z-index: 2;
    pointer-events: none;
}

.wheel-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, #0a0a0a 15%, rgba(10, 10, 10, 0));
}

.wheel-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, #0a0a0a 15%, rgba(10, 10, 10, 0));
}

/* Viseur central fixe */
.wheel-visor {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 56px;
    transform: translateY(-50%);
    border-top: 2px solid var(--left-accent);
    border-bottom: 2px solid var(--right-accent);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.14) 50%, rgba(122, 122, 122, 0.14) 50%);
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

.wheel-scroller {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    padding: 82px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wheel-scroller::-webkit-scrollbar {
    display: none;
}

.wheel-item {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.wheel-item.active {
    font-size: 2.3rem;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.reaction-box {
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 2.2em;
    margin: 10px 0 16px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

/* --- BOUTONS & COMPOSANTS --- */
.btn-primary {
    width: 100%;
    background: linear-gradient(90deg, var(--left-accent) 0%, #e0e0e0 50%, var(--right-accent) 100%);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 18px;
    font-size: 1.35rem;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-action {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}

.btn-start { background: var(--left-accent); color: #000; }
.btn-stop { background: var(--right-accent); color: #fff; }
.btn-detail { background: #262626; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); }

.input-field {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #0a0a0a;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.podium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.podium-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(122, 122, 122, 0.12));
    border: 2px solid #fff;
    border-radius: 14px;
    padding: 16px;
}

.badge-live {
    display: inline-block;
    background: var(--right-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}