/**
 * Каталог песен - Стили v2
 */

:root {
    --color-bg: #0a0a0b;
    --color-surface: #111113;
    --color-elevated: #18181b;
    --color-border: #27272a;
    --color-accent: #7c3aed;
    --color-accent-light: #a78bfa;
    --color-text: #fafafa;
    --color-text-muted: #a1a1aa;
    --color-text-dim: #71717a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--color-elevated);
}

/* ===== HERO ===== */
.hero-search {
    padding: 48px 0 32px;
    text-align: center;
}

.hero-search-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-search-title .accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-search-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
}

.search-hero {
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-input-wrapper {
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--color-text-dim);
    pointer-events: none;
}

.search-input-hero {
    width: 100%;
    padding: 14px 48px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    font-size: 1rem;
    transition: all var(--transition);
}

.search-input-hero:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

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

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
}

.search-clear svg { width: 18px; height: 18px; }

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.quick-tags-label {
    color: var(--color-text-dim);
    font-size: 0.8125rem;
}

.quick-tag {
    padding: 6px 14px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition);
}

.quick-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ===== CATEGORIES ===== */
.categories-bar {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 61px;
    z-index: 50;
    background: var(--color-bg);
}

.categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.category-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.category-chip.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.category-chip-count {
    background: rgba(255,255,255,0.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
}

/* ===== CATALOG ===== */
.catalog { padding: 32px 0; }

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.catalog-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.catalog-count {
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

.catalog-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.view-toggle {
    display: flex;
    background: var(--color-elevated);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all var(--transition);
}

.view-btn:hover { color: var(--color-text); }
.view-btn.active { background: var(--color-accent); color: white; }
.view-btn svg { width: 18px; height: 18px; }

.sort-select {
    padding: 10px 16px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.875rem;
    cursor: pointer;
}

/* ===== SONGS GRID ===== */
.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ===== SONG CARD - ИСПРАВЛЕНО ===== */
.song-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.song-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

/* Область картинки - кликабельная для воспроизведения */
.song-card-visual {
    position: relative;
    aspect-ratio: 1;
    cursor: pointer;
}

.song-card-cover {
    width: 100%;
    height: 100%;
    background: var(--color-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.song-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.song-card:hover .song-card-cover img {
    transform: scale(1.05);
}

.song-card-cover svg {
    width: 48px;
    height: 48px;
    color: var(--color-text-dim);
}

.song-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--transition);
    border: none;
    cursor: pointer;
}

.song-card:hover .song-card-play,
.song-card-play.playing { opacity: 1; }

.song-card-play svg {
    width: 48px;
    height: 48px;
    color: white;
}

.song-card-wave {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 20px;
}

.song-card-wave span {
    width: 4px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: wave 0.8s infinite ease-in-out;
}

.song-card-wave span:nth-child(2) { animation-delay: 0.1s; }
.song-card-wave span:nth-child(3) { animation-delay: 0.2s; }
.song-card-wave span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% { height: 6px; }
    50% { height: 20px; }
}

/* Информация и футер - кликабельные ссылки */
.song-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.song-card-info {
    display: block;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.song-card-info:hover .song-card-title {
    color: var(--color-accent-light);
}

.song-card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 4px;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

.song-card-category {
    font-size: 0.8125rem;
    color: var(--color-text-dim);
    display: block;
}

.song-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px 14px;
}

.song-card-plays {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-text-dim);
    font-size: 0.75rem;
}

.song-card-plays svg {
    width: 14px;
    height: 14px;
}

.song-card-more {
    width: 32px;
    height: 32px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.song-card-more:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.song-card-more svg {
    width: 16px;
    height: 16px;
}

/* ===== SONGS LIST ===== */
.songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.song-row:hover {
    border-color: var(--color-accent);
    background: var(--color-elevated);
}

.song-row-play {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.song-row-num {
    width: 28px;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

.song-row-btn {
    width: 40px;
    height: 40px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.song-row-btn:hover,
.song-row-btn.playing {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.song-row-btn svg { width: 18px; height: 18px; }

.song-row-info {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.song-row-info:hover .song-row-title {
    color: var(--color-accent-light);
}

.song-row-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition);
}

.song-row-category {
    font-size: 0.8125rem;
    color: var(--color-text-dim);
}

.song-row-stats {
    color: var(--color-text-dim);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.song-row-link {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: all var(--transition);
}

.song-row-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.song-row-link svg { width: 16px; height: 16px; }

/* ===== LOADING & EMPTY ===== */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
}

.loader {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.loader-ring {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.loader-ring:nth-child(2) { animation-delay: 0.2s; }
.loader-ring:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    to { transform: translateY(-12px); opacity: 0.5; }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: 8px; }
.empty-state p { color: var(--color-text-muted); margin-bottom: 24px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: #6d28d9;
}

/* ===== ABOUT ===== */
.about-section {
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-accent-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.about-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

.about-stat-label {
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

/* Соц сети - иконки в ряд */
.about-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-decoration {
    position: relative;
    width: 250px;
    height: 250px;
}

.decoration-ring {
    position: absolute;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.decoration-ring:nth-child(1) { inset: 0; }
.decoration-ring:nth-child(2) { inset: 30px; animation-delay: 0.5s; }
.decoration-ring:nth-child(3) { inset: 60px; animation-delay: 1s; }

.decoration-note {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    color: var(--color-accent);
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* ===== GLOBAL PLAYER ===== */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-elevated);
    border-top: 1px solid var(--color-border);
    padding: 12px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 200;
}

.player.active { transform: translateY(0); }

.player-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.player-cover {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-cover svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-dim);
}

.player-text { min-width: 0; }

.player-title {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.player-artist {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.player-btn:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.player-btn svg { width: 20px; height: 20px; }

.player-btn-main {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: white;
}

.player-btn-main:hover {
    background: #6d28d9;
    color: white;
}

.player-btn-main svg { width: 24px; height: 24px; }

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.player-time {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--color-surface);
    border-radius: 3px;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.player-extra {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn-sm {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition);
}

.player-btn-sm:hover { color: var(--color-text); }
.player-btn-sm svg { width: 18px; height: 18px; }

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--color-surface);
    border-radius: 2px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
    margin-bottom: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

.footer-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* ===== SONG PAGE ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-text-dim);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-current { color: var(--color-text); }

.song-page { padding: 32px 0; }

.song-detail-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
}

.song-player-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.song-cover-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.song-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-cover-icon-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-cover-icon-large svg {
    width: 80px;
    height: 80px;
    color: var(--color-text-dim);
}

.visualizer {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 32px;
    opacity: 0;
    transition: opacity 0.3s;
}

.visualizer.active { opacity: 1; }

.visualizer-bar {
    width: 6px;
    background: var(--color-accent);
    border-radius: 3px;
    animation: wave 0.6s infinite ease-in-out;
}

.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; }

.song-player-controls { text-align: center; }

.player-main-btn {
    width: 64px;
    height: 64px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.player-main-btn:hover {
    background: #6d28d9;
    transform: scale(1.05);
}

.player-main-btn svg { width: 28px; height: 28px; }

.player-secondary-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.player-sec-btn {
    width: 40px;
    height: 40px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.player-sec-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.player-sec-btn svg { width: 18px; height: 18px; }

.player-progress-section { margin-bottom: 16px; }

.progress-bar-large {
    height: 8px;
    background: var(--color-elevated);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 8px;
}

.progress-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.volume-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.volume-slider-large {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: var(--color-elevated);
    border-radius: 2px;
}

.volume-slider-large::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
}

.song-info-section { padding-top: 16px; }

.song-title-large {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.song-artist {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.song-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.meta-badge svg { width: 16px; height: 16px; }

.song-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.stat-card-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-light);
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-heading svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.song-description-section { margin-bottom: 32px; }

.song-description-text {
    color: var(--color-text-muted);
    line-height: 1.7;
}

.lyrics-section { margin-bottom: 32px; }

.lyrics-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.lyrics-text {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* Share buttons - иконки в ряд */
.share-section { margin-bottom: 32px; }

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
}

.share-btn svg { width: 20px; height: 20px; }

.share-btn-vk:hover { background: #0077FF; border-color: #0077FF; color: white; }
.share-btn-tg:hover { background: #0088cc; border-color: #0088cc; color: white; }
.share-btn-wa:hover { background: #25D366; border-color: #25D366; color: white; }
.share-btn-ok:hover { background: #EE8208; border-color: #EE8208; color: white; }
.share-btn-copy:hover { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.share-btn-playlist:hover { background: var(--color-accent); border-color: var(--color-accent); color: white; }

.share-btn-text {
    width: auto;
    padding: 0 16px;
    gap: 8px;
}

/* Related */
.related-section { margin-bottom: 32px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
}

.related-card:hover {
    border-color: var(--color-accent);
}

.related-cover {
    width: 56px;
    height: 56px;
    background: var(--color-elevated);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-cover svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-dim);
}

.related-info { min-width: 0; }

.related-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-category {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

/* Category page */
.category-header { margin-bottom: 32px; }

.category-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-count { color: var(--color-text-muted); }

/* 404 */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-content { max-width: 500px; }

.error-code {
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.error-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 12px; }
.error-text { color: var(--color-text-muted); margin-bottom: 32px; }

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
    .song-detail-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .song-player-card {
        position: static;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-visual { order: -1; }
    .about-decoration { width: 180px; height: 180px; }

    .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* Header mobile */
    .header { padding: 10px 0; }

    .logo-text {
        font-size: 0.9375rem;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav { gap: 2px; }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    /* Hero */
    .hero-search { padding: 32px 0 24px; }
    .hero-search-title { font-size: 1.375rem; }
    .hero-search-subtitle { font-size: 0.875rem; }

    .search-input-hero {
        padding: 12px 44px;
        font-size: 0.9375rem;
    }

    .quick-tags { gap: 6px; }
    .quick-tag { padding: 5px 10px; font-size: 0.6875rem; }
    .quick-tags-label { font-size: 0.6875rem; }

    /* Categories */
    .categories-bar {
        top: 53px;
        padding: 10px 0;
    }

    .categories-scroll {
        padding: 0 16px;
        margin: 0 -16px;
    }

    .category-chip {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* Catalog */
    .catalog { padding: 20px 0; }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .catalog-controls { justify-content: space-between; }

    .sort-select {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    /* Songs grid - 2 columns */
    .songs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .song-card { border-radius: var(--radius-sm); }
    .song-card-info { padding: 10px; }
    .song-card-title { font-size: 0.8125rem; }
    .song-card-category { font-size: 0.6875rem; }
    .song-card-footer { padding: 0 10px 10px; }
    .song-card-plays { font-size: 0.6875rem; }
    .song-card-more { width: 28px; height: 28px; }
    .song-card-play svg { width: 36px; height: 36px; }

    /* List view */
    .song-row { padding: 10px 12px; gap: 10px; }
    .song-row-num { display: none; }
    .song-row-btn { width: 36px; height: 36px; }
    .song-row-title { font-size: 0.875rem; }
    .song-row-stats { display: none; }

    /* About */
    .about-section { padding: 40px 0; }
    .about-stats { gap: 20px; }
    .about-stat-num { font-size: 1.5rem; }

    /* Player global */
    .player { padding: 8px 0; }
    .player-inner { flex-wrap: wrap; gap: 10px; }
    .player-info { flex: 1; min-width: 0; }
    .player-cover { width: 40px; height: 40px; }
    .player-title { font-size: 0.8125rem; }

    .player-controls { order: 3; width: 100%; justify-content: center; gap: 12px; }
    .player-progress { order: 4; width: 100%; }
    .player-extra { order: 2; }
    .player-volume { display: none; }

    .player-btn { width: 36px; height: 36px; }
    .player-btn-main { width: 44px; height: 44px; }

    /* Song page - плеер во всю ширину */
    .song-page { padding: 20px 0; }
    .breadcrumb { font-size: 0.8125rem; margin-bottom: 16px; }

    .song-player-card {
        padding: 16px;
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .player-main-btn { width: 56px; height: 56px; }

    .song-title-large { font-size: 1.375rem; }
    .song-artist { font-size: 1rem; }

    .song-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card { padding: 12px 8px; }
    .stat-card-value { font-size: 1rem; }
    .stat-card-label { font-size: 0.6875rem; }

    /* Share buttons - компактные иконки */
    .share-buttons { gap: 8px; }
    .share-btn { width: 40px; height: 40px; }
    .share-btn svg { width: 18px; height: 18px; }

    .lyrics-card { padding: 16px; }
    .lyrics-text { font-size: 0.9375rem; }

    /* Footer */
    .footer { padding: 20px 0; margin-bottom: 100px; }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .logo-text { display: none; }

    /* Hero */
    .hero-search-title { font-size: 1.25rem; }
    .quick-tags-label { display: none; }

    /* Stats inline на совсем маленьких */
    .about-stats {
        flex-direction: column;
        gap: 12px;
    }

    .about-stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .about-stat-num { font-size: 1.25rem; }
}

/* Touch devices */
@media (hover: none) {
    .song-card-play {
        opacity: 1;
        background: rgba(0,0,0,0.3);
    }

    .song-card:hover { transform: none; }
}

/* Safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .player { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
    .footer { margin-bottom: calc(100px + env(safe-area-inset-bottom)); }
}