/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --hover-color: #f0f0f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

.attribution {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.attribution a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.attribution a:hover {
    text-decoration: underline;
}

/* Wrapper for search and filter on same line */
.search-filter-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

/* Tab Navigation */
.main-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.main-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.main-tab:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
}

.main-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
    background-color: var(--bg-color);
}

.main-tab:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: -2px;
}

/* Responsive tab navigation for mobile */
@media (max-width: 768px) {
    .main-tabs {
        flex-direction: row;
        gap: 0;
    }
    
    .main-tab {
        font-size: 0.9rem;
        padding: 12px 10px;
    }
}

/* Search Container */
.search-container {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    transition: var(--transition);
    height: 46px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.clear-btn {
    padding: 12px 16px;
    background-color: var(--text-light);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    white-space: nowrap;
    height: 46px;
    box-sizing: border-box;
}

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

/* Date Filter */
.filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
    white-space: nowrap;
    height: 46px;
    box-sizing: border-box;
}

.filter-container label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.year-input {
    padding: 6px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 80px;
    height: 32px;
    box-sizing: border-box;
}

.filter-btn {
    padding: 6px 16px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    height: 32px;
    box-sizing: border-box;
    line-height: 1;
}

.filter-btn:hover {
    background-color: #2980b9;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 0;
    min-height: 40px; /* Ensure consistent height */
}

.nav-btn {
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

.nav-btn:hover {
    background-color: #2980b9;
    transform: translateX(-2px);
}

.view-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    flex: 1;
    margin: 0; /* Remove any default margins */
    padding: 0; /* Remove any default padding */
    line-height: 1.2; /* Consistent line height */
}

.back-to-list-btn {
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
    margin-left: auto; /* Push to the right */
}

.back-to-list-btn:hover {
    background-color: #2980b9;
    transform: translateX(-2px);
}

/* Header Buttons Container */
.header-buttons {
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    gap: 4px;
}

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary-color);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.header-btn:hover {
    opacity: 1;
    background-color: var(--hover-color);
}

.header-btn.settings-btn:hover {
    transform: rotate(90deg);
}

.header-btn.settings-btn:active {
    transform: rotate(90deg) scale(0.95);
}

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

.header-btn.about-btn:active {
    transform: scale(0.95);
}

/* Legacy settings-btn styles - now using .header-btn */
.settings-btn:not(.header-btn) {
    position: absolute;
    top: 20px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary-color);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}

.settings-btn:not(.header-btn):hover {
    opacity: 1;
    background-color: var(--hover-color);
    transform: rotate(90deg);
}

.settings-btn:not(.header-btn):active {
    transform: rotate(90deg) scale(0.95);
}

/* Loading and Error */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    background-color: #fee;
    color: #c33;
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* List View */
.list-view {
    animation: fadeIn 0.3s ease-in-out;
}

/* Detail View */
.detail-view {
    animation: fadeIn 0.3s ease-in-out;
}

/* Fade in animation for view transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Song List */
.song-list {
    overflow-x: auto;
}

.songs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.songs-table thead {
    background-color: #e8edf2;
    color: var(--primary-color);
}

.songs-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(44, 62, 80, 0.15);
}

.songs-table th.sortable {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Prevent text selection highlighting in sortable headers */
.songs-table th.sortable::selection {
    background-color: transparent;
    color: var(--primary-color);
}

.songs-table th.sortable::-moz-selection {
    background-color: transparent;
    color: var(--primary-color);
}

.songs-table th.sortable:hover {
    background-color: #d4dce5 !important;
    color: var(--primary-color) !important;
}

.songs-table th.sortable:focus {
    background-color: #d4dce5 !important;
    color: var(--primary-color) !important;
    outline: none;
}

.songs-table th.sortable:active {
    background-color: #c0cad6 !important;
    color: var(--primary-color) !important;
    outline: none;
}

/* Style for currently sorted column */
.songs-table th.sortable.sorted {
    background-color: #c0cad6 !important;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.songs-table th.sortable.sorted:hover {
    background-color: #b0bcc9 !important;
    color: var(--primary-color) !important;
}

.songs-table th.sortable.sorted:active {
    background-color: #a0aebf !important;
    color: var(--primary-color) !important;
}

.songs-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.songs-table tbody tr:hover {
    background-color: var(--hover-color);
}

.songs-table tbody tr:last-child {
    border-bottom: none;
}

.songs-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.songs-table .index-col {
    width: 60px;
    text-align: right;
    color: var(--text-light);
    font-weight: 500;
}

.songs-table .title-col {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 200px;
}

.songs-table .album-col {
    color: var(--text-color);
    min-width: 250px;
}

.songs-table .debut-col {
    color: var(--text-light);
    width: 90px;
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
}

.songs-table .live-debut-col {
    color: var(--text-light);
    width: 80px;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.songs-table .ai-report-col {
    width: 100px;
    text-align: center;
}

.songs-table .ai-report-col-header {
    text-align: center;
    width: 100px;
}

.ai-report-indicator {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s ease, opacity 0.2s ease;
    user-select: none;
}

.ai-report-indicator:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.ai-report-indicator.exists {
    color: #28a745;
}

.ai-report-indicator.missing {
    color: #dc3545;
}

/* Align header text for debut columns */
.songs-table th[data-column="debut_on_record"],
.songs-table th[data-column="live_debut"] {
    text-align: center;
    white-space: nowrap;
}

/* Responsive table */
@media (max-width: 768px) {
    .songs-table {
        font-size: 0.85rem;
    }
    
    .songs-table th,
    .songs-table td {
        padding: 8px 12px;
    }
    
    .songs-table .debut-col {
        width: 100px;
        min-width: 100px;
    }
    
    .songs-table .live-debut-col {
        width: 90px;
    }
    
    .songs-table .ai-report-col {
        width: 80px;
    }
}

/* Detail View */
.detail-view {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Detail Tabs */
.detail-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 0;
    margin: 0;
}

.detail-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s ease;
    text-align: center;
}

.detail-tab:hover {
    background-color: rgba(44, 62, 80, 0.05);
    color: var(--primary-color);
}

.detail-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    font-weight: 600;
}

.ai-summary-indicator {
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.ai-summary-indicator.exists {
    color: #27ae60;
}

.ai-summary-indicator.missing {
    color: #e74c3c;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* AI Summary */

.ai-summary-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
}

.ai-summary-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -10px;
}

.regenerate-summary-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px 10px;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-radius: var(--border-radius);
    line-height: 1;
}

.regenerate-summary-btn:hover {
    color: var(--secondary-color);
    background-color: var(--hover-color);
    transform: rotate(180deg);
}

.regenerate-summary-btn:active {
    transform: rotate(180deg) scale(0.9);
}

.print-report-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px 10px;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-radius: var(--border-radius);
    line-height: 1;
}

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

.print-report-btn:active {
    transform: scale(0.9);
}

.delete-summary-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px 10px;
    color: var(--text-light);
    transition: all 0.2s ease;
    border-radius: var(--border-radius);
    line-height: 1;
}

.delete-summary-btn:hover {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.delete-summary-btn:active {
    transform: scale(0.9);
}

.ai-summary-section {
    padding-bottom: 20px;
}

.ai-summary-section:last-child {
    padding-bottom: 0;
}

.ai-summary-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.ai-summary-section p {
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.ai-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-summary-meta > div {
    display: flex;
    gap: 10px;
}

.ai-summary-meta strong {
    color: var(--primary-color);
    min-width: 150px;
}

.ai-summary-meta span {
    color: var(--text-color);
}

.ai-summary-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.ai-summary-section a:hover {
    text-decoration: underline;
}

.ai-summary .loading {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.ai-summary .error {
    padding: 20px;
    text-align: center;
    color: #e74c3c;
}

.ai-summary-footer {
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Remove extra spacing from last section before footer */
.ai-summary-section:last-of-type {
    margin-bottom: 0;
}

.ai-summary-meta-text {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sources-list li {
    margin-bottom: 10px;
    padding-left: 0;
    line-height: 1.8;
}

.source-number {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 5px;
}

.sources-list li a {
    color: var(--secondary-color);
    text-decoration: none;
}

.sources-list li a:hover {
    text-decoration: underline;
}

.ai-summary-text {
    line-height: 1.6;
}

.ai-summary-text p {
    margin: 0 0 1em 0;
}

.ai-summary-text p:last-child {
    margin-bottom: 0;
}

.youtube-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-links-list {
    list-style: disc;
    padding: 0;
    margin: 0;
    margin-left: 25px;
}

.youtube-links-list li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.youtube-links-list li::marker {
    color: var(--primary-color);
}

.youtube-links-list a {
    color: var(--secondary-color);
    text-decoration: none;
}

.youtube-links-list a:hover {
    text-decoration: underline;
}

.song-detail h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.song-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.song-detail-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.song-detail-row > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.song-detail-category {
    flex-direction: column;
}

.song-detail-category > div {
    width: 100%;
}

.category-values {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

.category-values > div {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-values > div:last-child {
    border-bottom: none;
}

.song-detail-meta strong {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.song-detail-meta span {
    color: var(--text-color);
}

.song-detail-section {
    margin-bottom: 30px;
}

.song-detail-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.song-detail-section-content {
    line-height: 1.8;
    color: var(--text-color);
}

.song-detail-section-content p {
    margin-bottom: 15px;
}

/* Lyrics formatting */
.lyrics-content {
    font-family: inherit;
    line-height: 1.8;
    word-wrap: break-word;
}

.lyrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.lyrics-section {
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--secondary-color);
    line-height: 1.8;
    font-family: inherit;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .lyrics-container {
        grid-template-columns: 1fr;
    }
}

.song-detail-section-content ul,
.song-detail-section-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.song-detail-section-content li {
    margin-bottom: 8px;
}

.song-detail-section-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.song-detail-section-content a:hover {
    text-decoration: underline;
}

.song-detail-section-content code {
    background-color: var(--bg-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.song-detail-section-content pre {
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 15px;
}

.song-detail-section-content pre code {
    background-color: transparent;
    padding: 0;
}

.song-detail-section-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin-left: 0;
    margin-bottom: 20px;
    margin-top: 20px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
}

.song-detail-section-content blockquote p {
    margin-bottom: 10px;
    font-style: italic;
}

.song-detail-section-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.9em;
    color: var(--text-color);
}

.song-detail-section-content h1,
.song-detail-section-content h2,
.song-detail-section-content h3,
.song-detail-section-content h4,
.song-detail-section-content h5,
.song-detail-section-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.song-detail-section-content h1 { font-size: 1.8rem; }
.song-detail-section-content h2 { font-size: 1.5rem; }
.song-detail-section-content h3 { font-size: 1.3rem; }
.song-detail-section-content h4 { font-size: 1.1rem; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    /* Removed song-card styles - now using table */

    .detail-view {
        padding: 20px;
    }

    .song-detail h1 {
        font-size: 1.5rem;
    }

    .song-detail-row {
        flex-direction: column;
        gap: 10px;
    }

    /* Stack search and filter on mobile */
    .search-filter-wrapper {
        flex-direction: column;
    }

    .search-container {
        width: 100%;
    }

    .filter-container {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Search Results Highlight */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Footnotes Styling */
.song-detail-section-content ol {
    counter-reset: item;
    list-style-position: outside;
    padding-left: 0;
    margin-left: 0;
}

.song-detail-section-content ol li {
    margin-bottom: 15px;
    margin-left: 30px;
    line-height: 1.8;
}

.song-detail-section-content ol li::marker {
    font-weight: 600;
    color: var(--primary-color);
}

/* Highlighted quotes in footnotes (mark elements) */
.song-detail-section-content ol li mark {
    display: block;
    background-color: var(--bg-color);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 5px 0;
    border-radius: var(--border-radius);
    font-style: italic;
    line-height: 1.8;
    color: var(--text-color);
}

/* Sources/Links Styling */
.song-detail-section-content ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 0;
    margin-left: 0;
}

.song-detail-section-content ul li {
    margin-bottom: 10px;
    margin-left: 25px;
    line-height: 1.8;
}

.song-detail-section-content ul li::marker {
    color: var(--primary-color);
}

/* Footnote reference links in lyrics */
/* Lucide icon base styles */
[data-lucide] {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Sort icons in table headers */
.sort-icon {
    width: 0.85em;
    height: 0.85em;
}

/* Spinning loader icon */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin [data-lucide] {
    animation: spin 1s linear infinite;
}

/* Header buttons */
.header-btn [data-lucide] {
    width: 22px;
    height: 22px;
}

/* AI report action buttons */
.print-report-btn [data-lucide],
.regenerate-summary-btn [data-lucide],
.delete-summary-btn [data-lucide] {
    width: 18px;
    height: 18px;
}

/* AI indicator icons in song list and album view */
.ai-report-indicator [data-lucide],
.album-song-ai-indicator [data-lucide],
.ai-summary-indicator [data-lucide] {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/* Album expand chevron */
.album-expand-icon [data-lucide] {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* Pagination chevrons */
.pagination-btn [data-lucide] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.footnote-ref {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 0 2px;
}

/* Settings Modal */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.settings-modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.settings-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-settings-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-settings-btn:hover {
    color: var(--accent-color);
}

.settings-modal-body {
    padding: 20px;
    flex: 1;
}

.settings-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.settings-item label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.settings-input {
    padding: 10px 12px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    transition: border-color 0.2s ease;
}

.settings-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.settings-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.settings-save-btn,
.settings-cancel-btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

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

.settings-save-btn:hover {
    background-color: #2980b9;
}

.settings-cancel-btn {
    background-color: var(--border-color);
    color: var(--text-color);
}

.settings-cancel-btn:hover {
    background-color: #d0d0d0;
}

/* About Modal */
.about-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.about-modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: var(--accent-color);
}

.about-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.about-section {
    margin-bottom: 24px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.about-section p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: var(--text-color);
}

.about-section ul {
    margin: 0;
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: var(--text-color);
}

.about-section a {
    color: var(--secondary-color);
    text-decoration: none;
}

.about-section a:hover {
    text-decoration: underline;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.modal-close-btn {
    padding: 10px 24px;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: #2980b9;
}

/* Confirm Modal */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.confirm-modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    max-width: 420px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.confirm-modal-body {
    padding: 28px 24px 16px;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

.confirm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 20px;
}

.modal-cancel-btn {
    padding: 9px 20px;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: transparent;
    color: var(--text-color);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.modal-cancel-btn:hover {
    background-color: var(--hover-color);
}

.modal-danger-btn {
    padding: 9px 20px;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: #e74c3c;
    color: white;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.modal-danger-btn:hover {
    background-color: #c0392b;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    z-index: 1200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.toast-visible {
    opacity: 1;
}

.toast.toast-error {
    background-color: #e74c3c;
}


    color: var(--secondary-color);
    text-decoration: underline;
}

/* Back to content link in footnotes */
.song-detail-section-content ol li a[href^="#"][aria-label*="Jump"] {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.9em;
    margin-left: 5px;
}

.song-detail-section-content ol li a[href^="#"][aria-label*="Jump"]:hover {
    text-decoration: underline;
}

/* Print-only elements - hidden on screen */
.print-title {
    display: none;
}

.print-subtitle {
    display: none;
}

/* Print styles for AI Report */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .nav,
    .header,
    .back-to-list-btn,
    .ai-summary-header,
    .regenerate-summary-btn,
    .print-report-btn,
    .delete-summary-btn,
    .tab-buttons,
    .song-list,
    .search-container,
    .search-filter-wrapper,
    .filter-container,
    .sort-container,
    .settings-btn,
    .settings-modal,
    .pagination,
    .loading,
    footer {
        display: none !important;
    }
    
    /* Show the print-only title */
    .print-title {
        display: block !important;
        font-size: 24pt !important;
        font-weight: bold !important;
        color: black !important;
        margin-bottom: 5px !important;
        text-align: center !important;
    }
    
    .print-subtitle {
        display: block !important;
        font-size: 12pt !important;
        color: #666 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        border-bottom: 1px solid #333 !important;
        padding-bottom: 15px !important;
    }
    
    /* Reset page margins */
    @page {
        margin: 1.5cm;
    }
    
    /* Make the body use full width */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    /* Container adjustments */
    .container,
    .song-detail,
    .ai-summary,
    .ai-summary-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    /* Make sure the detail view takes full width */
    #detailView {
        padding: 0 !important;
    }
    
    /* Hide the tabs container but show the active tab content */
    .tab-content {
        padding: 0 !important;
    }
    
    /* Style the title for print */
    .song-detail h1,
    #viewTitle {
        font-size: 18pt !important;
        color: black !important;
        border-bottom: 1px solid #333 !important;
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
    }
    
    /* Section headers */
    .ai-summary-section h2 {
        font-size: 14pt !important;
        color: black !important;
        margin-top: 15px !important;
        margin-bottom: 10px !important;
    }
    
    /* Body text */
    .ai-summary-text,
    .ai-summary-section p,
    .ai-summary-meta div {
        font-size: 11pt !important;
        color: black !important;
    }
    
    /* Links - show URLs in print */
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    /* Sources list */
    .sources-list,
    .youtube-links-list {
        font-size: 10pt !important;
    }
    
    .sources-list li,
    .youtube-links-list li {
        margin-bottom: 5px !important;
    }
    
    /* Footer with generation info */
    .ai-summary-footer {
        margin-top: 20px !important;
        padding-top: 10px !important;
        border-top: 1px solid #ccc !important;
        font-size: 9pt !important;
    }
    
    /* Avoid page breaks inside sections */
    .ai-summary-section {
        page-break-inside: avoid;
    }
    
    /* Force color printing for certain elements if needed */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Introduction View Styles */
.intro-view {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    width: 100%;
    margin: 0;
}

.intro-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.intro-hero h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.intro-section {
    margin-bottom: 40px;
}

.intro-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.intro-section p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

.intro-images {
    position: relative;
    margin: 40px 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.intro-image {
    display: flex;
    flex-direction: column;
    background-color: #1a1a2e;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin: 0 auto;
}

.intro-image:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #1a1a2e;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.intro-image img:hover {
    opacity: 0.9;
}

.image-link {
    display: block;
}

.image-caption {
    padding: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.image-credit {
    padding: 0 15px 10px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    opacity: 0.7;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background-color: var(--secondary-color);
}

.carousel-counter {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.intro-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.quote {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.quote:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    margin: 0 0 15px 0;
}

.quote-attribution {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: right;
    margin: 0;
    font-weight: 500;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .intro-view {
        padding: 20px;
    }
    
    .intro-hero {
        padding: 20px 10px;
        margin-bottom: 30px;
    }
    
    .intro-hero h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
    
    .carousel-container {
        max-width: 100%;
    }
    
    .intro-image img {
        height: 350px;
    }
    
    .carousel-nav {
        gap: 10px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .intro-quotes {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quote {
        padding: 20px;
    }
    
    .quote-text {
        font-size: 1rem;
    }
}

/* Albums View Styles */
.albums-view {
    padding: 20px 0;
}

.albums-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: space-between;
}

.album-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.album-filter-btn {
    padding: 8px 16px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
}

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

.album-filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.album-search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    max-width: 400px;
}

.album-search-input {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    transition: border-color 0.2s ease;
}

.album-search-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.album-clear-search-btn {
    padding: 10px 14px;
    background-color: var(--text-light);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.album-clear-search-btn:hover {
    background-color: var(--accent-color);
}

.albums-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.album-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.album-card:hover {
    box-shadow: var(--shadow-hover);
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.album-header:hover {
    background-color: var(--hover-color);
}

.album-info {
    flex: 1;
}

.album-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.album-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.album-category {
    padding: 2px 10px;
    background-color: var(--bg-color);
    border-radius: 12px;
    font-size: 0.85rem;
}

.album-song-count {
    color: var(--text-light);
}

.album-expand-icon {
    font-size: 1rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.album-card.expanded .album-expand-icon {
    transform: rotate(0deg);
}

.album-songs {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.album-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.album-song-item:last-child {
    border-bottom: none;
}

.album-song-item:hover {
    background-color: var(--hover-color);
}

.album-song-title {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.album-song-ai-indicator {
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.album-song-ai-indicator:hover {
    transform: scale(1.2);
}

.album-song-ai-indicator.exists {
    color: #28a745;
}

.album-song-ai-indicator.missing {
    color: #dc3545;
}

/* Focus styles for keyboard navigation */
.main-tab:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.album-header:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: -2px;
    background-color: var(--hover-color);
}

.album-song-item:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: -2px;
    background-color: var(--hover-color);
}

.album-filter-btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Clear search button in empty state */
.clear-search-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.clear-search-btn:hover {
    background-color: #2980b9;
}

/* Responsive styles for albums view */
@media (max-width: 768px) {
    .albums-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .album-filters {
        justify-content: flex-start;
    }
    
    .album-filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .album-search-container {
        max-width: 100%;
    }
    
    .album-header {
        padding: 15px;
    }
    
    .album-name {
        font-size: 1rem;
    }
    
    .album-meta {
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .album-song-item {
        padding: 10px 15px;
    }
    
    .album-song-title {
        font-size: 0.9rem;
    }
}

/* Album Table View Styles */
.albums-table {
    width: 100%;
}

.albums-table .album-name-col {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 300px;
    cursor: pointer;
}

.albums-table .album-name-col .album-expand-icon {
    display: inline-block;
    width: 20px;
    margin-right: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.albums-table .year-col {
    width: 100px;
    text-align: center;
    color: var(--text-color);
}

.albums-table .songs-count-col {
    width: 80px;
    text-align: center;
    color: var(--text-light);
}

.albums-table .songs-count-col-header {
    width: 80px;
    text-align: center;
}

.albums-table .album-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.albums-table .album-row:hover {
    background-color: var(--hover-color);
}

.albums-table .album-row.expanded {
    background-color: rgba(52, 152, 219, 0.05);
}

.albums-table .album-row.expanded:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Album songs expanded row */
.albums-table .album-songs-row {
    background-color: var(--bg-color);
}

.albums-table .album-songs-row td {
    padding: 0;
}

.albums-table .album-songs-container {
    padding: 10px 20px 10px 50px;
    border-left: 3px solid var(--secondary-color);
    margin-left: 20px;
    animation: slideDown 0.2s ease-out;
}

.albums-table .album-song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 5px;
}

.albums-table .album-song-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.albums-table .album-song-item:hover {
    background-color: var(--hover-color);
}

/* Responsive styles for album table */
@media (max-width: 768px) {
    .albums-table .album-name-col {
        min-width: 200px;
    }
    
    .albums-table .year-col {
        width: 80px;
    }
    
    .albums-table .songs-count-col {
        width: 60px;
    }
    
    .albums-table .album-songs-container {
        padding: 10px 10px 10px 30px;
        margin-left: 10px;
    }
}
