/**
 * UZSONG.NET - Unique Theme Design
 * Полностью уникальный дизайн, не похожий на другие сайты
 */

/* ============================================
   CSS Variables - Современная цветовая схема
   ============================================ */
:root {
    --primary-color: #7c3aed;
    --primary-dark: #5b21b6;
    --secondary-color: #06b6d4;
    --secondary-dark: #0891b2;
    --accent-color: #ec4899;
    --dark-bg: #1e1b4b;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.08);
    --shadow-md: 0 4px 16px rgba(124, 58, 237, 0.12);
    --shadow-lg: 0 8px 24px rgba(124, 58, 237, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Header - Уникальная навигация
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    padding: 0 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.site-logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo::before {
    content: '🎵';
    font-size: 32px;
}

.search-container {
    flex: 1;
    max-width: 500px;
}

.search-form {
    position: relative;
    display: flex;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: white;
    padding: 0 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.main-nav {
    display: flex;
    gap: 5px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ============================================
   Main Content Container
   ============================================ */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.content-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

/* ============================================
   Song List - Уникальный стиль карточек
   ============================================ */
.track-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
}

.track-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.track-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.track-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.track-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.track-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.track-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.track-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.track-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-play {
    background: var(--primary-color);
    color: white;
}

.btn-play:hover {
    background: var(--dark-bg);
    transform: scale(1.05);
}

.btn-download {
    background: var(--secondary-color);
    color: white;
}

.btn-download:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* ============================================
   Player - Уникальный фиксированный плеер
   ============================================ */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1c3144 0%, #2d5f7e 100%);
    padding: 15px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 999;
    display: none;
}

.audio-player.active {
    display: block;
}

.player-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.player-track-info {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.player-text h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.player-text p {
    font-size: 12px;
    opacity: 0.8;
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.player-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.player-btn:hover {
    transform: scale(1.1);
}

.player-btn.main {
    background: var(--secondary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 12px;
    opacity: 0.8;
    min-width: 100px;
    text-align: center;
}

/* ============================================
   Page Title & Description
   ============================================ */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Footer - Уникальный дизайн футера
   ============================================ */
.site-footer {
    background: white;
    padding: 40px 20px 20px;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .site-logo {
        font-size: 22px;
    }
    
    .search-container {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: left;
    }
    
    .track-list {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .player-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .player-track-info {
        flex: none;
        width: 100%;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}
