/* Modern Minimalist Design */
:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

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

/* Header */
.site-header {
    background: rgba(241, 245, 249, 0.98);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.site-header .container {
    padding-top: 8px;
    padding-bottom: 16px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    height: 96px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-logo a:hover {
    color: var(--accent-hover);
}

.logo-image {
    height: 72px;
    width: auto;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    position: relative;
    top: 6px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    width: 100%;
}

/* Home Page Search */
.home-search-container {
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.home-search-input {
    width: 100%;
    padding: 14px 50px 14px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.home-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.home-search-clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-search-clear:hover {
    background: var(--border-light);
    color: var(--text-color);
}

.home-search-results {
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-results-header {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    background: white;
}

.search-result-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.search-result-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
}

.search-result-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 6px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.search-result-type {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-type-labels {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
}

.search-type-artists {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.search-type-page {
    background: var(--border-light);
    color: var(--text-secondary);
}

.search-result-summary {
    color: var(--text-secondary);
    flex: 1;
}

@media (max-width: 768px) {
    .home-search-container {
        margin-top: 24px;
    }
    
    .home-search-input {
        font-size: 0.95rem;
        padding: 12px 45px 12px 44px;
    }
    
    .search-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 160px);
}

/* Footer */
.site-footer {
    background: rgba(241, 245, 249, 0.98);
    border-top: 1px solid var(--border-color);
    margin-top: 64px;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li {
    margin: 0;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
}

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

.footer-contact {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .site-footer {
        padding: 32px 0 20px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-color);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
}

/* Label Navigation Tabs */
.label-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding: 16px 0;
    border-bottom: 2px solid var(--border-color);
}

.nav-tab {
    padding: 10px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.nav-tab:hover {
    background: var(--border-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.nav-tab:active {
    transform: translateY(0);
}

/* Cards */
.artist-card, .label-card-single {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.artist-photo, .label-logo-single {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--border-light);
}

.artist-photo img, .label-logo-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1;
}

.placeholder-photo, .placeholder-logo-single {
    width: 100%;
    height: 100%;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    aspect-ratio: 1;
}

.artist-info, .label-info-single {
    flex: 1;
}

.artist-title, .label-title-single {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.artist-details, .label-details-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

.detail-label {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 80px;
}

.detail-value {
    color: var(--text-color);
}

.lifespan {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color);
}

.instruments {
    font-style: italic;
    color: var(--text-secondary);
}

.genres, .styles {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Sections */
.discography, .collaborations, .personnel, .styles-section, .genres-section, .chart-section {
    margin-bottom: 48px;
    scroll-margin-top: 80px; /* Відступ для прокрутки з урахуванням фіксованих елементів */
}

.discography h2, .collaborations h2, .personnel h2, .styles-section h2, .genres-section h2, .chart-section h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

/* Grid Layout */
.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    row-gap: 20px;
    column-gap: 20px;
    justify-items: center;
}

.best-albums-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px;
    margin-top: 24px;
    width: 100%;
}

.best-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.best-column .spacer {
    height: 1rem;
}

.best-column .discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    width: 100%;
}

@media (max-width: 768px) {
    .best-albums-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .best-column .discography-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

.album-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 200px;
}


.album-cover {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center !important;
    aspect-ratio: 1 !important;
    max-width: 200px;
    max-height: 200px;
    flex-shrink: 0;
}

.album-placeholder {
    width: 100%;
    height: auto;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    aspect-ratio: 1;
    min-height: 150px;
}

.album-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.album-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.album-year {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tables */
.table-container {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.personnel-table, .collaborations-table, .styles-table, .genres-table, .labels-table, .releases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.personnel-table th, .collaborations-table th, .styles-table th, .genres-table th, .labels-table th, .releases-table th {
    background: var(--border-light);
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.personnel-table td, .collaborations-table td, .styles-table td, .genres-table td, .labels-table td, .releases-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.personnel-table tr:hover, .collaborations-table tr:hover, .styles-table tr:hover, .genres-table tr:hover, .labels-table tr:hover, .releases-table tr:hover {
    background: var(--border-light);
}

.personnel-link, .collaboration-link, .label-link {
    color: var(--accent-color);
    font-weight: 500;
}

.personnel-link:hover, .collaboration-link:hover, .label-link:hover {
    color: var(--accent-hover);
}

/* All Releases Section */
.releases-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.releases-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.releases-search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.releases-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.releases-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.releases-filter-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.hidden-release {
    display: none;
}

.releases-load-more {
    text-align: center;
    margin-top: 24px;
}

.btn-show-all, .btn-show-less {
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-show-all:hover, .btn-show-less:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Labels Grid */
.labels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.label-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.label-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--border-light);
}

.label-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1;
}

.placeholder-logo {
    width: 100%;
    height: 100%;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 600;
    aspect-ratio: 1;
}

.label-info {
    flex: 1;
}

.label-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.label-title a {
    color: var(--text-color);
}

.label-title a:hover {
    color: var(--accent-color);
}

.label-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.label-year, .label-country, .label-releases {
    background: var(--border-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Chart */
.chart-container {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .site-logo a {
        font-size: 1.25rem;
    }
    
    .header-content {
        gap: 24px;
    }
    
    .nav-list {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .page-header {
        padding: 32px 0;
        margin-bottom: 32px;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .artist-card, .label-card-single {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .artist-photo, .label-logo-single {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .label-nav-tabs {
        gap: 6px;
    }
    
    .nav-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .labels-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .discography-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .album-card {
        max-width: 150px;
    }
    
    .album-cover {
        max-width: 150px;
        max-height: 150px;
    }
    
    .personnel-table, .collaborations-table, .styles-table, .genres-table, .labels-table, .releases-table {
        font-size: 0.8rem;
    }
    
    .personnel-table th, .collaborations-table th, .styles-table th, .genres-table th, .labels-table th,
    .personnel-table td, .collaborations-table td, .styles-table td, .genres-table td, .labels-table td, .releases-table td {
        padding: 8px 12px;
    }
    
    .label-card {
        flex-direction: column;
        text-align: center;
    }
    
    .label-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.875rem;
    }
    
    .artist-title, .label-title-single {
        font-size: 1.875rem;
    }
    
    .discography h2, .collaborations h2, .personnel h2, .styles-section h2, .genres-section h2, .chart-section h2, .releases-table-section h2 {
        font-size: 1.5rem;
    }
}

/* 404 Error Page */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-content h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 16px;
    line-height: 1;
}

.error-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
}

.error-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

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

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

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

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