* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a0b1a 0%, #2d0f2d 50%, #1f0a1f 100%);
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 5px #ff6ec7, 0 0 10px #ff6ec7; }
    50% { text-shadow: 0 0 15px #ff3b9e, 0 0 25px #ff3b9e; }
    100% { text-shadow: 0 0 5px #ff6ec7, 0 0 10px #ff6ec7; }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.3);
    padding: 40px;
    border: 1px solid rgba(255, 110, 199, 0.3);
}

/* Навигация */
.navbar {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 110, 199, 0.3);
}

.nav-container {
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    background: linear-gradient(135deg, #ffb3d9, #ff6ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff6ec7;
    object-fit: cover;
}

.logout-btn {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 30px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 110, 199, 0.2);
    color: #ffb3d9;
}

/* Кнопки */
.steam-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.3em;
    margin: 40px 0;
    box-shadow: 0 0 30px #ff6ec7;
    transition: all 0.3s;
}

.steam-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px #ff6ec7;
}

.upload-btn, .radio-btn {
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn:hover, .radio-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px #ff6ec7;
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Табы */
.tabs, .upload-tabs, .videos-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn, .upload-tab-btn, .video-tab-btn {
    background: rgba(255, 110, 199, 0.2);
    color: white;
    border: 1px solid rgba(255, 110, 199, 0.4);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.tab-btn:hover, .upload-tab-btn:hover, .video-tab-btn:hover {
    background: rgba(255, 110, 199, 0.4);
    box-shadow: 0 0 15px #ff6ec7;
}

.tab-btn.active, .upload-tab-btn.active, .video-tab-btn.active {
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    box-shadow: 0 0 20px #ff6ec7;
}

/* Прогресс-бар */
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ffb3d9, #ff6ec7);
    transition: width 0.3s;
}

/* Формы */
.file-input-container {
    margin: 25px 0;
}

.file-label {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.url-input, .radio-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 110, 199, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
}

.url-input:focus, .radio-input:focus {
    outline: none;
    border-color: #ff6ec7;
    box-shadow: 0 0 20px #ff6ec7;
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 50px;
    z-index: 1000;
    animation: slideUp 0.3s ease;
    border: 1px solid #ff6ec7;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Секции */
.upload-section, .tracks-section, .videos-section, .radio-control {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 110, 199, 0.3);
}

.storage-info {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 110, 199, 0.3);
}

/* Сетки */
.images-grid, .tracks-grid, .radios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Карточки */
.image-card, .track-card, .radio-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 110, 199, 0.3);
    transition: all 0.3s;
}

.image-card:hover, .track-card:hover, .radio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 110, 199, 0.4);
    border-color: #ff6ec7;
}

.image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-card:hover .image-container img {
    transform: scale(1.05);
}

.image-info, .track-card {
    padding: 15px;
}

.image-info h4, .track-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffb3d9;
    margin-bottom: 8px;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mini-avatar, .radio-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ff6ec7;
    object-fit: cover;
}

.username {
    font-size: 12px;
    color: #ffb3d9;
    font-family: 'Raleway', sans-serif;
}

.owner-badge {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #1a0b1a;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    margin-left: auto;
}

.image-meta, .track-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    margin-top: 8px;
    margin-bottom: 12px;
}

/* Кнопки действий */
.image-actions, .track-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 110, 199, 0.2);
}

.image-btn, .track-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.image-btn.download, .track-btn.add {
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    color: white;
}

.image-btn.copy {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.image-btn.delete, .track-btn.delete {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.image-btn.watch {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.image-btn:hover, .track-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Плейлист */
.playlist-container {
    max-height: 500px;
    overflow-y: auto;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.playlist-item:hover {
    background: rgba(255, 110, 199, 0.2);
}

.playlist-item-info {
    flex: 1;
}

.playlist-item-name {
    font-weight: 600;
}

.playlist-item-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.playlist-item-remove {
    background: none;
    border: none;
    color: #f56565;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
}

.playlist-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.action-btn {
    background: rgba(255, 110, 199, 0.2);
    border: 1px solid rgba(255, 110, 199, 0.4);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    color: white;
}

.action-btn:hover {
    background: rgba(255, 110, 199, 0.4);
}

/* Радио-статус */
.radio-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.status-badge.on {
    background: linear-gradient(135deg, #48bb78, #38a169);
    animation: neonPulse 2s infinite;
}

.status-badge.off {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.radio-link {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.radio-link a {
    color: #ffb3d9;
    text-decoration: none;
}

.current-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 15px;
    margin-top: 20px;
}

.track-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffb3d9;
}

/* Визуализатор */
.visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 40px;
    margin: 15px 0;
}

.visualizer-bar {
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.4s; }
.visualizer-bar:nth-child(6) { animation-delay: 0.5s; }
.visualizer-bar:nth-child(7) { animation-delay: 0.6s; }
.visualizer-bar:nth-child(8) { animation-delay: 0.7s; }

.radio-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.radio-control-btn {
    background: linear-gradient(135deg, #ff6ec7, #bf4aa8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    color: white;
}

.radio-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #ff6ec7;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6ec7;
    cursor: pointer;
}

/* Статистика */
.stats-badge {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 40px;
    border-radius: 50px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #ffb3d9;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 10px;
}

/* Поддержка */
.supported-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
}

.upload-progress {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
}

.upload-progress.hidden {
    display: none;
}

.no-videos {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px;
    grid-column: 1 / -1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .images-grid, .tracks-grid, .radios-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-container {
        height: 200px;
    }
    
    .nav-links {
        margin-left: 0;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .image-actions, .track-actions {
        flex-wrap: wrap;
    }
    
    .image-btn, .track-btn {
        flex: 1 1 calc(50% - 4px);
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    .steam-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    
    .stats-badge {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        text-align: center;
    }
}