

#pageContent {
    padding-bottom: 12rem;
}

/* Main content: single source of truth */
.main-content {
    flex: 1;
    min-width: 0;
    background: transparent;
}

.songlist-container {
    max-width: 100%;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    --nav-height: 72px;
}

body.light-theme {
    --primary-color: #5a67d8;
    --primary-dark: #4c51bf;
    --secondary-color: #7f5af0;
    --accent-color: #0ca5b3;
    --success-color: #38a169;
    --warning-color: #dd6b20;
    --error-color: #e53e3e;

    --bg-primary: #f7fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f7fafc;
    --bg-glass: rgba(255, 255, 255, 0.8);

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e0;

    --shadow-glow: 0 0 20px rgba(90, 103, 216, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Gradient */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, var(--primary-color) 0%, transparent 50%),
                radial-gradient(ellipse at bottom right, var(--secondary-color) 0%, transparent 50%),
                radial-gradient(ellipse at bottom left, var(--accent-color) 0%, transparent 50%);
    opacity: 0.1;
    z-index: -1;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Navigation */
nav {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
}

.brand img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

/* Mobile Navigation Menu */
.nav-links {
    display: flex;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    transform: translateY(-2px);
}

nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}



.nav-action-item {
    list-style: none;
}

/* Search Container */
.search-container {
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.search-item {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.search-bar {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 2;
}

#searchInput {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    z-index: 10;
    max-height: 300px;
    overflow-y: auto;
    display: none; /* Initially hidden */
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.search-suggestions.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.history-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.history-item i {
    color: var(--text-muted);
    font-size: 0.8rem;
    width: 1em; /* Align text */
}

/* Container */
.container {
    padding: 0 1rem 10rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.songList h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

/* Song Items Container */
.songItemContainer {
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.songItemContainer.grid-view {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .songItemContainer.grid-view {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .songItemContainer.grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .songItemContainer.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Song Items */
.songItem {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem;
}

.songItem::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.songItem:hover::before {
    left: 100%;
}

.songItem:hover {
    transform: translateY(-3px) scale(1.01);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.grid-view .songItem {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
}

.list-view .songItem {
    flex-direction: row;
    padding: 0.875rem;
}

.songItem img {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.grid-view .songItem img {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-lg);
}

.songItem:hover img {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

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

.song-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.songPlay {
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.songPlay:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    background: var(--bg-card);
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.skeleton-item {
    height: 180px;
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    border-radius: var(--border-radius-lg);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Bottom Player */
.bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1rem 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.progress-container {
    position: relative;
    margin-bottom: 0.5rem;
}

#myProgressBar {
    width: 100%;
    height: 3px;
    background: var(--bg-card);
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
    outline: none;
}

#myProgressBar::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.time-separator {
    opacity: 0.5;
}

.bottom-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Song Info */
.songInfo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.song-artwork {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

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

.song-details {
    flex: 1;
    min-width: 0;
}

#currentSongName {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.1rem;
}

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

.like-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.like-btn:hover {
    color: var(--error-color);
    background: var(--bg-card);
}

.like-btn.liked {
    color: var(--error-color);
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 0 0 auto;
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card);
    transform: scale(1.05);
}

.control-btn.active {
    color: var(--primary-color);
}

#masterPlay {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#masterPlay:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
    color: white !important;
}

/* Additional Controls */
.additional-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 1;
}

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

#volumeSlider {
    width: 60px;
    height: 3px;
    background: var(--bg-card);
    border-radius: 2px;
    appearance: none;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

/* Download Status */
.download-status {
    position: fixed;
    bottom: 100px;
    right: 1rem;
    left: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
    animation: slideUp 0.3s ease;
}

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

.download-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#downloadProgress {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    appearance: none;
}

#downloadProgress::-webkit-progress-bar {
    background: var(--bg-card);
    border-radius: 3px;
}

#downloadProgress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    min-width: 35px;
}

/* Loading Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bg-primary-rgb, 15, 15, 35), 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#loadingOverlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-card);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem 10rem 1rem;
    }
    
    .songItemContainer.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        position: relative;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    .songList h1 {
        font-size: 1.75rem;
    }
    
    /* Removed duplicate .section-header and .songItemContainer.grid-view for tablet */
    
    .grid-view .songItem img {
        width: 80px;
        height: 80px;
    }
    
    .bottom {
        padding: 0.5rem 1rem 1rem;
    }
    
    .bottom-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
    }
    
    .songInfo {
        order: 1;
        justify-content: center;
    }
    
    .controls {
        order: 2;
        gap: 1.5rem;
    }
    
    .additional-controls {
        order: 3;
        justify-content: center;
        gap: 1rem;
    }

    .search-item {
        order: 4;
        width: 100%;
    }
    
    .volume-control {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .brand {
        font-size: 1.1rem;
        gap: 0.5rem;
    }
    
    .brand img {
        width: 30px;
        height: 30px;
    }
    
    .search-container {
        padding: 0.75rem;
    }
    
    #searchInput {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.875rem;
    }
    
    .search-icon {
        left: 0.875rem;
        font-size: 0.875rem;
    }
    
    .container {
        padding: 0 0.75rem 9rem 0.75rem;
    }
    
    .songList h1 {
        font-size: 1.5rem;
    }
    
    /* Removed duplicate .songItemContainer.grid-view for mobile */
    
    .grid-view .songItem {
        padding: 1rem 0.75rem;
    }
    
    .grid-view .songItem img {
        width: 70px;
        height: 70px;
    }
    
    .song-name {
        font-size: 0.8rem;
    }
    
    .song-artist {
        font-size: 0.7rem;
    }
    
    .songPlay {
        font-size: 1.1rem;
    }
    
    .loading-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skeleton-item {
        height: 150px;
    }
    
    .bottom-row {
        gap: 0.5rem;
    }
    
    .song-artwork {
        width: 35px;
        height: 35px;
    }
    
    #currentSongName {
        font-size: 0.75rem;
    }
    
    .song-artist {
        font-size: 0.65rem;
    }
    
    .controls {
        gap: 1rem;
    }
    
    .control-btn {
        font-size: 0.9rem;
        padding: 0.375rem;
    }
    
    #masterPlay {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .additional-controls {
        gap: 0.75rem;
    }
    
    .time-display {
        font-size: 0.65rem;
    }
    
    .download-status {
        bottom: 90px;
        margin: 0 0.5rem;
        padding: 0.75rem;
    }
    
    .view-toggle {
        align-self: flex-end;
    }
}

/* Extra Small Screens */
@media (max-width: 320px) {
    /* Removed duplicate .songItemContainer.grid-view for extra small screens */
    
    .controls {
        gap: 0.75rem;
    }
    
    .additional-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .songItem:hover {
        transform: none;
        background: var(--bg-card);
    }
    
    .songItem:active {
        transform: scale(0.98);
        background: var(--bg-card-hover);
    }
    
    .control-btn:hover {
        transform: none;
    }
    
    .control-btn:active {
        transform: scale(0.95);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 0.5s ease forwards;
}

@keyframes slideUpFade {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Empty state and active song styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    grid-column: 1 / -1;
}

.songItem.active {
    background: var(--bg-card-hover) !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Notification animations */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}


/* About Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Story Section */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: center;
}

.story-content {
    animation: fadeInLeft 0.8s ease;
}

.story-visual {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.story-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.story-card:hover::before {
    left: 100%;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Mission & Vision */
.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.mission-card, .vision-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-10px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.mission-icon, .vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .story-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .story-card,
    .mission-card,
    .vision-card,
    .team-card {
        padding: 2rem;
    }

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


/*Contact Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-link:hover {
    color: var(--secondary-color);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 120px;
    max-height: 200px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

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

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

/* Success Message */
.success-message {
    display: none;
    background: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

/* Error Message */
.error-message {
    display: none;
    background: var(--error-color);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

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

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

    .page-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading and animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Artists Page --- */
.artists-container .page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.artist-search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
}

#artistSearchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#artistSearchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.artist-search-bar .search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

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

.artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- Genre Pages Styles --- */
.genre-page {
    padding: 2rem 1rem 8rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.genre-page .page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.genre-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.genre-page .page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Genre Info Section */
.genre-info-section {
    margin: 3rem 0;
}

.genre-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.genre-card:hover::before {
    left: 100%;
}

.genre-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.genre-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--bg-card-hover);
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.1rem;
    width: 1.2em;
    text-align: center;
}

/* Music Categories */
.music-categories, .use-cases-section, .youtube-niches-section, .music-moods-section, .creator-tips-section {
    margin: 4rem 0;
}

.music-categories h2, .use-cases-section h2, .youtube-niches-section h2, .music-moods-section h2, .creator-tips-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-grid, .use-case-grid, .niche-grid, .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card, .use-case-item, .niche-item, .tip-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before, .use-case-item::before, .niche-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.category-card:hover::before, .use-case-item:hover::before, .niche-item:hover::before {
    left: 100%;
}

.category-card:hover, .use-case-item:hover, .niche-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.category-card i, .use-case-item i, .niche-item i, .tip-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.category-card h3, .use-case-item h3, .niche-item h3, .tip-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.category-card p, .use-case-item p, .niche-item p, .tip-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Gaming Page Specific Styles */
.game-genres-section {
    margin: 3rem 0;
    text-align: center;
}

.genre-tags, .mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.genre-tag, .mood-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.genre-tag::before, .mood-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.genre-tag:hover::before, .mood-tag:hover::before {
    left: 0;
}

.genre-tag:hover, .mood-tag:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Music Section */
.genre-music-section {
    margin: 4rem 0;
}

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