/* Современный дизайн в стиле скриншотов */

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --border-color: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #6b6b6b;
    --accent-red: #ff4444;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Боковая навигация */
.sidebar {
    width: 80px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

.sidebar-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-item.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-item i {
    font-size: 20px;
}

.sidebar-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-divider {
    width: 32px;
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

/* Основной контент */
.main-wrapper {
    margin-left: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Верхняя панель */
.top-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 16px 10px 44px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-hover);
}

.header-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-icon:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Контент */
.main-content {
    flex: 1;
    padding: 32px;
    background: var(--bg-primary);
}

/* Баннер */
.promo-banner {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.promo-banner-content {
    position: relative;
    z-index: 1;
}

.promo-banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-banner h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.promo-banner p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.promo-banner-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.promo-banner-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Секции */
.content-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--accent-red);
    font-size: 20px;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

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

.section-count {
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.section-nav {
    display: flex;
    gap: 8px;
}

.section-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.section-nav-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.section-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Горизонтальная прокрутка */
.horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Карточки битов */
.beat-card {
    min-width: 280px;
    width: 280px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.beat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.beat-card-cover {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--bg-secondary);
    overflow: hidden;
}

.beat-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.beat-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    gap: 12px;
}

.beat-card:hover .beat-card-overlay {
    opacity: 1;
}

.beat-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.beat-card-actions {
    display: flex;
    gap: 8px;
}

.beat-card-info {
    padding: 16px;
}

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

.beat-card-artist {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.beat-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.beat-metric {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.beat-metric i {
    font-size: 12px;
}

.beat-metric.blue {
    color: var(--accent-blue);
}

.beat-metric.red {
    color: var(--accent-red);
}

.beat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.beat-card-btn {
    flex: 1;
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.beat-card-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.beat-card-btn i {
    font-size: 12px;
}

/* Топ артисты (круглые аватары) */
.top-artists {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0;
}

.top-artist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    text-decoration: none;
    color: var(--text-primary);
}

.top-artist-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.top-artist-item:hover .top-artist-avatar {
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.top-artist-name {
    font-size: 12px;
    text-align: center;
    color: var(--text-secondary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Комментарии */
.comment-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
}

.comment-verified {
    color: var(--accent-blue);
    font-size: 12px;
}

.comment-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-beat-cover {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

/* Профиль */
.profile-header {
    margin-bottom: 32px;
}

.profile-cover {
    width: 100%;
    height: 200px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: -60px;
    position: relative;
}

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

.profile-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.profile-info {
    padding: 80px 0 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-details {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-username {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Формы */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-hover);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .sidebar {
        width: 60px;
    }
    
    .main-wrapper {
        margin-left: 60px;
    }
    
    .top-header {
        padding: 12px 20px;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .header-search {
        display: none;
    }
    
    .beat-card {
        min-width: 240px;
        width: 240px;
    }
}

/* Лицензии */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.license-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
}

.license-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.license-card.featured {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.license-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.license-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.license-features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.license-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.license-features li:last-child {
    border-bottom: none;
}

.license-features li:before {
    content: "✓ ";
    color: var(--accent-green);
    font-weight: 600;
    margin-right: 8px;
}

/* Страница бита */
.beat-page {
    margin-bottom: 32px;
}

.beat-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.beat-player-large {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.beat-cover-large {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.beat-audio-player {
    width: 100%;
    margin-top: 16px;
}

.beat-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.beat-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.beat-author a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.beat-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.verified-icon {
    color: var(--accent-blue);
    font-size: 16px;
}

.beat-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.beat-tag {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.beat-description {
    margin: 16px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.beat-stats {
    display: flex;
    gap: 24px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.beat-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.beat-date {
    color: var(--text-muted);
    font-size: 13px;
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Уведомления */
.alert {
    padding: 16px;
    border-radius: var(--radius);
    margin: 16px 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

/* Новый дизайн профиля */
.profile-page-new {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-header-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

/* Левая боковая панель */
.profile-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 24px;
}

.profile-avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--border-color);
    background: var(--bg-secondary);
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username-sidebar {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.profile-reg-date {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 16px;
}

.profile-bio-sidebar {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left;
}

.profile-social-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 18px;
}

.social-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Правая область с шапкой профиля */
.profile-cover-area {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    background: var(--bg-card);
}

.profile-cover-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

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

.profile-cover-placeholder-new {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.profile-name-section {
    flex: 1;
    color: var(--text-primary);
}

.profile-name-large {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-edit-icon {
    font-size: 20px;
    color: var(--accent-blue);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.profile-edit-icon:hover {
    opacity: 1;
}

.profile-type-info {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.btn-profile-link:hover {
    background: rgba(26, 26, 26, 1);
    border-color: var(--accent-blue);
}

.profile-actions-top {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.profile-counter {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-favorite {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.btn-favorite:hover {
    background: rgba(26, 26, 26, 1);
    border-color: var(--accent-blue);
}

.profile-section {
    margin-bottom: 48px;
}

.section-title-profile {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.average-scores {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.score-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.score-category-header {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.score-buttons {
    display: flex;
    gap: 8px;
}

.score-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.score-btn:hover {
    border-color: var(--accent-blue);
    background: var(--bg-hover);
}

.section-header-reviews {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header-reviews .section-title-profile {
    margin-bottom: 0;
}

.link-all {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.link-all:hover {
    opacity: 0.8;
}

.section-nav {
    display: flex;
    gap: 8px;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-arrow:hover {
    background: var(--bg-hover);
    border-color: var(--accent-blue);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.review-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.review-score-main {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.review-scores-detail {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.review-scores-detail span {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.review-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.review-actions {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.review-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.review-action-btn:hover {
    color: var(--text-primary);
}

.best-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.work-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

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

.work-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.work-cover-placeholder {
    width: 100%;
    height: 200px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 48px;
}

.work-info {
    padding: 16px;
}

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

.work-artist {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.work-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.work-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.work-ratings {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.work-rating {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.btn-listen {
    width: 100%;
    padding: 10px;
    background: var(--accent-blue);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-listen:hover {
    background: #2563eb;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .profile-header-layout {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .profile-cover-area {
        min-height: 300px;
    }
    
    .profile-cover-image {
        min-height: 300px;
    }
    
    .profile-cover-placeholder-new {
        min-height: 300px;
    }
    
    .profile-info-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .profile-actions-top {
        align-items: flex-start;
        width: 100%;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .best-works-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Кастомный музыкальный плеер */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.music-player.hidden {
    display: none;
}

.player-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Левая часть: Обложка и информация */
.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    flex: 0 0 300px;
}

.player-cover {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card);
    flex-shrink: 0;
    position: relative;
}

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

.player-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
    background: var(--bg-card);
}

.player-info {
    flex: 1;
    min-width: 0;
}

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

.player-artist {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Центральная часть: Элементы управления */
.player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

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

.player-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.player-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.player-btn.active {
    color: var(--accent-blue);
}

.player-btn-play {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 16px;
}

.player-btn-play:hover {
    transform: scale(1.1);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.player-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-time {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.player-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.player-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.player-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-blue);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.player-progress-bar:hover .player-progress-fill {
    background: var(--accent-blue);
    height: 6px;
    margin-top: -1px;
}

/* Правая часть: Действия и громкость */
.player-right {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 300px;
    flex: 0 0 300px;
    justify-content: flex-end;
}

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

.player-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.player-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.player-action-btn.active {
    color: var(--accent-red);
}

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

.player-volume-slider {
    width: 80px;
    display: none;
}

.player-volume:hover .player-volume-slider,
.player-volume.active .player-volume-slider {
    display: block;
}

.volume-slider {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.player-buy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #ffd700;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.player-buy-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffed4e;
    transform: translateY(-1px);
}

.player-buy-btn i {
    font-size: 16px;
}

/* Адаптивность плеера */
@media (max-width: 1024px) {
    .player-left {
        min-width: 200px;
        flex: 0 0 200px;
    }
    
    .player-right {
        min-width: 200px;
        flex: 0 0 200px;
    }
    
    .player-buy-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .music-player {
        height: 80px;
        padding: 0 12px;
    }
    
    .player-left {
        min-width: 150px;
        flex: 0 0 150px;
    }
    
    .player-cover {
        width: 48px;
        height: 48px;
    }
    
    .player-title {
        font-size: 12px;
    }
    
    .player-artist {
        font-size: 11px;
    }
    
    .player-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .player-btn-play {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .player-right {
        min-width: auto;
        flex: 0 0 auto;
    }
    
    .player-volume-slider {
        display: none !important;
    }
    
    .player-buy-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .player-buy-btn span {
        display: none;
    }
    
    .player-actions {
        gap: 4px;
    }
    
    .player-action-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Отступ для контента, чтобы не перекрывался плеером */
.main-content {
    padding-bottom: 110px;
}

@media (max-width: 768px) {
    .main-content {
        padding-bottom: 100px;
    }
}