* {
    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;
}
.player-rating {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-mess {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    background-image: 
        repeating-linear-gradient(45deg, #ff3333 0px, #ff3333 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(135deg, #ff3333 0px, #ff3333 2px, transparent 2px, transparent 8px);
    background-size: 30px 30px;
}

.dirt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 50%, rgba(0,0,0,0.3) 0%, transparent 50%),
               radial-gradient(circle at 80% 70%, rgba(255,51,51,0.1) 0%, transparent 40%),
               radial-gradient(circle at 20% 80%, rgba(0,0,0,0.4) 0%, transparent 60%);
    pointer-events: none;
}

.scribble {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M10 10 Q 30 5, 40 20 T 70 30" stroke="rgba(255,51,51,0.1)" fill="none" stroke-width="1"/><path d="M80 80 Q 60 70, 50 90 T 20 85" stroke="rgba(255,51,51,0.1)" fill="none" stroke-width="1"/><path d="M90 20 Q 70 40, 60 30 T 30 50" stroke="rgba(255,51,51,0.1)" fill="none" stroke-width="1"/></svg>');
    background-repeat: repeat;
    opacity: 0.2;
    pointer-events: none;
}

.graffiti {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: rgba(255, 51, 51, 0.2);
    font-size: 5rem;
    font-weight: 900;
    transform: rotate(-10deg);
    z-index: -1;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Impact', sans-serif;
}

.graffiti2 {
    position: fixed;
    top: 50px;
    right: 20px;
    color: rgba(255, 51, 51, 0.15);
    font-size: 4rem;
    font-weight: 900;
    transform: rotate(15deg);
    z-index: -1;
    pointer-events: none;
    font-family: 'Arial Black', sans-serif;
}
body {
    overflow-x: hidden;
}

.player-card:hover {
    animation: shake 0.2s ease-in-out 0s 2;
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

h2 {
    position: relative;
    overflow: hidden;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff0000, #ff0000, #ff0000);
    transform: translateX(-100%);
    animation: slideBorder 3s ease-in-out infinite;
}
@keyframes slideBorder {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

.blink-text {
    animation: blink 1s step-start infinite;
    color: #ff6666;
    font-weight: bold;
}
@keyframes blink {
    50% { opacity: 0.3; }
}

.match-card, .player-card, .creator-card {
    position: relative;
}
.match-card::before, .player-card::before, .creator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 0 0, rgba(255,51,51,0.2), transparent);
    pointer-events: none;
}
.match-card::after, .player-card::after, .creator-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 100% 100%, rgba(255,51,51,0.2), transparent);
    pointer-events: none;
}

button, .btn-detail, .hltv-link, .filter-btn {
    transition: all 0.05s linear;
}
button:active, .btn-detail:active, .hltv-link:active {
    transform: translate(2px, 2px);
}

.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ff3333;
    z-index: 9999;
    transition: width 0.3s ease;
}

body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="6" fill="%23ff3333" stroke="white" stroke-width="1"/><circle cx="8" cy="8" r="2" fill="white"/></svg>') 8 8, auto;
}

.glow-border {
    transition: all 0.2s;
}
.glow-border:hover {
    box-shadow: 0 0 15px rgba(255,51,51,0.5);
    border-color: #ff6666;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2s steps(30, end);
}
@keyframes typing {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.random-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}