/* ==========================================================================
   AkorCum - Premium UI Styles (Light Theme Base + Dark Mode Support)
   ========================================================================== */

:root {
    /* Color Palette - Premium Light Theme */
    --color-bg: #F8F9FA;
    --color-bg-elevated: #FFFFFF;
    --color-bg-highlight: #F1F3F5;

    --color-text: #1A1D20;
    --color-text-muted: #6C757D;
    --color-text-faint: #ADB5BD;

    /* Brand Colors */
    --color-primary: #6C5CE7;
    /* Purple from design */
    --color-primary-hover: #5A4FCF;
    --color-success: #00B894;
    /* Green */
    --color-border: #E9ECEF;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Measurements & safe areas */
    --header-height: 70px;
    --bottom-nav-height: 65px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);

    /* Shadows & Radii */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* --------------------------------------------------------------------------
   Reset & Global Base
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

button,
input {
    font-family: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

button:active {
    transform: scale(0.97);
}

/* Utility Classes */
.text-primary {
    color: var(--color-primary);
}

.text-success {
    color: var(--color-success);
}

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

.text-faint {
    color: var(--color-text-faint);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* --------------------------------------------------------------------------
   App Structure
   -------------------------------------------------------------------------- */
.app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}



.header-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 24px;
}

.search-box {
    width: 100%;
    height: 44px;
    background: var(--color-bg-highlight);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--color-primary);
}

.search-box input {
    flex: 1;
    background: transparent;
    padding: 0 12px;
    font-size: 0.95rem;
    color: var(--color-text);
}

.search-shortcut {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-highlight);
    color: var(--color-text);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    color: var(--color-text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.btn-outline:hover {
    color: var(--color-text);
    background: var(--color-bg-highlight);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
}

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

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 0.85rem;
}

.user-badge {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.app-layout-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 240px minmax(500px, 1fr) 300px;
    gap: 32px;
    align-items: start;
    min-height: 100vh;
    view-transition-name: app-main;
}

.app-layout-wrapper.no-right-sidebar {
    grid-template-columns: 240px minmax(500px, 1fr);
}

.app-layout-wrapper.no-left-sidebar {
    grid-template-columns: minmax(500px, 1fr) 300px;
}

.app-layout-wrapper.no-left-sidebar.no-right-sidebar {
    grid-template-columns: 1fr;
}

.main-content {
    min-width: 0;
}

/* Left Sidebar Styles */
.left-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    display: flex;
    flex-direction: column;
}

.left-sidebar::-webkit-scrollbar {
    display: none;
}

/* Chrome */

.sidebar-nav-group {
    margin-bottom: 24px;
}

.sidebar-nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-faint);
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 16px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    margin-bottom: 4px;
}

.sidebar-nav-item:hover {
    background: var(--color-bg-highlight);
    color: var(--color-text);
}

.sidebar-nav-item.active {
    background: #f5f3ff;
    color: var(--color-primary);
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-badge {
    margin-left: auto;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

/* Premium Ad Card */
.premium-ad-card {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    border: 1px solid #ddd6fe;
}

.premium-ad-title {
    font-weight: 800;
    color: var(--color-primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.premium-ad-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.4;
}

.premium-ad-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: white;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid #ddd6fe;
    transition: all 0.2s;
}

.premium-ad-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    font-size: 0.75rem;
    color: var(--color-text-faint);
    margin-top: 16px;
}

.sidebar-footer a {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: var(--color-text);
}

/* Right Sidebar Styles */
.right-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    height: calc(100vh - var(--header-height) - 48px);
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.right-sidebar::-webkit-scrollbar {
    display: none;
}

/* Chrome */
.widget-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.widget-title {
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
}

.widget-link {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Mobile Bottom Navigation
   -------------------------------------------------------------------------- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    background-color: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}



/* Responsive Hide & Mobile Overrides */
@media (max-width: 1024px) {
    .header-center {
        display: none;
    }

    /* Global Layout Fix */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .app-layout-wrapper {
        display: block !important;
        padding: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .app-layout-wrapper.no-right-sidebar {
        grid-template-columns: 1fr !important;
    }

    .right-sidebar {
        display: none !important;
    }
    .left-sidebar {
        display: none;
    }

    /* Hero Fix */
    .hero-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 32px 20px !important;
        min-height: auto !important;
        border-radius: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-bg-overlay {
        background: linear-gradient(180deg, rgba(45, 36, 138, 0.9) 0%, rgba(108, 92, 231, 0.9) 100%) !important;
    }

    .hero-content {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        text-align: center;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-badge {
        margin-bottom: 16px !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 5.5vw, 2.2rem) !important;
        line-height: 1.3 !important;
        white-space: normal;
        margin-bottom: 16px !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 28px !important;
        justify-content: center;
        gap: 8px 12px !important;
        flex-wrap: wrap !important;
    }

    /* Full-width Search Box without button on mobile */
    .hero-search {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px 16px 6px 16px !important;
        margin-bottom: 24px !important;
    }

    .hero-search input {
        min-width: 0 !important;
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 0.95rem !important;
    }

    .hero-search button {
        display: none !important;
    }

    /* Horizontal scroll for search tags */
    .hero-popular {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .hero-popular-label {
        font-size: 0.8rem !important;
        margin-right: 0 !important;
        opacity: 0.8;
    }

    .hero-popular-tags {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        padding: 4px 0 !important;
        gap: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        justify-content: flex-start !important;
    }

    .hero-popular-tags::-webkit-scrollbar {
        display: none !important;
    }

    .hero-popular-tag {
        flex-shrink: 0 !important;
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .hero-widget {
        width: 100% !important;
        padding: 0 !important;
        margin-top: 32px;
        margin-left: 0 !important;
    }

    .trend-widget-container {
        padding: 24px 20px !important;
        border-radius: 20px !important;
    }

    /* Quick Links & Horizontal Scroll Areas */
    .quick-links-grid,
    .social-feed {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
        gap: 16px;
    }

    .quick-links-grid::-webkit-scrollbar,
    .social-feed::-webkit-scrollbar {
        display: none;
    }

    .quick-card {
        min-width: 260px;
        scroll-snap-align: center;
        padding: 20px !important;
    }

    .quick-card-btn {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        border-radius: var(--radius-full) !important;
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        margin-top: 12px !important;
        transition: all 0.2s ease !important;
    }

    .quick-card-btn.text-primary {
        background: #f0edff !important;
        border-color: #dcd6ff !important;
        color: var(--color-primary) !important;
    }

    .quick-card-btn.text-success {
        background: #e6fcf5 !important;
        border-color: #c3fae8 !important;
        color: var(--color-success) !important;
    }

    .quick-card-btn.text-muted {
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
        color: var(--color-text-muted) !important;
    }

    /* Vertical Song Lists on Mobile */
    .song-grid-2col {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        overflow-x: visible !important;
    }

    .song-item {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 12px 16px !important;
        background: var(--color-bg-elevated) !important;
        border: 1px solid var(--color-border) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-sm) !important;
        transition: transform 0.2s, box-shadow 0.2s !important;
    }

    .song-item:active {
        transform: scale(0.99) !important;
    }

    .song-item-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        color: var(--color-primary) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        margin-right: 12px !important;
    }

    .song-item-info {
        flex: 1 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .song-item-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--color-text) !important;
        margin-bottom: 2px !important;
        text-align: left !important;
    }

    .song-item-artist {
        font-size: 0.8rem !important;
        color: var(--color-text-muted) !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .song-item-key {
        background: #f3f0ff !important;
        color: var(--color-primary) !important;
        font-size: 0.75rem !important;
        font-weight: 800 !important;
        padding: 4px 10px !important;
        border-radius: 6px !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }

    /* Elegant Shuffle Pill Button */
    .shuffle-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 12px !important;
        background: #f1f5f9 !important;
        border-radius: var(--radius-full) !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: var(--color-text-muted) !important;
        transition: all 0.2s ease !important;
    }

    .shuffle-btn:active {
        transform: scale(0.95) !important;
        background: #e2e8f0 !important;
    }

    /* Three Column Grid Stack */
    .three-col-grid {
        display: flex !important;
        flex-direction: column;
        gap: 32px;
    }

    .list-card {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    /* SEO Banner */
    .seo-banner {
        flex-direction: column !important;
        padding: 24px !important;
    }

    .seo-banner>div:first-child+div {
        max-width: 100% !important;
        margin-bottom: 16px;
    }

    .seo-banner>div:last-child {
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
    }
}

.header-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.header-avatar-link:hover .header-username {
    color: var(--color-primary);
}


@media (max-width: 768px) {
    .app-header {
        padding: 0 16px;
    }

    .header-right .nav-btn-desktop,
    .header-right .user-info {
        display: none !important;
    }

    .header-right {
        gap: 8px !important;
    }

    .header-right .btn-login,
    .header-right .btn-register {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        border-radius: var(--radius-full) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 34px !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }

    .header-right .btn-login {
        background: transparent !important;
        color: var(--color-text-muted) !important;
        border: 1px solid var(--color-border) !important;
    }

    .header-right .btn-login:active {
        background: var(--color-bg-highlight) !important;
        color: var(--color-text) !important;
    }

    .header-right .btn-register {
        background: var(--color-primary) !important;
        color: #fff !important;
    }

    .header-right .btn-register:active {
        transform: scale(0.96) !important;
        background: var(--color-primary-hover) !important;
    }

    .header-username {
        font-size: 0.85rem !important;
        max-width: 100px !important;
    }

    @media (max-width: 480px) {
        .header-right {
            gap: 6px !important;
        }

        .header-right .btn-login,
        .header-right .btn-register {
            padding: 5px 10px !important;
            font-size: 0.75rem !important;
            height: 30px !important;
        }

        .header-username {
            font-size: 0.8rem !important;
            max-width: 80px !important;
        }
    }

    #app-main,
    .app-layout-wrapper {
        padding: 12px !important;
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 16px) !important;
    }

    @media (max-width: 480px) {

        #app-main,
        .app-layout-wrapper {
            padding: 8px !important;
            padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 12px) !important;
        }
    }

    .bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
        /* Opak background — transparan arka plan scroll sırasında içeriğin görünmesine neden olur */
        background: #ffffff;
        box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.06), 0 -4px 20px rgba(0, 0, 0, 0.04);
        z-index: 99999;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        /* Fix for iOS Safari floating bug: Remove transform: translateZ(0) which detaches fixed elements */
    }

    .bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 100%;
        color: var(--color-text-muted);
        transition: color 0.2s, transform 0.2s;
        text-decoration: none;
    }

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

    .bottom-nav .nav-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 3px;
        transition: transform 0.2s;
        stroke-width: 2px;
    }

    .bottom-nav .nav-item.active .nav-icon {
        transform: translateY(-1px) scale(1.05);
        stroke: var(--color-primary);
        stroke-width: 2.5px;
    }

    .bottom-nav .nav-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: -0.1px;
    }

    /* Footer layout on mobile with bottom-nav clearance */
    .app-footer {
        padding: 32px 16px calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 32px) !important;
        background: var(--color-bg) !important;
        margin-top: 24px !important;
    }

    .app-footer .container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .app-footer .container>div {
        justify-content: center !important;
        width: 100% !important;
    }

    .app-footer .container>div:nth-child(2) {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px 20px !important;
    }
}


/* --------------------------------------------------------------------------
   Homepage Specific Components
   -------------------------------------------------------------------------- */

/* Hero Banner */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #2d248a 0%, #6C5CE7 100%);
    display: flex;
    align-items: center;
    padding: 60px;
    color: #fff;
    min-height: 480px;
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.2);
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.25;
    mix-blend-mode: overlay;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #2d248a 15%, rgba(108, 92, 231, 0.6) 65%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 60%;
    padding: 0;
    background: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-title-highlight {
    color: #e0e7ff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
}

.hero-dot {
    opacity: 0.5;
}

.hero-search {
    position: relative;
    background: #fff;
    border-radius: 32px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    max-width: 540px;
    margin-bottom: 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.hero-search input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 12px 16px;
    font-size: 1.05rem;
    color: #1f2937;
    outline: none;
    min-width: 0;
    font-weight: 500;
}

.hero-search button {
    background: #6C5CE7;
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.hero-search button:hover {
    background: #5a4fcf;
}

.hero-popular {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-popular-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-right: 8px;
}

.hero-popular-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-popular-tag {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-popular-tag:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-widget {
    position: relative;
    z-index: 99;
    width: 380px;
    margin-left: auto;
    padding: 0;
    pointer-events: auto;
}

.trend-widget-container {
    position: relative;
    z-index: 10;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

.trend-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.trend-widget-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.trend-widget-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.2s;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.trend-widget-item:hover {
    transform: translateX(4px);
}

.trend-rank {
    width: 28px;
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.trend-info {
    flex: 1;
}

.trend-artist {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.trend-song {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.trend-key {
    background: #fff;
    color: #6C5CE7;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trend-widget-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 700;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.2s;
    position: relative;
    z-index: 10;
}

.tuner-widget {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 380px;
    padding: 20px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
}

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

.tuner-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tuner-select {
    background: var(--color-bg-highlight);
    border: 1px solid var(--color-border);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    flex: 1;
}

.tuner-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.tuner-scale {
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(90deg, var(--color-border), var(--color-border) 2px, transparent 2px, transparent 10px);
    opacity: 0.5;
    position: relative;
}

.tuner-scale::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: var(--color-success);
    border-radius: 2px;
}

.tuner-status {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin: 12px 0;
}

.tuner-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 180px;
}

.tuner-headstock {
    height: 100%;
    object-fit: contain;
}

.notes-left,
.notes-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.note-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--color-bg);
}

.tuner-mic-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-bg-highlight);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--transition-fast);
}

.tuner-mic-btn:hover {
    background: #E9ECEF;
}

/* Quick Links Cards */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.quick-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.quick-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.icon-purple {
    background: #E0E7FF;
    color: var(--color-primary);
}

.icon-green {
    background: #E6F4EA;
    color: var(--color-success);
}

.icon-blue {
    background: #E3F2FD;
    color: #2196F3;
}

.quick-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.quick-card-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
    flex: 1;
}

.quick-card-btn {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    width: fit-content;
}

/* 3 Column Song Layout */
.three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* Desktop grid fix */
    gap: 24px;
    margin-bottom: 32px;
}

.list-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.list-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.list-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.song-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: transparent;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), transform var(--transition-fast);
    min-width: 0;
}

.song-item:hover {
    background: var(--color-bg-highlight);
    transform: translateY(-1px);
}

.song-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f3f5;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.song-item:hover .song-item-icon {
    background: var(--color-primary);
    color: #fff;
}

.song-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.song-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: var(--color-text);
}

.song-item-artist {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.song-item-key {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.75rem;
    background: #f3f0ff;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.song-item:hover .song-item-key {
    background: var(--color-primary);
    color: #fff;
}

/* Bottom Complex Layout */
.bottom-grid {
    display: block;
    margin-bottom: 32px;
}

.social-feed {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
}

.feed-item {
    min-width: 320px;
    max-width: 380px;
    flex: 0 0 auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--color-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.feed-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-user {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--color-text);
}

.feed-time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: auto;
}

.feed-badge {
    font-size: 0.7rem;
    background: #E0E7FF;
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.feed-content {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--color-text-faint);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-media {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    background: #000;
}

.feed-media img {
    width: 100%;
    display: block;
    opacity: 0.8;
}

.feed-actions {
    display: flex;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    margin-top: auto;
}

.feed-action {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.feed-action:hover {
    color: var(--color-primary);
}

.event-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-primary);
}

.event-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.event-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.lb-rank {
    font-weight: 700;
    color: var(--color-text-muted);
    width: 20px;
    text-align: center;
}

.lb-user {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.lb-score {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #E0E7FF;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-val {
    font-weight: 800;
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* SEO Banner */
.seo-banner {
    background: #F8F9FA;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.seo-banner-content {
    max-width: 60%;
    z-index: 2;
}

.seo-banner-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.seo-banner-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.seo-banner-bg {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    opacity: 0.6;
    z-index: 1;
}

/* App Footer */
.app-footer {
    padding: 60px 0 20px;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer__link {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
    font-size: 0.95rem;
}

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

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

    .three-col-grid,
    .bottom-grid,
    .quick-links-grid,
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .three-col-grid,
    .bottom-grid,
    .quick-links-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Premium Fullscreen Loader — Rewritten
   ========================================================================== */

/* --- Overlay Container --- */
.app-loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    display: none;
}

.app-loader.active {
    display: flex;
}

/* --- Central Content Block (logo + wave + text) --- */
.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* --- Concentric Pulse Circles — centered on .loader-content --- */
.loader-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    z-index: 0;
    pointer-events: none;
}

.loader-circles .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1.5px solid rgba(139, 92, 246, 0.15);
    animation: loader-pulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.loader-circles .circle-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.loader-circles .circle-2 {
    width: 200px;
    height: 200px;
    animation-delay: 0.35s;
}

.loader-circles .circle-3 {
    width: 280px;
    height: 280px;
    animation-delay: 0.7s;
}

@keyframes loader-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.75);
        opacity: 0;
        border-width: 2px;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
        border-width: 1px;
    }
}

/* --- Brand Logo --- */
.loader-brand {
    height: 52px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.18));
    animation: loader-logo-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes loader-logo-in {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Sound Wave Bars --- */
.sound-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 28px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.sound-wave span {
    display: block;
    width: 5px;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 100px;
    transform-origin: center center;
    animation: loader-wave 1.2s cubic-bezier(0.85, 0, 0.15, 1) infinite;
}

.sound-wave span:nth-child(1) {
    height: 10px;
    animation-delay: 0.00s;
}

.sound-wave span:nth-child(2) {
    height: 20px;
    animation-delay: 0.10s;
}

.sound-wave span:nth-child(3) {
    height: 28px;
    animation-delay: 0.20s;
}

.sound-wave span:nth-child(4) {
    height: 20px;
    animation-delay: 0.30s;
}

.sound-wave span:nth-child(5) {
    height: 10px;
    animation-delay: 0.40s;
}

@keyframes loader-wave {

    0%,
    100% {
        transform: scaleY(0.35);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* --- Loading Label --- */
.loader-text {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 2;
}

/* --- Progress Section (percentage + bar) — sits below the central block --- */
.loader-progress-wrapper {
    position: absolute;
    bottom: max(12%, 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(65%, 380px);
    z-index: 2;
}

.loader-percentage {
    color: #8b5cf6;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.loader-progress-track {
    width: 100%;
    height: 5px;
    background: #f1f5f9;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
    border-radius: 100px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

@media (min-width: 1025px) {
    .app-layout-wrapper.no-left-sidebar {
        grid-template-columns: minmax(500px, 1fr) 300px;
    }

    .app-layout-wrapper.no-left-sidebar.no-right-sidebar {
        grid-template-columns: minmax(500px, 1fr);
    }
}


/* Toast Notifications */
#global-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    color: #0f172a;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast-success {
    border-left-color: #10b981;
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast.toast-info {
    border-left-color: #3b82f6;
}

.toast svg {
    flex-shrink: 0;
}

/* Global Confirm Modal */
#global-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#global-confirm-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#global-confirm-overlay.show .confirm-modal {
    transform: translateY(0);
}

.confirm-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confirm-body {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-confirm-cancel {
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-cancel:hover {
    background: #f8fafc;
}

.btn-confirm-ok {
    padding: 10px 20px;
    border-radius: 100px;
    border: none;
    background: #ef4444;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm-ok:hover {
    background: #dc2626;
}

/* ==========================================================================
   Responsive & Mobile Native App Fixes (Overflow, Tuner, Songs, Profiles)
   ========================================================================== */

/* Global container overflow guard */
html,
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Transpose key buttons scaling prevention */
.key-selector .key-btn {
    flex-shrink: 0 !important;
}

/* Song Lyrics pre block wrapping guard */
#lyrics-container {
    white-space: pre !important;
    word-wrap: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    max-width: none !important;
}

/* Repertoire Detail list text truncation */
.repertoire-song-item {
    min-width: 0 !important;
}

.repertoire-song-item div {
    min-width: 0 !important;
}

.repertoire-song-item a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}


/* Tag details pagination buttons layout */
#pagination-buttons {
    flex-wrap: wrap !important;
    justify-content: center !important;
}

/* Notifications panel post text preview overlay preventer */
.notification-card {
    flex-wrap: wrap !important;
    gap: 12px !important;
}

.notification-post-text-preview {
    margin-left: auto !important;
    max-width: 100% !important;
}

/* Mobile & Tablet Overrides */
@media (max-width: 768px) {

    /* Profiles centering and spacing fixes */
    .profile-cover {
        height: 140px !important;
    }

    .profile-avatar-container {
        width: 96px !important;
        height: 96px !important;
        top: -48px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .profile-card>div:nth-child(2) {
        padding: 16px 16px 24px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Shift button placement below centered avatar */
    .profile-card div[style*="justify-content: flex-end"] {
        justify-content: center !important;
        margin-top: 48px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .profile-card h1 {
        font-size: 1.5rem !important;
        text-align: center !important;
    }

    .profile-card p {
        text-align: center !important;
    }

    /* Centers social icons and instrument tags */
    .profile-card div[style*="display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;"] {
        justify-content: center !important;
    }

    .profile-card div[style*="display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; align-items: center;"] {
        justify-content: center !important;
    }

    .profile-card div[style*="display: flex; gap: 8px; flex-wrap: wrap;"] {
        justify-content: center !important;
    }

    .stat-box {
        min-width: 80px !important;
        padding: 8px 12px !important;
    }

    /* Social Feed creation box sub-editors columns wrapping */
    #inline-cover-editor div[style*="display: flex; gap: 16px; margin-bottom: 16px;"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    #inline-cover-editor div[style*="display: flex; gap: 16px;"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    #inline-event-editor div[style*="display:flex; gap:16px; margin-bottom:16px;"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    #inline-event-editor div[style*="display:flex; gap:16px;"] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    #inline-sale-editor div[style*="display:flex; gap:16px; margin-bottom:16px;"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* Tuner Page Responsive Fixes */
.app-layout-wrapper:has(.tuner-container),
.app-layout-wrapper:has(.artist-page-container),
.app-layout-wrapper:has(.auth-page-wrapper),
.app-layout-wrapper:has(#feed-wrapper),
.app-layout-wrapper:has(#profile-content),
.app-layout-wrapper:has(.post-detail-card) {
    max-width: 100% !important;
    padding: 24px 32px !important;
}

@media (max-width: 1024px) {

    .app-layout-wrapper:has(.tuner-container),
    .app-layout-wrapper:has(.artist-page-container),
    .app-layout-wrapper:has(.auth-page-wrapper),
    .app-layout-wrapper:has(#feed-wrapper),
    .app-layout-wrapper:has(#profile-content),
    .app-layout-wrapper:has(.post-detail-card) {
        padding: 16px !important;
    }
}

@media (max-width: 768px) {

    .app-layout-wrapper:has(.tuner-container),
    .app-layout-wrapper:has(.artist-page-container),
    .app-layout-wrapper:has(.auth-page-wrapper),
    .app-layout-wrapper:has(#feed-wrapper),
    .app-layout-wrapper:has(#profile-content),
    .app-layout-wrapper:has(.post-detail-card) {
        padding: 12px !important;
    }
}

@media (max-width: 480px) {

    .app-layout-wrapper:has(.tuner-container),
    .app-layout-wrapper:has(.artist-page-container),
    .app-layout-wrapper:has(.auth-page-wrapper),
    .app-layout-wrapper:has(#feed-wrapper),
    .app-layout-wrapper:has(#profile-content),
    .app-layout-wrapper:has(.post-detail-card) {
        padding: 8px !important;
    }
}

.tuner-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    box-sizing: border-box;
}

.tuner-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tuner-main {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    padding: 40px 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .tuner-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 24px !important;
    }

    .tuner-sidebar {
        width: 100% !important;
    }

    .tuner-main {
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .tuner-main {
        padding: 24px 12px 40px !important;
    }

    /* Frequency bar and headstock image scaling */
    #tuner-cent-pointer {
        height: 32px !important;
    }

    #tuner-headstock-img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 280px !important;
    }
}

/* Artist Profile Detail Responsive Fixes */
.artist-profile-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    z-index: 1;
    flex: 1;
    min-width: 300px;
}

@media (max-width: 768px) {
    .artist-profile-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .artist-profile-wrapper div[style*="display: flex; align-items: center; gap: 16px;"] {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .artist-profile-wrapper h1 {
        font-size: 1.8rem !important;
        text-align: center !important;
    }

    /* Expand search bar to fill space when centered */
    .artist-profile-wrapper div[style*="position: relative; max-width: 400px;"] {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Premium mobile notifications dropdown fix */
    #notifications-box {
        position: fixed !important;
        top: calc(var(--header-height) + 8px) !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
        box-shadow: var(--shadow-md) !important;
    }
}

/* ==========================================================================
   Song Detail Page Responsive Layout
   ========================================================================== */
.song-detail-wrapper {
    background-color: #f8f9fa;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.song-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

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

.song-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.song-sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 100px;
}

.song-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.song-title-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
}

.song-artist-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.song-artist-link:hover {
    text-decoration: underline;
    color: var(--color-primary-hover);
}

.song-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.song-lyrics-card {
    padding: 32px;
    overflow-x: auto;
}

.song-control-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 1024px) {
    .song-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .song-sidebar {
        width: 100%;
        flex-shrink: 1;
    }

    .song-sidebar-card {
        position: static;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .song-detail-wrapper {
        padding: 16px 0px;
    }

    .song-header-block {
        margin-bottom: 20px;
    }

    .song-title-text {
        font-size: 1.7rem;
    }

    .song-artist-link {
        font-size: 0.95rem;
    }

    .song-card {
        padding: 12px 10px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }

    .song-lyrics-card {
        padding: 12px 10px !important;
    }

    #lyrics-container {
        font-size: 13px;
    }

    .song-control-actions {
        gap: 8px;
    }

    .song-control-actions button,
    .song-control-actions a,
    .song-control-actions span {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 10px !important;
    }

    #auto-scroll-btn {
        margin-left: 0 !important;
        flex-grow: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .song-title-text {
        font-size: 1.45rem;
    }

    .song-card {
        padding: 12px 8px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }

    .song-lyrics-card {
        padding: 12px 8px !important;
    }

    #lyrics-container {
        font-size: 12px;
    }

    .share-copy-container {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .share-copy-container #share-modal-input {
        width: 100% !important;
    }

    .share-copy-btn {
        width: 100% !important;
        height: 44px !important;
        justify-content: center !important;
        padding: 0 16px !important;
    }
}

/* ==========================================================================
   Artist Profile Page Responsive Layout
   ========================================================================== */
.artist-page-container,
.search-page-container {
    width: 100%;
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
    box-sizing: border-box;
}

.artist-hero-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    gap: 32px;
    flex-wrap: wrap;
    z-index: 1;
}

.artist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #0f172a;
    border: 4px solid white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.artist-name-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

.artist-song-badge {
    background: #f5f3ff;
    color: #8b5cf6;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.artist-seo-desc {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0 0 24px 0;
    max-width: 600px;
    line-height: 1.6;
}

.artist-search-wrapper {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.artist-hero-decor {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
    z-index: 0;
}

.artist-songs-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.artist-about-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 64px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

@media (max-width: 1024px) {
    .artist-hero-decor {
        opacity: 0.2;
        width: 300px;
    }
}

@media (max-width: 768px) {
    .artist-page-container {
        padding: 0 !important;
    }

    .artist-hero-card {
        padding: 24px;
        gap: 20px;
        justify-content: center;
    }

    .artist-hero-decor {
        display: none !important;
    }

    .artist-name-title {
        font-size: 2rem;
    }

    .artist-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .artist-seo-desc {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .artist-songs-card {
        border-radius: 16px;
        margin-bottom: 24px;
    }

    .artist-about-card {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 40px;
    }

    .song-row {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .artist-hero-card {
        padding: 20px 16px;
    }

    .artist-name-title {
        font-size: 1.7rem;
    }

    .artist-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .song-row span {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Artist List Page (/sanatci) Responsive Layout
   ========================================================================== */
.artist-index-hero {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.artist-index-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    font-family: 'Outfit', sans-serif;
}

.artist-index-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin: 0 0 24px 0;
}

.artist-index-search {
    position: relative;
    max-width: 400px;
    width: 100%;
    z-index: 2;
}

.artist-index-decor {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 40px;
    z-index: 0;
}

.alphabet-filter-container {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.letter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.letter-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.letter-btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: white;
}

.artist-grid-popular {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.artist-grid-all {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.artist-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.artist-initial {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #94a3b8;
    flex-shrink: 0;
}

.pop-card .artist-initial {
    background: #f5f3ff;
    color: #8b5cf6;
    border-color: #ede9fe;
}

.pagination-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #475569;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #f8fafc;
}

.pagination-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

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

.empty-state-card {
    display: none;
    text-align: center;
    padding: 64px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    margin-bottom: 40px;
}

.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 1024px) {
    .artist-grid-popular {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .artist-grid-all {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .artist-index-decor {
        opacity: 0.2;
        width: 300px;
    }
}

@media (max-width: 768px) {
    .artist-index-hero {
        padding: 24px;
        margin-bottom: 24px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .artist-index-decor {
        display: none !important;
    }

    .artist-index-title {
        font-size: 2rem;
    }

    .artist-index-subtitle {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .artist-index-search {
        max-width: 100%;
    }

    .alphabet-filter-container {
        margin-bottom: 24px;
        gap: 6px;
    }

    .letter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    .artist-grid-popular {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .artist-grid-all {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 24px;
    }

    .artist-card {
        padding: 12px;
        border-radius: 16px;
        gap: 10px;
    }

    .artist-card h3 {
        font-size: 0.95rem !important;
    }

    .artist-card svg[style*="flex-shrink: 0"] {
        display: none !important;
    }

    .artist-initial {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
    }

    .empty-state-card {
        padding: 40px 16px;
        border-radius: 16px;
    }

    .pagination-wrapper {
        margin-bottom: 40px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .artist-index-hero {
        padding: 20px 16px;
    }

    .artist-index-title {
        font-size: 1.7rem;
    }

    .artist-grid-all {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Tuner Page Responsive Controls & Layout
   ========================================================================== */

/* Sidebar Cards & Typography */
.tuner-sidebar-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.tuner-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tuner-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.tuner-card-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 24px;
}

.tuner-feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.tuner-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tuner-feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.tuner-feature-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.tuner-tip-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tuner-tip-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tuner-tip-emoji {
    font-size: 1.2rem;
}

.tuner-tip-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.tuner-tip-desc {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.tuner-shortcut-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.tuner-shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tuner-kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #475569;
    box-shadow: 0 2px 0 #e2e8f0;
}

.tuner-shortcut-arrow {
    color: #94a3b8;
    font-size: 0.85rem;
}

.tuner-shortcut-desc {
    color: #475569;
    font-size: 0.9rem;
}

/* Controls Header */
.tuner-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 40px;
    gap: 16px;
    z-index: 2;
}

.tuner-select-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tuner-select {
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 40px 10px 20px;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%231e293b" stroke-width="2.5" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 15px center/14px;
    background-color: white;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.tuner-select:hover {
    border-color: #cbd5e1;
}

.tuner-select-tuning {
    color: #475569;
    font-weight: 500;
    min-width: 220px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2.5" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>');
}

.tuner-auto-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tuner-auto-label {
    font-weight: 700;
    color: #64748b;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tuner-switch {
    width: 46px;
    height: 26px;
    background: #8b5cf6;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.tuner-switch-knob {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: left 0.2s;
}

/* Frequency Indicator & Ticks */
.tuner-frequency-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
}

.tuner-flat-symbol,
.tuner-sharp-symbol {
    font-size: 1.4rem;
    font-family: serif;
    font-style: italic;
    color: #94a3b8;
}

.tuner-ticks-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    height: 32px;
    position: relative;
}

.tuner-cent-pointer {
    position: absolute;
    left: 50%;
    margin-left: -2px;
    top: -4px;
    width: 4px;
    height: 40px;
    background: #8b5cf6;
    border-radius: 2px;
    transition: transform 0.1s ease-out, background 0.15s;
    z-index: 10;
}

/* Status Indicator */
.tuner-status-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    margin-bottom: 20px;
}

.tuner-status-circle {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.tuner-note-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.tuner-status-text {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Headstock and Dynamic String Layout */
.tuner-headstock-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 420px;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tuner-headstock-img {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    z-index: 5;
}

.tuner-string-list {
    position: absolute;
    top: 5%;
    display: flex;
    flex-direction: column;
    gap: 36px;
    z-index: 10;
}

.tuner-left-strings {
    left: 0;
}

.tuner-right-strings {
    right: 0;
}

.tuner-string-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tuner-string-row.left-side {
    flex-direction: row-reverse;
}

.tuner-string-row.right-side {
    flex-direction: row;
}

.tuner-string-btn {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    color: #000c24;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.tuner-string-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.tuner-string-btn.active {
    border-color: #8b5cf6;
    color: #8b5cf6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.tuner-string-info {
    display: flex;
    flex-direction: column;
}

.left-side .tuner-string-info {
    align-items: flex-end;
}

.right-side .tuner-string-info {
    align-items: flex-start;
}

.tuner-string-number {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.tuner-string-note {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Action Microphone Button & Waveforms */
.tuner-action-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.tuner-mic-btn {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8b5cf6;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
    cursor: pointer;
    transition: all 0.2s;
}

.tuner-mic-btn:hover {
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}

.tuner-mic-btn:active {
    transform: translateY(0) scale(0.98);
}

.tuner-waveform {
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
}

/* Wide Screen Tuner Scaling overrides */
@media (min-width: 1200px) {

    .app-layout-wrapper:has(.tuner-container),
    .app-layout-wrapper:has(.artist-page-container),
    .app-layout-wrapper:has(.auth-page-wrapper),
    .app-layout-wrapper:has(#feed-wrapper),
    .app-layout-wrapper:has(#profile-content),
    .app-layout-wrapper:has(.post-detail-card) {
        padding: 24px 40px !important;
    }

    .tuner-headstock-wrapper {
        max-width: 720px !important;
        height: 500px !important;
    }

    .tuner-string-btn {
        width: 72px !important;
        height: 72px !important;
        font-size: 1.45rem !important;
    }

    .tuner-string-list {
        gap: 48px !important;
    }

    .tuner-frequency-bar-container {
        max-width: 720px !important;
    }
}

@media (min-width: 1500px) {

    .app-layout-wrapper:has(.tuner-container),
    .app-layout-wrapper:has(.artist-page-container),
    .app-layout-wrapper:has(.auth-page-wrapper),
    .app-layout-wrapper:has(#feed-wrapper),
    .app-layout-wrapper:has(#profile-content),
    .app-layout-wrapper:has(.post-detail-card) {
        padding: 24px 60px !important;
    }

    .tuner-headstock-wrapper {
        max-width: 800px !important;
        height: 560px !important;
    }

    .tuner-string-btn {
        width: 80px !important;
        height: 80px !important;
        font-size: 1.6rem !important;
    }

    .tuner-string-list {
        gap: 56px !important;
    }

    .tuner-frequency-bar-container {
        max-width: 800px !important;
    }
}

/* ==========================================================================
   Tuner Page Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
    .tuner-container {
        padding: 0 !important;
        /* Minimum container margins on tablet */
    }
}

@media (max-width: 768px) {
    .tuner-container {
        padding: 0 !important;
        /* Minimum container margins on mobile */
    }

    .tuner-controls {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        margin-bottom: 30px !important;
    }

    .tuner-select-group {
        width: 100% !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .tuner-frequency-bar-container {
        gap: 12px !important;
        margin-bottom: 24px !important;
    }

    .tuner-headstock-wrapper {
        height: 320px !important;
        margin-bottom: 30px !important;
    }

    .tuner-string-list {
        gap: 20px !important;
    }

    .tuner-string-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.1rem !important;
    }

    .tuner-action-container {
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .tuner-controls {
        margin-bottom: 20px !important;
    }

    .tuner-select-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .tuner-select {
        width: 100% !important;
    }

    .tuner-select-tuning {
        min-width: 0 !important;
    }

    .tuner-headstock-wrapper {
        height: 260px !important;
        margin-bottom: 20px !important;
    }

    .tuner-string-list {
        gap: 12px !important;
    }

    .tuner-string-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.95rem !important;
    }

    .tuner-string-row {
        gap: 8px !important;
    }

    .tuner-string-number {
        font-size: 0.7rem !important;
    }

    .tuner-string-note {
        font-size: 0.75rem !important;
    }

    .tuner-waveform {
        display: none !important;
    }

    .tuner-mic-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 24px !important;
    }
}

/* ==========================================================================
   Social Feed and Profile Responsiveness
   ========================================================================== */
.create-post-card {
    border-radius: 24px;
    padding: 24px;
    background: white;
}

.post-detail-card {
    border-radius: 24px;
    padding: 32px;
    background: white;
}

.profile-card-body {
    padding: 24px;
}

@media (max-width: 768px) {
    .create-post-card {
        padding: 16px !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }
    .post-detail-card {
        padding: 20px 16px !important;
        border-radius: 16px !important;
        margin-bottom: 20px !important;
    }
    .post-card {
        padding: 16px !important;
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    .profile-card-body {
        padding: 16px !important;
    }
    .profile-card {
        border-radius: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .follow-btn {
        font-size: 0 !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 32px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 14px !important;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'></line><line x1='5' y1='12' x2='19' y2='12'></line></svg>") !important;
        background-color: #fef2f2 !important;
    }
    .follow-btn:hover {
        background-color: #fee2e2 !important;
    }
    .follow-btn.following {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>") !important;
        background-color: #f1f5f9 !important;
    }
    .follow-btn.following:hover {
        background-color: #e2e8f0 !important;
    }
    .post-type-badge {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .create-post-card {
        padding: 12px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
    }
    .post-detail-card {
        padding: 16px 12px !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
    }
    .post-card {
        padding: 12px 10px !important;
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
    .profile-card-body {
        padding: 12px !important;
    }
    .profile-card {
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }
}

/* Premium Expand Button Styling */
.expand-btn {
    background: transparent;
    border: none;
    color: #8b5cf6;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 100px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 8px;
    font-family: inherit;
    outline: none;
}
.expand-btn:hover {
    background: #f5f3ff;
    color: #7c3aed;
}
.expand-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Premium Post Attachments Grid Layout — Complete Rewrite
   ========================================================================== */

/* ── Grid Container ── */
.post-attachments-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    width: 100%;
}

.post-attachments-grid.att-count-1 {
    grid-template-columns: 1fr;
}
.post-attachments-grid.att-count-2 {
    grid-template-columns: 1fr 1fr;
}
.post-attachments-grid.att-count-3 {
    grid-template-columns: 1fr 1fr;
}
.post-attachments-grid.att-count-3 > .post-attachment-item:first-child {
    grid-column: span 2;
}

/* ── Base Item Container ── */
.post-attachment-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: #000;
}

/* ── Single Item: Natural Flow ── */
.post-attachments-grid.att-count-1 .post-attachment-item {
    background: #0f172a;
}

.post-attachments-grid.att-count-1 .post-attachment-item img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    background: #0f172a;
}

.post-attachments-grid.att-count-1 .post-attachment-item video {
    width: 100%;
    max-height: 520px;
    display: block;
    background: #000;
}

/* ── Multi Item: Natural Height Cells ── */
.post-attachments-grid.att-count-2 .post-attachment-item,
.post-attachments-grid.att-count-3 .post-attachment-item {
    min-height: 320px;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.post-attachments-grid.att-count-3 > .post-attachment-item:first-child {
    min-height: 280px;
}

.post-attachments-grid.att-count-2 .post-attachment-item img,
.post-attachments-grid.att-count-3 .post-attachment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
    max-height: 520px;
}

.post-attachments-grid.att-count-2 .post-attachment-item video,
.post-attachments-grid.att-count-3 .post-attachment-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
    min-height: 320px;
    max-height: 520px;
}

/* ── Embed iframes (YouTube) ── */
.post-attachment-item iframe {
    width: 100%;
    border: none;
    display: block;
}

.post-attachments-grid.att-count-1 .post-attachment-item iframe {
    height: 400px;
}

.post-attachments-grid.att-count-2 .post-attachment-item iframe,
.post-attachments-grid.att-count-3 .post-attachment-item iframe {
    width: 100%;
    height: 320px;
}

/* ── Instagram Post Container (separate from post-attachment-item) ── */
.instagram-post-container {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #dbdbdb;
    background: #fff;
    overflow: visible;
    box-sizing: border-box;
}

.instagram-post-container iframe {
    width: 100% !important;
    min-width: 280px !important;
    border: none !important;
    display: block;
}

/* ── Mobile & Tablet Overrides ── */
@media (max-width: 768px) {
    .post-attachments-grid {
        gap: 6px;
    }
    .post-attachments-grid.att-count-2,
    .post-attachments-grid.att-count-3 {
        grid-template-columns: 1fr !important;
    }
    .post-attachments-grid.att-count-2 .post-attachment-item,
    .post-attachments-grid.att-count-3 .post-attachment-item,
    .post-attachments-grid.att-count-2 .instagram-post-container,
    .post-attachments-grid.att-count-3 .instagram-post-container,
    .post-attachments-grid.att-count-2 .shared-repertoire-card,
    .post-attachments-grid.att-count-3 .shared-repertoire-card,
    .post-attachments-grid.att-count-2 .shared-song-card,
    .post-attachments-grid.att-count-3 .shared-song-card {
        grid-column: span 1 !important;
    }
    .post-attachments-grid.att-count-2 .post-attachment-item,
    .post-attachments-grid.att-count-3 .post-attachment-item {
        min-height: 280px;
        height: auto !important;
    }
    .post-attachments-grid.att-count-3 > .post-attachment-item:first-child {
        min-height: 240px;
    }
    .post-attachments-grid.att-count-2 .shared-repertoire-card,
    .post-attachments-grid.att-count-3 .shared-repertoire-card,
    .post-attachments-grid.att-count-2 .shared-song-card,
    .post-attachments-grid.att-count-3 .shared-song-card {
        height: auto !important;
    }

    .post-attachments-grid.att-count-1 .post-attachment-item img,
    .post-attachments-grid.att-count-1 .post-attachment-item video {
        max-height: 360px;
    }

    .post-attachments-grid.att-count-1 .post-attachment-item iframe {
        height: 240px;
    }
}

/* Link-only button */
.attachment-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s;
    box-sizing: border-box;
    padding: 16px;
    text-align: center;
}
.attachment-link-btn:hover {
    background: #f1f5f9;
}

/* Post Sub Cards (Chords, Custom Songs etc.) */
.post-sub-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
}

@media (max-width: 576px) {
    .post-sub-card {
        padding: 14px !important;
        border-radius: 12px !important;
    }
}

/* Custom Song Responsive Header & Badges Styling */
.custom-song-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.custom-song-title {
    margin: 0 0 4px 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.custom-song-artist {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 500;
}

.custom-song-header-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.custom-song-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 10px;
    text-align: center;
    min-width: 65px;
    box-sizing: border-box;
}

.custom-song-badge-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.custom-song-badge-value {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 700;
}

@media (max-width: 576px) {
    .custom-song-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }
    .custom-song-title {
        font-size: 1.2rem;
    }
    .custom-song-artist {
        font-size: 0.95rem;
    }
    .custom-song-badge {
        padding: 4px 10px;
        min-width: 55px;
    }
    .custom-song-badge-value {
        font-size: 0.8rem;
    }
    .custom-song-header-badges {
        width: auto !important;
        justify-content: flex-start !important;
    }
}

/* Shared Repertoire Card */
.shared-repertoire-card {
    border-radius: 16px;
    border: 1px solid #e9d5ff;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.repertoire-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.repertoire-card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.repertoire-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e1b4b;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repertoire-card-owner {
    font-size: 0.8rem;
    font-weight: 600;
    color: #7c3aed;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repertoire-card-badge {
    background: #f3e8ff;
    color: #7c3aed;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

@media (max-width: 576px) {
    .shared-repertoire-card {
        padding: 12px !important;
        border-radius: 12px !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .repertoire-card-title {
        font-size: 1rem;
    }
    .repertoire-card-owner {
        font-size: 0.75rem;
    }
    .repertoire-card-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

/* Repertoire Song Listing rows */
.repertoire-song-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #374151;
    gap: 12px;
}

.repertoire-song-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
}

.repertoire-song-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    flex: 1;
}

.repertoire-song-title {
    font-weight: 700;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repertoire-song-artist {
    color: #6b7280;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repertoire-song-sep {
    color: #9ca3af;
    font-size: 0.8rem;
}

.repertoire-song-link {
    font-size: 0.8rem;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 700;
    flex-shrink: 0;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
}

@media (max-width: 480px) {
    .repertoire-song-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
    }
    .repertoire-song-sep {
        display: none;
    }
    .repertoire-song-artist {
        font-size: 0.75rem;
    }
    .repertoire-song-title {
        font-size: 0.85rem;
    }
}

/* Shared Song Card */
.shared-song-card {
    border-radius: 16px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.song-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.song-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-card-artist {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .shared-song-card {
        padding: 12px !important;
        border-radius: 12px !important;
        gap: 8px !important;
    }
}

@media (max-width: 480px) {
    .song-card-title {
        font-size: 1rem;
        white-space: normal !important;
        word-break: break-word;
    }
    .song-card-artist {
        font-size: 0.8rem;
        white-space: normal !important;
        word-break: break-word;
    }
    .repertoire-card-title {
        white-space: normal !important;
        word-break: break-word;
    }
    .repertoire-card-owner {
        white-space: normal !important;
        word-break: break-word;
    }
}

/* Post Event Card Styles */
.post-event-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 16px;
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.05);
}
.post-event-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(79, 70, 229, 0.15);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.1);
}
.post-event-content {
    min-width: 0;
    flex: 1;
}
.post-event-title {
    margin: 0 0 6px 0;
    color: #1e1b4b;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}
.post-event-meta {
    margin: 0 0 8px 0;
    color: #4f46e5;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.post-event-separator {
    color: #cbd5e1;
    margin: 0 4px;
}
.post-event-details {
    margin: 0 0 10px 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(224, 231, 255, 0.5);
}
.post-event-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}
.post-event-link:hover {
    color: #3730a3;
    transform: translateX(2px);
}

/* Post Sale Card Styles */
.post-sale-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 16px;
    border: 1px solid #fde68a;
    background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%);
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.05);
}
.post-sale-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(217, 119, 6, 0.15);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.1);
}
.post-sale-content {
    min-width: 0;
    flex: 1;
}
.post-sale-title {
    margin: 0 0 6px 0;
    color: #78350f;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}
.post-sale-price {
    margin: 0 0 10px 0;
    color: #b45309;
    font-size: 1rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(253, 230, 138, 0.5);
}
.post-sale-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: #d97706;
    text-decoration: none;
    font-weight: 700;
    background: #fffbeb;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(217, 119, 6, 0.15);
    transition: all 0.2s;
}
.post-sale-link:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

/* Post Cover Card Styles */
.post-cover-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 16px;
    border: 1px solid #f5d0fe;
    background: linear-gradient(135deg, #fdf8ff 0%, #fae8ff 100%);
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(192, 38, 211, 0.05);
}
.post-cover-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fae8ff;
    color: #c026d3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(192, 38, 211, 0.15);
    box-shadow: 0 4px 10px rgba(192, 38, 211, 0.1);
}
.post-cover-content {
    min-width: 0;
    flex: 1;
}
.post-cover-title {
    margin: 0 0 6px 0;
    color: #701a75;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}
.post-cover-meta {
    margin: 0;
    color: #a21caf;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Mobile Responsiveness for Cards */
@media (max-width: 576px) {
    .post-event-card,
    .post-sale-card,
    .post-cover-card {
        padding: 12px;
        border-radius: 12px;
        gap: 12px;
    }
    .post-event-card-icon,
    .post-sale-icon,
    .post-cover-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    .post-event-card-icon svg,
    .post-sale-icon svg,
    .post-cover-icon svg {
        width: 20px;
        height: 20px;
    }
    .post-event-title,
    .post-sale-title,
    .post-cover-title {
        font-size: 0.98rem;
    }
    .post-event-meta,
    .post-event-details,
    .post-sale-price,
    .post-cover-meta {
        font-size: 0.8rem;
    }
    .post-event-separator {
        display: none;
    }
    .post-event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Mobile Sidebar Drawer and Backdrop Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    .left-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 280px !important;
        height: 100vh !important;
        z-index: 10000 !important;
        background: #ffffff !important;
        box-shadow: 0 0 40px rgba(15, 23, 42, 0.12) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 24px 16px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-right: 1px solid #f1f5f9 !important;
        overflow-y: auto !important;
    }

    .left-sidebar.active {
        transform: translateX(320px) !important;
    }

    .left-sidebar .sidebar-user-profile {
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        margin-bottom: 20px !important;
        padding: 12px 14px !important;
    }

    .left-sidebar .sidebar-nav-group {
        margin-bottom: 20px !important;
    }

    .left-sidebar .sidebar-nav-item {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        font-size: 0.95rem !important;
    }
}
.chord { color: #8b5cf6 !important; font-weight: 700 !important; cursor: pointer; transition: color 0.2s; }
.chord:hover { color: #7e22ce !important; }

.key-btn.active { background: #dcfce7 !important; color: #166534 !important; border-color: #22c55e !important; }
.key-selector::-webkit-scrollbar { height: 4px; }
.key-selector::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
#auto-scroll-btn.active, #split-columns-btn.active { background: #f1f5f9 !important; border-color: #94a3b8 !important; }
#lyrics-container.two-columns { column-count: 2; column-gap: 40px; }
@media (max-width: 768px) { #lyrics-container.two-columns { column-count: 1; } }
