/* Основные контейнеры */
.container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: var(--container-side-padding);
    min-height: 100vh;
    padding-top: 110px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(20, 25, 40, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    position: relative;
    z-index: 12;
    overflow: visible;
    padding: 40px 20px 10px;
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding-top: 30px;
    box-shadow: var(--shadow-glow);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, #5c2b84, #1e1a2b 80%);
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    opacity: 0.6;
    border-bottom: 3px solid rgba(255, 255, 255, 0.05);
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-cyan) 10%,
            var(--accent-pink) 50%,
            var(--accent-cyan) 90%,
            transparent 100%);
    background-size: 100% auto;
    background-position: center;
    animation: shimmerPulse 6s ease-in-out infinite;
    z-index: 2;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}



header h1 {
    font-family: 'Carter One', display;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    background: linear-gradient(135deg,
            #00f2ff 0%,
            #ff1493 25%,
            #8a2be2 50%,
            #00bfff 75%,
            #00f2ff 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
    letter-spacing: 0.05em;
    animation: textGlow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 5;
    margin: 0;
    line-height: 1.1;

}

header img {
    position: relative;
    z-index: 14;
    max-width: min(280px, 70vw);
    height: auto;
    margin: -100px auto 0;
    display: block;

    /* Улучшенные эффекты свечения */
    filter:
        drop-shadow(0 0 20px rgba(107, 70, 193, 0.5)) drop-shadow(0 0 40px rgba(0, 242, 255, 0.3));

    transition: var(--transition);
    cursor: pointer;
    animation: floatingGlow 4s ease-in-out infinite;
}

.rats-video {
    position: absolute;
    left: 0;
    bottom: 0;
    height: auto;
    width: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rats-video.is-active {
    opacity: 0.2;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.25);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.1rem;
}

.social-links i {
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 108, 66, 0.5);
    transform: translateY(-3px);
}

.header-quick-actions {
    position: absolute;
    right: 18px;
    bottom: 14px;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-player-link,
.channel-stats-link {
    position: relative;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(116, 222, 255, 0.28);
    background:
        linear-gradient(135deg, rgba(10, 22, 46, 0.92), rgba(32, 18, 58, 0.88));
    color: #d8f8ff;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 8px 18px rgba(3, 8, 22, 0.38),
        0 0 18px rgba(0, 191, 255, 0.12);
    backdrop-filter: blur(10px);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.admin-player-link {
    gap: 6px;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
}

.admin-player-link::before {
    content: '▶';
    font-size: 0.62rem;
    color: #79ddff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
}

.channel-stats-link {
    width: 30px;
    height: 30px;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.82rem;
    color: #9ce8ff;
}

.channel-stats-link i {
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.admin-player-link:hover,
.admin-player-link:focus-visible,
.channel-stats-link:hover,
.channel-stats-link:focus-visible {
    border-color: rgba(116, 222, 255, 0.52);
    background:
        linear-gradient(135deg, rgba(16, 34, 66, 0.96), rgba(43, 22, 73, 0.9));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 10px 22px rgba(3, 8, 22, 0.45),
        0 0 22px rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 768px) {
    .header-quick-actions {
        position: static;
        justify-content: center;
        margin-top: 14px;
    }
}

/* Основная сетка */
.main-content {
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 30px;
    align-items: start;
}

/* Левая панель */
.left-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 0, 0, 0.1);
    box-shadow: var(--shadow-glow);
    position: relative;
}

/* Правая панель */
.right-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 0, 0, 0.1);
    box-shadow: var(--shadow-glow);
    grid-column: 2;
}

/* Контейнер правых панелей */
.side-panels {
    display: flex;
    flex-direction: column;
    gap: 30px;
    grid-column: 2;
}
