        /* Additional browse-page tokens */
        :root {
            --header-action: var(--accent);
        }

        /* Remove focus/active states on mobile for buttons */
        .ticket-btn,
        .spotify-btn,
        .save-btn,
        .share-btn,
        .control-btn,
        .artist-btn,
        .venue-filter-btn,
        .city-filter-btn,
        .filter-btn,
        .date-filter-btn,
        .calendar-nav-btn,
        .calendar-action-btn,
        .donation-btn,
        .donation-link-btn,
        .venue-filter-close,
        .city-filter-close,
        .calendar-close,
        .donation-close,
        .donation-logo {
            -webkit-tap-highlight-color: transparent;
            -webkit-user-select: none;
            user-select: none;
            touch-action: manipulation;
        }

        /* Ensure buttons return to original state after tap on mobile */
        @media (hover: none) and (pointer: coarse) {
            .ticket-btn:focus,
            .spotify-btn:focus,
            .save-btn:focus,
            .share-btn:focus,
            .control-btn:focus,
            .artist-btn:focus,
            .venue-filter-btn:focus,
            .city-filter-btn:focus,
            .filter-btn:focus,
            .date-filter-btn:focus,
            .calendar-nav-btn:focus,
            .calendar-action-btn:focus,
            .donation-btn:focus,
            .donation-link-btn:focus,
            .venue-filter-close:focus,
            .city-filter-close:focus,
            .calendar-close:focus,
            .donation-close:focus,
            .donation-logo:focus {
                outline: none;
            }
        }

        html, body {
            touch-action: pan-y;
            overscroll-behavior: none;
            -webkit-overflow-scrolling: auto;
            scroll-behavior: smooth;
        }

        body {
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }

        /* Fake scroll buffer for Safari toolbar hiding */
        body::after {
            content: '';
            display: block;
            height: 1px;
        }

        /* Main container */
        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 var(--pad-page);
            min-height: 100dvh;
            display: flex;
            flex-direction: column;
        }

        /* Desktop: scroll in inner wrapper (same as /scanner) so Chrome scroll works */
        @media (min-width: 541px) {
            html, body {
                height: 100%;
                overflow-x: visible;
                overflow-y: hidden;
            }
            .container {
                height: 100dvh;
                overflow-x: visible;
                overflow-y: hidden;
            }
            .main-scroll {
                flex: 1;
                min-height: 0;
                overflow-x: visible;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                /* Padding so scroll container doesn't clip card shadows/borders */
                padding-left: 12px;
                padding-right: 12px;
            }
            .main-scroll::-webkit-scrollbar {
                display: none;
            }
        }

        /* Player Card - cream panel on orange background */
        .player-card {
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius);
            padding: 40px;
            margin-bottom: 24px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        /* Desktop two-column layout */
        @media (min-width: 768px) {
            .player-card-inner {
                display: flex;
                gap: 40px;
                align-items: stretch;
            }

            .player-left {
                flex: 1 1 auto;
                min-width: 280px;
                max-width: 500px;
                display: flex;
                flex-direction: column;
            }

            .player-right {
                flex: 1 1 480px;
                min-width: 0;
                max-width: 480px;
                display: flex;
                flex-direction: column;
                gap: 20px;
            }

            .player-left .artist-hero {
                margin: 20px 0 0 0;
                flex: 1;
                aspect-ratio: 1 / 1;
                min-height: 0;
            }

            .player-left .track-info {
                margin-bottom: 0;
            }

            .player-right .event-info {
                margin-top: 0;
                padding-top: 0;
                border-top: none;
                margin-bottom: 0;
            }

            .player-right .songs-area {
                gap: 12px;
            }

            .player-right .controls {
                margin-top: 0;
            }
        }

        .track-info {
            text-align: center;
            margin-bottom: 24px;
        }

        .artist-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .artist-name {
            font-family: var(--font-serif);
            font-size: 2rem;
            font-weight: 700;
            color: var(--ink);
            line-height: 1.2;
        }

        /* Artist hero image - large, dominant, navy outline */
        .artist-hero {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 9;
            margin: 20px 0;
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
            background: var(--teal-light);
            border: var(--border) solid var(--ink);
            box-shadow: var(--shadow);
        }

        .artist-hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center center;
        }

        .artist-hero-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--teal) 0%, var(--ink) 100%);
        }

        .artist-hero-placeholder svg {
            width: 60px;
            height: 60px;
            color: var(--paper);
            opacity: 0.5;
        }

        /* Action buttons - Block 2 (primary) + Block 3 (secondary) */
        .action-buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 24px;
            margin-top: 24px;
        }

        .action-primary {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            width: 100%;
        }

        .action-secondary {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
        }

        .event-info {
            margin-top: 24px;
            padding-top: 24px;
            border-top: 3px dashed var(--teal-light);
            text-align: center;
        }

        .event-venue {
            color: var(--text-dark);
            font-size: 1.25rem;
            font-weight: 600;
            margin-top: 12px;
        }

        .event-location {
            color: var(--text-muted);
            font-size: 1rem;
            margin-top: 6px;
            font-weight: 500;
        }

        /* Ticket Button */
        .ticket-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 28px;
            min-width: 140px;
            background: var(--accent);
            color: var(--paper);
            text-decoration: none;
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: var(--radius-pill);
            border: var(--border) solid var(--ink);
            cursor: pointer;
            transition: all 0.2s ease-out;
            box-shadow: var(--shadow);
            white-space: nowrap;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .ticket-btn::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -75%;
            width: 50%;
            height: 200%;
            background: linear-gradient(
                105deg,
                transparent 40%,
                rgba(255, 255, 255, 0.25) 45%,
                rgba(255, 255, 255, 0.35) 50%,
                rgba(255, 255, 255, 0.25) 55%,
                transparent 60%
            );
            transform: skewX(-20deg);
            transition: left 0.5s ease-out;
            z-index: 2;
            pointer-events: none;
        }

        .ticket-btn:hover::after {
            left: 125%;
        }

        .ticket-btn:hover {
            transform: translate(-2px, -2px);
            box-shadow: var(--shadow-hover), 0 0 16px rgba(255, 126, 73, 0.35);
        }

        .ticket-btn:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0 var(--ink);
        }

        .ticket-btn svg {
            width: 20px;
            height: 20px;
            position: relative;
            z-index: 3;
        }

        .ticket-btn span,
        .ticket-btn {
            position: relative;
            z-index: 3;
        }

        @keyframes shimmer {
            from { left: -75%; }
            to { left: 125%; }
        }

        @media (prefers-reduced-motion: reduce) {
            .ticket-btn::after {
                display: none;
            }
        }

        .no-tickets {
            display: inline-block;
            margin-top: 16px;
            padding: 10px 20px;
            background: var(--bg);
            color: var(--text-muted);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            border-radius: 8px;
            border: var(--border) solid var(--text-muted);
        }

        /* Track Item - paper list row */
        .track-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 12px 16px;
            margin-bottom: 8px;
            background: var(--paper);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: var(--border) solid rgba(26, 46, 53, 0.15);
            position: relative;
        }

        .track-item:last-child {
            margin-bottom: 0;
        }

        .track-item:hover:not(.active) {
            background: rgba(238, 170, 137, 0.12);
            border-color: rgba(26, 46, 53, 0.25);
        }

        .track-item.active {
            background: rgba(255, 126, 73, 0.08);
            border-color: var(--accent);
            border-left-width: 4px;
            padding-left: 12px;
            box-shadow: 1px 1px 0 rgba(26, 46, 53, 0.08);
        }

        .track-item.active .track-name,
        .track-item.active .track-album {
            color: var(--ink);
        }

        .track-artwork {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
            background: rgba(238, 170, 137, 0.3);
            border: var(--border) solid var(--ink);
        }

        .track-details {
            flex: 1;
            min-width: 0;
            text-align: left;
        }

        .track-name {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-dark);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 4px;
        }

        .track-album {
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .spotify-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 28px;
            min-width: 140px;
            background: #1DB954;
            color: white;
            text-decoration: none;
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: var(--radius-pill);
            border: var(--border) solid var(--ink);
            cursor: pointer;
            transition: all 0.2s ease-out;
            box-shadow: var(--shadow);
        }

        .spotify-btn:hover {
            transform: translate(-2px, -2px);
            box-shadow: var(--shadow-hover), 0 0 14px rgba(29, 185, 84, 0.3);
            background: #1ed760;
        }

        .spotify-btn:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0 var(--ink);
        }

        .spotify-btn svg {
            width: 20px;
            height: 20px;
        }

        /* Secondary action buttons */
        .action-secondary .action-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            min-width: 56px;
            height: 56px;
            min-height: 56px;
            padding: 0;
            background: white;
            color: var(--ink);
            border: var(--border) solid var(--ink);
            border-radius: 50%;
            font-size: 0;
            cursor: pointer;
            box-shadow: var(--shadow);
            transition: all 0.15s ease;
        }

        .action-secondary .action-pill:hover {
            background: var(--bg);
        }

        .action-secondary .action-pill:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .action-secondary .action-pill svg {
            width: 18px;
            height: 18px;
            min-width: 18px;
            min-height: 18px;
            flex-shrink: 0;
        }

        .action-secondary .action-pill .stat-count {
            display: none;
        }

        /* SAVE / SHARE / VIDEO / NOTES - state colors */
        .save-btn {
            background: var(--paper);
            color: var(--ink);
        }

        .save-btn:hover {
            background: var(--bg);
        }

        .save-btn:active {
            transform: translate(1px, 1px);
            box-shadow: none;
        }

        .save-btn.saved {
            background: var(--bg);
            color: white;
            border-color: var(--ink);
        }

        .save-btn.saved:hover {
            background: var(--accent);
            border-color: var(--ink);
        }

        .save-btn.saved:active {
            background: var(--bg);
            border-color: var(--ink);
        }

        .save-btn svg {
            flex-shrink: 0;
        }

        .share-btn {
            background: var(--paper);
            color: var(--ink);
        }

        .share-btn:hover {
            background: var(--bg);
        }

        .share-btn:active {
            transform: translate(1px, 1px);
            box-shadow: none;
        }

        .share-btn.copied {
            background: var(--bg);
            color: white;
            border-color: var(--ink);
        }

        .browse-video-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1100;
        }

        .browse-video-overlay.open {
            display: block;
        }

        .browse-video-modal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 1101;
            width: 90vw;
            max-width: 640px;
            border-radius: 14px;
            overflow: hidden;
            background: #000;
        }

        .browse-video-modal.open {
            display: block;
        }

        .browse-video-close {
            position: absolute;
            top: -36px;
            right: 0;
            background: none;
            border: none;
            color: #fff;
            cursor: pointer;
            padding: 4px;
            z-index: 2;
        }

        .browse-video-close:active {
            transform: none;
        }

        .browse-video-close svg {
            width: 24px;
            height: 24px;
        }

        .browse-video-player {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
        }

        .browse-video-player iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
        }

        .stat-count {
            font-size: 0.85em;
            opacity: 0.6;
            margin-left: -2px;
            font-weight: 500;
        }

        .save-btn.saved .stat-count,
        .share-btn.copied .stat-count {
            opacity: 0.85;
        }

        .track-playing-indicator {
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            flex-shrink: 0;
        }

        .track-item.active .track-playing-indicator {
            color: var(--accent);
        }

        .track-playing-indicator svg {
            width: 22px;
            height: 22px;
        }

        /* Songs area - Now Playing + 2 tracks (3 total, no labels) */
        .songs-area {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 8px;
            flex-shrink: 0;
        }


        .now-playing-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            min-height: 80px;
            max-height: 80px;
            box-sizing: border-box;
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .now-playing-card:hover {
            transform: translate(-1px, -1px);
            box-shadow: var(--shadow-hover);
        }

        .now-playing-card.active {
            border-color: var(--accent);
            box-shadow: 2px 2px 0 var(--accent);
        }

        .now-playing-artwork {
            width: 56px;
            height: 56px;
            border-radius: 8px;
            object-fit: cover;
            flex-shrink: 0;
            background: rgba(238, 170, 137, 0.3);
            border: var(--border) solid var(--ink);
        }

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

        .now-playing-name {
            font-family: var(--font-serif);
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--ink);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-bottom: 1px;
        }

        .now-playing-album {
            font-size: 0.75rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .now-playing-action {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--accent);
            color: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: 50%;
            box-shadow: var(--shadow);
        }

        .now-playing-action svg {
            width: 20px;
            height: 20px;
        }

        .songs-track-rows {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .songs-area .track-item,
        .songs-track-rows .track-item {
            padding: 8px 12px;
            min-height: 60px;
            max-height: 60px;
            box-sizing: border-box;
            margin-bottom: 0;
            gap: 12px;
        }

        .songs-area .track-artwork,
        .songs-track-rows .track-artwork {
            width: 44px;
            height: 44px;
            border-radius: 6px;
        }

        .songs-area .track-name,
        .songs-track-rows .track-name {
            font-size: 0.85rem;
            margin-bottom: 2px;
        }

        .songs-area .track-album,
        .songs-track-rows .track-album {
            font-size: 0.72rem;
        }

        .songs-area .track-playing-indicator,
        .songs-track-rows .track-playing-indicator {
            width: 24px;
            height: 24px;
            color: var(--text-muted);
        }

        .songs-area .track-playing-indicator svg,
        .songs-track-rows .track-playing-indicator svg {
            width: 16px;
            height: 16px;
        }

        .songs-area .no-track {
            padding: 24px;
            text-align: center;
            background: rgba(238, 170, 137, 0.15);
            border: 2px dashed rgba(26, 46, 53, 0.2);
            border-radius: var(--radius);
            color: var(--text-muted);
            font-weight: 500;
        }

        /* Equalizer animation */
        .equalizer {
            display: flex;
            align-items: flex-end;
            gap: 3px;
            height: 18px;
        }

        .equalizer-bar {
            width: 4px;
            background: var(--accent);
            border-radius: 2px;
            animation: equalize 0.8s ease-in-out infinite;
        }

        .equalizer-bar:nth-child(1) { animation-delay: 0s; }
        .equalizer-bar:nth-child(2) { animation-delay: 0.2s; }
        .equalizer-bar:nth-child(3) { animation-delay: 0.4s; }

        @keyframes equalize {
            0%, 100% { height: 5px; }
            50% { height: 18px; }
        }

        /* Progress bar */
        .progress-container {
            margin-top: 16px;
            margin-bottom: 12px;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: var(--bg);
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            border: var(--border) solid var(--ink);
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--accent);
            width: 0%;
            transition: width 0.1s linear;
        }

        .time-display {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 8px;
            font-weight: 500;
        }

        /* Controls - Prev Artist | Prev Track | Play | Next Track | Counter | Next Artist */
        .controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            margin-top: 16px;
            flex-wrap: wrap;
        }

        .control-btn {
            background: var(--bg);
            border: var(--border) solid var(--ink);
            color: var(--ink);
            cursor: pointer;
            padding: 14px;
            min-width: 48px;
            min-height: 48px;
            border-radius: 50%;
            transition: all 0.15s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow);
        }

        .control-btn:hover {
            background: var(--teal-light);
            color: var(--paper);
            transform: translate(-1px, -1px);
            box-shadow: var(--shadow-hover);
        }

        .control-btn:active {
            transform: translate(1px, 1px);
            box-shadow: none;
        }

        .control-btn svg {
            width: 28px;
            height: 28px;
        }

        .control-btn.play-btn {
            background: var(--accent);
            color: var(--paper);
            padding: 18px;
            min-width: 56px;
            min-height: 56px;
            box-shadow: var(--shadow);
        }

        .control-btn.play-btn svg {
            width: 34px;
            height: 34px;
        }

        .control-btn.play-btn:hover {
            background: var(--accent-light);
            color: var(--paper);
        }

        /* Track skip - medium, peach */
        .control-btn-track {
            background: var(--bg);
            color: var(--ink);
            padding: 12px;
            min-width: 44px;
            min-height: 44px;
        }

        .control-btn-track:hover {
            background: rgba(238, 170, 137, 0.9);
        }

        .control-btn-track svg {
            width: 22px;
            height: 22px;
        }

        /* Artist skip - smallest, outlined */
        .control-btn-artist {
            background: var(--paper);
            color: var(--ink);
            padding: 10px;
            min-width: 38px;
            min-height: 38px;
            border: var(--border) solid var(--ink);
        }

        .control-btn-artist:hover {
            background: rgba(238, 170, 137, 0.4);
        }

        .control-btn-artist svg {
            width: 18px;
            height: 18px;
        }

        /* Artist counter - above controls */
        .artist-counter-row {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 8px;
            margin-bottom: 14px;
        }

        .artist-counter-inline {
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--ink);
            background: var(--bg);
            padding: 5px 12px;
            border-radius: var(--radius-pill);
            border: var(--border) solid var(--ink);
            white-space: nowrap;
        }

        .desktop-player-controls {
            display: block;
            width: min(100%, 300px);
            margin-left: auto;
            margin-right: auto;
        }

        @media (min-width: 768px) {
            .desktop-player-controls {
                width: min(100%, 420px);
            }
            .desktop-player-controls .progress-container {
                width: 100%;
                max-width: 420px;
                margin-left: auto;
                margin-right: auto;
            }
            .desktop-controls-inline {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
                width: 100%;
                max-width: 100%;
                margin-top: 8px;
            }
            .desktop-controls-inline .controls {
                display: flex;
                flex-shrink: 0;
                margin: 0;
                width: auto;
                max-width: none;
            }
            .desktop-controls-inline .artist-counter-row {
                margin: 0;
                flex-shrink: 0;
            }
        }

        /* Swipe hint */
        .swipe-hint {
            display: none;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            padding: 2px 0 6px;
            min-height: 28px;
            flex-shrink: 0;
            color: var(--muted, #999);
            font-size: 0.75rem;
            line-height: 1.2;
            font-weight: 500;
            text-align: center;
            animation: swipeNudge 2s ease-in-out infinite;
        }

        .swipe-hint svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        @keyframes swipeNudge {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-4px); }
            75% { transform: translateX(4px); }
        }

        /* Loading state */
        .loading {
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius);
            padding: 48px 32px;
            box-shadow: var(--shadow);
            text-align: center;
        }

        .loading-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid var(--bg);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 20px;
        }

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

        .loading-text {
            font-family: var(--font-serif);
            color: var(--ink);
            font-size: 1.1rem;
            font-weight: 700;
        }

        /* Error state */
        .error {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .error-icon {
            font-size: 3.5rem;
            margin-bottom: 20px;
        }

        /* No track placeholder */
        .no-track {
            text-align: center;
            padding: 48px;
            color: var(--text-muted);
            background: var(--bg-warm);
            border-radius: 12px;
            margin-bottom: 20px;
            border: 2px dashed var(--teal-light);
            font-weight: 500;
        }

        /* Keyboard hint */
        .keyboard-hint {
            text-align: center;
            margin-top: auto;
            padding-top: 24px;
            font-size: 0.8rem;
            color: var(--paper);
            opacity: 0.8;
        }

        .keyboard-hint kbd {
            background: var(--teal);
            color: var(--paper);
            padding: 4px 10px;
            border-radius: 6px;
            margin: 0 4px;
            font-family: var(--font-sans);
            font-weight: 700;
            border: var(--border) solid var(--ink);
        }

        /* Hide keyboard hints on mobile */
        @media (max-width: 768px) {
            .keyboard-hint {
                display: none;
            }
        }

        /* Tablet and narrow desktop - add spacing between action buttons and music controls */
        @media (max-width: 920px) {
            .action-buttons {
                margin-top: 16px;
                margin-bottom: 16px;
            }

        }

        /* Mobile optimizations - compact viewport-filling layout (scroll in inner wrapper like /scanner for Chrome) */
        @media (max-width: 540px) {
            .desktop-player-controls {
                display: none;
            }

            .swipe-hint {
                display: flex;
            }

            html, body {
                height: 100%;
                overflow: hidden;
            }

            .container {
                padding: 0;
                height: 100dvh;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }

            .main-scroll {
                flex: 1;
                min-height: 0;
                overflow-y: auto;
                overflow-x: hidden;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: y mandatory;
                overscroll-behavior-y: contain;
                scrollbar-width: none;
            }

            .main-scroll::-webkit-scrollbar { display: none; }

            #app {
                scroll-snap-align: start;
                flex: none;
                height: 100dvh;
                padding: 8px 12px;
                padding-top: calc(var(--safe-top) + 8px);
                padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + var(--bottom-nav-gap));
                box-sizing: border-box;
                display: flex;
                flex-direction: column;
                min-height: 0;
                overflow: hidden;
                will-change: transform;
            }

            #similarArtistsPage {
                scroll-snap-align: start;
                flex: none;
                min-height: 100dvh;
            }

            .player-card {
                padding: 16px;
                border-radius: var(--radius);
                border-width: var(--border);
                box-shadow: var(--shadow);
                margin-bottom: 0;
                flex: 1;
                display: flex;
                flex-direction: column;
                min-height: 0;
                overflow: hidden;
            }

            /* Reset desktop layout wrappers for mobile */
            .player-card-inner,
            .player-left,
            .player-right {
                display: contents;
            }

            .track-info {
                margin-bottom: 0;
                flex-shrink: 0;
            }

            .artist-name {
                font-size: 1.15rem;
                line-height: 1.1;
            }

            .artist-header {
                gap: 4px;
            }

            /* Artist hero image - mobile: fixed aspect ratio, no harsh crop */
            .artist-hero {
                flex: 0 0 auto;
                width: 100%;
                aspect-ratio: 16 / 9;
                min-height: 0;
                margin: 12px 0;
                border-radius: var(--radius);
                border-width: var(--border);
                box-shadow: var(--shadow);
                overflow: hidden;
            }

            .artist-hero img {
                object-fit: cover;
                object-position: center top;
            }

            .artist-hero-placeholder svg {
                width: 48px;
                height: 48px;
            }

            /* FilterBar on mobile — always-visible Venue / Genre / Date pills */
            .filter-bar {
                display: flex !important;
                flex-wrap: nowrap;
                gap: 8px;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                padding-bottom: 4px;
            }

            .filter-bar::-webkit-scrollbar {
                display: none;
            }

            .filter-bar .filter-container {
                flex: 0 0 auto;
                min-width: 0;
            }

            .filter-bar .filter-btn,
            .filter-bar .date-filter-btn {
                flex-shrink: 0;
                min-height: 44px;
                padding: 10px 16px;
                font-size: 0.78rem;
                white-space: nowrap;
            }

            .header-actions {
                min-height: 48px;
                height: 48px;
                border-width: 2px;
                border-radius: 10px;
                box-shadow: 2px 2px 0 var(--border-dark);
            }

            .header-action-link {
                min-width: 48px;
                min-height: 48px;
                height: 48px;
                padding: 0 12px;
            }

            .header-action-link svg {
                width: 18px;
                height: 18px;
            }

            .city-picker-nav-btn {
                min-height: 48px;
                height: 48px;
                padding: 0 10px;
                font-size: 0.78rem;
                max-width: 110px;
            }

            /* Venue filter modal mobile adjustments */
            .venue-filter-overlay,
            .genre-filter-overlay {
                padding: 0;
                align-items: flex-end;
            }

            .venue-filter-modal,
            .genre-filter-modal {
                border-radius: 16px 16px 0 0;
                max-width: 100%;
                box-shadow: 0 -4px 0px var(--border-dark);
                max-height: 85vh;
            }

            .venue-filter-overlay.open .venue-filter-modal,
            .genre-filter-overlay.open .genre-filter-modal {
                transform: translateY(0) scale(1);
            }

            .venue-filter-header {
                padding: 12px 16px;
            }

            .venue-filter-title {
                font-size: 1rem;
            }

            .venue-filter-actions-top {
                padding: 10px 14px;
            }

            .venue-filter-action-link {
                font-size: 0.75rem;
            }

            .venue-filter-option {
                padding: 12px 14px;
                min-height: 48px;
            }

            .venue-filter-name {
                font-size: 0.9rem;
            }

            .venue-filter-count {
                font-size: 0.75rem;
            }

            .venue-filter-actions-bottom {
                padding: 12px;
                gap: 10px;
            }

            .venue-filter-btn {
                padding: 12px 14px;
                font-size: 0.75rem;
                min-height: 44px;
            }

            /* Event info mobile - tight spacing */
            .event-info {
                margin-top: 0;
                padding-top: 8px;
                border-top: 1px dashed var(--teal-light);
                flex-shrink: 0;
            }

            .event-venue {
                font-size: 0.8rem;
                margin-top: 2px;
                font-weight: 600;
            }

            .event-location {
                font-size: 0.7rem;
                margin-top: 2px;
            }

            /* Action buttons mobile - Row 1: 2 large, Row 2: 3 smaller */
            .action-buttons {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
                margin-top: 8px;
                margin-bottom: 8px;
            }

            .action-primary {
                display: flex;
                gap: 10px;
                width: 100%;
            }

            .action-primary .ticket-btn,
            .action-primary .spotify-btn {
                flex: 1;
                min-height: 44px;
                padding: 12px 16px;
                font-size: 0.75rem;
            }

            .action-secondary {
                display: flex;
                gap: 10px;
                width: 100%;
                justify-content: center;
            }

            .action-secondary .action-pill {
                flex: 0 0 46px;
                width: 46px;
                min-width: 46px;
                height: 46px;
                min-height: 46px;
                padding: 0;
            }

            .ticket-btn,
            .spotify-btn {
                border-width: 2px;
                box-shadow: 2px 2px 0px var(--border-dark);
                border-radius: var(--radius-pill);
                white-space: nowrap;
            }

            .ticket-btn::after {
                display: none;
            }

            .ticket-btn svg,
            .spotify-btn svg {
                width: 16px;
                height: 16px;
            }

            .action-secondary .action-pill svg {
                width: 16px;
                height: 16px;
                min-width: 16px;
                min-height: 16px;
            }

            .action-secondary .stat-count {
                display: none;
            }

            .ticket-btn:hover,
            .spotify-btn:hover {
                transform: none;
                box-shadow: 2px 2px 0px var(--border-dark);
            }

            .ticket-btn:active,
            .spotify-btn:active {
                transform: translate(1px, 1px);
                box-shadow: 1px 1px 0px var(--border-dark);
            }

            .save-btn:hover,
            .share-btn:hover {
                transform: none;
            }

            .save-btn:active,
            .share-btn:active {
                transform: scale(0.96);
            }

            .no-tickets {
                padding: 10px 14px;
                font-size: 0.7rem;
                min-height: 44px;
            }

            /* Songs area mobile - compact */
            .songs-area {
                margin: 8px 0;
                gap: 8px;
            }

            .now-playing-card {
                padding: 8px 12px;
                min-height: 64px;
                max-height: 64px;
                gap: 10px;
            }

            .now-playing-artwork {
                width: 44px;
                height: 44px;
            }

            .now-playing-name {
                font-size: 0.85rem;
            }

            .now-playing-album {
                font-size: 0.7rem;
            }

            .now-playing-action {
                width: 36px;
                height: 36px;
            }

            .now-playing-action svg {
                width: 16px;
                height: 16px;
            }

            .songs-area .track-item,
            .songs-track-rows .track-item {
                min-height: 48px;
                max-height: 48px;
                padding: 6px 10px;
                gap: 10px;
            }

            .songs-area .track-artwork,
            .songs-track-rows .track-artwork {
                width: 34px;
                height: 34px;
            }

            /* Track items (modal) - compact on mobile */
            .track-item {
                padding: 6px 8px;
                gap: 8px;
                margin-bottom: 4px;
                border-radius: 8px;
            }

            .track-item:last-child {
                margin-bottom: 0;
            }

            .track-artwork {
                width: 40px;
                height: 40px;
                border-radius: 4px;
                border-width: 1px;
            }

            .track-name {
                font-size: 0.8rem;
                margin-bottom: 1px;
            }

            .track-album {
                font-size: 0.65rem;
            }

            .track-playing-indicator {
                width: 20px;
                height: 20px;
            }

            .track-playing-indicator svg {
                width: 14px;
                height: 14px;
            }

            .equalizer {
                height: 12px;
                gap: 2px;
            }

            .equalizer-bar {
                width: 2px;
            }

            @keyframes equalize {
                0%, 100% { height: 4px; }
                50% { height: 12px; }
            }

            /* Progress bar mobile - tight to tracks */
            .progress-container {
                margin-top: 8px;
                margin-bottom: 0;
                flex-shrink: 0;
            }

            /* Artist counter - above controls, 8px from progress */
            .artist-counter-row {
                margin-top: 8px;
                margin-bottom: 14px;
            }

            .artist-counter-inline {
                font-size: 0.7rem;
                font-weight: 500;
                padding: 4px 10px;
            }

            .progress-bar {
                height: 6px;
            }

            .time-display {
                font-size: 0.6rem;
                margin-top: 4px;
            }

            /* Controls mobile - merged row: << < ▶ > [1/N] >> */
            .controls {
                gap: 8px;
                margin-top: 12px;
                flex-shrink: 0;
            }

            .control-btn {
                box-shadow: 2px 2px 0px var(--border-dark);
            }

            .control-btn:hover {
                transform: none;
                box-shadow: 2px 2px 0px var(--border-dark);
            }

            .control-btn:active {
                transform: translate(1px, 1px);
                box-shadow: 1px 1px 0px var(--border-dark);
            }

            .control-btn-track {
                padding: 10px;
                min-width: 40px;
                min-height: 40px;
            }

            .control-btn-track svg {
                width: 18px;
                height: 18px;
            }

            .control-btn-artist {
                padding: 8px;
                min-width: 34px;
                min-height: 34px;
            }

            .control-btn-artist svg {
                width: 14px;
                height: 14px;
            }

            .control-btn.play-btn {
                padding: 12px;
                min-width: 48px;
                min-height: 48px;
            }

            .control-btn.play-btn svg {
                width: 24px;
                height: 24px;
            }

            .artist-counter-inline {
                font-size: 0.65rem;
                padding: 4px 8px;
            }

            /* Calendar modal mobile */
            .calendar-overlay {
                padding: 0;
                align-items: flex-end;
            }

            .calendar-modal {
                border-radius: 16px 16px 0 0;
                max-width: 100%;
                box-shadow: 0 -4px 0px var(--border-dark);
                max-height: 85vh;
            }

            .calendar-overlay.open .calendar-modal {
                transform: translateY(0) scale(1);
            }

            .calendar-header {
                padding: 12px 14px;
            }

            .calendar-title {
                font-size: 0.95rem;
            }

            .calendar-hint {
                padding: 8px 12px;
                font-size: 0.65rem;
            }

            .calendar-nav {
                padding: 10px;
            }

            .calendar-nav-btn {
                width: 30px;
                height: 30px;
            }

            .calendar-month-year {
                font-size: 0.85rem;
            }

            .calendar-weekdays {
                padding: 4px 10px;
            }

            .calendar-weekday {
                font-size: 0.55rem;
                padding: 2px;
            }

            .calendar-days {
                padding: 8px 10px 12px;
                gap: 2px;
            }

            .calendar-day {
                font-size: 0.75rem;
                border-radius: 4px;
            }

            .calendar-day.has-events::after {
                width: 3px;
                height: 3px;
                bottom: 2px;
            }

            .calendar-actions {
                padding: 12px;
                gap: 10px;
            }

            .calendar-action-btn {
                padding: 12px 14px;
                font-size: 0.7rem;
                min-height: 44px;
            }

            /* Loading state mobile */
            .loading {
                padding: 30px 20px;
                border-radius: 12px;
                border-width: 2px;
                box-shadow: 2px 2px 0px var(--border-dark);
            }

            .loading-spinner {
                width: 36px;
                height: 36px;
                border-width: 3px;
                margin-bottom: 12px;
            }

            .loading-text {
                font-size: 0.9rem;
            }

            /* No track placeholder mobile */
            .no-track {
                padding: 20px 16px;
                font-size: 0.75rem;
                margin-bottom: 8px;
            }
        }

        /* Tight mobile layout (<= 480px) */
        @media (max-width: 480px) {
            .filter-bar {
                gap: 6px;
            }

            .filter-bar .filter-pill {
                padding: 10px 14px;
                font-size: 0.75rem;
            }

            .artist-hero {
                aspect-ratio: 2 / 1;
                margin: 8px 0;
                max-height: clamp(140px, 22vh, 200px);
            }

            .songs-area {
                margin-bottom: 4px;
            }

            .progress-container {
                margin-top: 12px;
                margin-bottom: 0;
            }

            .artist-counter-row {
                margin-top: 6px;
                margin-bottom: 10px;
            }

            .controls {
                margin-top: 0;
                margin-bottom: 12px;
            }

            .player-card {
                padding: 12px;
            }
        }

        /* Extra small screens (iPhone SE, etc) */
        @media (max-width: 380px) {
            .container {
                padding: 8px;
            }

            .player-card {
                padding: 16px;
            }

            .artist-name {
                font-size: 1.1rem;
            }

            .filter-bar {
                gap: 8px;
            }

            .filter-bar .filter-pill,
            .filter-bar .filter-btn,
            .filter-bar .date-filter-btn {
                padding: 11px 12px;
                font-size: 0.75rem;
                min-height: 44px;
            }

            .action-buttons {
                gap: 6px;
            }

            .action-primary {
                gap: 6px;
            }

            .ticket-btn,
            .spotify-btn {
                padding: 10px 6px;
                font-size: 0.6rem;
                white-space: nowrap;
                min-height: 42px;
                border-radius: 50px;
            }

            .action-secondary .action-pill {
                flex: 0 0 42px;
                width: 42px;
                min-width: 42px;
                height: 42px;
                min-height: 42px;
                padding: 0;
            }

            .header-action-link {
                min-width: 48px;
                min-height: 48px;
                height: 48px;
                padding: 0 10px;
            }

            .header-action-link svg {
                width: 16px;
                height: 16px;
            }

            .city-picker-nav-btn {
                min-height: 48px;
                height: 48px;
                padding: 0 8px;
                font-size: 0.75rem;
                max-width: 95px;
            }

            .track-artwork {
                width: 36px;
                height: 36px;
            }

            .track-name {
                font-size: 0.75rem;
            }

            .track-album {
                font-size: 0.6rem;
            }

            .controls {
                gap: 12px;
            }

            .control-btn {
                padding: 11px;
                min-width: 46px;
                min-height: 46px;
            }

            .control-btn svg {
                width: 20px;
                height: 20px;
            }

            .control-btn.play-btn {
                padding: 13px;
                min-width: 50px;
                min-height: 50px;
            }

            .control-btn.play-btn svg {
                width: 24px;
                height: 24px;
            }

            .control-btn-artist {
                padding: 7px;
                min-width: 32px;
                min-height: 32px;
            }

            .control-btn-artist svg {
                width: 12px;
                height: 12px;
            }

            .artist-counter-inline {
                font-size: 0.6rem;
                padding: 3px 6px;
            }
        }

        /* Mobile filter-row fit — Venue + Genre + Date on ONE row, no scroll */
        @media (max-width: 430px) {
            .filter-bar {
                overflow: visible !important;
                overflow-x: visible !important;
                justify-content: space-between;
                gap: 6px !important;
                padding-bottom: 0;
            }

            .filter-bar .filter-container {
                flex: 1 1 0 !important;
                min-width: 0 !important;
            }

            .filter-bar > .date-filter-btn {
                flex: 1 1 0 !important;
                min-width: 0 !important;
            }

            .filter-bar .filter-btn,
            .filter-bar .date-filter-btn {
                height: 42px;
                min-height: 42px !important;
                padding: 0 10px !important;
                font-size: 0.7rem !important;
                gap: 4px;
                border-radius: 999px;
                white-space: nowrap;
                overflow: hidden;
            }

            .filter-bar .filter-btn span,
            .filter-bar .date-filter-btn .date-filter-text {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                min-width: 0;
            }

            .filter-bar .filter-btn svg,
            .filter-bar .date-filter-btn svg {
                width: 14px !important;
                height: 14px !important;
                flex-shrink: 0;
            }

            .filter-bar .date-clear-btn {
                flex-shrink: 0;
            }

            .artist-hero {
                max-height: 170px;
            }
        }

        /* Safe area insets for notched devices */
        @supports (padding-bottom: env(safe-area-inset-bottom)) {
            @media (max-width: 540px) {
                .calendar-modal {
                    padding-bottom: env(safe-area-inset-bottom);
                }

                .venue-filter-modal,
                .genre-filter-modal {
                    padding-bottom: env(safe-area-inset-bottom);
                }
            }
        }

        /* Touch-friendly tap targets */
        @media (pointer: coarse) {
            .filter-option {
                padding: 12px 14px;
                min-height: 44px;
            }

            .calendar-day {
                min-height: 36px;
            }
        }

        /* Mobile optimizations for modal buttons */
        @media (max-width: 540px) {
            .calendar-nav-btn {
                width: 44px;
                height: 44px;
            }

            .calendar-nav-btn svg {
                width: 18px;
                height: 18px;
            }

            .calendar-action-btn {
                padding: 14px 18px;
                font-size: 0.8rem;
                min-height: 48px;
            }

            .venue-filter-btn {
                padding: 14px 18px;
                font-size: 0.85rem;
                min-height: 48px;
            }

            .donation-btn {
                padding: 14px 18px;
                font-size: 0.8rem;
                min-height: 48px;
            }
        }

        /* Filter Button & Dropdown */
        .filter-container {
            position: relative;
            flex: 1;
            min-width: 0;
        }

        .filter-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 14px 16px;
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius-pill);
            color: var(--ink);
            font-family: var(--font-sans);
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
            box-shadow: var(--shadow);
        }

        .filter-btn:hover {
            transform: translate(-1px, -1px);
            box-shadow: var(--shadow-hover);
        }

        .filter-btn.active {
            background: var(--accent);
            color: white;
        }

        .filter-btn svg {
            width: 18px;
            height: 18px;
        }

        .filter-count {
            background: var(--accent);
            color: var(--paper);
            font-size: 0.7rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 12px;
            margin-left: 4px;
        }

        .filter-btn.active .filter-count {
            background: rgba(255,255,255,0.25);
        }

        .filter-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius);
            box-shadow: 4px 4px 0 var(--ink);
            z-index: 100;
            max-height: 400px;
            overflow: hidden;
            flex-direction: column;
            display: none;
        }

        .filter-dropdown.open {
            display: flex;
            animation: dropdownSlide 0.2s ease;
        }

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

        .filter-dropdown-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 2px solid var(--border-light);
            flex-shrink: 0;
        }

        .filter-dropdown-header input {
            width: 100%;
            padding: 10px 14px;
            background: white;
            border: var(--border) solid var(--ink);
            border-radius: 8px;
            font-family: var(--font-sans);
            font-size: 0.85rem;
            color: var(--ink);
            outline: none;
            transition: all 0.15s ease;
        }

        .filter-dropdown-header input:focus {
            border-color: var(--teal);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .filter-dropdown-header input::placeholder {
            color: var(--text-muted);
        }

        .filter-dropdown-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--text-muted);
        }

        .filter-select-all {
            font-size: 0.75rem;
            color: var(--teal);
            cursor: pointer;
            font-weight: 700;
            transition: color 0.1s;
        }

        .filter-select-all:hover {
            color: var(--teal-dark);
            text-decoration: underline;
        }

        .filter-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.1s;
            border-bottom: 1px solid var(--bg-warm);
        }

        .filter-option:last-child {
            border-bottom: none;
        }

        .filter-option:hover {
            background: var(--bg-warm);
        }

        .filter-checkbox {
            width: 22px;
            height: 22px;
            border: 2px solid var(--border-dark);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.1s;
            background: var(--bg-warm);
        }

        .filter-option.selected .filter-checkbox {
            background: var(--teal);
            border-color: var(--teal-dark);
        }

        .filter-checkbox svg {
            width: 14px;
            height: 14px;
            color: var(--bg-cream);
            opacity: 0;
        }

        .filter-option.selected .filter-checkbox svg {
            opacity: 1;
        }

        .filter-venue-name {
            flex: 1;
            font-size: 0.9rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .filter-venue-count {
            font-size: 0.75rem;
            color: var(--text-muted);
            background: var(--bg-warm);
            padding: 3px 10px;
            border-radius: 10px;
            font-weight: 600;
        }

        /* Overlay for closing dropdown */
        .filter-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 99;
            display: none;
        }

        .filter-overlay.open {
            display: block;
        }

        /* Venue Filter Modal (Mobile Popup) */
        .venue-filter-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }

        .venue-filter-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .venue-filter-modal {
            background: var(--bg-cream);
            border: 2px solid var(--border-dark);
            border-radius: 16px;
            box-shadow: 4px 4px 0 var(--border-dark);
            max-width: 360px;
            width: 100%;
            max-height: 80vh;
            transform: translateY(20px) scale(0.95);
            transition: all 0.2s ease;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .venue-filter-overlay.open .venue-filter-modal {
            transform: translateY(0) scale(1);
        }

        .venue-filter-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: var(--teal);
            color: var(--bg-cream);
            border-bottom: 2px solid var(--border-dark);
            flex-shrink: 0;
        }

        .venue-filter-title {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
        }

        .venue-filter-close {
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            color: var(--bg-cream);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }

        .venue-filter-close:hover {
            background: rgba(255,255,255,0.3);
        }

        .venue-filter-close:active {
            transform: scale(0.95);
        }

        .venue-filter-close svg {
            width: 16px;
            height: 16px;
        }

        .venue-filter-actions-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px;
            background: var(--bg-cream);
            border-bottom: 2px solid var(--border-light);
            flex-shrink: 0;
        }

        .venue-filter-action-link {
            font-size: 0.85rem;
            color: var(--teal);
            cursor: pointer;
            font-weight: 700;
            transition: all 0.15s ease;
        }

        .venue-filter-action-link:hover {
            color: var(--coral);
            text-decoration: underline;
        }

        .venue-filter-list {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 8px;
        }

        .venue-filter-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            min-height: 200px;
        }

        .venue-filter-loading .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--bg-warm);
            border-top-color: var(--teal);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 16px;
        }

        .venue-filter-loading .loading-text {
            font-family: var(--font-sans);
            color: var(--teal-dark);
            font-size: 0.95rem;
            font-weight: 600;
        }

        .venue-filter-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            cursor: pointer;
            transition: all 0.15s ease;
            background: white;
            border: 2px solid var(--border-light);
            border-radius: 12px;
            min-height: 52px;
            margin-bottom: 8px;
        }

        .venue-filter-option:hover {
            border-color: var(--teal);
            background: rgba(52, 152, 219, 0.05);
        }

        .venue-filter-option:active {
            transform: scale(0.98);
        }

        .venue-filter-option.selected {
            border-color: var(--teal);
            background: rgba(61, 107, 125, 0.1);
        }

        .venue-filter-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid var(--border-dark);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.15s ease;
            background: white;
        }

        .venue-filter-option.selected .venue-filter-checkbox {
            background: var(--teal);
            border-color: var(--teal);
        }

        .venue-filter-checkbox svg {
            width: 14px;
            height: 14px;
            color: white;
            opacity: 0;
        }

        .venue-filter-option.selected .venue-filter-checkbox svg {
            opacity: 1;
        }

        .venue-filter-name {
            flex: 1;
            font-size: 0.95rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .venue-filter-count {
            font-size: 0.8rem;
            color: var(--text-muted);
            background: var(--bg-warm);
            padding: 4px 12px;
            border-radius: 12px;
            font-weight: 600;
        }

        .venue-filter-actions-bottom {
            display: flex;
            gap: 12px;
            padding: 16px 20px;
            border-top: 3px solid var(--border-dark);
            background: var(--bg-cream);
            flex-shrink: 0;
        }

        .venue-filter-btn {
            flex: 1;
            padding: 14px 16px;
            font-family: var(--font-sans);
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.15s;
        }

        .venue-filter-btn.secondary {
            background: var(--paper);
            color: var(--ink);
            border: var(--border) solid var(--ink);
            box-shadow: var(--shadow);
        }

        .venue-filter-btn.secondary:hover,
        .venue-filter-btn.primary:hover {
            transform: none;
        }

        .venue-filter-btn.secondary:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .venue-filter-btn.primary {
            background: var(--accent);
            color: white;
            border: var(--border) solid var(--ink);
            box-shadow: var(--shadow);
        }

        .venue-filter-btn.primary:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        /* Hide venue modal on desktop - use dropdown instead */
        @media (min-width: 541px) {
            .venue-filter-overlay {
                display: none !important;
            }
        }

        /* Genre Filter Modal (Mobile Popup) */
        .genre-filter-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }

        .genre-filter-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .genre-filter-modal {
            background: var(--bg-cream);
            border: 2px solid var(--border-dark);
            border-radius: 16px;
            box-shadow: 4px 4px 0 var(--border-dark);
            max-width: 360px;
            width: 100%;
            max-height: 80vh;
            transform: translateY(20px) scale(0.95);
            transition: all 0.2s ease;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .genre-filter-overlay.open .genre-filter-modal {
            transform: translateY(0) scale(1);
        }

        /* Hide genre modal on desktop - use dropdown instead */
        @media (min-width: 541px) {
            .genre-filter-overlay {
                display: none !important;
            }
        }

        /* City Filter Modal (Mobile Popup) */
        .city-filter-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(44, 62, 80, 0.5);
            backdrop-filter: blur(4px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }

        .city-filter-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .city-filter-modal {
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius);
            box-shadow: 4px 4px 0 var(--ink);
            max-width: 360px;
            width: 100%;
            max-height: 80vh;
            transform: translateY(20px) scale(0.95);
            transition: all 0.2s ease;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .city-filter-overlay.open .city-filter-modal {
            transform: translateY(0) scale(1);
        }

        .city-filter-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: var(--teal);
            color: var(--paper);
            border-bottom: var(--border) solid var(--ink);
            flex-shrink: 0;
        }

        .city-filter-title {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
        }

        .city-filter-close {
            background: rgba(255,255,255,0.2);
            border: var(--border) solid rgba(255,255,255,0.3);
            border-radius: 8px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            padding: 0;
            color: var(--paper);
        }

        .city-filter-close:hover {
            background: rgba(255,255,255,0.3);
            transform: scale(1.05);
        }

        .city-filter-close:active {
            transform: scale(0.95);
        }

        .city-filter-close svg {
            width: 20px;
            height: 20px;
        }

        .city-filter-search,
        .venue-filter-search {
            padding: 12px 20px;
            background: var(--bg-cream);
            border-bottom: 2px solid var(--border-light);
            flex-shrink: 0;
        }

        .city-search-input,
        .venue-search-input,
        .genre-search-input {
            width: 100%;
            padding: 12px 16px;
            background: white;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            font-family: var(--font-sans);
            font-size: 0.9rem;
            color: var(--text-dark);
            outline: none;
            transition: all 0.15s ease;
        }

        .city-search-input:focus,
        .venue-search-input:focus,
        .genre-search-input:focus {
            border-color: var(--teal);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .city-search-input::placeholder,
        .venue-search-input::placeholder,
        .genre-search-input::placeholder {
            color: var(--text-muted);
        }

        .city-filter-actions-top {
            display: flex;
            justify-content: space-between;
            padding: 12px 20px;
            background: var(--bg-cream);
            border-bottom: 2px solid var(--border-light);
            flex-shrink: 0;
        }

        .city-filter-action-link {
            color: var(--teal);
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .city-filter-action-link:hover {
            color: var(--coral);
            text-decoration: underline;
        }

        .city-filter-list {
            flex: 1;
            overflow-y: auto;
            padding: 8px;
        }

        .city-filter-loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            min-height: 200px;
        }

        .city-filter-loading .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid var(--bg-warm);
            border-top-color: var(--teal);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin-bottom: 16px;
        }

        .city-filter-loading .loading-text {
            font-family: var(--font-sans);
            color: var(--teal-dark);
            font-size: 0.95rem;
            font-weight: 600;
        }

        .city-filter-option {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: white;
            border: 2px solid var(--border-light);
            border-radius: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .city-filter-option:last-child {
            margin-bottom: 0;
        }

        .city-filter-option:hover {
            border-color: var(--teal);
            background: rgba(52, 152, 219, 0.05);
        }

        .city-filter-option:active {
            transform: scale(0.98);
        }

        .city-filter-checkbox {
            width: 24px;
            height: 24px;
            border: 2px solid var(--border-dark);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            flex-shrink: 0;
            transition: all 0.15s ease;
        }

        .city-filter-option.selected .city-filter-checkbox {
            background: var(--teal);
            border-color: var(--teal);
        }

        .city-filter-checkbox svg {
            width: 16px;
            height: 16px;
            color: white;
            opacity: 0;
        }

        .city-filter-option.selected .city-filter-checkbox svg {
            opacity: 1;
        }

        /* Metro area header in modal */
        /* Metro area header in modal (clickable to expand/collapse) */
        .city-filter-metro-header {
            padding: 12px 16px;
            background: var(--bg-warm);
            border-bottom: 2px solid var(--border-light);
            margin: 0 -8px 8px -8px;
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--teal-dark);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .city-filter-metro-header:hover {
            background: rgba(61, 107, 125, 0.1);
        }

        .city-filter-metro-left {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }

        .city-filter-metro-expand-icon {
            width: 16px;
            height: 16px;
            transition: transform 0.2s ease;
        }

        .city-filter-metro-header.expanded .city-filter-metro-expand-icon {
            transform: rotate(90deg);
        }

        .city-filter-metro-select {
            font-size: 0.7rem;
            color: var(--teal);
            text-transform: none;
            font-weight: 600;
            cursor: pointer;
            letter-spacing: normal;
            transition: color 0.15s ease;
        }

        .city-filter-metro-select:hover {
            color: var(--coral);
            text-decoration: underline;
        }

        .city-filter-metro-count {
            font-size: 0.75rem;
            color: var(--text-muted);
            background: white;
            padding: 4px 10px;
            border-radius: 10px;
            font-weight: 600;
        }

        .city-filter-metro-indicator {
            width: 8px;
            height: 8px;
            background: var(--teal);
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* City options container (collapsible) */
        .city-filter-metro-cities {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .city-filter-metro-cities.expanded {
            max-height: 2000px;
        }

        /* City option indented under metro area */
        .city-filter-option-indented {
            margin-left: 16px;
            margin-right: 0;
        }

        .city-filter-name {
            flex: 1;
            font-size: 0.95rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .city-filter-count {
            font-size: 0.75rem;
            color: var(--text-muted);
            background: var(--bg-warm);
            padding: 4px 10px;
            border-radius: 10px;
            font-weight: 600;
        }

        .city-filter-actions-bottom {
            display: flex;
            gap: 12px;
            padding: 16px 20px;
            background: var(--bg-cream);
            border-top: 3px solid var(--border-dark);
            flex-shrink: 0;
        }

        .city-filter-btn {
            flex: 1;
            padding: 14px 20px;
            border-radius: var(--radius-pill);
            font-family: var(--font-sans);
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .city-filter-btn.secondary {
            background: var(--paper);
            color: var(--ink);
            border: var(--border) solid var(--ink);
            box-shadow: var(--shadow);
        }

        .city-filter-btn.secondary:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .city-filter-btn.primary {
            background: var(--teal);
            color: var(--paper);
            border: var(--border) solid var(--ink);
            box-shadow: var(--shadow);
        }

        .city-filter-btn.primary:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .no-cities,
        .no-venues {
            text-align: center;
            padding: 20px;
            color: var(--text-muted);
            font-size: 0.9rem;
            background: white;
            border: 2px solid var(--border-light);
            border-radius: 12px;
        }

        /* Hide city modal on desktop - use dropdown instead */
        @media (min-width: 541px) {
            .city-filter-overlay {
                display: none !important;
            }
        }

        /* Desktop dropdown styles */
        /* Metro area header (non-clickable) */
        /* Metro area header (clickable to expand/collapse) */
        .filter-metro-header {
            padding: 10px 16px;
            background: var(--bg-warm);
            border-bottom: 2px solid var(--border-light);
            font-weight: 700;
            font-size: 0.85rem;
            color: var(--teal-dark);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .filter-metro-header:hover {
            background: rgba(61, 107, 125, 0.1);
        }

        .filter-metro-left {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }

        .filter-metro-expand-icon {
            width: 16px;
            height: 16px;
            transition: transform 0.2s ease;
        }

        .filter-metro-header.expanded .filter-metro-expand-icon {
            transform: rotate(90deg);
        }

        .filter-metro-select {
            font-size: 0.7rem;
            color: var(--teal);
            text-transform: none;
            font-weight: 600;
            cursor: pointer;
            letter-spacing: normal;
            transition: color 0.15s ease;
        }

        .filter-metro-select:hover {
            color: var(--coral);
            text-decoration: underline;
        }

        .filter-metro-count {
            font-size: 0.75rem;
            color: var(--text-muted);
            background: white;
            padding: 3px 8px;
            border-radius: 8px;
            font-weight: 600;
        }

        .filter-metro-indicator {
            width: 8px;
            height: 8px;
            background: var(--teal);
            border-radius: 50%;
            flex-shrink: 0;
        }

        /* City options container (collapsible) */
        .filter-metro-cities {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .filter-metro-cities.expanded {
            max-height: 2000px;
        }

        /* City option (indented under metro area) */
        .filter-city-indented {
            padding-left: 32px !important;
        }

        .filter-city-name {
            flex: 1;
            font-size: 0.9rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .filter-city-count {
            font-size: 0.75rem;
            color: var(--text-muted);
            background: var(--bg-warm);
            padding: 3px 10px;
            border-radius: 10px;
            font-weight: 600;
        }

        .filter-dropdown-actions {
            display: flex;
            justify-content: space-between;
            padding: 8px 16px;
            border-bottom: 2px solid var(--border-light);
            flex-shrink: 0;
        }

        .filter-dropdown-list {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }
        
        .filter-dropdown-footer {
            padding: 12px 16px;
            border-top: 2px solid var(--border-light);
            flex-shrink: 0;
            background: var(--bg-dark);
        }
        
        .filter-apply-btn {
            width: 100%;
            padding: 10px 16px;
            background: var(--teal);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s;
        }
        
        .filter-apply-btn:hover {
            background: var(--teal-dark);
        }
        
        .filter-apply-btn:active {
            transform: scale(0.98);
        }

        /* Shared artist banner */
        .shared-artist-banner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 14px;
            margin-bottom: 12px;
            background: var(--teal);
            color: #fff;
            border-radius: 10px;
            border: 2px solid var(--border-dark);
            box-shadow: 3px 3px 0px var(--border-dark);
            font-size: 0.82rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        .shared-artist-banner-text {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .shared-artist-banner-btn {
            background: rgba(255,255,255,0.2);
            border: 1.5px solid rgba(255,255,255,0.4);
            color: #fff;
            padding: 5px 12px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s;
        }

        .shared-artist-banner-btn:hover {
            background: rgba(255,255,255,0.35);
        }

        /* Artist Search Bar (shown when an artist is selected) */
        .artist-search-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            padding: 8px 10px;
            background: var(--bg-cream);
            border: 2px solid var(--border-dark);
            border-radius: 12px;
            box-shadow: 2px 2px 0px var(--border-dark);
        }

        .artist-search-input-wrap {
            flex: 1;
            position: relative;
            display: flex;
            align-items: center;
        }

        .artist-search-input-wrap svg {
            position: absolute;
            left: 10px;
            width: 15px;
            height: 15px;
            color: var(--text-muted);
            pointer-events: none;
            flex-shrink: 0;
        }

        .artist-search-input {
            width: 100%;
            padding: 7px 10px 7px 32px;
            background: var(--bg-warm);
            border: 2px solid var(--border-dark);
            border-radius: 8px;
            font-family: var(--font-sans);
            font-size: 0.88rem;
            color: var(--text-dark);
            outline: none;
            transition: border-color 0.15s;
        }

        .artist-search-input:focus {
            border-color: var(--teal);
        }

        .artist-search-input::placeholder {
            color: var(--text-muted);
        }

        .artist-search-submit-btn {
            padding: 7px 14px;
            background: var(--teal);
            color: #fff;
            border: 2px solid var(--border-dark);
            border-radius: 8px;
            font-family: var(--font-sans);
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 2px 2px 0px var(--border-dark);
            transition: all 0.12s;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .artist-search-submit-btn:hover {
            background: var(--teal-dark);
        }

        .artist-search-submit-btn:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .artist-search-browse-btn {
            padding: 7px 12px;
            background: transparent;
            color: var(--text-muted);
            border: 2px solid var(--border-dark);
            border-radius: 8px;
            font-family: var(--font-sans);
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.12s;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .artist-search-browse-btn:hover {
            background: var(--bg-warm);
            color: var(--text-dark);
        }

        .artist-search-browse-btn:active {
            transform: translate(1px, 1px);
        }

        /* FilterBar - always-visible Venue / Genre / Date pills */
        .filter-bar,
        .filter-row {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
            margin-bottom: 16px;
            min-height: 60px;
            flex-shrink: 0;
        }

        .filter-bar .filter-container,
        .filter-row .filter-container {
            flex: 1;
            min-width: 140px;
        }

        .filter-bar .date-filter-btn,
        .filter-row .date-filter-btn {
            flex: 1;
            min-width: 200px;
        }

        .filter-row-location-segment {
            display: flex;
            align-items: center;
            flex-shrink: 0;
            margin-right: 12px;
            padding-right: 12px;
            border-right: 1px solid var(--border-dark);
        }

        /* Location button - left-aligned icon + single-line text (ellipsis if long) */
        .city-picker-nav-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 48px;
            height: 48px;
            padding: 0 10px;
            background: var(--paper);
            font-family: var(--font-sans);
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--ink);
            cursor: pointer;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
            border: var(--border) solid var(--ink);
            border-radius: var(--radius-pill);
            box-shadow: var(--shadow);
            flex: 0 1 auto;
            min-width: 0;
            max-width: 130px;
        }

        .city-picker-nav-btn span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: left;
            min-width: 0;
        }

        .city-picker-nav-btn:hover {
            background: var(--bg-warm);
            border-color: var(--teal);
            color: var(--teal);
        }

        .city-picker-nav-btn:active {
            background: var(--bg-warm);
            box-shadow: 1px 1px 0 var(--border-dark);
            transform: translate(1px, 1px);
        }

        .city-picker-nav-btn svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .city-picker-nav-btn--selected {
            background: var(--teal);
            color: var(--bg-cream);
            border-color: var(--teal-dark);
        }

        .city-picker-nav-btn--selected:hover {
            background: var(--teal-dark);
            border-color: var(--border-dark);
            color: var(--bg-cream);
        }

        .city-picker-nav-btn--selected:active {
            background: var(--teal-dark);
            box-shadow: 1px 1px 0 var(--border-dark);
            transform: translate(1px, 1px);
            color: var(--bg-cream);
        }

        /* Filter pills - match SAVE/SHARE style (cream, thick border, orange when active) */
        .filter-bar .filter-btn,
        .filter-bar .date-filter-btn,
        .filter-bar .filter-pill {
            min-height: 44px;
            padding: 10px 18px;
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius-pill);
            font-family: var(--font-sans);
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            box-shadow: var(--shadow);
            transition: transform 0.12s, box-shadow 0.12s;
        }

        .filter-bar .filter-btn:hover,
        .filter-bar .date-filter-btn:hover,
        .filter-bar .filter-pill:hover {
            background: var(--bg);
        }

        .filter-bar .filter-btn:active,
        .filter-bar .date-filter-btn:active,
        .filter-bar .filter-pill:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .filter-bar .filter-btn.active,
        .filter-bar .date-filter-btn.active,
        .filter-bar .filter-pill.active {
            background: var(--accent);
            color: white;
            border-color: var(--ink);
        }

        .filter-bar .filter-btn:focus-visible,
        .filter-bar .date-filter-btn:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        /* Search/Save segmented control - same height, single outer shadow, no per-half shadow */
        .header-actions {
            display: flex;
            align-items: stretch;
            flex-shrink: 0;
            min-height: 48px;
            height: 48px;
            background: var(--accent);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius-pill);
            box-shadow: var(--shadow);
            overflow: visible;
        }

        .header-action-link {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-width: 48px;
            min-height: 48px;
            height: 48px;
            padding: 0 16px;
            color: var(--paper);
            text-decoration: none;
            transition: background 0.15s;
            position: relative;
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .header-action-link:hover {
            background: rgba(0, 0, 0, 0.12);
        }

        .header-action-link:active {
            background: rgba(0, 0, 0, 0.2);
        }

        .header-action-link svg {
            width: 20px;
            height: 20px;
        }

        .header-action-divider {
            width: 2px;
            background: var(--ink);
            flex-shrink: 0;
            align-self: stretch;
        }

        .header-action-link.scanner-link {
            display: flex;
        }

        /* Main page artist search overlay */
        .main-search-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.45);
            z-index: 2000;
            align-items: flex-start;
            justify-content: center;
            padding-top: 80px;
        }
        .main-search-overlay.open {
            display: flex;
        }
        .main-search-box {
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius);
            box-shadow: 4px 4px 0 var(--ink);
            padding: 20px;
            width: 90%;
            max-width: 480px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .main-search-box-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 700;
            font-size: 0.95rem;
            color: var(--text-dark);
        }
        .main-search-box-close {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-muted);
            font-size: 1.1rem;
            padding: 2px 6px;
            border-radius: 4px;
            line-height: 1;
        }
        .main-search-box-close:hover {
            background: var(--bg-warm);
            color: var(--text-dark);
        }
        .main-search-input-row {
            width: 100%;
            position: relative;
        }
        .main-search-bar-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            color: var(--teal-dark);
            opacity: 0.7;
            pointer-events: none;
        }
        .main-search-bar-icon svg {
            width: 100%;
            height: 100%;
        }
        .main-search-input {
            width: 100%;
            padding: 16px 48px 16px 50px;
            background: white;
            border: 2px solid var(--teal-dark);
            border-radius: 16px;
            font-family: var(--font-sans);
            font-size: 1rem;
            color: var(--text-dark);
            outline: none;
            box-shadow: 3px 3px 0 var(--teal-dark);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .main-search-input:focus {
            border-color: var(--teal-dark);
            box-shadow: 3px 3px 0 var(--teal-dark);
        }
        .main-search-input-row:focus-within .main-search-bar-icon {
            color: var(--teal-dark);
            opacity: 1;
        }
        .main-search-input::placeholder {
            color: var(--text-muted);
        }
        .main-search-clear-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            border: none;
            background: var(--bg-warm);
            color: var(--teal-dark);
            font-size: 1.2rem;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
        }
        .main-search-clear-btn.visible {
            display: flex;
        }
        /* Inline artist search bar — scanner style */
        .inline-artist-search-row {
            display: flex;
            flex-direction: row;
            align-items: center;
            max-width: 560px;
            margin: 12px auto 12px;
            gap: 12px;
        }
        .inline-artist-search-bar {
            flex: 1;
            min-width: 0;
            position: relative;
        }
        .inline-artist-search-bar .inline-artist-search-icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            width: 22px;
            height: 22px;
            color: var(--teal-dark);
            opacity: 0.7;
            pointer-events: none;
        }
        .inline-artist-search-bar .inline-artist-search-icon svg {
            width: 100%;
            height: 100%;
        }
        .inline-artist-search-bar .inline-artist-search-input {
            width: 100%;
            padding: 16px 48px 16px 50px;
            background: white;
            border: 2px solid var(--teal-dark);
            border-radius: 16px;
            font-family: var(--font-sans);
            font-size: 1rem;
            color: var(--text-dark);
            outline: none;
            box-shadow: 3px 3px 0 var(--teal-dark);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .inline-artist-search-bar .inline-artist-search-input:focus {
            border-color: var(--teal-dark);
            box-shadow: 3px 3px 0 var(--teal-dark);
        }
        .inline-artist-search-bar:focus-within .inline-artist-search-icon {
            color: var(--teal-dark);
            opacity: 1;
        }
        .inline-artist-search-bar .inline-artist-search-input::placeholder {
            color: var(--text-muted);
        }
        .inline-artist-search-bar .inline-artist-search-clear {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 32px;
            height: 32px;
            border: none;
            background: var(--bg-warm);
            color: var(--teal-dark);
            font-size: 1.2rem;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
        }
        .inline-artist-search-bar .inline-artist-search-clear.visible {
            display: flex;
        }
        .inline-artist-search-row .inline-artist-search-go {
            flex-shrink: 0;
            white-space: nowrap;
            font-family: var(--font-sans);
            font-size: 1rem;
            font-weight: 600;
            padding: 12px 24px;
            border-radius: 12px;
            border: 2px solid var(--teal-dark);
            cursor: pointer;
            background: var(--teal-dark);
            color: white;
            box-shadow: 3px 3px 0 var(--teal-darker, #0d3d45);
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .inline-artist-search-row .inline-artist-search-go:hover {
            transform: translate(-1px, -1px);
            box-shadow: 4px 4px 0 var(--teal-darker, #0d3d45);
        }
        .inline-artist-search-row .inline-artist-search-go:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }
        .artist-name-link {
            cursor: pointer;
        }
        .artist-name-link:hover {
            text-decoration: underline;
            text-decoration-color: var(--teal);
        }
        .artist-hero-clickable {
            cursor: pointer;
        }

        .header-action-badge {
            position: absolute;
            top: 6px;
            right: 6px;
            background: #E53935;
            color: white;
            font-size: 0.65rem;
            font-weight: 700;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: var(--border) solid var(--ink);
            box-sizing: border-box;
        }

        .header-action-badge:empty {
            display: none;
        }

        /* Setlist Modal - full track list (no nested scroll, uses normal page scroll) */
        .setlist-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.45);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }

        .setlist-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .setlist-modal {
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius) var(--radius) 0 0;
            box-shadow: 0 -4px 0 var(--ink);
            width: 100%;
            max-width: 100%;
            max-height: 85vh;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform 0.2s ease;
            padding-bottom: env(safe-area-inset-bottom);
        }

        .setlist-overlay.open .setlist-modal {
            transform: translateY(0);
        }

        .setlist-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: var(--teal);
            color: var(--paper);
            border-bottom: var(--border) solid var(--ink);
            flex-shrink: 0;
        }

        .setlist-title {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
        }

        .setlist-close {
            background: rgba(255,255,255,0.2);
            border: var(--border) solid rgba(255,255,255,0.3);
            border-radius: 8px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            color: var(--paper);
        }

        .setlist-close:hover {
            background: rgba(255,255,255,0.3);
        }

        .setlist-close svg {
            width: 20px;
            height: 20px;
        }

        .setlist-body {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 16px 20px 24px;
            -webkit-overflow-scrolling: touch;
        }

        @media (min-width: 768px) {
            .setlist-overlay {
                align-items: center;
            }
            .setlist-modal {
                max-width: 420px;
                max-height: 75vh;
                border-radius: var(--radius);
                box-shadow: 4px 4px 0 var(--ink);
                transform: translateY(20px) scale(0.96);
            }
            .setlist-overlay.open .setlist-modal {
                transform: translateY(0) scale(1);
            }
        }

        .setlist-body .track-item {
            margin-bottom: 8px;
        }

        .setlist-body .track-item:last-child {
            margin-bottom: 0;
        }

        /* Global City Picker */
        .city-picker-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            z-index: 2100;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }
        .city-picker-overlay.open {
            opacity: 1;
            visibility: visible;
        }
        .city-picker-modal {
            background: var(--bg-cream);
            border: 2px solid var(--border-dark);
            border-radius: 16px 16px 0 0;
            box-shadow: 0 -4px 0px var(--border-dark);
            width: 100%;
            max-width: 100%;
            max-height: 85vh;
            transform: translateY(100%);
            transition: transform 0.2s ease;
            padding-bottom: env(safe-area-inset-bottom);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .city-picker-overlay.open .city-picker-modal {
            transform: translateY(0);
        }
        .city-picker-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: var(--teal);
            color: var(--bg-cream);
            border-bottom: 2px solid var(--border-dark);
            flex-shrink: 0;
        }
        .city-picker-title {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
        }
        .city-picker-close {
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 8px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            color: var(--bg-cream);
        }
        .city-picker-close:hover { background: rgba(255,255,255,0.3); }
        .city-picker-close svg { width: 20px; height: 20px; }
        .city-picker-search-wrap {
            padding: 12px 20px;
            border-bottom: 2px solid var(--border-light);
            flex-shrink: 0;
        }
        .city-picker-search-wrap input {
            width: 100%;
            padding: 12px 16px;
            background: white;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            font-family: var(--font-sans);
            font-size: 0.9rem;
            color: var(--text-dark);
            outline: none;
        }
        .city-picker-search-wrap input:focus { border-color: var(--teal); }
        .city-picker-body {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 12px 20px 20px;
        }
        .city-picker-footer {
            flex-shrink: 0;
            padding: 16px 20px;
            border-top: 2px solid var(--border-dark);
            background: var(--bg-cream);
        }
        .city-picker-choose-btn {
            width: 100%;
            padding: 12px 20px;
            font-size: 1rem;
        }
        .city-picker-choose-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        .city-picker-section-title {
            font-family: var(--font-sans);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            margin-bottom: 8px;
        }
        .city-picker-option {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: white;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .city-picker-option:hover, .city-picker-option:active {
            border-color: var(--teal);
            background: var(--bg-warm);
        }
        .city-picker-option.active {
            border-color: var(--teal);
            background: rgba(61, 107, 125, 0.1);
        }
        .city-picker-option .city-name { font-weight: 500; color: var(--text-dark); }
        .city-picker-option .city-state { font-size: 0.85rem; color: var(--text-muted); margin-left: 4px; }
        .city-picker-option .city-remove {
            padding: 4px 8px;
            font-size: 0.75rem;
            color: var(--text-muted);
            background: none;
            border: none;
            cursor: pointer;
            border-radius: 4px;
        }
        .city-picker-option .city-remove:hover { color: var(--orange); background: rgba(232, 103, 60, 0.1); }
        .city-picker-use-location {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px 16px;
            background: white;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            margin-bottom: 16px;
            cursor: pointer;
            transition: all 0.15s ease;
        }
        .city-picker-use-location:hover { border-color: var(--teal); background: var(--bg-warm); }
        .city-picker-use-location svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); }
        .city-picker-btn-row {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }
        .city-picker-btn-row button {
            padding: 8px 12px;
            font-size: 0.8rem;
            font-family: var(--font-sans);
            font-weight: 500;
            border-radius: 8px;
            border: 2px solid var(--border-dark);
            background: var(--bg-cream);
            color: var(--text-dark);
            cursor: pointer;
        }
        .city-picker-btn-row button.primary { background: var(--teal); color: var(--bg-cream); border-color: var(--teal); }
        .city-picker-btn-row button.primary:hover { background: var(--teal-dark); }
        .city-picker-no-results { padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
        .city-picker-metro-block { margin-bottom: 12px; }
        .city-picker-metro-row { display: flex; align-items: center; justify-content: space-between; }
        .city-picker-metro-label { cursor: default; padding: 10px 0 4px 0; font-weight: 700; font-size: 0.85rem; color: var(--teal-dark); }
        .city-picker-cities-inner { padding: 8px 0 12px 12px; border-left: 2px solid var(--teal); margin-left: 8px; margin-top: 4px; }
        .city-picker-actions-row { margin-bottom: 8px; font-size: 0.8rem; }
        .city-picker-action-link { color: var(--teal); cursor: pointer; margin-right: 12px; }
        .city-picker-action-link:hover { text-decoration: underline; }
        .city-picker-city-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
        .city-picker-city-row .filter-checkbox { width: 18px; height: 18px; border: 2px solid var(--border-dark); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
        .city-picker-city-row.selected .filter-checkbox { background: var(--teal); color: var(--bg-cream); border-color: var(--teal); }
        .city-picker-city-row .filter-city-count { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }
        .city-picker-apply-row { display: flex; gap: 8px; margin-top: 12px; }
        .city-picker-btn { padding: 10px 16px; font-size: 0.9rem; font-family: var(--font-sans); font-weight: 500; border-radius: 8px; border: 2px solid var(--border-dark); background: var(--bg-cream); color: var(--text-dark); cursor: pointer; }
        .city-picker-btn.primary { background: var(--teal); color: var(--bg-cream); border-color: var(--teal); }
        .filter-metro-expand-icon { font-size: 0.75rem; color: var(--text-muted); }

        /* Global City Picker - desktop: centered popup */
        @media (min-width: 541px) {
            .city-picker-overlay {
                align-items: center;
                justify-content: center;
            }
            .city-picker-modal {
                border-radius: 16px;
                width: auto;
                max-width: 420px;
                max-height: 80vh;
                transform: scale(0.95);
                opacity: 0;
                transition: transform 0.2s ease, opacity 0.2s ease;
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
                padding-bottom: 0;
            }
            .city-picker-overlay.open .city-picker-modal {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Calendar Date Picker */
        .date-filter-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 1;
            padding: 14px 16px;
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius-pill);
            color: var(--ink);
            font-family: var(--font-sans);
            font-size: 0.9rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s ease;
            box-shadow: var(--shadow);
        }

        .date-filter-btn:hover {
            transform: translate(-1px, -1px);
            box-shadow: var(--shadow-hover);
        }

        .date-filter-btn.active {
            background: var(--accent);
            color: white;
            border-color: var(--ink);
        }

        .date-filter-btn svg {
            width: 18px;
            height: 18px;
        }

        .date-filter-text {
            max-width: 120px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .date-clear-btn {
            background: transparent;
            border: none;
            color: inherit;
            cursor: pointer;
            padding: 2px;
            margin-left: 4px;
            opacity: 0.7;
            transition: opacity 0.15s;
        }

        .date-clear-btn:hover {
            opacity: 1;
        }

        .date-clear-btn svg {
            width: 14px;
            height: 14px;
        }

        /* Calendar Modal Overlay */
        .calendar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }

        .calendar-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .calendar-modal {
            background: var(--bg-cream);
            border: 2px solid var(--border-dark);
            border-radius: 16px;
            box-shadow: 4px 4px 0 var(--border-dark);
            max-width: 360px;
            width: 100%;
            max-height: 80vh;
            transform: translateY(20px) scale(0.95);
            transition: all 0.2s ease;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .calendar-overlay.open .calendar-modal {
            transform: translateY(0) scale(1);
        }

        .calendar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: var(--teal);
            color: var(--bg-cream);
            border-bottom: 2px solid var(--border-dark);
        }

        .calendar-title {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
        }

        .calendar-close {
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            color: var(--bg-cream);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
        }

        .calendar-close:hover {
            background: rgba(255,255,255,0.3);
        }

        .calendar-close:active {
            transform: scale(0.95);
        }

        .calendar-close svg {
            width: 16px;
            height: 16px;
        }

        .calendar-hint {
            text-align: center;
            padding: 12px 16px;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--text-muted);
            background: var(--bg-warm);
            border-bottom: 2px dashed var(--teal-light);
        }

        .calendar-nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
        }

        .calendar-nav-btn {
            background: var(--bg);
            border: var(--border) solid var(--ink);
            color: var(--ink);
            width: 36px;
            height: 36px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
            box-shadow: var(--shadow);
        }

        .calendar-nav-btn:hover {
            background: var(--teal);
            color: var(--paper);
            transform: translate(-1px, -1px);
            box-shadow: var(--shadow-hover);
        }

        .calendar-nav-btn:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .calendar-nav-btn svg {
            width: 16px;
            height: 16px;
        }

        .calendar-month-year {
            font-family: var(--font-serif);
            font-size: 1rem;
            font-weight: 700;
            color: var(--ink);
        }

        .calendar-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            padding: 8px 16px;
            gap: 4px;
            background: var(--bg-warm);
            border-top: 2px dashed var(--teal-light);
            border-bottom: 2px dashed var(--teal-light);
        }

        .calendar-weekday {
            text-align: center;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--text-muted);
            padding: 4px;
        }

        .calendar-days {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            padding: 12px 16px 16px;
            gap: 4px;
        }

        .calendar-day {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.1s;
            border: 2px solid transparent;
            position: relative;
        }

        .calendar-day:hover:not(.disabled):not(.selected):not(.in-range) {
            background: var(--bg-warm);
            border-color: var(--teal-light);
        }

        .calendar-day.other-month {
            color: var(--text-muted);
            opacity: 0.4;
        }

        .calendar-day.today {
            border-color: var(--teal);
            background: rgba(61, 107, 125, 0.1);
        }

        .calendar-day.selected {
            background: var(--accent);
            color: var(--paper);
            font-weight: 700;
            border-color: var(--ink);
            box-shadow: var(--shadow);
        }

        .calendar-day.in-range {
            background: rgba(232, 106, 51, 0.2);
            color: var(--text-dark);
        }

        .calendar-day.range-start {
            border-radius: 8px 0 0 8px;
        }

        .calendar-day.range-end {
            border-radius: 0 8px 8px 0;
        }

        .calendar-day.range-start.range-end {
            border-radius: 8px;
        }

        .calendar-day.disabled {
            color: var(--text-muted);
            cursor: not-allowed;
            opacity: 0.3;
        }

        .calendar-day.has-events::after {
            content: '';
            position: absolute;
            bottom: 4px;
            width: 5px;
            height: 5px;
            background: var(--teal);
            border-radius: 50%;
        }

        .calendar-day.selected.has-events::after {
            background: var(--paper);
        }

        .calendar-actions {
            display: flex;
            gap: 12px;
            padding: 16px;
            border-top: 2px dashed var(--teal-light);
            background: var(--bg-warm);
        }

        .calendar-action-btn {
            flex: 1;
            padding: 12px 16px;
            font-family: var(--font-sans);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.15s;
        }

        .calendar-action-btn.secondary {
            background: var(--paper);
            color: var(--ink);
            border: var(--border) solid var(--ink);
            box-shadow: var(--shadow);
        }

        .calendar-action-btn.secondary:hover {
            transform: translate(-1px, -1px);
            box-shadow: var(--shadow-hover);
        }

        .calendar-action-btn.secondary:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .calendar-action-btn.primary {
            background: var(--accent);
            color: white;
            border: var(--border) solid var(--ink);
            box-shadow: var(--shadow);
        }

        .calendar-action-btn.primary:hover {
            background: var(--accent-light);
            transform: translate(-1px, -1px);
            box-shadow: var(--shadow-hover);
        }

        .calendar-action-btn.primary:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .calendar-action-btn.primary:disabled {
            background: var(--text-muted);
            border-color: var(--text-muted);
            cursor: not-allowed;
            opacity: 0.5;
            box-shadow: none;
            transform: none;
        }

        /* Donation Popup Modal */
        .donation-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(44, 62, 80, 0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
        }

        .donation-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .donation-modal {
            background: var(--paper);
            border: var(--border) solid var(--ink);
            border-radius: var(--radius);
            box-shadow: 4px 4px 0 var(--ink);
            max-width: 360px;
            width: 100%;
            transform: translateY(20px) scale(0.95);
            transition: all 0.2s ease;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .donation-overlay.open .donation-modal {
            transform: translateY(0) scale(1);
        }

        .donation-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            background: var(--paper);
            color: var(--ink);
            border-bottom: 3px solid var(--ink);
            flex-shrink: 0;
        }

        .donation-title {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
        }

        .donation-close {
            background: rgba(26, 46, 53, 0.08);
            border: var(--border) solid var(--ink);
            color: var(--ink);
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }

        .donation-close:hover {
            background: rgba(26, 46, 53, 0.12);
            transform: scale(1.05);
        }

        .donation-close:active {
            transform: scale(0.95);
        }

        .donation-close svg {
            width: 16px;
            height: 16px;
        }

        .donation-body {
            padding: 24px 20px;
            text-align: center;
            flex-shrink: 0;
        }

        .donation-logo {
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.15s ease;
        }

        .donation-logo:hover {
            transform: scale(1.05);
        }

        .donation-logo:active {
            transform: scale(0.98);
        }

        .donation-logo img {
            height: 48px;
            width: auto;
        }

        .donation-text {
            font-size: 1rem;
            color: var(--text-dark);
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .donation-text strong {
            color: var(--teal-dark);
        }

        .donation-link-btn {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            margin-top: 8px;
            padding: 14px 24px;
            cursor: pointer;
            text-decoration: none;
            border-radius: var(--radius);
            background: var(--paper);
            color: var(--ink);
            font-family: var(--font-sans);
            font-weight: 700;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border: 3px solid var(--ink);
            box-shadow: var(--shadow);
            transition: all 0.15s;
            text-align: center;
        }

        .donation-link-btn:hover {
            background: rgba(26, 46, 53, 0.04);
        }

        .donation-link-btn:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0px var(--border-dark);
        }

        .sticker-price-container {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
        }

        .sticker-price-original {
            text-decoration: line-through;
            color: var(--bg-cream);
            opacity: 0.7;
            font-size: 0.75rem;
            font-weight: 400;
            text-transform: none;
            letter-spacing: normal;
        }

        .sticker-price-current {
            font-size: 1rem;
            font-weight: 700;
            text-transform: none;
            letter-spacing: normal;
        }

        .sticker-discount {
            background: #FF4444;
            color: white;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: none;
            letter-spacing: normal;
        }

        .donation-actions {
            display: flex;
            justify-content: center;
            padding: 20px;
            border-top: 3px solid var(--ink);
            background: var(--paper);
            flex-shrink: 0;
        }

        .donation-btn {
            padding: 14px 24px;
            font-family: var(--font-sans);
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.15s;
            text-decoration: none;
            text-align: center;
        }

        .donation-btn.secondary {
            background: var(--bg-cream);
            color: var(--text-dark);
            border: 2px solid var(--border-dark);
            box-shadow: 2px 2px 0px var(--border-dark);
        }

        .donation-btn.secondary:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0px var(--border-dark);
        }

        .donation-btn.primary {
            background: var(--accent);
            color: white;
            border: 3px solid var(--ink);
            box-shadow: var(--shadow);
        }

        .donation-btn.primary:hover {
            background: var(--accent-light);
        }

        .donation-btn.primary:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        /* Mobile adjustments for donation modal */
        @media (max-width: 540px) {
            .donation-overlay {
                padding: 16px;
                align-items: center;
            }

            .donation-modal {
                border-radius: 16px;
                max-width: 100%;
                max-height: 90vh;
                box-shadow: 6px 6px 0px var(--border-dark);
            }

            .donation-overlay.open .donation-modal {
                transform: translateY(0) scale(1);
            }

            .donation-header {
                padding: 12px 16px;
            }

            .donation-title {
                font-size: 1rem;
            }

            .donation-body {
                padding: 20px 16px;
            }

            .donation-logo img {
                height: 40px;
            }

            .donation-text {
                font-size: 0.9rem;
            }

            .donation-link-btn {
                padding: 12px 20px;
                font-size: 0.75rem;
            }

            .sticker-price-current {
                font-size: 0.9rem;
            }

            .sticker-price-original {
                font-size: 0.7rem;
            }

            .sticker-discount {
                font-size: 0.65rem;
                padding: 2px 5px;
            }

            .donation-actions {
                padding: 12px;
                gap: 10px;
            }

            .donation-btn {
                padding: 12px 14px;
                font-size: 0.75rem;
                min-height: 44px;
            }

        }

        /* Multi-Event Popup (Buy Tickets with multiple cities) - structure matches /scanner for trackpad scroll */
        .multi-event-overlay {
            position: fixed;
            inset: 0;
            background: rgba(44, 62, 80, 0.6);
            backdrop-filter: blur(4px);
            z-index: 1999;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
        }

        .multi-event-overlay.open {
            opacity: 1;
            pointer-events: auto;
        }

        .multi-event-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            z-index: 2000;
            background: var(--bg-cream);
            border: 3px solid var(--border-dark);
            border-radius: 20px;
            box-shadow: 6px 6px 0px var(--border-dark);
            width: calc(100vw - 40px);
            max-width: 400px;
            max-height: 85vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            opacity: 0;
            pointer-events: none;
            transition: transform 0.2s ease, opacity 0.2s ease;
        }

        .multi-event-modal.open {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            pointer-events: auto;
        }

        .multi-event-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: var(--teal);
            color: var(--bg-cream);
            border-bottom: 3px solid var(--border-dark);
            flex-shrink: 0;
        }

        .multi-event-header-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .multi-event-header-left svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
        }

        .multi-event-title {
            font-family: var(--font-serif);
            font-size: 1rem;
            font-weight: 700;
        }

        .multi-event-close {
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.3);
            color: var(--bg-cream);
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
            flex-shrink: 0;
        }

        .multi-event-close:active {
            transform: scale(0.95);
        }

        .multi-event-close svg {
            width: 16px;
            height: 16px;
        }

        .multi-event-support {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 20px;
            background: var(--paper);
            border: 3px solid var(--ink);
            border-radius: var(--radius);
            margin: 12px 16px 12px;
            box-shadow: var(--shadow);
            flex-shrink: 0;
        }

        .multi-event-sticker-img {
            width: 56px;
            height: 56px;
            border-radius: 8px;
            object-fit: cover;
            border: 2px solid var(--border-dark);
            flex-shrink: 0;
        }

        .multi-event-support-links {
            display: flex;
            flex-direction: column;
            gap: 6px;
            flex: 1;
            min-width: 0;
        }

        .multi-event-support-links .bmc-btn-small {
            display: block;
            width: 100%;
        }

        .multi-event-support-links .bmc-btn-small img {
            width: 100%;
            max-width: 180px;
            height: auto;
            border-radius: 6px;
            display: block;
        }

        .multi-event-sticker-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 12px;
            background: var(--accent);
            color: white;
            border: 3px solid var(--ink);
            border-radius: 8px;
            font-family: var(--font-sans);
            font-size: 0.72rem;
            font-weight: 700;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            box-shadow: var(--shadow);
            transition: transform 0.1s, box-shadow 0.1s;
            white-space: nowrap;
            width: fit-content;
        }

        .multi-event-sticker-btn:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0 var(--border-dark);
        }

        .multi-event-body {
            padding: 20px;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            flex: 1;
            min-height: 0;
        }

        .multi-event-artist {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--teal-dark);
            margin-bottom: 12px;
            line-height: 1.3;
        }

        .multi-event-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .multi-event-card {
            background: var(--paper);
            border: 3px solid var(--ink);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: var(--shadow);
        }

        .multi-event-card.near-you {
            border: 3px solid var(--ink);
            background: var(--paper);
        }

        .multi-event-near-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: var(--orange);
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 4px;
        }

        .multi-event-date {
            font-family: var(--font-sans);
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--orange);
            margin-bottom: 4px;
        }

        .multi-event-venue {
            font-family: var(--font-sans);
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-dark);
            line-height: 1.3;
        }

        .multi-event-location {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .multi-event-ticket-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            margin-top: 8px;
            padding: 9px 14px;
            background: var(--accent);
            color: white;
            border: 3px solid var(--ink);
            border-radius: var(--radius-pill);
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
            box-shadow: 2px 2px 0 var(--border-dark);
            transition: transform 0.1s, box-shadow 0.1s;
        }

        .multi-event-ticket-btn:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .multi-event-ticket-btn svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }

        @media (max-width: 540px) {
            .multi-event-modal {
                border-radius: 16px;
                max-width: 100%;
            }

            .multi-event-support {
                padding: 10px 14px;
                gap: 10px;
            }

            .multi-event-sticker-img {
                width: 48px;
                height: 48px;
            }
        }

        /* Floating Support Button */
        .floating-support {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 10px;
        }

        .floating-support-btn {
            background-color: var(--orange);
            color: white;
            border: 3px solid var(--border-dark);
            box-shadow: 4px 4px 0px var(--border-dark);
            padding: 12px 20px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .floating-support-btn:hover {
            background-color: var(--coral);
            transform: translate(-2px, -2px);
            box-shadow: 6px 6px 0px var(--border-dark);
        }

        .floating-support-menu {
            display: none;
            flex-direction: column;
            gap: 10px;
            background-color: var(--bg-warm);
            border: 3px solid var(--border-dark);
            box-shadow: 4px 4px 0px var(--border-dark);
            padding: 16px;
            border-radius: 16px;
            min-width: 250px;
        }

        .floating-support-menu.open {
            display: flex;
        }

        .floating-support-menu a,
        .floating-support-menu button {
            background-color: var(--teal);
            color: white;
            border: 3px solid var(--border-dark);
            box-shadow: 2px 2px 0px var(--border-dark);
            padding: 10px 16px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            text-align: center;
            display: block;
        }

        .floating-support-menu a:hover,
        .floating-support-menu button:hover {
            background-color: var(--teal-dark);
            transform: translate(-1px, -1px);
            box-shadow: 3px 3px 0px var(--border-dark);
        }

        .floating-support-menu .bmc-link {
            background-color: #FF5F5F;
            padding: 0;
            overflow: hidden;
        }

        .floating-support-menu .bmc-link:hover {
            background-color: #FF5F5F;
            opacity: 0.9;
        }

        .floating-support-menu .bmc-link img {
            display: block;
            width: 100%;
            height: auto;
        }

        .floating-support-menu .merch-link {
            background-color: var(--orange);
            width: 100%;
        }

        .floating-support-menu .merch-link:hover {
            background-color: var(--coral);
        }

        .floating-support-close {
            background-color: var(--text-muted);
            margin-top: 8px;
        }

        .floating-support-close:hover {
            background-color: var(--text-dark);
        }

        @media (max-width: 768px) {
            .floating-support {
                display: none;
            }
        }

        /* ── Liner Notes ── */

        .liner-notes-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 1099;
        }

        .liner-notes-overlay.open {
            display: block;
        }

        .liner-notes-sheet {
            position: fixed;
            bottom: var(--bottom-nav-clearance);
            left: 50%;
            transform: translateX(-50%) translateY(100%);
            z-index: 1100;
            width: 420px;
            max-width: 100%;
            max-height: min(70vh, calc(100dvh - var(--bottom-nav-clearance) - 12px));
            background: var(--bg-cream);
            border-radius: 16px;
            border: 3px solid var(--border-dark);
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
            will-change: transform;
        }

        .liner-notes-sheet.expanded {
            transform: translateX(-50%) translateY(0);
            visibility: visible;
        }

        .liner-notes-sheet.hidden {
            transform: translateX(-50%) translateY(100%);
            pointer-events: none;
            visibility: hidden;
        }

        .liner-notes-sheet.dragging {
            transition: none;
        }

        .liner-notes-handle {
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            padding: 10px 0 4px;
            cursor: grab;
        }

        .liner-notes-handle-bar {
            width: 40px;
            height: 4px;
            background: var(--text-muted);
            border-radius: 2px;
            opacity: 0.4;
        }

        .liner-notes-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 2px 20px 10px;
            flex-shrink: 0;
        }

        .liner-notes-title-group {
            display: flex;
            align-items: baseline;
            gap: 6px;
        }

        .liner-notes-title {
            font-family: var(--font-serif);
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--teal-dark);
        }

        .liner-notes-count {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .liner-notes-chevron {
            display: none;
        }

        .liner-notes-preview {
            display: none;
        }

        .liner-notes-collapsed-footer {
            display: none;
        }

        .liner-notes-expanded-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

        .liner-notes-sort-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 20px;
            flex-shrink: 0;
        }

        .liner-notes-sort-btn {
            padding: 6px 14px;
            background: #f4efe4;
            color: var(--text-muted);
            border: 2px solid rgba(26, 46, 53, 0.12);
            border-radius: 20px;
            font-family: var(--font-sans);
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s;
        }

        .liner-notes-sort-btn:hover:not(.active) {
            background: rgba(61, 107, 125, 0.08);
            border-color: rgba(61, 107, 125, 0.28);
            color: var(--teal-dark);
        }

        .liner-notes-sort-btn.active {
            background: var(--teal);
            color: white;
            border-color: var(--border-dark);
        }

        .liner-notes-list {
            flex: 1;
            overflow-y: auto;
            padding: 0 20px;
            -webkit-overflow-scrolling: touch;
        }

        .liner-note-item {
            padding: 14px 0;
            border-bottom: 1px solid rgba(0,0,0,0.07);
        }

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

        .liner-note-text {
            font-size: 0.92rem;
            color: var(--text-dark);
            line-height: 1.55;
            margin-bottom: 8px;
            word-break: break-word;
        }

        .liner-note-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .liner-note-time {
            font-size: 0.72rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .liner-note-felt-btn {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 12px;
            background: none;
            border: 1.5px solid rgba(0,0,0,0.15);
            border-radius: 20px;
            color: var(--text-muted);
            font-family: var(--font-sans);
            font-size: 0.72rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.15s;
        }

        .liner-note-felt-btn:hover:not(.felt) {
            border-color: var(--teal);
            color: var(--teal);
        }

        .liner-note-felt-btn.felt {
            background: var(--teal);
            border-color: var(--teal);
            color: white;
        }

        .liner-note-felt-btn svg {
            width: 13px;
            height: 13px;
        }

        .liner-notes-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
            font-size: 0.9rem;
            font-style: italic;
            line-height: 1.5;
        }

        .liner-notes-input-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-top: 2px solid rgba(0,0,0,0.06);
            background: var(--bg-cream);
            flex-shrink: 0;
            border-radius: 0 0 13px 13px;
        }

        .liner-notes-input {
            flex: 1;
            padding: 10px 14px;
            background: var(--bg-cream);
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            font-family: var(--font-sans);
            font-size: 0.88rem;
            color: var(--text-dark);
            outline: none;
            resize: none;
            min-height: 40px;
            max-height: 80px;
        }

        .liner-notes-input:focus {
            border-color: var(--teal);
            box-shadow: 0 0 0 2px rgba(61, 107, 125, 0.15);
        }

        .liner-notes-input::placeholder {
            color: var(--text-muted);
        }

        .liner-notes-send-btn {
            width: 40px;
            height: 40px;
            background: var(--teal);
            color: white;
            border: 2px solid var(--border-dark);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 2px 2px 0px var(--border-dark);
            transition: all 0.15s;
        }

        .liner-notes-send-btn:hover:not(:disabled) {
            transform: translate(-1px, -1px);
            box-shadow: 3px 3px 0px var(--border-dark);
            background: var(--teal-dark);
        }

        .liner-notes-send-btn:active:not(:disabled) {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0px var(--border-dark);
        }

        .liner-notes-send-btn:disabled {
            opacity: 0.35;
            cursor: default;
        }

        .liner-notes-send-btn svg {
            width: 18px;
            height: 18px;
        }

        /* Image attachment button */
        .liner-notes-attach-btn {
            width: 40px;
            height: 40px;
            background: var(--bg-cream);
            color: var(--text-muted);
            border: 2px solid var(--border-dark);
            border-radius: 50%;
            display: none !important;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            box-shadow: 2px 2px 0px var(--border-dark);
            transition: all 0.15s;
        }

        .liner-notes-attach-btn:hover {
            background: var(--bg-warm);
            color: var(--teal);
        }

        .liner-notes-attach-btn.has-image {
            background: var(--teal);
            color: white;
        }

        .liner-notes-attach-btn svg {
            width: 18px;
            height: 18px;
        }

        /* Image preview in input area */
        .liner-notes-image-preview {
            display: none;
            position: relative;
            margin-bottom: 10px;
            padding: 0 16px;
        }

        .liner-notes-image-preview.active {
            display: block;
        }

        .liner-notes-image-preview img {
            width: 100%;
            max-height: 150px;
            object-fit: cover;
            border-radius: 10px;
            border: 2px solid var(--border-dark);
        }

        .liner-notes-image-preview-remove {
            position: absolute;
            top: 8px;
            right: 24px;
            width: 28px;
            height: 28px;
            background: rgba(0,0,0,0.6);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .liner-notes-image-preview-remove svg {
            width: 16px;
            height: 16px;
        }

        /* Note with image display */
        .liner-note-image {
            width: 100%;
            border-radius: 8px;
            margin-top: 8px;
            border: 2px solid var(--border-dark);
            cursor: pointer;
            transition: transform 0.15s;
        }

        .liner-note-image:hover {
            transform: scale(1.02);
        }

        /* Play button row */
        .liner-note-play-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 10px;
            padding: 8px 10px;
            background: rgba(0,0,0,0.03);
            border-radius: 10px;
        }

        .liner-note-album-art {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            object-fit: cover;
            border: 1.5px solid var(--border-dark);
            flex-shrink: 0;
        }

        .liner-note-album-placeholder {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            background: rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 1.5px solid var(--border-dark);
        }

        .liner-note-album-placeholder svg {
            width: 16px;
            height: 16px;
            color: var(--text-muted);
        }

        .liner-note-play-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--teal);
            border: none;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.15s;
        }

        .liner-note-play-btn:hover {
            transform: scale(1.1);
        }

        .liner-note-play-btn.disabled {
            background: rgba(0,0,0,0.1);
            cursor: default;
        }

        .liner-note-play-btn.disabled:hover {
            transform: none;
        }

        .liner-note-play-btn svg {
            width: 14px;
            height: 14px;
        }

        .liner-note-play-btn.playing {
            background: var(--teal);
        }

        .liner-note-progress {
            flex: 1;
            height: 4px;
            background: rgba(0,0,0,0.1);
            border-radius: 2px;
            overflow: hidden;
        }

        .liner-note-progress-fill {
            height: 100%;
            background: var(--teal);
            border-radius: 2px;
            width: 0%;
            transition: width 0.2s;
        }

        /* Reply section */
        .liner-note-reply-btn {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: var(--text-muted);
            font-family: var(--font-sans);
            font-size: 0.72rem;
            font-weight: 600;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 12px;
            transition: all 0.15s;
        }

        .liner-note-reply-btn:hover {
            background: rgba(0,0,0,0.05);
            color: var(--teal);
        }

        .liner-note-reply-btn svg {
            width: 13px;
            height: 13px;
        }

        .liner-note-replies {
            display: none;
            margin-top: 10px;
            padding-left: 16px;
            border-left: 2px solid rgba(0,0,0,0.08);
        }

        .liner-note-replies.open {
            display: block;
        }

        .liner-note-reply-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(0,0,0,0.04);
        }

        .liner-note-reply-item:last-child {
            border-bottom: none;
        }

        .liner-note-reply-text {
            font-size: 0.85rem;
            color: var(--text-dark);
            line-height: 1.4;
        }

        .liner-note-reply-time {
            font-size: 0.68rem;
            color: var(--text-muted);
            margin-top: 3px;
        }

        .liner-note-reply-input-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
        }

        .liner-note-reply-input {
            flex: 1;
            padding: 7px 10px;
            background: var(--bg-cream);
            border: 1.5px solid rgba(0,0,0,0.12);
            border-radius: 8px;
            font-family: var(--font-sans);
            font-size: 0.82rem;
            color: var(--text-dark);
            outline: none;
        }

        .liner-note-reply-input:focus {
            border-color: var(--teal);
        }

        .liner-note-reply-send {
            width: 30px;
            height: 30px;
            background: var(--teal);
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .liner-note-reply-send svg {
            width: 14px;
            height: 14px;
        }

        @media (max-width: 768px) {
            body.liner-notes-open .bottom-nav,
            body.liner-notes-open .bottom-spacer {
                display: none !important;
            }

            .liner-notes-overlay {
                inset: 0;
                z-index: 9998;
            }

            .liner-notes-sheet {
                inset: auto 0 0 0;
                left: 0;
                right: 0;
                width: 100%;
                max-width: 100%;
                max-height: min(80dvh, calc(100dvh - var(--safe-top)));
                z-index: 9999;
                transform: translateY(100%);
                border-radius: 18px 18px 0 0;
                border-bottom-width: 0;
                box-shadow: 0 -10px 30px rgba(0,0,0,0.18);
                touch-action: none;
            }

            .liner-notes-attach-btn {
                display: none !important;
            }

            .liner-notes-input-row {
                padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
                border-radius: 0;
            }

            .liner-notes-sheet.expanded {
                transform: translateY(0);
                visibility: visible;
            }

            .liner-notes-sheet.hidden {
                transform: translateY(100%);
                visibility: hidden;
                display: none;
            }
        }

        @media (max-width: 540px) {
            .liner-notes-header {
                padding: 2px 14px 8px;
            }

            .liner-notes-title {
                font-size: 0.95rem;
            }

            .liner-notes-sort-row {
                padding: 4px 14px 8px;
            }

            .liner-notes-list {
                padding: 0 14px;
            }

            .liner-notes-input-row {
                padding: 10px 14px;
                padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
                border-radius: 0;
                background: var(--bg-cream);
            }

            .liner-notes-input {
                background: var(--bg-cream);
            }
        }

        @media (max-width: 380px) {
            .liner-notes-title {
                font-size: 0.8rem;
            }
        }

        /* Desktop: right-side panel instead of bottom sheet */
        @media (min-width: 769px) {
            .liner-notes-sheet {
                top: 0;
                right: 0;
                bottom: 0;
                left: auto;
                width: 400px;
                max-width: 400px;
                max-height: none;
                border-radius: 16px 0 0 16px;
                border: 3px solid var(--border-dark);
                border-right: none;
                transform: translateX(100%);
                box-shadow: -4px 0 20px rgba(0,0,0,0.15);
            }
            .liner-notes-sheet.expanded { transform: translateX(0); }
            .liner-notes-sheet.hidden { transform: translateX(100%); }
            .liner-notes-sheet.dragging { transition: none; }
            .liner-notes-handle { display: none; }
            .liner-notes-close-btn { display: flex; }
            .liner-notes-header { padding: 16px 18px 12px; border-bottom: 2px solid rgba(0,0,0,0.06); }
            .liner-notes-expanded-content { overflow: hidden; }
            .liner-notes-list { padding: 0 18px; overflow-y: auto; overflow-x: hidden; }
            .liner-notes-input-row { padding: 12px 18px; }
            .liner-notes-collapsed-footer { display: none; }
            .liner-notes-preview { display: none; }
        }

        .liner-notes-close-btn {
            display: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid var(--border-dark);
            background: var(--bg-warm);
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 2px 2px 0 var(--border-dark);
            transition: transform 0.1s, box-shadow 0.1s;
            -webkit-tap-highlight-color: transparent;
        }
        .liner-notes-close-btn:active {
            transform: translate(2px,2px);
            box-shadow: none;
        }
        .liner-notes-close-btn svg { width: 18px; height: 18px; }

        /* Similar Artists Section */
        .similar-artists-section {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 2px dashed var(--teal-light);
        }

        .similar-artists-section + .similar-artists-section {
            margin-top: 12px;
        }

        .similar-artists-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            padding: 0 2px;
        }

        .similar-artists-title {
            font-family: var(--font-sans);
            font-size: 0.78rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--teal-dark);
        }

        .similar-artists-count {
            background: var(--teal);
            color: white;
            font-size: 0.62rem;
            font-weight: 700;
            padding: 1px 7px;
            border-radius: 10px;
        }

        .similar-artists-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: var(--teal-light) transparent;
            padding: 4px 2px 12px;
            margin: 0 -2px;
        }

        .similar-artists-scroll::-webkit-scrollbar {
            height: 6px;
        }

        .similar-artists-scroll::-webkit-scrollbar-track {
            background: transparent;
        }

        .similar-artists-scroll::-webkit-scrollbar-thumb {
            background: var(--teal-light);
            border-radius: 3px;
        }

        .similar-artists-scroll::-webkit-scrollbar-thumb:hover {
            background: var(--teal);
        }

        .similar-artist-card {
            flex: 0 0 160px;
            background: white;
            border: 2px solid var(--teal-light);
            border-radius: 14px;
            padding: 14px 12px;
            box-shadow: 2px 2px 0 rgba(0,0,0,0.08);
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
            text-align: center;
        }

        .similar-artist-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
            border-color: var(--teal);
        }

        .similar-artist-card:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        .similar-artist-card.has-event {
            border-color: var(--teal);
        }

        .similar-artist-card.near-you {
            border-color: var(--orange);
            background: #FFF8F5;
        }

        .similar-artist-card.near-you:hover {
            border-color: var(--orange);
        }

        .similar-artist-img-wrap {
            position: relative;
            width: 72px;
            height: 72px;
            margin: 0 auto 8px;
        }

        .similar-artist-img {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border-dark);
            display: block;
            background: var(--bg-cream);
        }

        .similar-artist-actions {
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            gap: 5px;
            z-index: 3;
        }

        .similar-artist-play-btn {
            width: 24px;
            height: 24px;
            background: var(--orange);
            border: 2px solid var(--border-dark);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            box-shadow: 1px 1px 0 var(--border-dark);
        }

        .similar-artist-play-btn svg {
            width: 9px;
            height: 9px;
            fill: white;
            margin-left: 1px;
        }

        .similar-artist-play-btn.playing svg {
            margin-left: 0;
        }

        .similar-artist-play-btn:hover {
            background: var(--orange-light);
        }

        .similar-artist-name {
            font-family: var(--font-sans);
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-dark);
            line-height: 1.2;
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .similar-artist-genre {
            display: inline-block;
            font-size: 0.58rem;
            font-weight: 600;
            color: var(--teal-dark);
            background: rgba(61,107,125,0.1);
            padding: 1px 7px;
            border-radius: 8px;
            margin-bottom: 6px;
        }

        .similar-artist-event {
            font-size: 0.62rem;
            line-height: 1.3;
        }

        .similar-artist-event-venue {
            font-weight: 600;
            color: var(--teal-dark);
        }

        .similar-artist-event-date {
            color: var(--orange);
            font-weight: 700;
        }

        .similar-artist-event-city {
            color: var(--text-muted);
        }

        .similar-artist-near-badge {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            background: var(--orange);
            color: white;
            padding: 1px 6px;
            border-radius: 8px;
            font-size: 0.55rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 4px;
        }

        .similar-artists-loading {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 16px;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .similar-artists-empty-near {
            padding: 12px 0;
            font-size: 0.8rem;
            color: var(--text-muted);
            text-align: center;
        }

        .similar-artists-loading .dot-pulse {
            display: inline-flex;
            gap: 3px;
        }

        .similar-artists-loading .dot-pulse span {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--teal);
            animation: dotPulse 1.2s infinite ease-in-out;
        }

        .similar-artists-loading .dot-pulse span:nth-child(2) { animation-delay: 0.2s; }
        .similar-artists-loading .dot-pulse span:nth-child(3) { animation-delay: 0.4s; }

        @keyframes dotPulse {
            0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
            40% { opacity: 1; transform: scale(1); }
        }

        /* Similar Artists Page (below main content) */
        #similarArtistsPage {
            display: none;
            padding: 24px 0 40px;
        }

        #similarArtistsPage.visible {
            display: block;
        }

        .similar-page-inner {
            background: var(--bg-cream);
            border: 3px solid var(--border-dark);
            border-radius: 20px;
            padding: 28px;
            box-shadow: var(--card-shadow);
        }

        .similar-page-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .similar-page-header-title {
            font-family: var(--font-serif);
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--teal-dark);
        }

        .similar-page-header-artist {
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
        }

        .similar-page-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
            font-size: 0.85rem;
        }

        .similar-page-back {
            display: none;
        }

        /* Scroll hint chevron - visible on desktop and mobile */
        .scroll-hint-down {
            display: flex;
            justify-content: center;
            padding: 8px 0 4px;
            flex-shrink: 0;
            cursor: pointer;
        }

        .scroll-hint-down svg {
            width: 24px;
            height: 24px;
            color: var(--teal);
            opacity: 0.6;
            animation: scrollHintBounce 2s infinite;
            transition: opacity 0.2s;
        }

        .scroll-hint-down:hover svg {
            opacity: 1;
        }

        @keyframes scrollHintBounce {
            0%, 100% { transform: translateY(0); opacity: 0.6; }
            50% { transform: translateY(4px); opacity: 0.9; }
        }

        @media (max-width: 540px) {
            .scroll-hint-down {
                padding: 4px 0 2px;
            }

            .scroll-hint-down svg {
                width: 20px;
                height: 20px;
            }

            #similarArtistsPage {
                padding: 12px;
                box-sizing: border-box;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            #similarArtistsPage.visible {
                display: flex;
                flex-direction: column;
            }

            .similar-page-inner {
                padding: 16px;
                border-radius: 12px;
                border-width: 2px;
                box-shadow: 2px 2px 0px var(--border-dark);
                flex: 1;
                overflow-y: auto;
            }

            .similar-page-back {
                display: flex;
                align-items: center;
                gap: 4px;
                background: none;
                border: none;
                color: var(--teal-dark);
                font-family: var(--font-sans);
                font-size: 0.78rem;
                font-weight: 700;
                padding: 8px 0 12px;
                cursor: pointer;
                flex-shrink: 0;
            }

            .similar-page-back svg {
                width: 18px;
                height: 18px;
            }

            .similar-artist-card {
                flex: 0 0 130px;
                padding: 10px;
            }

            .similar-artist-img-wrap {
                width: 56px;
                height: 56px;
                margin: 0 auto 18px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .similar-artist-img {
                width: 100%;
                height: 100%;
            }

            .similar-artist-actions {
                bottom: -12px;
            }

            .similar-artist-play-btn {
                width: 30px;
                height: 30px;
                box-shadow: 2px 2px 0 var(--border-dark);
            }

            .similar-artist-play-btn svg {
                width: 11px;
                height: 11px;
            }

            .similar-page-header-title {
                font-size: 1rem;
            }

            .similar-artists-scroll {
                scrollbar-width: none;
                padding-bottom: 8px;
            }

            .similar-artists-scroll::-webkit-scrollbar {
                display: none;
            }
        }

        /* ═══════════════════════════════════════════════════════════
           NAVIGATION OVERRIDES  (design-system.css provides base)
        ═══════════════════════════════════════════════════════════ */
        @media (max-width: 767px) {
            .site-header {
                display: none;
            }
        }

        .similar-artist-card { position: relative; }

        /* ── Note count badge on similar artist cards ── */
        .similar-artist-note-badge {
            position: absolute;
            top: -6px;
            left: -6px;
            width: 22px;
            height: 22px;
            background: var(--teal);
            color: #fff;
            border: 2px solid var(--border-dark);
            border-radius: 50%;
            font-size: 0.62rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 4;
            box-shadow: 1px 1px 0 var(--border-dark);
        }

        /* ── Hover speech bubble popup ── */
        .similar-artist-hover-popup {
            display: none;
            position: fixed;
            width: 190px;
            background: #FFFDF8;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            box-shadow: 2px 2px 0 var(--border-dark);
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.15s;
            pointer-events: none;
        }
        .similar-artist-hover-popup.visible {
            display: block;
            opacity: 1;
            pointer-events: auto;
        }
        /* Speech bubble arrow pointing down (popup above card) */
        .similar-artist-hover-popup::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 0; height: 0;
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-top: 8px solid #FFFDF8;
            filter: drop-shadow(0 2px 0 var(--border-dark));
        }
        .similar-artist-hover-popup::before {
            content: '';
            position: absolute;
            bottom: -11px;
            left: 50%;
            transform: translateX(-50%);
            width: 0; height: 0;
            border-left: 9px solid transparent;
            border-right: 9px solid transparent;
            border-top: 9px solid var(--border-dark);
        }
        /* Arrow pointing up (popup below card) */
        .similar-artist-hover-popup.flipped::after {
            bottom: auto; top: -8px;
            border-top: none;
            border-bottom: 8px solid #FFFDF8;
            filter: drop-shadow(0 -2px 0 var(--border-dark));
        }
        .similar-artist-hover-popup.flipped::before {
            bottom: auto; top: -11px;
            border-top: none;
            border-bottom: 9px solid var(--border-dark);
        }
        .hover-popup-view-all {
            font-size: 0.6rem;
            font-weight: 600;
            color: var(--accent);
            cursor: pointer;
            text-decoration: none;
            padding: 0 8px;
        }
        .hover-popup-view-all:hover { text-decoration: underline; }
        .hover-popup-note {
            padding: 5px 8px 3px;
        }
        .hover-popup-note-text {
            font-size: 0.68rem;
            color: var(--text-dark);
            line-height: 1.3;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            line-clamp: 1;
            -webkit-box-orient: vertical;
        }
        .hover-popup-note-time {
            font-size: 0.58rem;
            color: var(--text-muted);
            margin-top: 1px;
        }
        .hover-popup-input {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 4px 6px 6px;
        }
        .hover-popup-note + .hover-popup-input {
            border-top: 1px solid rgba(0,0,0,0.08);
        }
        .hover-popup-input input {
            flex: 1;
            border: 1.5px solid var(--border-dark);
            border-radius: 20px;
            padding: 4px 9px;
            font-size: 0.65rem;
            font-family: var(--font-sans);
            outline: none;
            background: var(--bg-cream);
        }
        .hover-popup-input input:focus { border-color: var(--teal); }
        .hover-popup-submit {
            width: 24px;
            height: 24px;
            background: var(--accent);
            border: 1.5px solid var(--border-dark);
            border-radius: 50%;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            padding: 0;
        }
        .hover-popup-submit svg { width: 10px; height: 10px; }
        .hover-popup-submit:hover { background: var(--accent-light); }

        @media (hover: none) {
            .similar-artist-hover-popup { display: none !important; }
        }
