/* Combined CSS: global.css + base.css - Generated for performance optimization */
/* Global responsive header and mobile navigation */

.app-header {
    position: relative;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Optimize rendering performance */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Prevent text size adjustment on iOS */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Optimize scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }

    /* Better touch targets */
    a, button, input, select, textarea, [role="button"] {
        touch-action: manipulation;
    }

    /* Optimize images */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Reduce repaints */
    .app-header,
    .mobile-bottom-nav {
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Mobile hamburger */
.mobile-hamburger {
    display: none;
    -webkit-app-region: no-drag;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-hamburger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}
.mobile-hamburger.active {
    color: #a78bfa; /* purple-400 */
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.25);
}

/* Off-canvas shared styles */
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10002;
}
.offcanvas-panel {
    position: fixed;
    top: 0;
    height: 100%;
    width: 288px; /* w-72 */
    background: #f9fafb;
    color: #0f172a;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,0.20);
    padding: 20px;
    z-index: 10003;
    transform: translateX(0);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}
.offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}
.offcanvas-right {
    right: 0;
    transform: translateX(100%);
}
.offcanvas-panel.open.offcanvas-left,
.offcanvas-panel.open.offcanvas-right {
    transform: translateX(0);
}
.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.offcanvas-header h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.offcanvas-close {
    color: rgba(17,24,39,0.8);
    background: transparent;
    border: 1px solid rgba(17,24,39,0.12);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.offcanvas-close:hover {
    background: rgba(17,24,39,0.06);
}
.offcanvas-user-summary {
    margin: 6px 0 10px;
}
.offcanvas-user-summary .name {
    font-weight: 700;
}
.offcanvas-user-summary .meta {
    font-size: 12px;
    color: rgba(17,24,39,0.7);
}
.offcanvas-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}
.offcanvas-nav a,
.offcanvas-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: rgba(17,24,39,0.9);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.offcanvas-nav a:hover,
.offcanvas-action:hover {
    background: rgba(17, 24, 39, 0.08);
    border-color: rgba(17, 24, 39, 0.12);
}
.offcanvas-action.danger {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}
.offcanvas-nav i {
    width: 18px;
    text-align: center;
}

/* Bottom sheet (account) */
.sheet-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75vh;
    background: #ffffff;
    color: #0f172a;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.15);
    z-index: 10004;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}
.sheet-panel.open {
    transform: translateY(0);
}
.sheet-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sheet-handle {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0,0,0,0.15);
}
.sheet-title {
    font-weight: 700;
}
.sheet-close {
    color: rgba(17,24,39,0.8);
    background: transparent;
    border: 1px solid rgba(17,24,39,0.12);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}
.sheet-user {
    padding: 8px 14px;
}
.sheet-user .name { font-weight: 700; }
.sheet-user .meta { font-size: 12px; color: rgba(17,24,39,0.65); }
.sheet-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 14px 16px;
}
.sheet-nav a, .sheet-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(17, 24, 39, 0.08);
    color: rgba(17,24,39,0.9);
    text-decoration: none;
}
.sheet-action.danger {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}
.sheet-nav i { width: 18px; text-align:center; }

@media (max-width: 768px) {
    .mobile-hamburger {
        display: inline-flex;
    }
    /* keep desktop features hidden on mobile */
    .nav-features {
        display: none;
    }
}

/* ======================================================================
   Moved from templates/base.html — Portfolio Widget Styles
   ====================================================================== */
.portfolio-widget-container {
    position: relative;
}

.portfolio-widget-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

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

.portfolio-widget-btn.has-investment {
    background: rgba(236, 72, 153, 0.2);
}

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

.portfolio-amount {
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-label {
    font-size: 0.875rem;
}

.portfolio-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    overflow: hidden;
}

.portfolio-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.portfolio-dropdown-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.portfolio-view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.portfolio-view-all:hover {
    text-decoration: underline;
}

.portfolio-empty {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

.portfolio-empty p {
    margin: 0.5rem 0;
}

.portfolio-empty .text-muted {
    font-size: 0.875rem;
    opacity: 0.7;
}

.portfolio-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.portfolio-total-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.portfolio-total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.portfolio-artists-list {
    padding: 0.5rem;
}

.portfolio-artist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.portfolio-artist-item:hover {
    background: #f9fafb;
}

.portfolio-artist-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.portfolio-artist-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.portfolio-artist-amount {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 500;
}

.portfolio-boost-btn {
    padding: 0.375rem 0.75rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.portfolio-boost-btn:hover {
    background: #5568d3;
}

@media (max-width: 768px) {
    .portfolio-dropdown {
        right: auto;
        left: 0;
        min-width: 280px;
    }
}

/* ======================================================================
   Moved from templates/base.html — Image Loading Styles
   ====================================================================== */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

img[data-src].error {
    opacity: 1;
}

/* Prevent images from loading until Alpine.js processes them */
.image-placeholder {
    background: #f0f0f0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder:not([src]) {
    background: #e0e0e0;
}

.image-placeholder[src] {
    background: none;
}

/* Prevent multiple identical images from loading */
img[src*="default-cover.jpg"] {
    max-width: 100%;
    height: auto;
}

/* Collection badge styling */
[data-collection-badge] {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 3px 8px;
    font-weight: 600;
}
/* Ahoy Indie Media — Mobile Base (≤800px only) */
@media (max-width: 800px) {
    :root {
        --mobile-padding: 14px;
        --mobile-gap: 12px;
        --mobile-radius: 12px;
        --mobile-accent: #1B6CFF;
        --mobile-bg: #0A0A0A;
        --mobile-text: #ffffff;
        --mobile-muted: #a1a1aa;
        --mobile-border: rgba(255, 255, 255, 0.12);
        --mobile-card: rgba(255, 255, 255, 0.05);
        --mobile-card-strong: rgba(255, 255, 255, 0.08);
    }

    html,
    body {
        background: var(--mobile-bg);
        color: var(--mobile-text);
        overflow-x: hidden !important;
    }

    /* One-column flow and spacing rhythm */
    main,
    .content-area {
        padding-left: var(--mobile-padding) !important;
        padding-right: var(--mobile-padding) !important;
        gap: var(--mobile-gap);
    }

    section,
    .section,
    .block,
    .panel {
        margin-top: 16px;
        margin-bottom: 16px;
    }

    /* Full-width cards and images */
    .card,
    .item-mini,
    .queue-item,
    .recent-mini .item-mini,
    .now-playing-container {
        width: 100% !important;
        border-radius: 14px !important;
        overflow: hidden;
        background: linear-gradient(180deg, var(--mobile-card) 0%, rgba(255, 255, 255, 0.03) 100%);
        border: 1px solid var(--mobile-border);
        backdrop-filter: saturate(140%) blur(12px);
        -webkit-backdrop-filter: saturate(140%) blur(12px);
    }

    /* Buttons and form controls */
    button,
    input,
    select,
    textarea {
        width: 100%;
        font-size: 16px;
        padding: 12px;
        border-radius: 10px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
        border: 1px solid rgba(255, 255, 255, 0.18);
        color: var(--mobile-text);
    }

    input::placeholder,
    textarea::placeholder {
        color: var(--mobile-muted);
    }

    /* Kill sidebars and drawers on mobile */
    .dashboard-sidebar,
    .sidebar-left,
    .sidebar-right,
    .account-sidebar,
    .radio-sidebar,
    .mobile-sheet,
    .mobile-sheet-overlay,
    .offcanvas-overlay,
    .offcanvas-panel {
        display: none !important;
    }

    /* Duplicate nav blocks hidden below 800px */
    .desktop-only {
        display: none !important;
    }

    /* Ensure mobile bottom nav is visible */
    .mobile-bottom-nav {
        display: grid !important;
    }

    /* Optimize mobile performance */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Smooth scrolling on mobile */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Better touch targets */
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }

    /* Reduce animations on mobile for performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}


/* ===== Artists Subheader Enhancements (scoped, additive) ===== */
.artists-page .unified-header.artists-subheader {
    margin-top: 10px;
    margin-bottom: 12px;
}

.artists-page .artists-subheader .header-content {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 12px;
    text-align: center;
    /* liquid glass card */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}

/* Refined H1 and accent bar */
.artists-page .artists-subheader .title-text h1 {
    font-size: 1.45rem;
    /* compact refinement within 1.4–1.6rem */
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 4px;
    display: inline-block;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.artists-page .artists-subheader .title-text h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    /* slim accent bar */
    margin: 6px auto 0;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.65) 50%, rgba(236, 72, 153, 0.15) 100%);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

/* Softer subtitle */
.artists-page .artists-subheader .title-text p {
    color: #b0b3bb;
    max-width: 420px;
    margin: 6px auto 0;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Search bar – dark theme with pink focus ring */
.artists-page .artists-subheader .header-search .search-bar {
    max-width: 560px;
    margin: 10px auto 0;
    /* compact */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 6px 10px;
    /* compact */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.artists-page .artists-subheader .header-search .search-bar:focus-within {
    border-color: #ec4899;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.artists-page .artists-subheader .header-search .search-bar i {
    color: #e7e7e7;
    font-size: 13px;
    /* compact */
}

.artists-page .artists-subheader .header-search .search-input {
    background: transparent;
    border: 0;
    outline: none;
    color: #f3f4f6;
    /* higher contrast */
    width: 100%;
}

.artists-page .artists-subheader .header-search .search-input::placeholder {
    color: #c0c4cc;
}

/* Filter tabs -> soft rounded pink-outline pills with hover/active */
.artists-page .artists-subheader .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* compact */
    justify-content: center;
    margin-top: 10px;
    /* compact */
}

.artists-page .artists-subheader .filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    /* compact */
    border-radius: 9999px;
    background:
        linear-gradient(180deg, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0.06) 100%);
    border: 1px solid rgba(236, 72, 153, 0.55);
    /* stronger for contrast */
    color: #f8fafc;
    /* higher contrast */
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .1s ease;
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.artists-page .artists-subheader .filter-tab:hover {
    color: #ffffff;
    border-color: #ec4899;
    background:
        linear-gradient(180deg, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.10) 100%);
}

.artists-page .artists-subheader .filter-tab:active {
    transform: translateY(1px);
}

.artists-page .artists-subheader .filter-tab.active {
    color: #ffffff;
    border-color: #ec4899;
    background:
        linear-gradient(180deg, rgba(236, 72, 153, 0.24) 0%, rgba(236, 72, 153, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.22);
}

.artists-page .artists-subheader .filter-tab i {
    font-size: 12px;
    /* small optional icons */
    line-height: 1;
    color: currentColor;
}

/* Compact header-actions spacing inside artists subheader (non-destructive) */
.artists-page .artists-subheader .header-actions {
    margin-top: 10px;
    gap: 8px;
}

.artists-page .artists-subheader .header-actions .view-btn,
.artists-page .artists-subheader .header-actions .btn {
    padding: 8px 12px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.artists-page .artists-subheader .header-actions .btn-primary {
    border-color: #ec4899;
    background:
        linear-gradient(180deg, rgba(236, 72, 153, 0.22) 0%, rgba(236, 72, 153, 0.12) 100%);
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ===== Mobile compact overrides (≤768px) for Artists subheader ===== */
@media (max-width: 768px) {
    .artists-page .unified-header.artists-subheader {
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .artists-page .artists-subheader .header-content {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .artists-page .artists-subheader .title-text h1 {
        font-size: 1.3rem;
        margin-bottom: 2px;
        letter-spacing: 0.15px;
    }

    .artists-page .artists-subheader .title-text h1::after {
        width: 40px;
        height: 2px;
        margin-top: 4px;
        box-shadow: 0 0 14px rgba(236, 72, 153, 0.28);
    }

    .artists-page .artists-subheader .title-text p {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .artists-page .artists-subheader .header-search .search-bar {
        max-width: 520px;
        margin-top: 8px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .artists-page .artists-subheader .header-search .search-bar i {
        font-size: 12px;
    }

    .artists-page .artists-subheader .filter-tabs {
        gap: 6px;
        margin-top: 8px;
    }

    .artists-page .artists-subheader .filter-tab {
        padding: 6px 10px;
        font-size: 0.875rem;
        border-radius: 9999px;
    }

    .artists-page .artists-subheader .filter-tab i {
        font-size: 11px;
    }

    .artists-page .artists-subheader .header-actions {
        margin-top: 8px;
        gap: 6px;
    }

    .artists-page .artists-subheader .header-actions .view-btn,
    .artists-page .artists-subheader .header-actions .btn {
        padding: 7px 10px;
        border-radius: 10px;
    }
}

/* ===== Shared Glassy Subheader Theme for Music, Shows, Bookmarks ===== */
/* Container spacing */
.music-subheader,
.shows-subheader,
.bookmarks-subheader {
    margin-top: 10px;
    margin-bottom: 12px;
}

/* Glass card container */
.music-subheader .header-content,
.shows-subheader .header-content,
.bookmarks-subheader .header-content {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 12px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
}

/* H1 + pink accent */
.music-subheader .title-text h1,
.shows-subheader .title-text h1,
.bookmarks-subheader .title-text h1 {
    font-size: 1.45rem;
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 4px;
    display: inline-block;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.music-subheader .title-text h1::after,
.shows-subheader .title-text h1::after,
.bookmarks-subheader .title-text h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 6px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.15) 0%, rgba(236, 72, 153, 0.65) 50%, rgba(236, 72, 153, 0.15) 100%);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

/* Subtitle */
.music-subheader .title-text p,
.shows-subheader .title-text p,
.bookmarks-subheader .title-text p {
    color: #b0b3bb;
    max-width: 420px;
    margin: 6px auto 0;
    font-weight: 400;
    font-size: 0.95rem;
}

/* Search bar glass style */
.music-subheader .header-search .search-bar,
.shows-subheader .header-search .search-bar,
.bookmarks-subheader .header-search .search-bar {
    max-width: 560px;
    margin: 10px auto 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
}

.music-subheader .header-search .search-bar:focus-within,
.shows-subheader .header-search .search-bar:focus-within,
.bookmarks-subheader .header-search .search-bar:focus-within {
    border-color: #ec4899;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.music-subheader .header-search .search-bar i,
.shows-subheader .header-search .search-bar i,
.bookmarks-subheader .header-search .search-bar i {
    color: #e7e7e7;
    font-size: 13px;
}

.music-subheader .header-search .search-input,
.shows-subheader .header-search .search-input,
.bookmarks-subheader .header-search .search-input {
    background: transparent;
    border: 0;
    outline: none;
    color: #f3f4f6;
    width: 100%;
}

.music-subheader .header-search .search-input::placeholder,
.shows-subheader .header-search .search-input::placeholder,
.bookmarks-subheader .header-search .search-input::placeholder {
    color: #c0c4cc;
}

/* Filter tabs (where present) */
.shows-subheader .filter-tabs,
.bookmarks-subheader .filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.shows-subheader .filter-tab,
.bookmarks-subheader .filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0.06) 100%);
    border: 1px solid rgba(236, 72, 153, 0.55);
    color: #f8fafc;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .1s ease;
    backdrop-filter: saturate(140%) blur(6px);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.shows-subheader .filter-tab:hover,
.bookmarks-subheader .filter-tab:hover {
    color: #ffffff;
    border-color: #ec4899;
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.18) 0%, rgba(236, 72, 153, 0.10) 100%);
}

.shows-subheader .filter-tab.active,
.bookmarks-subheader .filter-tab.active {
    color: #ffffff;
    border-color: #ec4899;
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.24) 0%, rgba(236, 72, 153, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px rgba(0, 0, 0, 0.22);
}

.shows-subheader .filter-tab i,
.bookmarks-subheader .filter-tab i {
    font-size: 12px;
    line-height: 1;
    color: currentColor;
}

/* Header actions (buttons) */
.music-subheader .header-actions,
.shows-subheader .header-actions,
.bookmarks-subheader .header-actions {
    margin-top: 10px;
    gap: 8px;
}

.music-subheader .header-actions .view-btn,
.music-subheader .header-actions .btn,
.shows-subheader .header-actions .view-btn,
.shows-subheader .header-actions .btn,
.bookmarks-subheader .header-actions .view-btn,
.bookmarks-subheader .header-actions .btn {
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.music-subheader .header-actions .btn-primary,
.shows-subheader .header-actions .btn-primary,
.bookmarks-subheader .header-actions .btn-primary {
    border-color: #ec4899;
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.22) 0%, rgba(236, 72, 153, 0.12) 100%);
    box-shadow: 0 8px 22px rgba(236, 72, 153, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Mobile compact overrides for shared subheaders */
@media (max-width: 768px) {

    .music-subheader,
    .shows-subheader,
    .bookmarks-subheader {
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .music-subheader .header-content,
    .shows-subheader .header-content,
    .bookmarks-subheader .header-content {
        padding: 8px 10px;
        border-radius: 14px;
    }

    .music-subheader .title-text h1,
    .shows-subheader .title-text h1,
    .bookmarks-subheader .title-text h1 {
        font-size: 1.3rem;
        margin-bottom: 2px;
        letter-spacing: 0.15px;
    }

    .music-subheader .title-text h1::after,
    .shows-subheader .title-text h1::after,
    .bookmarks-subheader .title-text h1::after {
        width: 40px;
        height: 2px;
        margin-top: 4px;
        box-shadow: 0 0 14px rgba(236, 72, 153, 0.28);
    }

    .music-subheader .title-text p,
    .shows-subheader .title-text p,
    .bookmarks-subheader .title-text p {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .music-subheader .header-search .search-bar,
    .shows-subheader .header-search .search-bar,
    .bookmarks-subheader .header-search .search-bar {
        max-width: 520px;
        margin-top: 8px;
        padding: 6px 8px;
        border-radius: 10px;
    }

    .shows-subheader .filter-tabs,
    .bookmarks-subheader .filter-tabs {
        gap: 6px;
        margin-top: 8px;
    }

    .shows-subheader .filter-tab,
    .bookmarks-subheader .filter-tab {
        padding: 6px 10px;
        font-size: 0.875rem;
    }
}