:root {
    --primary-color: #1db954;
    --secondary-color: #191414;
    --background: #121212;
    --surface: #282828;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --error: #e22134;
    --success: #1db954;
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

body.has-player-active {
    padding-bottom: 72px;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #191414 0%, #282828 100%);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(29, 185, 84, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo-section {
    display: flex;
    align-items: center;
    margin-left: -0.5rem;
}

.logo-section a {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.logo-section a:hover {
    opacity: 0.8;
}

.logo {
    height: 60px;
    width: auto;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1db954, #1ed760);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.9;
}

/* Forum Button */
.forum-button {
    margin-left: 1.5rem;
    margin-right: auto;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
}

.forum-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.forum-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50%, 100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.username {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.username-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.username-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #667eea;
}

.username-link.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.logout-link {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.logout-link .material-symbols-outlined {
    font-size: 1.2rem;
}

.logout-link:hover {
    background-color: rgba(255, 99, 71, 0.1) !important;
    color: #ff6347 !important;
}

/* Main Layout */
.main-layout {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 200px);
}

/* Sidebar */
.sidebar {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

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

.sidebar-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sort-btn,
.genre-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-btn:hover,
.genre-btn:hover {
    background: rgba(29, 185, 84, 0.1);
    border-color: var(--primary-color);
}

.sort-btn.active,
.genre-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.sort-btn .icon {
    font-size: 0.85rem;
}

.genre-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.genre-list::-webkit-scrollbar {
    width: 6px;
}

.genre-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.genre-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.content-wrapper {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 2rem 0;
}

#searchInput,
#catalogSearch {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#searchInput:focus,
#catalogSearch:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(29, 185, 84, 0.15);
    transform: translateY(-1px);
}

#searchInput::placeholder,
#catalogSearch::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    background: rgba(29, 185, 84, 0.2);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--surface);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

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

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 120px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    background-color: #3e3e3e;
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img.card-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
    display: block;
}

.card-image img.card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.artist-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.artist-link:hover {
    text-decoration: underline;
    color: #1ed760;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Player */
/* Player Bar */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    height: 100px;
    max-width: 100%;
}

.player.hidden {
    display: none;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 280px;
    flex-shrink: 0;
}

.player-cover {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: block;
}

.player-text {
    overflow: hidden;
    min-width: 0;
    flex: 1;
}

.player-track {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 0;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    position: relative;
}

.player-track.scrolling {
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% + 180px)); }
}

.player-track:hover {
    color: var(--primary-color);
}

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

.player-artist a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.player-artist a:hover {
    color: var(--primary-color);
}

.player-center {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    min-width: 400px !important;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.play-btn {
    background: var(--primary-color);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.4);
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.6);
    background: #1ed760;
}

.play-btn svg {
    margin-left: 2px;
}

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

.control-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.progress-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    flex: 1 !important;
    width: 100% !important;
}

.progress-container {
    height: 8px !important;
    background-color: rgba(179, 179, 179, 0.3) !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    min-width: 200px !important;
}

.progress-container:hover {
    height: 10px;
}

.progress-container:hover .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #1ed760);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-container:hover .progress-bar::after {
    opacity: 1;
}

.time-display {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    min-width: 45px;
    flex-shrink: 0;
}

.player-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 260px;
    flex-shrink: 0;
    justify-content: flex-end;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    flex-shrink: 0;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.volume-icon-btn .material-symbols-outlined {
    font-size: 24px;
}

.volume-icon-btn:hover {
    color: var(--text-primary);
}

.volume-slider-wrapper {
    position: relative;
    width: 110px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    pointer-events: none;
    width: 0%;
    max-width: calc(100% - 8px);
    z-index: 1;
    transition: width 0.1s ease;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(179, 179, 179, 0.3);
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: -4px;
    transition: all 0.2s;
}

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

.volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(179, 179, 179, 0.3);
    border-radius: 2px;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.volume-slider:hover::-moz-range-thumb {
    background: var(--primary-color);
    transform: scale(1.1);
}

.player-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.player-actions .action-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    position: relative;
}

.player-actions .action-icon-btn .material-symbols-outlined {
    font-size: 22px;
}

.player-actions .action-icon-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

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

#qualityInfo::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 0.625rem 0.875rem;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: pre-line;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    min-width: 120px;
    text-align: left;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

#qualityInfo:hover::after {
    opacity: 1;
}

.player-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-slider {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: rgba(179, 179, 179, 0.3);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.player-actions {
    display: flex;
    gap: 0.75rem;
}

.download-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flac-btn {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.flac-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

.mp3-btn {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.mp3-btn:hover {
    background-color: var(--text-secondary);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 179, 179, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal:not(.hidden) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--surface), var(--secondary-color));
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s;
    text-align: center;
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-btn {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.modal-btn:hover {
    background: #1ed760;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.4);
}

/* Download Modal Styles */
.download-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.download-modal-btn {
    flex: 1;
    background: var(--surface);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.download-modal-btn svg {
    width: 32px;
    height: 32px;
    margin-bottom: 0.25rem;
}

.download-modal-btn span {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-modal-btn small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.download-modal-btn.flac-btn {
    border-color: var(--primary-color);
}

.download-modal-btn.flac-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.download-modal-btn.flac-btn:hover small {
    color: rgba(255, 255, 255, 0.9);
}

.download-modal-btn.mp3-btn {
    border-color: rgba(179, 179, 179, 0.3);
}

.download-modal-btn.mp3-btn:hover {
    background: rgba(179, 179, 179, 0.2);
    border-color: rgba(179, 179, 179, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 179, 179, 0.15);
}

/* Recent Activity Modal */
.modal-content-wide {
    max-width: 1250px !important;
    width: 92% !important;
    padding: 2rem 1.5rem;
}

.recent-modal-list {
    margin-top: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recent-modal-list::-webkit-scrollbar {
    width: 8px;
}

.recent-modal-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.recent-modal-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.recent-modal-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Album Detail View */
.album-detail {
    grid-column: 1 / -1;
    max-width: 100%;
    width: 100%;
}

.album-detail-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.album-detail-cover-container {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.album-detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-detail-cover.clickable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.album-detail-cover.clickable:hover {
    opacity: 0.85;
}

.album-detail-cover-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.album-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.album-detail-type {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.album-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

.album-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.album-detail-meta .separator {
    margin: 0 0.25rem;
}

/* Album detail action icons */
.album-detail-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.action-icon-btn {
    background: var(--surface-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.action-icon-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Track List */
.track-list-container {
    padding: 0;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.track-list-header {
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.track-list {
    display: flex;
    flex-direction: column;
}

.track-list-item {
    display: grid;
    grid-template-columns: 40px 1fr 80px;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
}

.track-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.track-list-item.active {
    background: rgba(29, 185, 84, 0.1);
    border-radius: 8px;
}

.track-list-item.active .track-list-number,
.track-list-item.active .track-title-text,
.track-list-item.active .track-list-duration {
    color: var(--primary-color);
}

.track-list-number {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
}

.track-number-text {
    transition: opacity 0.15s ease;
}

.track-list-item:hover .track-number-text {
    opacity: 0;
}

.track-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.15s ease;
    opacity: 0;
    pointer-events: none;
}

.track-play-btn:hover {
    color: #1ed760;
}

.track-list-item:hover .track-play-btn {
    opacity: 1;
    pointer-events: auto;
}

.track-play-btn:focus-visible {
    opacity: 1;
    pointer-events: auto;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.track-list-title {
    overflow: hidden;
}

.track-title-text {
    font-weight: 400;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.05rem;
    line-height: 1.2;
}

.track-artist-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.track-artist-text a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 2px;
}

.track-list-item.active .track-artist-text a {
    color: var(--primary-color);
}

.track-list-duration {
    color: var(--text-secondary);
    text-align: right;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

/* Catalog sections */
.catalog-section {
    margin-bottom: 1rem;
}

.catalog-letter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--surface);
}

.genre-card {
    background: linear-gradient(135deg, var(--surface), var(--secondary-color));
    border: 2px solid transparent;
    transition: all 0.3s;
}

.genre-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background-color: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--background);
    border: 1px solid var(--surface);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Artist Autocomplete */
.artist-autocomplete {
    position: relative;
}

.artist-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.artist-autocomplete-item {
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.artist-autocomplete-item:hover,
.artist-autocomplete-item.selected {
    background-color: rgba(29, 185, 84, 0.2);
}

.artist-autocomplete-item:last-child {
    border-bottom: none;
}

.artist-autocomplete-item .artist-name {
    font-weight: 500;
    color: var(--text-primary);
}

.artist-autocomplete-item .artist-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.artist-autocomplete-create {
    padding: 0.75rem;
    background: rgba(29, 185, 84, 0.1);
    border-top: 1px solid rgba(29, 185, 84, 0.3);
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
    color: var(--primary-color);
}

.artist-autocomplete-create:hover {
    background: rgba(29, 185, 84, 0.2);
}

.artist-autocomplete-create .icon {
    margin-right: 0.5rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #1ed760;
    transform: scale(1.02);
}

.btn-secondary {
    padding: 1rem;
    background-color: var(--surface);
    border: 1px solid var(--text-secondary);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
}

.error-message {
    background-color: rgba(226, 33, 52, 0.2);
    color: var(--error);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--error);
}

.success-message {
    background-color: rgba(29, 185, 84, 0.2);
    color: var(--success);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--success);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
}

/* Admin Panel */
.admin-panel {
    max-width: 1200px;
    margin: 1rem auto;
    background-color: var(--surface);
    padding: 1.25rem;
    border-radius: var(--border-radius);
}

.admin-panel h2 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Upload Type Selector */
.upload-type-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-btn {
    background: var(--background);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    min-width: 200px;
}

.type-btn:hover {
    border-color: var(--primary-color);
    background: rgba(29, 185, 84, 0.05);
}

.type-btn.active {
    border-color: var(--primary-color);
    background: rgba(29, 185, 84, 0.1);
    color: var(--text-primary);
}

.type-btn .icon {
    font-size: 2rem;
}

.type-btn .label {
    font-weight: 600;
    font-size: 1rem;
}

.type-btn .desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* File Upload Section */
.file-upload-section {
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed var(--text-secondary);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(29, 185, 84, 0.05);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(29, 185, 84, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area h3 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.25rem;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-limit {
    margin-top: 1rem;
    font-size: 0.85rem !important;
    color: var(--primary-color) !important;
}

/* Upload Progress */
.upload-progress {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
}

.upload-progress.hidden {
    display: none;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #1ed760);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* File List */
.file-list {
    margin-bottom: 2rem;
}

.file-list.hidden {
    display: none;
}

.file-item {
    background: var(--background);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.file-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Per-Track Featured Artists */
.track-featured-section {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.featured-artists-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.featured-artist-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.featured-artist-input {
    flex: 1;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.featured-artist-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.remove-featured-btn {
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: rgba(255, 100, 100, 0.8);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.remove-featured-btn:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.5);
    color: #ff6464;
}

.add-featured-btn {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.add-featured-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(29, 185, 84, 0.05);
}

.file-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.file-status.success {
    color: var(--success);
}

.file-status.error {
    color: var(--error);
}

.file-status.loading {
    color: var(--text-secondary);
}

.remove-file {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.remove-file:hover {
    color: var(--error);
}

/* Upload Form */
.upload-form {
    margin-top: 2rem;
}

.upload-form.hidden {
    display: none;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Cover Art Section */
.cover-art-upload-area {
    width: fit-content;
}

.cover-preview-large {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.cover-preview-large:hover {
    border-color: var(--primary-color);
    background: rgba(29, 185, 84, 0.05);
}

.cover-preview-large.has-image {
    border-style: solid;
    cursor: pointer;
    position: relative;
}

.cover-preview-large.has-image::after {
    content: 'Click to replace';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-color);
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0;
    transition: var(--transition);
}

.cover-preview-large.has-image:hover::after {
    opacity: 1;
}

.cover-preview-large.has-image:hover {
    border-color: var(--primary-color);
}

.cover-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cover-placeholder {
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cover-placeholder .upload-icon {
    font-size: 3rem;
}

.cover-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

/* Old cover art styles for compatibility */
.cover-art-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.cover-preview {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

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

.cover-placeholder {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.9rem;
}

.cover-upload {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cover-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.cover-status.success {
    color: var(--success);
}

/* Track List */
.track-list {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.track-item {
    padding: 1rem;
    border-bottom: 1px solid var(--surface);
    display: grid;
    grid-template-columns: 40px 1fr 2fr 80px;
    gap: 1rem;
    align-items: center;
}

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

.track-number {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.track-title {
    font-weight: 500;
}

.track-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.track-duration {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: right;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

.status-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.status-message.success {
    background-color: rgba(29, 185, 84, 0.2);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.status-message.error {
    background-color: rgba(226, 33, 52, 0.2);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.status-message.hidden {
    display: none;
}

/* Upload Info Box */
.upload-info-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 0 2rem 0;
    display: flex;
    gap: 1rem;
}

.upload-info-box .info-icon {
    font-size: 2rem;
    line-height: 1;
}

.upload-info-box .info-content {
    flex: 1;
}

.upload-info-box h4 {
    margin: 0 0 0.75rem 0;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-info-box ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.upload-info-box li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.upload-info-box li:last-child {
    margin-bottom: 0;
}

/* Section Description */
.section-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: -0.5rem 0 1rem 0;
}

/* Editable Track List */
.track-list-editable {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.track-item-editable {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.track-item-editable:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.track-item-editable.dragging {
    opacity: 0.5;
}

.track-item-editable.drag-over-top {
    border-top: 3px solid var(--primary-color);
}

.track-item-editable.drag-over-bottom {
    border-bottom: 3px solid var(--primary-color);
}

.track-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.track-drag-handle {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    line-height: 1;
    cursor: grab;
    user-select: none;
    padding: 0.25rem;
    transition: color 0.2s;
}

.track-drag-handle:hover {
    color: rgba(255, 255, 255, 0.6);
}

.track-item-editable.dragging .track-drag-handle {
    cursor: grabbing;
}

.track-number-badge {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 2.5rem;
    text-align: center;
}

.track-filename-display {
    flex: 1;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-metadata-fields {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 0.75rem;
    align-items: start;
}

.track-metadata-fields .form-group {
    margin-bottom: 0;
}

.track-metadata-fields label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

.track-metadata-fields input {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
}

/* Track Featured Artists in Track List */
.track-featured-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-featured-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.featured-artist-tag {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.featured-artist-name {
    color: rgba(255, 255, 255, 0.9);
}

.remove-featured-tag {
    background: transparent;
    border: none;
    color: rgba(255, 100, 100, 0.8);
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.remove-featured-tag:hover {
    color: #ff6464;
}

.add-track-featured-btn {
    background: transparent;
    border: 1px dashed rgba(102, 126, 234, 0.4);
    color: rgba(102, 126, 234, 0.9);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.add-track-featured-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.6);
}

/* Album Info Grid Layout */
.album-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.cover-art-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cover-preview-compact {
    width: 350px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.cover-preview-compact:hover {
    border-color: var(--primary-color);
    background: rgba(29, 185, 84, 0.05);
}

.cover-preview-compact.has-image {
    border-style: solid;
}

.cover-preview-compact img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cover-preview-compact .cover-placeholder {
    text-align: center;
    padding: 1rem;
}

.cover-preview-compact .upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cover-preview-compact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.form-fields-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Compact Compilation Toggle */
.compilation-toggle-compact {
    margin-top: 0.5rem;
}

.compilation-toggle-compact .toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.compilation-toggle-compact .toggle-label:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.compilation-toggle-compact input[type="checkbox"] {
    display: none;
}

.compilation-toggle-compact .toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.compilation-toggle-compact .toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.compilation-toggle-compact input[type="checkbox"]:checked + .toggle-slider {
    background: #1db954;
}

.compilation-toggle-compact input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.compilation-toggle-compact .toggle-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Artist Search Modal */
.artist-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-search-modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--background);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.artist-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.artist-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.btn-add-manual {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-add-manual:hover {
    background: #1ed760;
    transform: translateY(-1px);
}

.search-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    text-align: center;
}

.search-results-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artist-search-results {
    max-height: 400px;
    overflow-y: auto;
}

.artist-search-item {
    padding: 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.artist-search-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.artist-search-item .artist-name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.artist-search-item .artist-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.artist-search-create {
    padding: 1rem;
    border-radius: 6px;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.3);
    margin-top: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(29, 185, 84, 0.9);
    font-weight: 500;
    transition: all 0.2s;
}

.artist-search-create:hover {
    background: rgba(29, 185, 84, 0.15);
    border-color: rgba(29, 185, 84, 0.5);
}

.artist-search-create .icon {
    font-size: 1.25rem;
    font-weight: bold;
}

.search-loading,
.search-no-results,
.search-error {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal.hidden {
    display: none;
}

.success-modal .modal-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 450px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1db954;
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-modal h2 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-weight: 600;
}

.success-modal p {
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 200px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Upload Button Enhancement */
.btn-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
}

.btn-upload .btn-icon {
    font-size: 1.3rem;
}

.btn-upload:hover .btn-icon {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.metadata-preview {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
}

.metadata-preview pre {
    color: var(--text-secondary);
    overflow-x: auto;
}

small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    body.has-player-active {
        padding-bottom: 250px;
    }

    .main-layout {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Mobile-optimized player */
    .player {
        flex-direction: row !important;
        gap: 1.5rem !important;
        padding: 0.75rem 1.5rem !important;
        height: 90px !important;
    }

    .player-info {
        width: 200px !important;
        flex-shrink: 0 !important;
    }

    .player-center {
        flex-grow: 1 !important;
        flex-shrink: 1 !important;
    }

    .player-right {
        width: 200px !important;
        flex-shrink: 0 !important;
    }

    .progress-wrapper {
        gap: 0.5rem !important;
        flex: 1 !important;
    }

    .progress-container {
        height: 6px !important;
        flex-grow: 1 !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .nav-link span {
        display: none;
    }

    /* Admin panel mobile */
    .upload-type-selector {
        flex-direction: column;
    }

    .cover-art-container {
        flex-direction: column;
    }

    .cover-preview {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .track-item {
        grid-template-columns: 30px 1fr 60px;
        gap: 0.5rem;
    }

    .track-artist {
        display: none;
    }
}

/* Admin Dashboard */
.admin-dashboard {
    margin: 2rem 0;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--surface);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

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

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

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

.table-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.sort-select,
.limit-select {
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
}

.admin-table {
    width: 100%;
    background: var(--surface);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.admin-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-cover {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: var(--transition);
}

.btn-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-single {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Modal */
/* Removed duplicate modal styles - using definition at line 770 */

/* Removed duplicate - see line 749 for modal-content styles */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: #1ed760;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #c41d2e;
}

/* Recent Section - Bottom Changelog */
/* Removed - Recent section now in modal */

.recent-item {
    display: grid;
    grid-template-columns: 2.2fr 2fr 65px 90px;
    gap: 1.25rem;
    padding: 1rem 2rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

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

.recent-item:hover {
    background: rgba(29, 185, 84, 0.05);
}

.recent-title {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-artist {
    color: var(--text-secondary);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-year {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

.recent-date {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .recent-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        padding: 0.75rem 1rem;
    }
    
    .recent-year,
    .recent-date {
        text-align: left;
    }
}

/* Artist Page Styling */
.artist-page-header {
    position: relative;
    padding: 4rem 0 2rem;
    margin-bottom: 3rem;
    background: linear-gradient(180deg, rgba(29, 185, 84, 0.15) 0%, transparent 100%);
    border-radius: var(--border-radius);
}

.artist-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.artist-name {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #b3b3b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.artist-type {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.artist-section {
    margin-top: 3rem;
}

.artist-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(29, 185, 84, 0.3);
    grid-column: 1 / -1;
}

.artist-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.artist-section-count {
    background: rgba(29, 185, 84, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.artist-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.3), transparent);
}

.no-content-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.no-content-message::before {
    content: '🎵';
    display: block;
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .artist-name {
        font-size: 2.5rem;
    }
    
    .artist-section-header {
        flex-wrap: wrap;
    }
    
    .artist-section-line {
        display: none;
    }
}

/* Admin Dashboard: Artist Detail View */
.artist-detail-view {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.artist-detail-view.hidden {
    display: none;
}

.artist-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #191414 0%, #282828 100%);
    border-top: 1px solid rgba(29, 185, 84, 0.2);
    margin-top: 4rem;
    padding: 1rem 0;
    color: var(--text-secondary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-section {
    flex: 1;
    min-width: 180px;
}

.footer-section h4 {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-section p {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
    opacity: 0.85;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    opacity: 0.85;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(29, 185, 84, 0.05);
    border: 1px solid rgba(29, 185, 84, 0.1);
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    background: rgba(29, 185, 84, 0.15);
    border-color: rgba(29, 185, 84, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.2);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.5;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .footer-links a {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

.artist-detail-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.artist-discography {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.discography-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.discography-header {
    margin-bottom: 1rem;
}

.discography-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.discography-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.discography-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.discography-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-expand {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-expand:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.item-tracks {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.item-tracks.hidden {
    display: none;
}

.tracks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tracks-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.tracks-table th {
    text-align: left;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tracks-table td {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tracks-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.tracks-table .actions {
    display: flex;
    gap: 0.5rem;
}

.no-tracks {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.no-content {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
}

.error {
    text-align: center;
    padding: 1rem;
    color: #ff4444;
}

.artist-link {
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.artist-link:hover {
    text-decoration: underline;
}

.modal-wide {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cover-art-upload-section {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cover-preview {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
}

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

.cover-preview .no-cover {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .artist-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tracks-table {
        font-size: 0.8rem;
    }
    
    .tracks-table th,
    .tracks-table td {
        padding: 0.5rem;
    }
}

/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

/* Homepage Styles */
.homepage {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    grid-column: 1 / -1;
}

.homepage-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
    margin-bottom: 2rem;
    color: white;
}

.homepage-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.homepage-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
}

.homepage-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.homepage-description {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.homepage-description p {
    margin: 1rem 0;
}

.homepage-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.feature-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.homepage-cta {
    text-align: center;
    margin: 2rem 0;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .homepage {
        padding: 0;
    }
    
    .homepage-hero {
        padding: 3rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .homepage-title {
        font-size: 2.5rem;
    }
    
    .homepage-subtitle {
        font-size: 1.2rem;
    }
    
    .homepage-content {
        padding: 0 1rem 3rem;
        gap: 2.5rem;
    }
    
    .homepage-description {
        font-size: 1rem;
    }
    
    .homepage-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.error {
    background: var(--error);
}

.toast-icon {
    font-size: 1.2rem;
}

.toast-message {
    font-size: 0.95rem;
}

/* Profile Page Styles */
.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.profile-page h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #fff;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.profile-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.profile-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.profile-tab.active {
    color: #fff;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.profile-tab-content {
    position: relative;
}

.profile-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.profile-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

.uploads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.upload-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.upload-icon {
    font-size: 2rem;
    line-height: 1;
}

.upload-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.upload-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upload-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.upload-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.btn-view {
    padding: 0.6rem 1.2rem;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-view:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

.empty-state,
.error-state,
.loading-text {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
}

.error-state {
    color: rgba(255, 100, 100, 0.6);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .upload-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-view {
        width: 100%;
        text-align: center;
    }
}

/* Featured Artists UI */
.featured-artists-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.featured-artists-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.featured-artist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.featured-artist-item input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.featured-artist-item .btn-remove {
    padding: 0.5rem 0.75rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.featured-artist-item .btn-remove:hover {
    opacity: 0.8;
}

.btn-add-artist {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-add-artist:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(29, 185, 84, 0.05);
}

.btn-add-artist span:first-child {
    font-size: 1.2rem;
    font-weight: bold;
}
/* Compilation Toggle Styles */
.compilation-toggle-group {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.compilation-toggle-group:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #1db954;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-text {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
}

.help-text {
    margin: 0.75rem 0 0 0;
    padding-left: 68px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* Catalog View Styles */
.catalog-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.catalog-view.hidden {
    display: none;
}

.catalog-view .search-section {
    padding: 0 0.5rem;
    margin-bottom: 2.5rem;
}

.catalog-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.catalog-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.catalog-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.catalog-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* A-Z Filter */
.az-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
}

.az-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.az-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.az-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Catalog List */
.catalog-list {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.catalog-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    cursor: pointer;
    gap: 1rem;
}

.catalog-item-special {
    background: linear-gradient(90deg, rgba(29, 185, 84, 0.15) 0%, rgba(29, 185, 84, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.catalog-item:hover {
    background: rgba(29, 185, 84, 0.1);
    transform: translateX(8px);
}

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

.catalog-item-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 40px;
    text-align: right;
    font-weight: 500;
}

.catalog-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.catalog-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-item-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-item-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.catalog-item-year {
    min-width: 50px;
}

.catalog-item-duration {
    min-width: 50px;
}

.catalog-item-count {
    min-width: 80px;
    text-align: right;
}

.catalog-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.catalog-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 4rem 2rem;
}

.catalog-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(29, 185, 84, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.catalog-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.catalog-empty-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.catalog-empty-subtext {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* Load More Button */
.catalog-load-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    margin-top: 1rem;
}

.load-more-btn {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid rgba(29, 185, 84, 0.3);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Upload Header */
.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.upload-header h2 {
    margin: 0;
}

.rules-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(29, 185, 84, 0.1);
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.rules-link:hover {
    background: rgba(29, 185, 84, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.rules-link .icon {
    font-size: 1.2rem;
}

/* Upload Rules Page */
.upload-rules-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--surface);
}

.rules-header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.rules-section {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.rules-section h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rules-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.rules-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-text ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.rules-text ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.rules-text strong {
    color: var(--text-primary);
}

.rules-text em {
    color: rgba(255, 255, 255, 0.5);
}

.rules-text p {
    margin: 0.75rem 0;
}

.rules-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--surface);
    text-align: center;
}

.rules-footer .btn-primary {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Metadata Loading State */
.metadata-loading {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(29, 185, 84, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.metadata-loading h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.loading-progress {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.loading-filename {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin: 0.5rem 0 1.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.metadata-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(29, 185, 84, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.metadata-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Source Labels */
.source-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    margin-left: 4px;
    vertical-align: 1px;
    letter-spacing: 0.02em;
    transition: all 0.2s;
}

.card:hover .source-label {
    background: rgba(29, 185, 84, 0.2);
    color: var(--primary-color);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(30px) saturate(0.8);
    -webkit-backdrop-filter: blur(30px) saturate(0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(29, 185, 84, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    opacity: 0.5;
}