* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0e12;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #11171c;
    border-bottom: 2px solid hwb(0 1% 0%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: #fff;
}

.logo span {
    color: hwb(0 0% 0%);
    font-weight: 300;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
    color: hwb(0 14% 4%);
    border-bottom-color: #ffffff;
}

.hltv-link {
    background-color: #1e2a33;
    color: hwb(0 14% 4%);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #ffffff;
    transition: 0.3s;
}

.hltv-link:hover {
    background-color: hwb(0 100% 0%);
    color: #0a0e12;
}

main {
    padding: 2rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-left: 4px solid hwb(0 0% 0%);
    padding-left: 1rem;
}

h3 {
    color: hwb(0 14% 4%);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.team-header {
    background: linear-gradient(145deg, #1a1e24, #11171c);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.team-flag {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flag-icon {
    font-size: 3rem;
}

.team-flag h2 {
    font-size: 3rem;
    border: none;
    padding: 0;
    margin: 0;
}

.team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: hwb(0 100% 0%);
}

.beta {
    font-size: 0.8rem;
    background-color: hwb(0 14% 4%);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.ranking-chart {
    background-color: #1a1e24;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.chart-bars {
    margin: 1.5rem 0;
}

.bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bar-label {
    width: 80px;
    color: #aaa;
}

.bar {
    background-color: hwb(0 14% 4%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
}

.chart-note {
    color: #aaa;
    font-size: 0.9rem;
    font-style: italic;
}

.upcoming-matches {
    background-color: #1a1e24;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.matches-list {
    list-style: none;
}

.matches-list li {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #333;
    gap: 1rem;
}

.matches-list li:last-child {
    border-bottom: none;
}

.match-date {
    color: #aaa;
    min-width: 70px;
}

.match-vs {
    color: hwb(0 14% 4%);
    font-weight: bold;
}

.match-team {
    font-weight: 500;
}

.btn-small {
    display: inline-block;
    margin-top: 1rem;
    color: hwb(0 14% 4%);
    text-decoration: none;
    font-weight: 500;
}

.btn-small:hover {
    text-decoration: underline;
}

.streams-section {
    background-color: #1a1e24;
    padding: 1.5rem;
    border-radius: 8px;
}

.streams-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stream-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: #11171c;
    border-radius: 4px;
}

.streamer {
    font-weight: 500;
    color: white;
}

.viewers {
    color: #aaa;
}

.roster-note {
    margin-bottom: 2rem;
    color: #aaa;
    background-color: #1a1e24;
    padding: 1rem;
    border-radius: 4px;
}

.roster-note a {
    color: hwb(0 14% 4%);
    text-decoration: none;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.player-card {
    background-color: #1a1e24;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 2px solid hwb(0 14% 4%);
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.player-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.player-card h3 {
    color: hwb(0 14% 4%);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.player-role {
    color: #ccc;
    margin-bottom: 0.3rem;
}

.player-age {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hltv-profile {
    color: hwb(0 14 4);
    text-decoration: none;
    font-size: 0.9rem;
}

.hltv-profile:hover {
    text-decoration: underline;
}
.match-card {
    background-color: #1a1e24;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.match-card.upcoming {
    border-left: 4px solid hwb(0 14% 4%);
}

.match-card.past {
    border-left: 4px solid #555;
}

.match-info {
    color: #aaa;
    font-size: 0.9rem;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.team {
    min-width: 100px;
    text-align: center;
}

.vs {
    color: hwb(0 14% 4%);
    font-weight: bold;
}

.score {
    font-weight: bold;
    padding: 0.2rem 1rem;
    border-radius: 4px;
}

.score.win {
    background-color: #1e4a2b;
    color: #8bc34a;
}

.score.lose {
    background-color: #4a1e1e;
    color: #ff6b6b;
}

.match-event {
    color: #888;
    font-size: 0.9rem;
}

.btn-detail {
    background-color: hwb(0 14% 4%);
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-detail:hover {
    background-color: white;
}
footer {
    background-color: #11171c;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #222;
    text-align: center;
    color: #aaa;
}

footer a {
    color: hwb(0 14% 4%);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .team-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .team-stats {
        justify-content: center;
    }
    
    .match-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .match-teams {
        flex-wrap: wrap;
        justify-content: center;
    }
    .player-photo {
    width: 200px;           
    height: 200px;          
    object-fit: cover;      
    border-radius: 50%;     
    border: 3px solid hwb(0 14% 4%); 
    margin-bottom: 1rem;    
    display: block;         
    margin-left: auto;
    margin-right: auto;     
    }

.team-text {
    font-size: 1.8rem;      
    color: hwb(0 100% 0%);          
    font-weight: 300;        
    line-height: 1;          
    } 
}
.btn-refresh {
    background-color: hwb(0 14% 4%);
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background-color: white;
}


.streams-list.refreshing {
    opacity: 0.7;
    transition: opacity 0.3s;
}


.countdown-container {
    background: linear-gradient(145deg, #1e2a33, #11171c);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.countdown-block {
    background: #2a6e9b;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    min-width: 80px;
}


.chart-periods {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.period-btn {
    background: #11171c;
    color: #aaa;
    border: 1px solid #333;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.period-btn.active {
    background: hwb(0 14 4);
    color: white;
    border-color: white;
}
.match-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #11171c;
    color: #aaa;
    border: 1px solid #333;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #2a6e9b;
    color: white;
    border-color: #2a6e9b;
}
.platform-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.platform-indicator.twitch {
    background-color: #9146FF;
}

.platform-indicator.youtube {
    background-color: #FF0000;
}
.player-tooltip {
    position: absolute;
    background: #11171c;
    border: 1px solid #2a6e9b;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.player-card {
    position: relative;
}
.stat-value.updating {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #2a6e9b; }
    100% { transform: scale(1); }
}
.notification-btn {
    background: none;
    border: 1px solid #2a6e9b;
    color: #2a6e9b;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.notification-btn:hover {
    background: #2a6e9b;
    color: white;
}
.days-left {
    color: #2a6e9b;
    font-size: 0.8rem;
    margin-left: 5px;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo img {
    height: 100px;
    width: 100px;
}

.team-text {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 300;
    line-height: 1;
}