:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #27ae60;
    --gray-color: #95a5a6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo .tagline {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: -5px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-color);
    color: white;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background: var(--danger-color);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Основные секции */
.section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.section h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Герой секция */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.hero-stats {
    display: grid;
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Игроки онлайн */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.player-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.player-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.player-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.player-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.player-meta {
    font-size: 0.9rem;
    color: var(--gray-color);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.player-status {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.status-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.status-badge.muted {
    background: var(--danger-color);
    color: white;
}

.status-badge.deafened {
    background: var(--warning-color);
    color: white;
}

.status-badge.recording {
    background: var(--success-color);
    color: white;
}

.status-badge.commander {
    background: var(--primary-color);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Каналы */
.channels-tree {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.channel-item {
    margin: 5px 0;
}

.channel-header {
    padding: 10px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.channel-header:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.channel-name {
    flex-grow: 1;
    font-weight: 500;
}

.channel-clients {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.channel-topic {
    color: var(--gray-color);
    cursor: help;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    text-transform: capitalize;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

/* Подключение */
.connection-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.connection-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.connection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.connection-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.server-address {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

.server-address input {
    flex-grow: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-family: monospace;
}

.server-address button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.server-address button:hover {
    background: #2980b9;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

.instructions {
    text-align: left;
    margin-top: 1rem;
}

.instructions li {
    margin-bottom: 10px;
}

/* Правила */
.rules-list {
    display: grid;
    gap: 1rem;
}

.rule-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.rule-item:hover {
    transform: translateX(10px);
}

.rule-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rule-content h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

/* Контакты */
.contacts {
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.server-version {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

/* Футер */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-stats {
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        grid-template-columns: 1fr;
    }
    
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .connection-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-stats {
        text-align: center;
    }
}
/* РњРµР»РєРёРµ РєР°СЂС‚РѕС‡РєРё РёРіСЂРѕРєРѕРІ */
.players-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.player-card-small {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
}

.player-card-small:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.player-avatar-small {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.player-info-small h5 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 5 СЃС‚РѕР»Р±С†РѕРІ РґР»СЏ РёРіСЂРѕРєРѕРІ */
@media (min-width: 1200px) {
    .players-grid-small {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .players-grid-small {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .players-grid-small {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .players-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* РљР°РЅР°Р»С‹ РІ СЃРµС‚РєРµ 5 РєРѕР»РѕРЅРѕРє */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.channel-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 10px;
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
}

.channel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.channel-name {
    font-weight: 500;
    color: var(--dark-color);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
}

.channel-clients {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
}
/* Р¦РІРµС‚ С‚РµРєСЃС‚Р° РІ РєР°РЅР°Р»Р°С… */
.channel-card .channel-name {
    color: #2c3e50; /* РўРµРјРЅРѕ-СЃРёРЅРёР№ */
}

.channel-card:hover .channel-name {
    color: #3498db; /* РЎРёРЅРёР№ РїСЂРё РЅР°РІРµРґРµРЅРёРё */
}
.channel-card .channel-clients {
    color: #2c3e50 !important; /* РўРµРјРЅС‹Р№ С†РІРµС‚ */
    font-weight: bold;
}
/* Мелкие мета-данные игроков */
.player-meta-small {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 3px;
}

/* Навигация в шапке */
.nav {
    display: flex;
    gap: 15px;
}

.nav a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-color);
    color: white;
}

/* Герой секция */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Карточки подключения */
.connection-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.connection-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.instructions {
    text-align: left;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.instructions li {
    margin-bottom: 8px;
}

/* Футер */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        margin: 1rem 0;
    }
    
    .connection-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
/* Время в шапке */
.server-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    color: var(--dark-color);
    font-weight: 500;
}

.server-time i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .server-time {
        margin-left: 0;
        margin-top: 10px;
    }
}
/* Дерево каналов */
.channels-tree {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
}

.channel-tree-item {
    margin: 5px 0;
}

.channel-tree-header {
    padding: 10px 15px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    border-left: 3px solid var(--primary-color);
}

.channel-tree-header:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.channel-tree-header i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.channel-tree-name {
    flex-grow: 1;
    font-weight: 500;
    color: var(--dark-color);
}

.channel-tree-clients {
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

/* Линии иерархии */
.channel-tree-item {
    position: relative;
}

.channel-tree-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 15px;
    height: 1px;
    background: var(--gray-color);
    opacity: 0.5;
}

.channel-tree-item:first-child::before {
    top: 10px;
    height: 20px;
}

.channel-tree-item:last-child::before {
    height: 20px;
}

.channel-tree-item::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 10px;
    width: 1px;
    height: 100%;
    background: var(--gray-color);
    opacity: 0.5;
}

.channel-tree-item:last-child::after {
    height: 20px;
}

/* Убираем линии для корневых элементов */
.channel-tree-item[style*="margin-left: 0px"]::before,
.channel-tree-item[style*="margin-left: 0px"]::after {
    display: none;
}
/* Сетка дерева каналов 4 колонки */
.channels-tree-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.channels-tree-column {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
}

.channels-tree-column::-webkit-scrollbar {
    width: 6px;
}

.channels-tree-column::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}
/* Простое дерево каналов */
.channel-tree-simple {
    margin: 5px 0;
}

.channel-tree-simple-header {
    padding: 8px 10px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.channel-tree-simple-header:hover {
    background: #f0f7ff;
    transform: translateX(3px);
}

.channel-tree-simple-header i {
    color: var(--primary-color);
    font-size: 0.8rem;
    width: 16px;
}

.channel-tree-simple-name {
    flex-grow: 1;
    color: var(--dark-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-tree-simple-clients {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}
/* Обертка дерева каналов */
.channels-tree-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border-radius: var(--border-radius);
    background: var(--light-color);
    padding: 15px;
}

.channels-tree-wrapper::-webkit-scrollbar {
    width: 8px;
}

.channels-tree-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Дерево каналов с вложенностью */
.channel-tree-item {
    margin: 3px 0;
}

.channel-tree-content {
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border-left: 3px solid var(--primary-color);
}

.channel-tree-content:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

/* Отступы для уровней */
.channel-children {
    margin-left: 25px;
    position: relative;
}

.channel-children::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--light-color);
}

.channel-children .channel-tree-content {
    border-left-color: #3498db;
    margin-left: 5px;
}

.channel-children .channel-children .channel-tree-content {
    border-left-color: #2ecc71;
}

.channel-children .channel-children .channel-children .channel-tree-content {
    border-left-color: #f39c12;
}

.channel-tree-content i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.channel-tree-name {
    flex-grow: 1;
    color: var(--dark-color);
}

.channel-tree-clients {
    background: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}
/* Отступы для вложенных каналов */
.channel-tree-item[data-level="1"] .channel-tree-content {
    margin-left: 20px;
    border-left-color: #3498db;
}

.channel-tree-item[data-level="2"] .channel-tree-content {
    margin-left: 40px;
    border-left-color: #2ecc71;
}

.channel-tree-item[data-level="3"] .channel-tree-content {
    margin-left: 60px;
    border-left-color: #f39c12;
}

.channel-tree-item[data-level="4"] .channel-tree-content {
    margin-left: 80px;
    border-left-color: #9b59b6;
}

.channel-tree-item[data-level="5"] .channel-tree-content {
    margin-left: 100px;
    border-left-color: #e74c3c;
}

/* Убираем старые инденты */
.channel-indent {
    display: none;
}/* РљРЅРѕРїРєРё СЃРєР°С‡РёРІР°РЅРёСЏ */
.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.download-links .btn-sm {
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.download-links .btn-sm:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.download-links .btn-sm i {
    font-size: 1.1rem;
}
/* РЎС‚РёР»Рё РёРЅСЃС‚СЂСѓРєС†РёРё */
.instructions {
    list-style: none;
    counter-reset: instruction-counter;
    padding-left: 0;
    margin-top: 15px;
}

.instructions li {
    counter-increment: instruction-counter;
    margin-bottom: 12px;
    padding-left: 35px;
    position: relative;
    color: var(--dark-color);
    line-height: 1.5;
}

.instructions li::before {
    content: counter(instruction-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.instructions code {
    background: var(--light-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--dark-color);
    border: 1px solid #ddd;
}
.instructions li {
    counter-increment: instruction-counter;
    margin-bottom: 12px;
    padding-left: 45px; /* РЈРІРµР»РёС‡РёР»Рё СЃ 35px */
    position: relative;
    color: var(--dark-color);
    line-height: 1.5;
}

.instructions li::before {
    left: 10px; /* РЎРґРІРёРЅСѓР»Рё С†РёС„СЂСѓ РїСЂР°РІРµРµ */
}
/* Мини-чат */
.mini-chat {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 15px;
    background: white;
}

.mini-chat h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--light-color);
    border-radius: 6px;
}

.chat-message {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.chat-ip {
    color: var(--primary-color);
    font-weight: bold;
}

.chat-text {
    color: var(--dark-color);
}

.chat-input {
    display: flex;
    gap: 10px;
}
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.channel-link {
    text-decoration: none;
    color: inherit;
}

.channel-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Темная тема */
body.dark-theme {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: #ecf0f1;
}

body.dark-theme .section,
body.dark-theme .stat-card,
body.dark-theme .player-card-small,
body.dark-theme .channel-tree-content,
body.dark-theme .channel-card,
body.dark-theme .connection-card,
body.dark-theme .mini-chat {
    background: #34495e;
    color: #ecf0f1;
}

body.dark-theme .header {
    background: rgba(44, 62, 80, 0.95);
}

body.dark-theme .nav a {
    color: #ecf0f1;
}

body.dark-theme .channel-tree-clients,
body.dark-theme .player-meta-small {
    color: #bdc3c7;
}

body.dark-theme .footer {
    background: #1a2530;
}
body.dark-theme {
    --dark-color: #ecf0f1;
    --gray-color: #bdc3c7;
    --light-color: #34495e;
}

body.dark-theme .channel-tree-name,
body.dark-theme .player-info-small h5,
body.dark-theme h2, 
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme p,
body.dark-theme span:not(.channel-tree-clients):not(.player-meta-small) {
    color: #ecf0f1 !important;
}

body.dark-theme .stat-card h3,
body.dark-theme .stat-card p {
    color: white !important;
}

body.dark-theme input,
body.dark-theme textarea {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #4a6278;
}
/* Переключатель в правом нижнем углу */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
/* Мобильные устройства */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .nav a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card h3 {
        font-size: 1.2rem;
    }
    
    .players-grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .player-card-small {
        padding: 6px;
    }
    
    .channels-tree-wrapper {
        max-height: 400px;
    }
    
    .channel-tree-content {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .connection-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .download-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .mini-chat .chat-input {
        flex-direction: column;
    }
    
    .mini-chat .chat-input input {
        width: 100% !important;
        margin-bottom: 8px;
    }
    
    .server-status {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .server-time {
        margin-left: 0;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .players-grid-small {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .channel-tree-clients {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .instructions li {
        padding-left: 35px;
        font-size: 0.9rem;
    }
}
@media (max-width: 768px) {
    .players-grid-small {
        display: none;
    }
    
    #players h2::after {
        content: "";
        font-size: 0.8rem;
        color: var(--primary-color);
        margin-left: 10px;
    }
    
    #players {
        cursor: pointer;
    }
    
    #players.active .players-grid-small {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 15px;
    }
}
@media (max-width: 768px) {
    .players-grid-small {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }
    
    .player-card-small {
        padding: 2px;
        font-size: 0.6rem;
    }
    
    .player-avatar-small {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
    
    .player-info-small h5 {
        font-size: 0.6rem;
        line-height: 1.2;
    }
    
    .player-meta-small {
        display: none;
    }
}
@media (max-width: 768px) {
    .channels-tree-wrapper {
        display: none;
        max-height: 300px;
    }
    
    #channels h2::after {
        content: "";
        font-size: 0.8rem;
        color: var(--primary-color);
        margin-left: 10px;
    }
    
    #channels {
        cursor: pointer;
    }
    
    #channels.active .channels-tree-wrapper {
        display: block;
        margin-top: 15px;
    }
    
    .channel-tree-content {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .channel-tree-clients {
        font-size: 0.65rem;
        padding: 1px 5px;
    }
}
@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo .tagline {
        font-size: 0.8rem;
    }
    
    .nav {
        margin: 5px 0;
    }
    
    .nav a {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .server-status {
        font-size: 0.8rem;
    }
    
    .server-time {
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .connection-card {
        margin: 0 5px;
        padding: 15px;
    }
    
    .connection-info {
        gap: 15px;
        padding: 0 5px;
    }
    
    .server-address {
        margin: 0;
    }
    
    .server-address input {
        width: calc(100% - 50px);
    }
    
    .instructions {
        padding-left: 1rem;
    }
    
    .instructions li {
        margin-bottom: 8px;
        padding-left: 40px;
    }
}
body.dark-theme .section,
body.dark-theme .stat-card,
body.dark-theme .player-card-small,
body.dark-theme .channel-tree-content,
body.dark-theme .channel-card,
body.dark-theme .connection-card,
body.dark-theme .mini-chat {
    background: #34495e;
    border: 1px solid #4a6278 !important;
    color: #ecf0f1;
}

body.dark-theme .hero-stats .stat-card {
    border: 2px solid #4a6278 !important;
}

body.dark-theme .connection-info .connection-card {
    border: 2px solid #4a6278 !important;
}

body.dark-theme .chat-messages {
    border: 1px solid #4a6278 !important;
}