/* --- Core Variables derived from Logo & Theme --- */
:root {
    --bg-dark: #09090c;
    --felt-color: #1a1b24; 
    --panel-bg: rgba(26, 27, 36, 0.85); 
    
    /* Colors from Logo */
    --logo-yellow: #f8db31; 
    --logo-blue: #00b9ff; 
    --logo-brown: #cf9b6c; 

    /* Premium Accents */
    --gold-metal: linear-gradient(135deg, #fceabb 0%, #fccd4d 50%, #b45309 100%);
    --gold-glow: rgba(248, 219, 49, 0.4);
    
    --silver-metal: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 50%, #475569 100%);
    --bronze-metal: linear-gradient(135deg, #cf9b6c 0%, #a16207 50%, #7c2d12 100%);

    --text-main: #f3f4f6;
    --text-muted: #6b7280;
    --discord-blurple: #5865F2;
    --live-green: #10b981;
}

/* --- Global Reset & Style --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Casino Felt Background Texture --- */
.casino-felt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--felt-color);
    background-image: 
        radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23222431' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40L0 0H20L40 20'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    z-index: -2;
}

.casino-accents {
    position: fixed;
    font-size: 8rem;
    color: var(--logo-blue);
    opacity: 0.03;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: -1;
    pointer-events: none;
    animation: floatAccents 30s infinite linear;
}

@keyframes floatAccents {
    0% { transform: translateY(0); }
    50% { transform: translateY(-50px) rotate(5deg); }
    100% { transform: translateY(0); }
}

/* --- Premium Navigation --- */
.navbar {
    background-color: rgba(9, 9, 12, 0.95);
    border-bottom: 1px solid var(--logo-yellow);
    box-shadow: 0 0 15px rgba(248, 219, 49, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    gap: 0.75rem;
}

.nav-logo {
    height: 60px; /* Slightly taller */
    border-radius: 8px; /* Soft edges instead of a circle */
    border: 2px solid var(--logo-yellow);
    box-shadow: 0 0 10px var(--gold-glow);
    background-color: #000; /* Ensures the logo pops */
}

.brand-text { font-weight: 900; font-size: 1.5rem; }
.hq { color: var(--logo-blue); text-shadow: 0 0 5px rgba(0, 185, 255, 0.4); }

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--logo-yellow);
    text-shadow: 0 0 8px var(--gold-glow);
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--discord-blurple);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.discord-icon { height: 20px; }

/* --- Main Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.main-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

.status-indicator {
    color: var(--live-green);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: -1px; }
.highlight { color: var(--logo-yellow); text-shadow: 0 0 15px var(--gold-glow); }
.main-header p { color: var(--text-muted); margin-top: 0.5rem; font-weight: 600; font-size: 1rem; }

/* --- ENLARGED PODIUM --- */
.podium-section { margin-bottom: 6rem; }

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    gap: 2.5rem;
    padding-top: 6rem; 
}

/* Increased width */
.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 300px; 
}

.stagger-0 { animation: fadeInUp 0.8s ease-out 0.2s backwards; }
.stagger-1 { animation: fadeInUp 0.8s ease-out 0.4s backwards; }
.stagger-2 { animation: fadeInUp 0.8s ease-out 0.6s backwards; }
.stagger-3 { animation: fadeInUp 0.8s ease-out 0.8s backwards; }

.podium-block {
    width: 100%;
    border-radius: 12px 12px 0 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.podium-item:hover .podium-block { transform: translateY(-10px); }

.block-details {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem; /* Space between data groups */
    width: 100%;
}

.player-visual {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.champion-logo {
    width: 120px; /* Increased size */
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--logo-yellow);
    box-shadow: 0 0 25px var(--gold-glow);
    background-color: var(--bg-dark);
}

.champion-crown {
    position: absolute;
    top: -55px;
    font-size: 3.5rem;
    transform: rotate(-10deg);
    text-shadow: 0 0 15px rgba(248, 219, 49, 0.8);
}

.player-avatar {
    width: 80px; /* Increased size */
    height: 80px;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

/* Increased Heights */
.gold .podium-block {
    height: 400px; /* Increased from 320px */
    border-color: var(--logo-yellow);
    background: var(--panel-bg), var(--gold-metal);
    background-blend-mode: color-burn; 
    box-shadow: 0 0 30px rgba(248, 219, 49, 0.4); 
}

.silver .podium-block {
    height: 340px; /* Increased from 250px */
    background: var(--panel-bg), var(--silver-metal);
    background-blend-mode: color-burn;
}
.silver .alt-avatar { background-color: #94a3b8; }

.bronze .podium-block {
    height: 290px; /* Increased from 200px to fix the text overflow */
    background: var(--panel-bg), var(--bronze-metal);
    background-blend-mode: color-burn;
}
.bronze .alt-avatar { background-color: #a16207; }

/* Podium Labels & Text Styling */
.rank { font-size: 3.5rem; font-weight: 900; color: rgba(255,255,255,0.1); line-height: 1; margin-bottom: 0.5rem; }

.data-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.data-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 1.5px;
}

.name { font-weight: 700; color: var(--text-main); font-size: 1.1rem; }
.score { font-weight: 700; color: var(--live-green); font-size: 1.2rem; }

.prize-group {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.prize-label { color: var(--logo-yellow); }
.prize-amt { font-size: 1.2rem; font-weight: 900; color: var(--text-main); }

.champion-text { font-weight: 900; font-size: 1.4rem; color: var(--logo-yellow); text-shadow: 0 0 5px var(--gold-glow); }
.champion-score { font-size: 1.4rem; color: #10b981; text-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.champion-prize { font-size: 1.5rem; color: var(--logo-yellow); }

/* --- MAIN LEADERBOARD LIST --- */
.leaderboard-section { perspective: 1000px; }

.leaderboard-container {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.leaderboard-container:hover {
    border-color: var(--logo-yellow);
    box-shadow: 0 0 20px var(--gold-glow);
}

.lb-header {
    display: flex;
    background-color: rgba(9, 9, 12, 0.8);
    padding: 1.2rem;
    border-bottom: 1px solid rgba(248, 219, 49, 0.3);
    color: var(--logo-yellow);
    font-weight: 800;
    letter-spacing: 2px;
}

.lb-row {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s ease;
    transform-origin: center;
}

.lb-row:hover {
    background-color: rgba(248, 219, 49, 0.05); 
    transform: rotateX(5deg) translateY(-2px); 
}

.lb-row:last-child { border-bottom: none; }

/* 4 Column Layout */
.col-rank { width: 10%; font-weight: 900; color: var(--text-muted); text-align: center; }
.col-player { width: 40%; }
.col-wager { width: 25%; text-align: right; color: var(--live-green); font-weight: 700; font-size: 1.1rem; padding-right: 1rem; }
.col-prize { width: 25%; text-align: right; color: var(--logo-yellow); font-weight: 800; font-size: 1.1rem; }

.player-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 600;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    background-color: #3f3f46;
    border-radius: 50%;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* --- KEYFRAMES --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-top: 2rem;
    }
    
    .podium-item { width: 100%; max-width: 350px; }
    
    .gold .podium-block, .silver .podium-block, .bronze .podium-block {
        height: auto;
    }
    
    .champion-crown { top: -25px; left: -15px; font-size: 3rem; }

    .lb-header { font-size: 0.8rem; }
    .col-rank { width: 15%; }
    .col-player { width: 35%; }
    .col-wager { width: 25%; font-size: 0.9rem; }
    .col-prize { width: 25%; font-size: 0.9rem; }
}

.socials-section {
    text-align: center;
    margin: 5rem 0 2rem;
    animation: fadeInUp 0.8s ease-out backwards;
}

.socials-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.social-cards {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--text-main);
    background: var(--panel-bg);
    border: 2px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.social-icon { width: 24px; height: 24px; }
.kick-color { color: #53fc18; } /* Kick's signature green */

/* Hover Effects */
.discord-card:hover { border-color: #5865F2; box-shadow: 0 0 20px rgba(88, 101, 242, 0.4); transform: translateY(-5px); color: #5865F2; }
.x-card:hover { border-color: #ffffff; box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); transform: translateY(-5px); }
.kick-card:hover { border-color: #53fc18; box-shadow: 0 0 20px rgba(83, 252, 24, 0.4); transform: translateY(-5px); color: #53fc18; }

/* --- FINAL FOOTER STYLES --- */
.main-footer {
    background-color: rgba(9, 9, 12, 0.95);
    border-top: 1px solid var(--logo-yellow);
    padding: 3rem 1rem 1rem;
    margin-top: 4rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Left Section: Brand, Bio & Nav */
.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.2rem;
    max-width: 380px;
}

.footer-brand {
    display: block;
    text-decoration: none;
}

.footer-logo {
    height: 60px;
    border-radius: 8px;
    border: 2px solid var(--logo-yellow);
    background-color: #000;
    box-shadow: 0 0 10px rgba(248, 219, 49, 0.2);
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    text-transform: none; 
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-nav a:hover { 
    color: var(--logo-yellow); 
}

/* Center Section: Age Badge */
.footer-age {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    text-align: left;
}

.age-badge {
    border: 3px solid #ef4444; 
    color: #ef4444;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
}

.age-text {
    font-size: 0.8rem;
    text-transform: none; 
    line-height: 1.4;
}

.age-text strong { 
    color: var(--text-main); 
    text-transform: uppercase; 
}

/* Right Section: Social Circles */
.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-icon {
    width: 22px;
    height: 22px;
}

/* Hover colors for footer icons */
.discord-hover:hover { 
    background: #5865F2; 
    color: white; 
    border-color: #5865F2; 
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5); 
    transform: translateY(-3px); 
}
.x-hover:hover { 
    background: #ffffff; 
    color: black; 
    border-color: #ffffff; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); 
    transform: translateY(-3px); 
}
.kick-hover:hover { 
    background: #53fc18; 
    color: black; 
    border-color: #53fc18; 
    box-shadow: 0 0 15px rgba(83, 252, 24, 0.5); 
    transform: translateY(-3px); 
}

/* Bottom Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 850px) {
    .footer-content { 
        flex-direction: column; 
        align-items: flex-start;
        gap: 3rem;
    }
}

/* =========================================
   STREAM PAGE SPECIFIC STYLES
   ========================================= */

.stream-page-container {
    max-width: 1400px; /* Made wider specifically for the theater layout */
    padding-top: 2rem;
}

.stream-header {
    margin-bottom: 2rem;
}

/* Theater Layout Grid */
.stream-theater {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out backwards;
}

.stream-main {
    flex: 1 1 70%; /* Takes up 70% of the space */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stream-sidebar {
    flex: 1 1 30%; /* Takes up 30% of the space */
    min-width: 320px;
}

/* Video Wrapper (Maintains Perfect 16:9 Aspect Ratio) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    border: 2px solid var(--logo-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(248, 219, 49, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Stream Info Bar */
.stream-info-bar {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.stream-title h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: none; /* Keep original casing for stream titles */
}

.category-tag {
    background: rgba(0, 185, 255, 0.15);
    color: var(--logo-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(0, 185, 255, 0.3);
}

.btn-kick-follow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(83, 252, 24, 0.1);
    color: #53fc18;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 800;
    border: 1px solid #53fc18;
    transition: all 0.3s ease;
}

.btn-kick-follow:hover {
    background-color: #53fc18;
    color: #000;
    box-shadow: 0 0 20px rgba(83, 252, 24, 0.4);
    transform: translateY(-2px);
}

/* Sidebar & Chat Styles */
.sidebar-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-panel h3 {
    padding: 1.2rem;
    background: rgba(9, 9, 12, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--logo-blue);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
}

.chat-wrapper {
    flex-grow: 1;
    min-height: 500px; /* Minimum height for chat */
    background: #000;
}

.chat-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .stream-theater {
        flex-direction: column; /* Stacks video on top of chat */
    }
    
    .stream-info-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar-panel {
        height: 500px; /* Fixed height for chat on mobile */
    }
}