/* === COCKPIT PRO STYLES === */
#avatar-page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cockpit-pro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    overflow: hidden;
    z-index: 1000;
}

/* === ВЕРХНЯЯ НАВИГАЦИЯ === */
.cockpit-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
    height: 60px;
}

/* Группы элементов навигации */
.header-left-group, .header-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right-group {
    gap: 20px;
}

/* Логотип */
.home-btn {
    background: linear-gradient(135deg, #000000 0%, #111111 25%, #000000 50%, #111111 75%, #000000 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 25px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.home-btn:hover {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 
        0 8px 30px rgba(0, 212, 255, 0.4),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #000000 50%, #0a0a0a 75%, #000000 100%);
}

.home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), rgba(255, 255, 255, 0.1), rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-btn:hover::before {
    left: 100%;
}

.home-logo {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(45deg, #ff3366, #00d4ff, #ff00ff, #00ff88, #ffaa00, #ff3366);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: gradientFlow 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.home-btn:hover .home-logo {
    animation: gradientWave 2s ease-in-out infinite;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}

@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 100% 25%;
    }
    66% {
        background-position: 0% 75%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Кнопки режимов */
.mode-buttons {
    display: flex;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mode-button {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.3));
    border: 1px solid rgba(0, 212, 255, 0.5);
    color: #00d4ff;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-button:hover, .mode-button.active {
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.6));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* Контролы масштаба */
.scale-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 5px;
}

.scale-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    padding: 5px 10px;
    border-radius: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 35px;
}

.scale-btn:hover {
    background: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Кнопка каталога */
.animated-gradient-btn {
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    border: none;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.animated-gradient-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

/* Прогресс кольцо */
.progress-ring {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(#00d4ff 60%, rgba(0, 212, 255, 0.2) 60%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.daily-progress {
    text-align: center;
    font-size: 8px;
    line-height: 1;
}

.progress-text {
    color: #00d4ff;
    font-weight: bold;
}

.progress-label {
    color: #ccc;
}

/* Аватар пользователя */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar.active {
    background: rgba(0, 212, 255, 0.6);
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
}

/* Кнопка возврата */
.back-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff4444;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* === КАРУСЕЛЬ ТРЕКОВ === */
.track-carousel-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.carousel-track-list {
    display: flex;
    animation: infiniteScroll 30s linear infinite;
    width: calc(200px * 12); /* 6 треков * 2 для бесконечности */
}

@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 6)); }
}

.carousel-track-list:hover {
    animation-play-state: paused;
}

.carousel-track-item {
    min-width: 200px;
    height: 180px;
    margin: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
}

.carousel-track-item:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.carousel-track-item.active {
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
    transform: scale(1.08);
}

.track-item-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #ff00ff, #00d4ff);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.carousel-track-item.active .track-item-glow {
    opacity: 0.7;
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

.track-item-cover {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 10px 10px 0 0;
}

/* Реальные обложки треков */
.cover-1 { background-image: url('https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=400&h=400&fit=crop'); }
.cover-2 { background-image: url('https://images.unsplash.com/photo-1514320291840-2e0a9bf2a9ae?w=400&h=400&fit=crop'); }
.cover-3 { background-image: url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=400&h=400&fit=crop'); }
.cover-4 { background-image: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=400&h=400&fit=crop'); }
.cover-5 { background-image: url('https://images.unsplash.com/photo-1516280440614-37939bbacd81?w=400&h=400&fit=crop'); }
.cover-6 { background-image: url('https://images.unsplash.com/photo-1487180144351-b8472da7d491?w=400&h=400&fit=crop'); }

.live-singers {
    position: absolute;
    top: 5px;
    left: 5px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.singer {
    background: rgba(0, 212, 255, 0.9);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.singer:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    transform: scale(1.1);
}

.track-item-title {
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    margin: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* === ОСНОВНАЯ ОБЛАСТЬ === */
.cockpit-main-area {
    display: flex;
    height: calc(100vh - 320px);
    padding: 20px;
    gap: 20px;
}

/* === БОКОВЫЕ ПАНЕЛИ === */
.side-panel {
    width: 300px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.panel-content-wrapper {
    height: 100%;
}

.panel-title {
    color: #00d4ff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Статистика */
.stats-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
}

.stats-label {
    color: #ccc;
    font-size: 14px;
}

.stats-value {
    color: #00d4ff;
    font-weight: bold;
    font-size: 16px;
}

.accuracy-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    margin: 10px 0 20px 0;
    overflow: hidden;
}

.accuracy-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 4px;
    transition: width 0.8s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.ai-suggestion {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.ai-header {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.ai-text {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Live список */
.live-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.live-list li {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00d4ff;
    transition: all 0.3s ease;
}

.live-list li:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

.live-list a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.session-type.solo {
    background: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.session-type.duo {
    background: rgba(255, 0, 255, 0.3);
    color: #ff00ff;
}

.session-type.trio {
    background: rgba(255, 165, 0, 0.3);
    color: #ffa500;
}

.no-one-singing {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* === ЦЕНТРАЛЬНЫЙ ХАБ === */
.central-hub {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.energy-ring {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    border-top-color: #00d4ff;
    animation-duration: 8s;
}

.ring-2 {
    width: 400px;
    height: 400px;
    border-right-color: #ff00ff;
    animation-duration: 12s;
    animation-direction: reverse;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hub-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hub-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.8);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1200px) {
    .side-panel {
        width: 250px;
    }
    
    .carousel-track-item {
        min-width: 160px;
    }
    
    .carousel-track-list {
        width: calc(160px * 12);
    }
    
    @keyframes infiniteScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-160px * 6)); }
    }
}

@media (max-width: 768px) {
    .cockpit-main-area {
        flex-direction: column;
        height: auto;
    }
    
    .side-panel {
        width: 100%;
        height: 200px;
    }
    
    .central-hub {
        height: 300px;
    }
}

/* === СКРЫТИЕ === */
.hidden {
    display: none !important;
}

/* Оптимизация размеров кнопок для Avatar Studio */
.cockpit-nav .mode-button {
    padding: 8px 12px;
    font-size: 0.85rem;
    margin: 0 3px;
    min-width: 80px;
}

.cockpit-nav .scale-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    margin: 0 1px;
}

.cockpit-nav .scale-value-btn {
    min-width: 45px;
    font-size: 0.8rem;
}

.cockpit-nav .animated-gradient-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* Скрытие дублирующих элементов в Avatar Studio */
.cockpit-nav .user-avatar {
    display: none !important;
}

.cockpit-nav .back-button {
    display: none !important;
} 