/* Base Reset & Custom Scrollbar Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #58a6ff #161b22;
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #58a6ff, #388bfd);
    border-radius: 5px;
    border: 2px solid #0d1117;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #79c0ff, #58a6ff);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #58a6ff, #2f81f7);
}

/* Corner where horizontal and vertical scrollbars meet */
::-webkit-scrollbar-corner {
    background: #0d1117;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
    background: radial-gradient(ellipse at top, #1a2332 0%, #0d1117 50%, #070a10 100%);
    color: #c9d1d9;
    min-height: 100vh;
    line-height: 1.6;
    overflow: hidden;
}

.header {
    width: 100%;
    min-height: 100vh;
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.9) 100%), 
                radial-gradient(ellipse at top, rgba(88, 166, 255, 0.15) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #58a6ff;
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(88, 166, 255, 0.3);
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #58a6ff, #79c0ff, #58a6ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.counter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.counter-label {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #8b949e, #c9d1d9, #8b949e);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: labelShine 4s linear infinite;
}

@keyframes labelShine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.counter {
    font-size: clamp(4rem, 10vw, 6rem);
    font-weight: 900;
    color: #58a6ff;
    text-shadow: 0 0 40px rgba(88, 166, 255, 0.6),
                 0 0 80px rgba(88, 166, 255, 0.3),
                 0 2px 0 rgba(0, 0, 0, 0.3);
    line-height: 1;
    position: relative;
    display: inline-block;
}

.counter::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #58a6ff, transparent);
    border-radius: 2px;
    animation: counterGlow 2s ease-in-out infinite;
}

@keyframes counterGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* Enhanced counter pulse animation */
@keyframes counterPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 40px rgba(88, 166, 255, 0.6),
                     0 0 80px rgba(88, 166, 255, 0.3),
                     0 2px 0 rgba(0, 0, 0, 0.3);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.08);
        text-shadow: 0 0 60px rgba(88, 166, 255, 0.8),
                     0 0 120px rgba(88, 166, 255, 0.5),
                     0 4px 0 rgba(0, 0, 0, 0.3);
    }
}

.counter {
    animation: counterPulse 2.5s ease-in-out infinite;
}

/* Decorative circles */
.header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.2) 0%, transparent 70%);
    animation: floatCircle 15s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 5s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.4;
    }
}

/* Sparkles */
.counter-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff, 0 0 20px #58a6ff;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: -20px;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: -15px;
    right: 25%;
    animation-delay: 0.75s;
}

.sparkle-3 {
    bottom: -25px;
    left: 30%;
    animation-delay: 1.5s;
}

.sparkle-4 {
    bottom: -20px;
    right: 20%;
    animation-delay: 2.25s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

.header .description {
    font-size: 1.1rem;
    color: #8b949e;
    max-width: 600px;
    margin: 0 auto;
}

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
}

.search-input {
    padding: 10px 20px;
    padding-right: 50px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    background: rgba(88, 166, 255, 0.05);
    color: #c9d1d9;
    border-radius: 50px 0 0 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.1);
    min-width: 220px;
    outline: none;
    border-right: none;
    height: 42px;
    box-sizing: border-box;
}

.search-input::placeholder {
    color: rgba(139, 148, 158, 0.7);
}

.search-input:hover,
.search-input:focus {
    border-color: rgba(88, 166, 255, 0.5);
    background: rgba(88, 166, 255, 0.1);
}

.search-input:focus {
    border-color: rgba(88, 166, 255, 0.7);
    background: rgba(88, 166, 255, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.25);
}

.filter-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    background: rgba(88, 166, 255, 0.1);
    color: #79c0ff;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.1);
    border-left: none;
    position: relative;
    height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.filter-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5);
    color: #a5d6ff;
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
}

.filter-btn.active {
    background: rgba(88, 166, 255, 0.25);
    border-color: rgba(88, 166, 255, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(88, 166, 255, 0.3);
}

.filter-options {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(22, 27, 34, 0.98);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
    box-shadow: 0 8px 32px rgba(88, 166, 255, 0.2);
    z-index: 100;
}

.filter-options.show {
    display: flex;
}

.filter-option {
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #c9d1d9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: left;
}

.filter-option:hover {
    background: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
}

.filter-option.active {
    background: rgba(88, 166, 255, 0.2);
    color: #ffffff;
}

.button-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin-bottom: 0;
    width: 100%;
}

/* Tournaments Button - Prominent standalone button */
.tournaments-button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 36px;
    background: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(88, 166, 255, 0.3);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.1);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    letter-spacing: 1px;
}

.tournaments-button:hover {
    background: rgba(88, 166, 255, 0.25);
    color: #a5d6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5);
}

.tournaments-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(88, 166, 255, 0.15);
}

/* Minimalistic compact button styles */
#show-streamers-btn,
.show-streamers-btn {
    background: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.1);
    letter-spacing: 0.3px;
    width: auto;
    min-width: 160px;
}

#show-streamers-btn:hover,
.show-streamers-btn:hover {
    background: rgba(88, 166, 255, 0.25);
    border-color: rgba(88, 166, 255, 0.5);
    color: #a5d6ff;
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
    transform: translateY(-1px);
}

#show-streamers-btn:active,
.show-streamers-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(88, 166, 255, 0.15);
}

.hidden {
    display: none !important;
}

#show-streamers-btn.hidden,
.show-streamers-btn.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Streamers grid - 4 cards per row */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.streamers-grid:not(.hidden) {
    /* Cards appear instantly without animation */
}

@keyframes revealContainer {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Music Player Section */
.music-section {
    margin-top: 60px;
    text-align: center;
    padding: 0 20px;
}

.music-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #58a6ff;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.3);
}

.music-container {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: #161b22;
    border: 1px solid #30363d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.music-container iframe {
    display: block;
}

/* Responsive adjustments for music player */
@media (max-width: 768px) {
    .music-container {
        width: 100%;
        border-radius: 12px;
    }
    
    .music-container iframe {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .music-container iframe {
        height: 350px !important;
    }
}

/* Enhanced streamer card styles */
.streamer-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.streamer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(88, 166, 255, 0.25);
    border-color: #58a6ff;
}

/* Streamer name hover effect */
.streamer-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.streamer-card:hover h2 {
    color: #58a6ff;
}

/* Nickname styles */
.streamer-header {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.streamer-header .nickname {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.streamer-header .nickname:hover {
    color: #79c0ff;
}

/* Custom Tooltip for Real Name */
.streamer-header .nickname {
    cursor: pointer;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.streamer-header .nickname:hover {
    color: #79c0ff;
}

.streamer-header .nickname .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    color: #f0f6fc;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(88, 166, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
}

.streamer-header .nickname .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #161b22;
}

.streamer-header .nickname:hover .tooltip,
.streamer-header .nickname .tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Info icon with rotation and color change */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(88, 166, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-icon:hover {
    background-color: rgba(88, 166, 255, 0.25);
    border-color: rgba(88, 166, 255, 0.5);
    color: white;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.4);
}

/* Enhanced link buttons */
.streamer-card .links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.streamer-card .links a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.streamer-card .links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.streamer-card .links a:hover::before {
    left: 100%;
}

.streamer-card .links a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.streamer-card .links a:active {
    transform: translateY(0) scale(0.98);
}

.streamer-card .links a.hltv {
    background: #2B6EA4;
    color: #313131;
    border: none;
}

.streamer-card .links a.hltv:hover {
    background: linear-gradient(135deg, #387eb7, #2B6EA4);
    color: white;
}

.streamer-card .links a.twitch {
    background: linear-gradient(135deg, #9146ff, #a566ff);
    color: #313131;
    border: none;
}

.streamer-card .links a.twitch:hover {
    background: linear-gradient(135deg, #a566ff, #9146ff);
    color: white;
}

.streamer-card .links a.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border: none;
}

.streamer-card .links a.youtube:hover {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    transform: translateY(-3px) scale(1.05);
}

/* Loading animation */
@keyframes pulseFade {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #8b949e;
    font-size: 1.1rem;
    animation: pulseFade 1.5s ease-in-out infinite;
}

/* Error animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.error {
    text-align: center;
    padding: 60px 20px;
    color: #f85149;
    font-size: 1.1rem;
    animation: shake 0.5s ease-in-out;
}


/* Responsive design */
@media (max-width: 1200px) {
    .streamers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .streamers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 40px 16px 30px;
    }
    
    .header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .header .description {
        font-size: 1rem;
    }
    
    .main {
        padding: 30px 16px 40px;
    }
    
    .streamers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .streamer-card {
        padding: 20px;
    }
    
    .streamer-card h2 {
        font-size: 1.2rem;
    }
    
    .streamer-card .links {
        flex-direction: column;
    }
    
    .streamer-card .links a {
        justify-content: center;
    }
    
    /* Custom Tooltip for mobile */
    .streamer-card .tooltip {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: #21262d;
        padding: 16px 24px;
        border-radius: 12px;
        font-size: 1rem;
        z-index: 1000;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .streamer-card .tooltip.visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .streamer-card .tooltip::after {
        display: none;
    }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #8b949e;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid #30363d;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(88, 166, 255, 0.25);
}

.social-link.steam:hover {
    color: white;
    border-color: #66c0f4aa;
}

.social-link.telegram:hover {
    color: #2faae5;
    border-color: #66c0f4aa;
}

.social-link.github:hover {
    color: #ffffff;
    border-color: #66c0f4aa;
}

.social-link.twitch:hover {
    color: #9146ff;
    background: rgba(145, 70, 255, 0.15);
    border-color: #9146ff;
}

.social-link.tournaments:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.15);
    border-color: #58a6ff;
}

.social-link svg {
    width: 28px;
    height: 28px;
}

/* Responsive for social links */
@media (max-width: 480px) {
    .social-links {
        gap: 15px;
        margin-top: 20px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 24px;
        height: 24px;
    }
}

/* Back link */
.back-link {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(88, 166, 255, 0.1);
    color: #79c0ff;
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(88, 166, 255, 0.1);
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: rgba(88, 166, 255, 0.5);
    color: #a5d6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
}

/* Page exit animation */
@keyframes pageExit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(10px);
    }
}

.page-exiting {
    animation: pageExit 0.4s ease-in forwards;
    pointer-events: none;
}

/* Tournaments Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Tournament Card Styles */
.tournament-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tournament-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(88, 166, 255, 0.25);
    border-color: #58a6ff;
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tournament-game {
    font-size: 12px;
    font-weight: 700;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.15);
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tournament-date {
    font-size: 12px;
    color: #8b949e;
    font-weight: 500;
}

.tournament-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.tournament-card:hover h2 {
    color: #58a6ff;
}

.tournament-team {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 12px;
}

.tournament-placement {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.placement-label {
    font-size: 12px;
    color: #8b949e;
    font-weight: 500;
}

.placement-value {
    font-size: 14px;
    font-weight: 700;
}

.placement-winner {
    background: rgba(56, 139, 68, 0.2);
    border: 1px solid rgba(56, 139, 68, 0.4);
}

.placement-winner .placement-value {
    color: #3fb950;
}

.placement-second {
    background: rgba(187, 128, 9, 0.2);
    border: 1px solid rgba(187, 128, 9, 0.4);
}

.placement-second .placement-value {
    color: #d29922;
}

.placement-third {
    background: rgba(190, 75, 75, 0.2);
    border: 1px solid rgba(190, 75, 75, 0.4);
}

.placement-third .placement-value {
    color: #f85149;
}

.placement-regular {
    background: rgba(88, 166, 255, 0.15);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.placement-regular .placement-value {
    color: #79c0ff;
}

.tournament-description {
    font-size: 14px;
    color: #8b949e;
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.tournament-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.tournament-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.tournament-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tournament-link:hover::before {
    left: 100%;
}

.tournament-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.tournament-link:active {
    transform: translateY(0) scale(0.98);
}

.tournament-link.info {
  background: linear-gradient(135deg, #2b456c, #72a1ca);
  color: white;
  border: none;
}

.tournament-link.info:hover {
    background: linear-gradient(135deg, #2b456c, #72a1ca);
}

.tournament-link.website {
    background: rgba(88, 166, 255, 0.2);
    color: #79c0ff;
    border: 1px solid rgba(88, 166, 255, 0.4);
}

.tournament-link.website:hover {
    background: rgba(88, 166, 255, 0.3);
    border-color: rgba(88, 166, 255, 0.6);
}

.tournament-link.bracket {
    background: rgba(139, 148, 158, 0.2);
    color: #c9d1d9;
    border: 1px solid rgba(139, 148, 158, 0.4);
}

.tournament-link.bracket:hover {
    background: rgba(139, 148, 158, 0.3);
    border-color: rgba(139, 148, 158, 0.6);
}

/* Teammates section */
.tournament-teammates {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(88, 166, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(88, 166, 255, 0.15);
}

.teammates-label {
    display: block;
    font-size: 11px;
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.teammates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.teammate-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(88, 166, 255, 0.15);
    color: #79c0ff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.teammate-badge:hover {
    background: rgba(88, 166, 255, 0.25);
    color: #a5d6ff;
    transform: translateY(-1px);
}

/* Responsive for tournaments */
@media (max-width: 1200px) {
    .tournaments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tournaments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tournament-card {
        padding: 20px;
    }
    
    .tournament-card h2 {
        font-size: 1.2rem;
    }
    
    .tournament-links {
        flex-direction: column;
    }
    
    .tournament-link {
        justify-content: center;
    }
}
