/* === ПЕРЕКЛЮЧАТЕЛЬ ТЕМ === */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-switcher.visible {
    display: block;
}

.theme-switcher h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
    font-size: 13px;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theme-preview {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}:root {
    --bg-dark: #0a0a0f;
    --bg-gradient-1: #0a0a0f;
    --bg-gradient-2: #151525;
    --bg-gradient-3: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --accent-gold: #c9a227;
    --accent-red: #8b0000;
    --accent-green: #2d5a27;
    --accent-blue: #1e3a5f;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
}

body.theme-party {
    --bg-dark: #1a0a2e;
    --accent-gold: #9333ea;
    --accent-green: #7c3aed;
    --accent-red: #a855f7;
}

body.theme-winter {
    --bg-dark: #0a1628;
    --accent-gold: #38bdf8;
    --accent-green: #0ea5e9;
    --accent-red: #0284c7;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

/* === ПЛАВНЫЙ ТЁМНЫЙ ГРАДИЕНТ ФОНА === */
body {
    background: linear-gradient(
        135deg,
        var(--bg-gradient-1) 0%,
        var(--bg-gradient-2) 50%,
        var(--bg-gradient-3) 100%
    );
    background-size: 300% 300%;
    animation: smoothGradient 30s ease-in-out infinite;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; /* Отступ для челки */
}

@keyframes smoothGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

body.theme-party {
    background: linear-gradient(135deg, #0a0515 0%, #1a0a2e 25%, #2e1065 50%, #1a0a2e 75%, #0a0515 100%);
    background-size: 300% 300%;
    animation: smoothGradient 30s ease-in-out infinite;
}

body.theme-winter {
    background: linear-gradient(135deg, #050a15 0%, #0a1628 25%, #0c4a6e 50%, #0a1628 75%, #050a15 100%);
    background-size: 300% 300%;
    animation: smoothGradient 30s ease-in-out infinite;
}

/* === ФОНОВЫЕ СФЕРЫ === */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    z-index: 0;
    animation: floatOrb 25s infinite ease-in-out alternate;
    pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent-red); top: -150px; left: -150px; }
.orb-2 { width: 400px; height: 400px; background: var(--accent-blue); bottom: -100px; right: -100px; animation-delay: -8s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.15); }
}

/* === ГИРЛЯНДА === */
.garland {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    z-index: 1001;
    pointer-events: none;
}
.bulb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: glow 1.5s infinite alternate;
    box-shadow: 0 0 10px currentColor;
}
@keyframes glow {
    0% { opacity: 0.3; transform: scale(0.8); filter: brightness(0.5); }
    100% { opacity: 1; transform: scale(1.2); filter: brightness(1.5); }
}

/* === СНЕГ === */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(255, 255, 255, 0.7);
    animation: fall linear infinite, sway ease-in-out infinite alternate;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}
@keyframes fall { to { transform: translateY(110vh); } }
@keyframes sway { from { margin-left: -15px; } to { margin-left: 15px; } }

/* === ЧАСТИЦЫ ПРИ КЛИКЕ === */
.click-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particle-explode 0.8s cubic-bezier(0, .9, .57, 1) forwards;
}
@keyframes particle-explode {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* === СЛЕД МЫШИ === */
.spark {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: transform, opacity;
}

/* === ЗАМОРОЗКА === */
.frozen {
    animation: shiver 0.3s ease-in-out;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 30px rgba(56, 189, 248, 0.4) !important;
    backdrop-filter: blur(20px) brightness(1.15) !important;
}
.frozen::after {
    content: '❄️';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: fadeOut 1.5s forwards;
    pointer-events: none;
}
@keyframes shiver {
    0%, 100% { transform: translateY(-2px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-1deg); }
    75% { transform: translateY(-2px) rotate(1deg); }
}
@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5) translateY(-10px); }
}

/* === КОНТЕЙНЕР И СТЕКЛО === */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.03);
}

/* === ХЕДЕР === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 30px;
}
.main-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-gold), #fff, var(--accent-gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine {
    to { background-position: 200% center; }
}

.btn {
    background: linear-gradient(135deg, var(--accent-gold), #a88420);
    color: #0a0a0f;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2);
}
.btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}
.btn:active {
    transform: scale(0.95);
}

/* === ТАЙМЕР === */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.time-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 12px;
    border-radius: 16px;
    min-width: 80px;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}
.time-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.time-block .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 0 15px rgba(201, 162, 39, 0.3);
}
.time-block .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* === ЧЕЛКА (ПЛЕЕР СВЕРХУ) === */
.player-bangs {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 700px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.player-bangs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    gap: 12px;
}

.now-playing-mini {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.track-mini {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-mini {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.controls-mini button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.controls-mini button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
}

.play-btn-mini {
    font-size: 1.4rem !important;
    color: var(--accent-gold) !important;
}

.expand-indicator {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.player-bangs-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 16px;
}

.player-bangs.expanded .player-bangs-body {
    max-height: 400px;
    padding: 0 16px 16px;
}

.progress-bar-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.progress-track-mini {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-track-mini:hover {
    height: 6px;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

.playlist-bangs {
    list-style: none;
    max-height: 250px;
    overflow-y: auto;
}

.playlist-bangs li {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.playlist-bangs li:hover {
    background: rgba(255, 255, 255, 0.06);
}

.playlist-bangs li.active {
    background: rgba(201, 162, 39, 0.15);
    color: var(--accent-gold);
    border-left: 3px solid var(--accent-gold);
}

.playlist-bangs li img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

/* === ЭКВАЛАЙЗЕР === */
.eq-bar {
    width: 3px;
    background-color: var(--accent-green);
    border-radius: 2px;
    height: 20%;
    transition: height 0.1s ease;
}

/* === ЧАТ === */
.chat-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.chat-messages {
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}

.chat-input-area {
    text-align: center;
}
.locked-message {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.letter-input-area {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.letter-input {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
    color: white;
    outline: none;
}
.letter-input:focus {
    border-color: var(--accent-gold);
}

.photo-upload {
    margin-top: 16px;
    padding: 16px;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.02);
}
.photo-upload:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: rgba(201, 162, 39, 0.05);
}

/* === ПОДАРОК === */
.magic-gift {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}
.magic-gift:hover {
    transform: scale(1.1) rotate(5deg);
}
.gift-box {
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
}
.gift-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
    background: var(--accent-gold);
}
.gift-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 12px;
    background: var(--accent-gold);
}
.gift-lid {
    position: absolute;
    top: -10px;
    left: -5px;
    width: 70px;
    height: 15px;
    background: var(--accent-red);
    border-radius: 4px;
    transform-origin: bottom left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.gift-lid::before {
    content: '🎀';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}
.magic-gift.opened .gift-lid {
    transform: rotate(-110deg) translateY(-10px);
}

.prediction-toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-gold);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--accent-gold);
    font-weight: bold;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
    max-width: 250px;
    text-align: center;
}
.prediction-toast.show {
    transform: translateX(0);
}

/* === СВЕЧИ НА ЗАДНЕМ ФОНЕ === */
#candles-bg {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 1;
    opacity: 0.6;
    pointer-events: none;
}

.candle {
    width: 30px;
    height: 80px;
    background: linear-gradient(to bottom, #fff5e6, #f5deb3);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.candle .flame {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    background: radial-gradient(circle, #fbbf24, #f59e0b, #ef4444);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.3s infinite alternate;
    box-shadow: 0 0 20px #fbbf24;
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
    100% { transform: translateX(-50%) scale(1.1) rotate(2deg); }
}

/* === ЧАСЫ НА ЗАДНЕМ ФОНЕ === */
#clock-bg {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-gold), #a88420);
    border-radius: 50%;
    border: 6px solid #8b4513;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    background: #0a0a0f;
    transform-origin: bottom center;
    border-radius: 2px;
}

.clock-hand.hour {
    width: 4px;
    height: 30px;
    margin-left: -2px;
    margin-top: -30px;
}

.clock-hand.minute {
    width: 3px;
    height: 40px;
    margin-left: -1.5px;
    margin-top: -40px;
}

/* === ЛЕТАЮЩИЙ КОНВЕРТ === */
.flying-envelope {
    position: fixed;
    font-size: 3rem;
    z-index: 9999;
    pointer-events: none;
    animation: flyAway 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes flyAway {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(50px, -300px) scale(0.2) rotate(20deg); opacity: 0; }
}

/* === СЧЁТЧИК ЁЛКИ === */
#tree-counter {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-weight: bold;
    z-index: 100;
    transition: transform 0.2s;
}

/* === КАСТОМНЫЙ КУРСОР === */
#custom-cursor {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    z-index: 9999;
    transition: transform 0.1s;
}

/* === СКРОЛЛБАР === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    body { padding-top: 70px; }
    
    .player-bangs {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
    
    .player-bangs-header { padding: 10px 12px; }
    .track-mini { font-size: 0.8rem; }
    .artist-mini { font-size: 0.7rem; }
    .controls-mini button { font-size: 1rem; padding: 2px 6px; }
    .play-btn-mini { font-size: 1.2rem !important; }
    
    .main-title { font-size: 1.5rem; }
    .time-block { min-width: 65px; padding: 12px 8px; }
    .time-block .number { font-size: 1.5rem; }
    .magic-gift { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .gift-lid { width: 60px; }
    #tree-counter { top: 80px; right: 10px; font-size: 0.9rem; }
    .countdown-timer { gap: 8px; }
    
    #candles-bg { bottom: 10px; left: 10px; opacity: 0.4; }
    .candle { width: 20px; height: 60px; }
    .candle .flame { width: 14px; height: 20px; top: -18px; }
    
    #clock-bg { top: 80px; left: 10px; width: 80px; height: 80px; opacity: 0.4; }
}

@media (max-width: 480px) {
    body { padding-top: 60px; }
    .player-bangs-header { padding: 8px 10px; }
    .track-mini { font-size: 0.75rem; }
    .artist-mini { font-size: 0.65rem; }
    .controls-mini { gap: 4px; }
    .controls-mini button { font-size: 0.9rem; padding: 2px 4px; }
    .main-title { font-size: 1.2rem; }
    .btn { padding: 8px 14px; font-size: 0.9rem; }
    .glass-card { padding: 16px; }
    .chat-messages { height: 250px; }
    }
/* === СЕВЕРНОЕ СИЯНИЕ === */
.aurora {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* Поверх фона */
    opacity: 0;
    transition: opacity 3s ease;
    overflow: hidden;
}

.aurora.visible {
    opacity: 1 !important;
}

.aurora-layer {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    filter: blur(60px);
    opacity: 0.7;
}

.aurora-layer:nth-child(1) {
    background: linear-gradient(135deg, 
        rgba(0, 255, 128, 0.5) 0%, 
        rgba(0, 200, 100, 0.3) 30%, 
        transparent 60%);
    animation: aurora-drift-1 12s ease-in-out infinite;
}

.aurora-layer:nth-child(2) {
    background: linear-gradient(225deg, 
        rgba(0, 200, 255, 0.4) 0%, 
        rgba(100, 0, 255, 0.3) 40%, 
        transparent 70%);
    animation: aurora-drift-2 18s ease-in-out infinite;
    animation-delay: -6s;
}

.aurora-layer:nth-child(3) {
    background: linear-gradient(45deg, 
        rgba(150, 255, 200, 0.35) 0%, 
        rgba(180, 50, 255, 0.25) 50%, 
        transparent 80%);
    animation: aurora-drift-3 15s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes aurora-drift-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(15%, -10%) rotate(8deg) scale(1.15);
    }
    66% {
        transform: translate(-10%, 15%) rotate(-5deg) scale(0.9);
    }
}

@keyframes aurora-drift-2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-15%, 10%) rotate(-10deg) scale(1.1);
    }
    66% {
        transform: translate(10%, -15%) rotate(7deg) scale(0.95);
    }
}

@keyframes aurora-drift-3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(10%, 10%) rotate(12deg) scale(1.2);
    }
}
/* === ПЛАВНАЯ СМЕНА ЦВЕТОВ ФОНА (через JS, без filter) === */
body {
    transition: background 3s ease;
}
/* === ПЕРЕКЛЮЧАТЕЛЬ ТЕМ === */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-switcher.visible {
    display: block;
}

.theme-switcher h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
    font-size: 13px;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theme-preview {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
/* === ПЕРЕКЛЮЧАТЕЛЬ ТЕМ === */
.theme-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-switcher.visible {
    display: block;
}

.theme-switcher h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #fff;
    font-size: 13px;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.theme-preview {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* === СТЕНА СЛАВЫ 2026 === */
.wof-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wof-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wof-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.wof-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.wof-stat-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(168, 85, 157, 0.2));
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.wof-stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.wof-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.wof-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wof-message-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid rgba(255, 215, 0, 0.5);
    transition: transform 0.2s;
}

.wof-message-item:hover {
    transform: translateX(10px);
}

.wof-message-rank {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    min-width: 50px;
    text-align: center;
}

.wof-message-content {
    flex: 1;
}

.wof-message-nick {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.wof-message-text {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1rem;
    word-break: break-word;
}

.wof-message-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wof-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wof-user-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s;
}

.wof-user-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.wof-user-item.winner {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.2), rgba(255, 255, 255, 0.05));
    border: 2px solid #FFD700;
}

.wof-user-rank {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.wof-user-nick {
    flex: 1;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.wof-user-stats {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wof-facts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wof-fact {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.wof-fact-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.wof-fact-text {
    flex: 1;
    color: var(--text-color);
    line-height: 1.6;
}

.wof-fact-text strong {
    color: #FFD700;
    display: block;
    margin-bottom: 5px;
}
/* === ПЕРЕКЛЮЧАТЕЛЬ ЭФФЕКТОВ ФОНА === */
.bg-effects-switcher {
    position: fixed;
    bottom: 200px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    z-index: 10001;
    display: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 180px;
}

.bg-effects-switcher.visible {
    display: block;
}

.bg-effects-switcher h3 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.effect-option {
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 13px;
    border: 2px solid transparent;
}

.effect-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.effect-option.active {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}
/* === ПЛАВАЮЩИЕ КНОПКИ (справа внизу) === */
.floating-btn {
    position: fixed;
    right: 20px;
    z-index: 10001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#wall-of-fame-btn { bottom: 20px; background: linear-gradient(135deg, #FFD700, #FFA500); }
#bg-effects-btn { bottom: 85px; background: linear-gradient(135deg, #a855f7, #ec4899); }
#theme-btn { bottom: 150px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); }

/* === CANVAS ЭФФЕКТОВ === */
#bg-effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Пропускает клики сквозь себя */
    z-index: 2; /* Поверх фона, но под UI */
}

/* === ПАНЕЛИ ПЕРЕКЛЮЧАТЕЛЕЙ === */
.switcher-panel {
    position: fixed;
    right: 80px; /* Слева от кнопок */
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px;
    z-index: 10002;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
}

.switcher-panel.visible { display: block; }

#theme-switcher { bottom: 150px; }
#bg-effects-switcher { bottom: 85px; }

.switcher-panel h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.switcher-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 14px;
    border: 1px solid transparent;
}

.switcher-option:hover { background: rgba(255,255,255,0.1); }
.switcher-option.active { background: rgba(255, 215, 0, 0.15); border-color: #FFD700; }

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* === СТЕНА СЛАВЫ (стили) === */
.wof-section { margin: 30px 0; padding: 25px; background: rgba(255,255,255,0.05); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }
.wof-section h2 { text-align: center; font-size: 2.2rem; background: linear-gradient(135deg, #FFD700, #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.wof-section h3 { font-size: 1.4rem; color: #fff; border-bottom: 2px solid rgba(255,215,0,0.3); padding-bottom: 10px; margin-bottom: 20px; }
.wof-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; margin: 20px 0; }
.wof-stat-card { text-align: center; padding: 20px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid rgba(255,215,0,0.2); }
.wof-stat-number { font-size: 2.5rem; font-weight: bold; color: #FFD700; }
.wof-stat-label { color: var(--text-secondary); font-size: 0.9rem; }
.wof-user-item, .wof-message-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 10px; transition: transform 0.2s; }
.wof-user-item:hover, .wof-message-item:hover { transform: translateX(5px); background: rgba(255,255,255,0.08); }
.wof-user-rank { font-size: 1.8rem; min-width: 40px; text-align: center; }
.wof-user-nick { flex: 1; font-weight: bold; color: #fff; }
.wof-user-stats { color: var(--text-secondary); font-size: 0.85rem; }
.wof-message-rank { font-size: 1.5rem; font-weight: bold; color: #FFD700; min-width: 40px; text-align: center; }
.wof-message-content { flex: 1; }
.wof-message-nick { font-weight: bold; color: #fff; margin-bottom: 4px; }
.wof-message-text { color: var(--text-color); word-break: break-word; }
.wof-message-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 5px; }
.wof-fact { display: flex; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 10px; }
.wof-fact-icon { font-size: 1.8rem; }
.wof-fact-text { color: var(--text-color); line-height: 1.5; }
.wof-fact-text strong { color: #FFD700; display: block; margin-bottom: 4px; }
/* === ПЛАВАЮЩИЕ КНОПКИ (z-index ниже подарка) === */
.floating-btn {
    position: fixed;
    right: 20px;
    z-index: 10001; /* Ниже подарка (10002) */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#wall-of-fame-btn { bottom: 20px; background: linear-gradient(135deg, #FFD700, #FFA500); }
#bg-effects-btn { bottom: 85px; background: linear-gradient(135deg, #a855f7, #ec4899); }
#theme-btn { bottom: 150px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); }

/* === CANVAS ЭФФЕКТОВ (z-index: 1, под всем UI) === */
#bg-effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* === КАСТОМНЫЙ КУРСОР (z-index: 9999, поверх всего кроме модалок) === */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

/* === ПАНЕЛИ ПЕРЕКЛЮЧАТЕЛЕЙ === */
.switcher-panel {
    position: fixed;
    right: 80px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px;
    z-index: 10002;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
}

.switcher-panel.visible { display: block; }

#theme-switcher { bottom: 150px; }
#bg-effects-switcher { bottom: 85px; }

.switcher-panel h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.switcher-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 14px;
    border: 1px solid transparent;
}

.switcher-option:hover { background: rgba(255,255,255,0.1); }
.switcher-option.active { background: rgba(255, 215, 0, 0.15); border-color: #FFD700; }

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* === ВОЛШЕБНЫЙ ПОДАРОК (z-index выше кнопок) === */
.magic-gift {
    z-index: 10002 !important;
}

/* === СТЕНА СЛАВЫ === */
.wof-section { margin: 30px 0; padding: 25px; background: rgba(255,255,255,0.05); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }
.wof-section h2 { text-align: center; font-size: 2.2rem; background: linear-gradient(135deg, #FFD700, #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.wof-section h3 { font-size: 1.4rem; color: #fff; border-bottom: 2px solid rgba(255,215,0,0.3); padding-bottom: 10px; margin-bottom: 20px; }
.wof-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; margin: 20px 0; }
.wof-stat-card { text-align: center; padding: 20px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid rgba(255,215,0,0.2); }
.wof-stat-number { font-size: 2.5rem; font-weight: bold; color: #FFD700; }
.wof-stat-label { color: var(--text-secondary); font-size: 0.9rem; }
.wof-user-item, .wof-message-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 10px; transition: transform 0.2s; }
.wof-user-item:hover, .wof-message-item:hover { transform: translateX(5px); background: rgba(255,255,255,0.08); }
.wof-user-rank { font-size: 1.8rem; min-width: 40px; text-align: center; }
.wof-user-nick { flex: 1; font-weight: bold; color: #fff; }
.wof-user-stats { color: var(--text-secondary); font-size: 0.85rem; }
.wof-message-rank { font-size: 1.5rem; font-weight: bold; color: #FFD700; min-width: 40px; text-align: center; }
.wof-message-content { flex: 1; }
.wof-message-nick { font-weight: bold; color: #fff; margin-bottom: 4px; }
.wof-message-text { color: var(--text-color); word-break: break-word; }
.wof-message-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 5px; }
.wof-fact { display: flex; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 10px; }
.wof-fact-icon { font-size: 1.8rem; }
.wof-fact-text { color: var(--text-color); line-height: 1.5; }
.wof-fact-text strong { color: #FFD700; display: block; margin-bottom: 4px; }
/* === ПЛАВАЮЩИЕ КНОПКИ === */
.floating-btn {
    position: fixed;
    right: 20px;
    z-index: 10001;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#wall-of-fame-btn { bottom: 20px; background: linear-gradient(135deg, #FFD700, #FFA500); }
#bg-effects-btn { bottom: 85px; background: linear-gradient(135deg, #a855f7, #ec4899); }
#theme-btn { bottom: 150px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); }

/* === CANVAS ЭФФЕКТОВ === */
#bg-effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* === КАСТОМНЫЙ КУРСОР === */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    mix-blend-mode: difference;
}

/* === ПАНЕЛИ ПЕРЕКЛЮЧАТЕЛЕЙ === */
.switcher-panel {
    position: fixed;
    right: 80px;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px;
    z-index: 10002;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
}

.switcher-panel.visible { display: block; }

#theme-switcher { bottom: 150px; }
#bg-effects-switcher { bottom: 85px; }

.switcher-panel h3 {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.switcher-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 6px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 14px;
    border: 1px solid transparent;
}

.switcher-option:hover { background: rgba(255,255,255,0.1); }
.switcher-option.active { background: rgba(255, 215, 0, 0.15); border-color: #FFD700; }

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* === СТЕНА СЛАВЫ === */
.wof-section { margin: 30px 0; padding: 25px; background: rgba(255,255,255,0.05); border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }
.wof-section h2 { text-align: center; font-size: 2.2rem; background: linear-gradient(135deg, #FFD700, #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px; }
.wof-section h3 { font-size: 1.4rem; color: #fff; border-bottom: 2px solid rgba(255,215,0,0.3); padding-bottom: 10px; margin-bottom: 20px; }
.wof-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; margin: 20px 0; }
.wof-stat-card { text-align: center; padding: 20px; background: rgba(255,255,255,0.05); border-radius: 12px; border: 1px solid rgba(255,215,0,0.2); }
.wof-stat-number { font-size: 2.5rem; font-weight: bold; color: #FFD700; }
.wof-stat-label { color: var(--text-secondary); font-size: 0.9rem; }
.wof-user-item, .wof-message-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 10px; transition: transform 0.2s; }
.wof-user-item:hover, .wof-message-item:hover { transform: translateX(5px); background: rgba(255,255,255,0.08); }
.wof-user-rank { font-size: 1.8rem; min-width: 40px; text-align: center; }
.wof-user-nick { flex: 1; font-weight: bold; color: #fff; }
.wof-user-stats { color: var(--text-secondary); font-size: 0.85rem; }
.wof-message-rank { font-size: 1.5rem; font-weight: bold; color: #FFD700; min-width: 40px; text-align: center; }
.wof-message-content { flex: 1; }
.wof-message-nick { font-weight: bold; color: #fff; margin-bottom: 4px; }
.wof-message-text { color: var(--text-color); word-break: break-word; }
.wof-message-meta { font-size: 0.8rem; color: var(--text-secondary); margin-top: 5px; }
.wof-fact { display: flex; gap: 15px; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 10px; margin-bottom: 10px; }
.wof-fact-icon { font-size: 1.8rem; }
.wof-fact-text { color: var(--text-color); line-height: 1.5; }
.wof-fact-text strong { color: #FFD700; display: block; margin-bottom: 4px; }
/* === КАНАВАС ФОНОВЫХ ЭФФЕКТОВ === */
#bg-effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* === ПЛАВАЮЩАЯ КНОПКА И ПАНЕЛИ ПЕРЕКЛЮЧЕНИЯ === */
.floating-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.switcher-panel {
    position: fixed;
    bottom: 160px;
    right: 30px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    z-index: 1001;
    width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.switcher-panel.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.switcher-header {
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.switcher-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.switcher-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.switcher-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.switcher-option.active {
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.theme-preview {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* === ТОСТ УВЕДОМЛЕНИЯ === */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent-gold);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s ease-out forwards, toastOut 0.3s ease-in 2.7s forwards;
    pointer-events: auto;
}

.toast.success { border-color: #2d5a27; }
.toast.error { border-color: #8b0000; }
.toast.info { border-color: #1e3a5f; }
.toast.warning { border-color: #c9a227; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}
/* === ПАНЕЛЬ СТИКЕРОВ === */
.sticker-panel {
    position: fixed;
    left: 10px;
    top: 10px;
    width: min(284px, calc(100vw - 20px));
    max-height: 72vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(50px, 1fr));
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10005;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.sticker-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sticker-item {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    color: inherit;
    font: inherit;
}

.sticker-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.06);
}

.sticker-item:disabled {
    opacity: 0.55;
    cursor: wait;
}

.sticker-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* === FIX: интерактивные панели === */
#theme-switcher, #bg-effects-switcher { z-index: 10001; }
#theme-switcher { bottom: 150px; right: 30px; }
#bg-effects-switcher { bottom: 85px; right: 30px; }
#sticker-panel { z-index: 10005; }

@media (max-width: 600px) {
    .sticker-panel {
        width: min(272px, calc(100vw - 20px));
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        max-height: 68vh;
    }

    .sticker-item {
        min-height: 48px;
    }
}



/* === V6: аккуратная композиция шапки и плеера === */
.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 26px;
}
.title-wrap { min-width: 0; }
.title-kicker { font-size: .68rem; letter-spacing: .24em; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.title-subtitle { margin-top: 4px; font-size: .76rem; color: rgba(255,255,255,.58); letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid rgba(255,255,255,.13); background: rgba(8,12,18,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 17px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.header-action { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; font-size: 1.15rem; }
.header-action.login-action { width: auto; padding: 0 14px; font-size: .86rem; }
.player-bangs { top: 8px; width: min(620px, calc(100vw - 32px)); z-index: 1000; }
body { padding-top: 104px; }
#theme-switcher, #bg-effects-switcher { top: 96px; bottom: auto; right: 24px; }
#theme-switcher { right: 138px; }
.switcher-panel { max-height: 68vh; }
#bg-effects-canvas { z-index: 1; }
@media (max-width: 768px) {
    body { padding-top: 92px; }
    .site-header { align-items: flex-start; padding-top: 12px; }
    .title-kicker { font-size: .56rem; }
    .title-subtitle { font-size: .68rem; }
    .header-actions { gap: 5px; padding: 5px; }
    .header-action { width: 40px; height: 40px; }
    .header-action.login-action { width: 40px; padding: 0; font-size: 0; }
    .header-action.login-action::before { content: '🔑'; font-size: 1rem; }
    .player-bangs { top: 5px; width: calc(100vw - 12px); }
    #theme-switcher { right: 112px; top: 82px; }
    #bg-effects-switcher { right: 10px; top: 82px; }
}
@media (max-width: 480px) {
    body { padding-top: 88px; }
    .site-header { gap: 8px; }
    .main-title { font-size: 1.35rem; }
    .title-subtitle { display: none; }
    .header-action { width: 37px; height: 37px; }
    .player-bangs { width: calc(100vw - 8px); }
}

/* Новый сложный эффект: лёгкое свечение интерфейса при включённом canvas */
.glass-card {
    isolation: isolate;
}
.glass-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 50% -10%, rgba(255,255,255,.10), transparent 45%);
    opacity: .8;
    z-index: -1;
}


/* V7 — сложные фоновые эффекты */
.switcher-option[data-effect] { position: relative; overflow: hidden; }
.switcher-option[data-effect]::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.10) 50%, transparent 80%);
    transform: translateX(-120%); transition: transform .6s ease;
}
.switcher-option[data-effect]:hover::after { transform: translateX(120%); }
.switcher-option[data-effect].active {
    border-color: rgba(255, 215, 100, .45) !important;
    box-shadow: inset 0 0 22px rgba(255,255,255,.05), 0 0 16px rgba(100,190,255,.12);
}
#bg-effects-canvas { mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { #bg-effects-canvas { opacity: .45; } }

/* === V9 INTERACTIVE PACK === */
#holiday-fx-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
#ice-edges{position:fixed;inset:0;pointer-events:none;z-index:3;overflow:hidden}
#ice-edges i{position:absolute;display:block;opacity:.55;filter:drop-shadow(0 0 8px rgba(180,230,255,.8))}
#ice-edges i:nth-child(1){top:0;left:0;right:0;height:65px;background:linear-gradient(180deg,rgba(190,235,255,.28),transparent);clip-path:polygon(0 0,100% 0,98% 50%,92% 30%,86% 62%,79% 28%,71% 55%,64% 22%,57% 63%,50% 30%,42% 57%,34% 20%,27% 60%,18% 30%,10% 62%,3% 28%)}
#ice-edges i:nth-child(2){bottom:0;left:0;right:0;height:55px;background:linear-gradient(0deg,rgba(190,235,255,.25),transparent);clip-path:polygon(0 100%,100% 100%,98% 48%,91% 72%,83% 40%,76% 70%,67% 45%,58% 75%,49% 42%,39% 72%,30% 46%,20% 75%,10% 40%,3% 70%)}
#ice-edges i:nth-child(3){left:0;top:0;bottom:0;width:42px;background:linear-gradient(90deg,rgba(190,235,255,.24),transparent);clip-path:polygon(0 0,100% 0,55% 9%,82% 19%,48% 29%,80% 40%,45% 52%,78% 65%,46% 77%,85% 88%,45% 100%,0 100%)}
#ice-edges i:nth-child(4){right:0;top:0;bottom:0;width:42px;background:linear-gradient(270deg,rgba(190,235,255,.24),transparent);clip-path:polygon(100% 0,0 0,45% 9%,18% 19%,52% 29%,20% 40%,55% 52%,22% 65%,54% 77%,15% 88%,55% 100%,100% 100%)}
.holiday-santa,.holiday-reindeer{position:fixed;top:18%;left:-20vw;z-index:10001;font-size:clamp(2rem,5vw,4rem);pointer-events:none;animation:flyHoliday 11s linear forwards;filter:drop-shadow(0 0 14px rgba(255,255,255,.5))}
.holiday-reindeer{top:27%;font-size:clamp(1.5rem,4vw,3rem);animation-duration:9s}
@keyframes flyHoliday{from{transform:translateX(0) rotate(-2deg)}to{transform:translateX(140vw) rotate(2deg)}}
.secret-gift{position:fixed;right:24px;bottom:24px;width:58px;height:58px;border:0;border-radius:18px;background:rgba(20,20,30,.82);backdrop-filter:blur(12px);box-shadow:0 0 25px rgba(255,210,90,.35);font-size:30px;cursor:pointer;z-index:10010;animation:giftPulse 2s ease-in-out infinite}
@keyframes giftPulse{50%{transform:translateY(-5px) rotate(3deg);box-shadow:0 0 38px rgba(255,210,90,.6)}}
.ui-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(12px);z-index:20000}
.ui-modal.visible{display:flex}
.modal-card,.lightbox-inner{position:relative;width:min(680px,96vw);max-height:90vh;overflow:auto;padding:30px;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:linear-gradient(145deg,rgba(15,25,40,.96),rgba(25,15,35,.96));box-shadow:0 25px 90px rgba(0,0,0,.55);color:#fff}
.modal-close{position:absolute;right:14px;top:12px;border:0;background:rgba(255,255,255,.1);color:#fff;border-radius:50%;width:34px;height:34px;cursor:pointer;font-size:18px;z-index:2}
.lightbox-inner{width:auto;padding:12px;background:rgba(0,0,0,.9)}
#photo-lightbox-img{display:block;max-width:90vw;max-height:82vh;object-fit:contain;border-radius:14px}
.profile-card{text-align:center}
.profile-avatar{width:86px;height:86px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;font-size:38px;font-weight:900;background:linear-gradient(135deg,#c9a227,#7c3aed);box-shadow:0 0 30px rgba(201,162,39,.35)}
.profile-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin:20px 0;text-align:left}
.achievement-list{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.achievement-list span{padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.08)}
.message-reaction-row{display:flex;align-items:center;gap:7px;margin-top:7px}.reaction-add,.reaction-pill{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;border-radius:999px;padding:4px 8px;cursor:pointer}.reaction-pill{font-size:.8rem}
.reaction-picker{position:fixed;display:flex;gap:4px;padding:8px;background:rgba(15,18,25,.98);border:1px solid rgba(255,255,255,.16);border-radius:14px;z-index:20010;box-shadow:0 10px 30px rgba(0,0,0,.45)}.reaction-picker button{border:0;background:transparent;font-size:22px;cursor:pointer;padding:4px}
.chat-message-enhanced{transition:transform .18s ease,box-shadow .18s ease}.chat-message-enhanced:hover{transform:translateY(-1px);box-shadow:0 8px 25px rgba(0,0,0,.15)}
.chat-photo{cursor:zoom-in;max-height:430px;object-fit:contain}
.community-panel{overflow:visible}.community-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.community-head p{margin:0;color:var(--text-secondary)}
.tree-modal-card{text-align:center;min-height:500px}.tree-art{font-size:min(48vw,260px);line-height:1;filter:drop-shadow(0 0 28px rgba(40,180,100,.35));position:relative;z-index:1}.tree-stars{position:absolute;inset:90px 20% 100px;pointer-events:none}.tree-stars span{position:absolute;font-size:22px;filter:drop-shadow(0 0 8px gold);animation:starTwinkle 1.7s ease-in-out infinite alternate}.tree-count{margin:10px;color:var(--text-secondary)}@keyframes starTwinkle{to{transform:scale(1.18);opacity:.75}}
.new-year-hero{font-size:clamp(3rem,12vw,7rem);text-align:center;animation:heroPulse 1.5s ease-in-out infinite alternate}@keyframes heroPulse{to{transform:scale(1.04);filter:drop-shadow(0 0 25px rgba(255,220,90,.65))}}
.after-new-year .modal-card{text-align:center}.new-year-mode{animation:newYearGlow 5s ease-in-out infinite alternate}@keyframes newYearGlow{to{filter:saturate(1.15) brightness(1.05)}}
.music-night .glass-card{box-shadow:0 0 35px rgba(100,80,255,.16),inset 0 0 25px rgba(30,20,80,.15)}.music-night #holiday-fx-canvas{opacity:.55}
body.new-year-final .countdown-timer .number{animation:countdownFinal .5s ease-in-out infinite alternate;color:#fff;text-shadow:0 0 20px #ffd76a}@keyframes countdownFinal{to{transform:scale(1.16)}}
@media(max-width:600px){.community-head{align-items:flex-start;flex-direction:column}.secret-gift{right:14px;bottom:14px}.modal-card{padding:24px 16px}.tree-stars{inset:90px 15% 100px}.holiday-santa{top:15%}}

.music-bass-active .glass-card{box-shadow:0 0 var(--music-glow,12px) rgba(120,170,255,.18),inset 0 0 18px var(--cover-glow,rgba(255,255,255,.04));transform:translateZ(0)}
.playlist-bangs li.cover-playing img{animation:coverSpin 7s linear infinite;border-radius:50%!important;box-shadow:0 0 16px var(--cover-glow,rgba(255,255,255,.2))}
@keyframes coverSpin{to{transform:rotate(360deg)}}


/* V9: фейерверк и финальный отсчёт */
#fireworks-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:15000}
#countdown-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.35);backdrop-filter:blur(5px);z-index:16000;pointer-events:none}
#countdown-number{font-size:clamp(6rem,25vw,18rem);font-weight:900;color:#fff;text-shadow:0 0 35px rgba(255,215,106,.85),0 0 90px rgba(120,170,255,.65);transition:transform .2s ease}
#new-message-notification{position:fixed;left:50%;top:92px;transform:translate(-50%,-18px);opacity:0;pointer-events:none;z-index:19000;padding:11px 16px;border-radius:999px;background:rgba(15,18,28,.88);border:1px solid rgba(255,255,255,.16);box-shadow:0 10px 35px rgba(0,0,0,.35);backdrop-filter:blur(12px);color:#fff;font-weight:700;transition:opacity .25s ease,transform .25s ease}
#new-message-notification.visible{opacity:1;transform:translate(-50%,0)}

/* V9: фон физически реагирует на басы текущего трека */
body::before{content:'';position:fixed;inset:-15%;pointer-events:none;z-index:0;background:radial-gradient(circle at 50% 35%,var(--cover-glow,rgba(100,150,255,.25)),transparent 42%);opacity:calc(var(--music-bass,0) * .85);filter:blur(20px);transition:opacity .12s linear}
body.music-night::before{filter:blur(34px);opacity:calc(var(--music-bass,0) * 1.05)}

/* V10: слой эффектов не перекрывает интерфейс + стабильная мобильная ширина */
html, body { min-width: 0; overflow-x: hidden; }
.container { width: min(100%, 800px); box-sizing: border-box; z-index: 10; }
#bg-effects-canvas, #holiday-fx-canvas, #ice-edges, #meteor-canvas { z-index: 0 !important; }
#ice-edges { z-index: 1 !important; }
#candles-bg, #clock-bg, .garland { z-index: 4; }
.player-bangs { z-index: 1000; }
@media (max-width: 768px) {
  .container { width: 100%; padding-left: 12px; padding-right: 12px; }
  .site-header { width: 100%; box-sizing: border-box; }
  .glass-card { width: 100%; box-sizing: border-box; }
  .header-actions { flex-shrink: 0; }
}
@media (max-width: 480px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .header-actions { max-width: 48vw; overflow-x: auto; }
}

/* V10: рабочая модалка Стены славы */
#wall-of-fame-modal .modal-card { width: min(760px, 96vw); }
#wall-of-fame-modal[style*="display: none"] { display: none !important; }
body.modal-open { overflow: hidden; }

/* V10.1: cursor trail and stable effect layers */
.cursor-trail{position:fixed;pointer-events:none;z-index:12000;font-size:13px;transform:translate(-50%,-50%);animation:cursorTrail .65s ease-out forwards;filter:drop-shadow(0 0 7px rgba(190,230,255,.8))}
@keyframes cursorTrail{0%{opacity:.9;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-85%) scale(.35)}}
#holiday-fx-canvas,#meteor-canvas,#bg-effects-canvas{pointer-events:none!important}
.tree-star-btn{margin-top:8px;position:relative;z-index:5}
@media(max-width:600px){#holiday-fx-canvas{opacity:.72}.tree-modal-card{width:min(94vw,680px);min-height:460px}.tree-art{font-size:min(56vw,230px)}}
/* === Администрация и YouTube === */
.admin-card{max-width:860px;width:min(94vw,860px);max-height:88vh;overflow:auto}.admin-input{width:100%;box-sizing:border-box;margin:6px 0;padding:12px 14px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(0,0,0,.2);color:inherit}.admin-primary{margin-top:8px}.admin-muted{opacity:.72;font-size:.9rem}.admin-error{min-height:20px;margin-top:8px;color:#ff8b8b}.admin-top,.admin-form-actions,.admin-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.admin-section{margin-top:22px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}.admin-command-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}.admin-command{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;padding:10px;border-radius:12px;background:rgba(255,255,255,.06)}.admin-command code{opacity:.55;font-size:.75rem}.admin-command.compact{}.admin-list{margin-top:12px;display:grid;gap:8px}.admin-row{padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.05)}.admin-row span{display:block;font-size:.75rem;opacity:.6}.stream-card{max-width:1000px;width:min(94vw,1000px)}.stream-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.stream-frame-wrap{position:relative;width:100%;aspect-ratio:16/9;margin-top:12px;border-radius:16px;overflow:hidden;background:#000}.stream-frame-wrap iframe{width:100%;height:100%;border:0}.stream-empty{padding:28px;text-align:center;opacity:.7}.modal-open{overflow:hidden}@media(max-width:600px){.admin-command-list{grid-template-columns:1fr}.stream-head{align-items:flex-start;flex-direction:column}}

/* V14: multi-stream + fullscreen */
.stream-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 12px}.stream-tab{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:inherit;border-radius:10px;padding:8px 12px;cursor:pointer}.stream-tab.active{background:rgba(255,255,255,.16);box-shadow:0 0 0 1px rgba(255,255,255,.18) inset}.stream-controls{display:flex;justify-content:flex-end;margin-top:10px}.stream-frame-wrap:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border-radius:0;display:flex;align-items:center;justify-content:center}.stream-frame-wrap:fullscreen iframe{width:100vw;height:100vh}.admin-stream-list{display:grid;gap:12px}.admin-stream-row{padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.035)}.admin-stream-title{font-weight:700;margin-bottom:4px}.admin-stream-row .admin-input{margin:5px 0}.stream-empty{min-height:80px;display:flex;align-items:center;justify-content:center}@media(max-width:600px){.stream-tab{flex:1 1 calc(50% - 8px)}.stream-controls{justify-content:stretch}.stream-controls .btn{width:100%}}
