:root {
    --bg-color: #121212;
    --card-color: #1E1E1E;
    --border-color: #2d2d2d;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --accent-color: #00BFFF; /* Deep Sky Blue */
    --rank-gold: #FFD700;
    --rank-silver: #C0C0C0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    padding: 20px;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header, .site-footer {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}
.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-header .header-logo {
    height: 60px;
}
.site-header .title-block {
    margin: 0 20px;
}
.site-header h1 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2.5rem;
}
.site-header h1 span {
    color: var(--accent-color);
}


.main-container {
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0; 
    transition: opacity 0.7s ease-in-out;
}


.hero-video-section {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9;
}

#twitch-embed {
    width: 100%;
    height: 100%;
}

.main-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.grid-card {
    background-color: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
}
.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}
.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}
.stat-icon {
    margin-right: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.info-row:last-child {
    border-bottom: none;
}
.label {
    color: var(--text-secondary);
    font-weight: 400;
}
.value {
    font-weight: 600;
}
.rank-info {
    color: var(--rank-gold);
}
.player-link {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s ease;
}
.player-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.team-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.team-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}
.team-list .rank-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.team-list a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s ease;
}
.team-list a:hover {
    color: var(--accent-color);
}

.kill-weapon {
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 0.5rem;
}

#lobby-activity-content h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}
.grid-card.card-kill-feed .team-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.kill-feed-item {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    color: #ccc;
}

.kill-feed-item .kill-time {
    color: #888;
    margin-right: 10px;
    font-family: 'Courier New', Courier, monospace;
}

.kill-feed-item .kill-text {
    flex-grow: 1;
}

.kill-feed-item.involved {
    background-color: rgba(255, 215, 0, 0.05);
    border-left: 2px solid var(--accent-color);
    padding-left: 8px;
}

.kill-feed-item .kill-text .fa-crosshairs {
    color: #e74c3c;
    margin: 0 8px;
}

.highlight-player {
    color: var(--accent-color);
    font-weight: bold;
}

/* Scrollbar Styles */
.card-kill-feed .team-list::-webkit-scrollbar {
    width: 5px;
}
 
.card-kill-feed .team-list::-webkit-scrollbar-track {
    background: #2a2a2a;
}
 
.card-kill-feed .team-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

.card-kill-feed .team-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.online-streamer-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
.online-streamer-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}
.online-streamer-list a:hover {
    background-color: rgba(255,255,255,0.1);
}
.online-icon {
    color: #ff4500;
    margin-right: 0.5rem;
}
.offline-streamers-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .main-content-grid {
        grid-template-columns: 1fr;
    }
    .site-header h1 {
        font-size: 2rem;
    }
}
