/**
 * Looviq Premium Lyrics Design System
 * 2026 Modern, Mobile-First, SEO & Performance Optimized
 */

:root {
    --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-lyrics: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Pure Modern White / Light Theme */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-surface-glass: rgba(255, 255, 255, 0.9);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(124, 58, 237, 0.25);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.15);
    --accent: #0891b2;
    --accent-glow: rgba(8, 145, 178, 0.12);
    --gold: #f59e0b;
    
    --success: #10b981;
    --danger: #ef4444;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    --header-height: 70px;
    --container-max: 1240px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
    max-width: 100%;
}

button {
    cursor: pointer;
    user-select: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
}

.main-content {
    flex: 1 0 auto;
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--bg-surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.18rem, 4vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    white-space: nowrap;
}

.brand-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-logo .logo-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 440px;
    position: relative;
    display: none;
}
@media (min-width: 768px) {
    .header-search {
        display: block;
    }
}

.header-search form {
    position: relative;
    width: 100%;
}

.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 2.8rem 0 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-surface-elevated);
}

.header-search .search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.header-search .search-btn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: transform 0.2s ease, background 0.2s ease;
}
.header-search .search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.05);
}

/* Header Nav Links */
.header-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.4rem 0.2rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
    border-color: var(--border-highlight);
}

.mobile-menu-btn {
    display: flex;
}
@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.d-mobile-only {
    display: flex;
}
@media (min-width: 768px) {
    .d-mobile-only {
        display: none !important;
    }
}

/* Mobile Slide-out Drawer */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    z-index: 2001;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}
.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.drawer-search {
    margin-bottom: 1.5rem;
}
.drawer-search form {
    position: relative;
}
.drawer-search input {
    width: 100%;
    height: 44px;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 2.5rem 0 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.drawer-search button {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.drawer-nav-item:hover, .drawer-nav-item.active {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}
.drawer-nav-item i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.drawer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 1.2rem 0 0.5rem 0.5rem;
}

/* Category Quick Bar (Subheader) */
.category-quick-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.65rem 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.category-quick-bar .container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-quick-bar .container::-webkit-scrollbar {
    display: none;
}

.category-chips-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    white-space: nowrap;
    width: max-content;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.category-chip:hover, .category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--primary-glow);
    transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumb-wrapper {
    margin-bottom: 1.5rem;
    width: 100%;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    font-size: 0.84rem;
    color: var(--text-muted);
    word-break: break-word;
    overflow-wrap: break-word;
}

.breadcrumb-item {
    word-break: break-word;
    overflow-wrap: break-word;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}
.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: clamp(1.75rem, 5vw, 3rem) 0 2rem;
    text-align: center;
    overflow: hidden;
    width: 100%;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 90vw);
    height: 350px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(1.6rem, 6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.9rem;
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-title span {
    background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.92rem, 2.5vw, 1.05rem);
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Big Hero Search Box */
.hero-search-box {
    max-width: 620px;
    width: 100%;
    margin: 0 auto 1.5rem;
    position: relative;
}

.hero-search-box form {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.35rem 0.35rem 1.25rem;
    box-shadow: var(--shadow-md), 0 0 25px rgba(139, 92, 246, 0.08);
    transition: all 0.3s ease;
    width: 100%;
}

.hero-search-box form:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 35px var(--primary-glow);
}

.hero-search-box input {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.hero-search-box input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--primary-glow);
}
.hero-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

@media (max-width: 480px) {
    .hero-search-box form {
        padding: 0.3rem 0.3rem 0.3rem 0.85rem;
    }
    .hero-search-btn {
        padding: 0.65rem 0.9rem;
        font-size: 0.85rem;
    }
    .hero-search-btn span {
        display: none;
    }
}

.hero-trending-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-tag-pill {
    padding: 0.25rem 0.75rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.hero-tag-pill:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

/* Section Common Styling */
.section-wrapper {
    margin-bottom: 3.5rem;
    width: 100%;
}

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

.section-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.section-tag {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.section-title {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.section-view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: gap 0.2s ease;
}
.section-view-all:hover {
    gap: 0.55rem;
}

/* Song Grid & Cards */
.song-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    width: 100%;
}
@media (min-width: 640px) {
    .song-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .song-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.song-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    width: 100%;
    min-width: 0;
}

.song-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md), 0 0 20px rgba(139, 92, 246, 0.12);
}

.song-card__cover-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-surface-elevated);
    overflow: hidden;
}

.song-card__cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.song-card:hover .song-card__cover {
    transform: scale(1.05);
}

.song-card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: calc(100% - 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.badge-trending {
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
}
.badge-category {
    background: rgba(15, 20, 34, 0.85);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.song-card__play-btn {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
}
.song-card:hover .song-card__play-btn {
    opacity: 1;
    transform: scale(1);
}

.song-card__content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.song-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}
.song-card:hover .song-card__title {
    color: var(--primary);
}

.song-card__artists {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.song-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    font-size: 0.74rem;
    color: var(--text-muted);
    padding-top: 0.4rem;
    border-top: 1px solid var(--border-subtle);
    gap: 0.35rem;
    flex-wrap: wrap;
}

.song-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

@media (max-width: 380px) {
    .song-grid {
        gap: 0.55rem;
    }
    .song-card__content {
        padding: 0.55rem;
    }
    .song-card__title {
        font-size: 0.84rem;
    }
    .song-card__artists {
        font-size: 0.72rem;
    }
    .song-card__footer {
        font-size: 0.68rem;
    }
}

/* Category Grid (Language Showcase) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    width: 100%;
}
@media (min-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md);
}
.category-card:hover::before {
    opacity: 1;
}

.category-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bg-surface-elevated);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.category-card:hover .category-card__icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.category-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
}

.category-card__count {
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Artist Showcase */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
}
@media (min-width: 480px) {
    .artists-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}
@media (min-width: 1024px) {
    .artists-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* Artists Directory Card Grid */
.artists-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    width: 100%;
}
@media (min-width: 640px) {
    .artists-grid-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .artists-grid-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.artist-circle-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: transform 0.25s ease;
    min-width: 0;
    width: 100%;
}
.artist-circle-card:hover {
    transform: translateY(-3px);
}

.artist-avatar-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    flex-shrink: 0;
}

.artist-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-surface-elevated);
}

.artist-circle-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SEO Content Card */
.seo-rich-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 3rem;
}

.seo-rich-card h2, .seo-rich-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}
.seo-rich-card h2 {
    font-size: 1.4rem;
}
.seo-rich-card h3 {
    font-size: 1.15rem;
    margin-top: 1.25rem;
}

.seo-rich-card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Song Detail Page Layout */
.song-detail-layout {
    display: grid;
    grid-template-columns: 100%;
    gap: 1.5rem;
    width: 100%;
}
@media (min-width: 1024px) {
    .song-detail-layout {
        grid-template-columns: 1fr 340px;
        gap: 2rem;
    }
}

.song-main-column, .song-sidebar-column {
    min-width: 0;
    max-width: 100%;
}

.song-sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Song Hero Card */
.song-hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}
@media (min-width: 640px) {
    .song-hero-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 2rem;
    }
}

.song-hero__cover-box {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    background: var(--bg-surface-elevated);
}
@media (min-width: 640px) {
    .song-hero__cover-box {
        width: 180px;
        height: 180px;
    }
}

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

.song-hero__info {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.song-hero__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
    .song-hero__tags {
        justify-content: flex-start;
    }
}

.song-hero__h1 {
    font-size: clamp(1.35rem, 5vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.song-hero__singers {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.8rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.song-hero__quick-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}
@media (min-width: 640px) {
    .song-hero__quick-meta {
        justify-content: flex-start;
    }
}

.song-hero__quick-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* Action Toolbar (Copy, Font Size, Share) */
.lyrics-action-toolbar {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
}

.toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.btn-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-toolbar:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
    background: var(--bg-main);
}

.btn-toolbar.btn-copy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 10px var(--primary-glow);
}
.btn-toolbar.btn-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.font-size-controls {
    display: inline-flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-font-size {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}
.btn-font-size:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
}

@media (max-width: 520px) {
    .lyrics-action-toolbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-group {
        justify-content: space-between;
        width: 100%;
    }
    .toolbar-group .btn-toolbar {
        flex: 1;
        justify-content: center;
        padding: 0.45rem 0.5rem;
        font-size: 0.78rem;
    }
    .toolbar-group .font-size-controls {
        margin-left: auto;
    }
}

/* Lyrics Content Card */
.lyrics-box-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
@media (min-width: 640px) {
    .lyrics-box-card {
        padding: 2rem;
    }
}

.lyrics-tabs-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lyrics-tabs-header::-webkit-scrollbar {
    display: none;
}

.lyrics-tab-btn {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.lyrics-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

.lyrics-text-content {
    font-family: var(--font-lyrics);
    font-size: 1.12rem;
    line-height: 2;
    color: var(--text-primary);
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    transition: font-size 0.2s ease;
}

/* YouTube Facade / Video Embed */
.video-embed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
@media (min-width: 640px) {
    .video-embed-card {
        padding: 1.5rem;
    }
}

.video-responsive-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
}

.video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Song Credits Table */
.credits-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
    .credits-card {
        padding: 1.5rem;
    }
}

.credits-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credits-table {
    width: 100%;
    border-collapse: collapse;
}

.credits-table tr {
    border-bottom: 1px solid var(--border-subtle);
}
.credits-table tr:last-child {
    border-bottom: none;
}

.credits-table th {
    text-align: left;
    padding: 0.75rem 0.5rem 0.75rem 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 35%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.credits-table td {
    padding: 0.75rem 0;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .credits-table th {
        width: 38%;
        font-size: 0.8rem;
        padding: 0.5rem 0.35rem 0.5rem 0;
    }
    .credits-table td {
        font-size: 0.84rem;
        padding: 0.5rem 0;
    }
}

/* Review & Emoji Widget */
.reaction-widget-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
@media (min-width: 640px) {
    .reaction-widget-card {
        padding: 1.5rem;
    }
}

.reaction-emojis-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: all 0.2s ease;
}
.reaction-btn:hover {
    transform: scale(1.08);
    border-color: var(--primary);
    background: var(--bg-surface);
}

.reaction-btn .emoji-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Star Rating */
.star-rating-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
}
.star-btn {
    font-size: 1.4rem;
    color: var(--border-subtle);
    transition: all 0.2s ease;
}
.star-btn:hover, .star-btn.active {
    color: var(--gold);
    transform: scale(1.15);
}

/* Comments Section */
.comments-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
@media (min-width: 640px) {
    .comments-card {
        padding: 1.5rem;
    }
}

.comment-form {
    margin-bottom: 2rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

/* Responsive 2-Column Form Grid */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}
@media (min-width: 640px) {
    .form-grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--primary-glow);
    max-width: 100%;
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.comment-item {
    background: var(--bg-surface-elevated);
    border-radius: var(--radius-sm);
    padding: 1rem;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.25rem;
}
.comment-author {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* FAQ Accordion */
.faq-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
@media (min-width: 640px) {
    .faq-section {
        padding: 1.5rem;
    }
}

.faq-title {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-surface-elevated);
    overflow: hidden;
    transition: border-color 0.2s ease;
    width: 100%;
}
.faq-item.active {
    border-color: var(--border-highlight);
}

.faq-question {
    width: 100%;
    padding: 0.9rem 1.1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: color 0.2s ease;
    word-break: break-word;
}
.faq-question i {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.1rem 1.1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
    word-break: break-word;
    overflow-wrap: break-word;
}
.faq-item.active .faq-answer {
    display: block;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-word;
}

.sidebar-song-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.sidebar-song-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    min-width: 0;
}
.sidebar-song-item:hover {
    background: var(--bg-surface-elevated);
}

.sidebar-song-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-surface-elevated);
    flex-shrink: 0;
}

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

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

.sidebar-song-singer {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: calc(100vw - 3rem);
}

.toast {
    pointer-events: auto;
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease forwards;
    word-break: break-word;
}
.toast.success i {
    color: var(--success);
}
.toast.error i {
    color: var(--danger);
}

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

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li a, .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

@media (max-width: 480px) {
    .pagination li a, .pagination li span {
        min-width: 34px;
        height: 34px;
        padding: 0 0.35rem;
        font-size: 0.8rem;
    }
}

.pagination li.active span {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.pagination li a:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border-color: var(--border-highlight);
}

/* Footer */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    width: 100%;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: 2.5rem;
    }
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    word-break: break-word;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-link {
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    word-break: break-word;
}
.footer-link:hover {
    color: var(--primary);
    transform: translateX(2px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    color: var(--text-muted);
    text-align: center;
    width: 100%;
}
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* Back to Top Floating Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 990;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--primary-glow);
}
