/* solo-supremacy-cup.css */
:root {
    --gold: #caa44d;
    --bg-dark: #050505;
    --card: rgba(20,20,20,0.85);
    --text: #f2f2f2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: url('/assets/IMG_2372.png') center/cover no-repeat fixed;
}

.header, .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.6));
}

.header h1 {
    margin: 0 auto;
    font-size: clamp(1.4rem, 4vw, 2rem);
}


.back-btn {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

/* Streamer Card */
.streamer-card {
    background: var(--card);
    border: 1px solid rgba(202,164,77,0.4);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: grid;
    gap: 1rem;
    align-items: center;
}


.streamer-profile {
    display: flex;
    justify-content: center;
}


.streamer-profile img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(202,164,77,0.6);
}


.streamer-info h2 {
    margin: 0 0 0.3rem;
}


.streamer-info span {
    color: var(--gold);
}


.streamer-info a {
    color: var(--gold);
    text-decoration: none;
}


.streamer-player {
    display: flex;
    justify-content: center;
}


.streamer-player iframe {
    width: 100%;
    max-width: 420px;
    height: 220px;
    border-radius: 12px;
    border: none;
}


@media (min-width: 768px) {
    .streamer-card {
        grid-template-columns: auto 1fr 1fr;
    }

    /* FIX: center the Twitch player inside its grid column */
    .streamer-player {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}


/* Leaderboard */
.leaderboard {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(6px);
}


.leaderboard-header,
.row {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    padding: 0.75rem 1rem;
}

.leaderboard-header {
    background: rgba(202,164,77,0.15);
    font-weight: bold;
}


.row {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    animation: rowFade 0.4s ease;
}


.row:nth-child(1) { color: #ffd700; }
.row:nth-child(2) { color: #c0c0c0; }
.row:nth-child(3) { color: #cd7f32; }


@keyframes rowFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

