        /* ═══════════════════════════════════════════════════════════
           MOBILE TAP & SCROLL PERFORMANCE
        ═══════════════════════════════════════════════════════════ */
        /* Eliminate 300ms tap delay on all interactive elements */
        a, button, [role="button"], .artist-card, .comment-card, .city-picker-option {
            touch-action: manipulation;
        }

        /* Instant tap feedback — shows pressed state on pointerdown */
        .artist-card:active, .comment-card:active, .city-picker-option:active {
            transform: translate(2px, 2px) !important;
            box-shadow: none !important;
            transition: none !important;
        }

        /* Promote scrolling containers to GPU layer for smooth scrolling */
        .carousel-scroll {
            will-change: scroll-position;
            -webkit-overflow-scrolling: touch;
        }

        /* Broken images: hide without triggering layout recalc */
        .img-broken {
            visibility: hidden;
        }

        /* Lazy sentinel placeholder */
        .lazy-sentinel {
            min-height: 180px;
            contain: layout style;
        }

        /* Content containment for each rail to reduce layout recalcs */
        .carousel-section {
            contain: layout style;
        }

        .deferred-home-shell,
        .deferred-home-section {
            content-visibility: auto;
            contain-intrinsic-size: 320px;
        }

        .bottom-nav-item:active,
        .site-header .header-action-btn:active,
        .site-header .city-dropdown-btn:active {
            transform: translate(1px, 1px);
        }

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

        .skeleton-block,
        .artist-bubble-skeleton,
        .mini-chat-item-skeleton {
            background: linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.42) 0%,
                rgba(255, 255, 255, 0.84) 50%,
                rgba(255, 255, 255, 0.42) 100%
            );
            background-size: 220% 100%;
            animation: home-skeleton-shimmer 1.2s linear infinite;
        }

        .skeleton-text {
            height: 16px;
            border-radius: 999px;
        }

        .skeleton-text.short {
            width: 42%;
        }

        .skeleton-chip {
            width: 72px;
            height: 24px;
            border-radius: 999px;
        }

        /* Home-page-specific styles only — base tokens/components come from design-system.css */

        /* ═══════════════════════════════════════════════════════════
           MOBILE LOADING SPLASH
        ═══════════════════════════════════════════════════════════ */
        .mobile-load-splash {
            display: none;
        }

        @media (max-width: 767px) {
            html.show-mobile-home-splash body {
                overflow: hidden;
            }

            html.show-mobile-home-splash .mobile-load-splash {
                position: fixed;
                inset: 0;
                z-index: 9999;
                display: flex;
                align-items: center;
                justify-content: center;
                padding:
                    max(24px, env(safe-area-inset-top))
                    max(20px, env(safe-area-inset-right))
                    max(24px, env(safe-area-inset-bottom))
                    max(20px, env(safe-area-inset-left));
                background: var(--bg);
                opacity: 1;
                visibility: visible;
                touch-action: none;
                transition: opacity 0.24s ease, visibility 0s linear 0.24s;
            }

            html.show-mobile-home-splash .mobile-load-splash.is-hidden {
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
            }

            html.show-mobile-home-splash .mobile-load-splash-art {
                display: block;
                width: min(88vw, 420px);
                max-width: 100%;
                height: auto;
                filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
            }
        }

        /* ═══════════════════════════════════════════════════════════
           MAIN CONTENT
        ═══════════════════════════════════════════════════════════ */
        .home-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--pad-page) 0 60px;
        }

        /* Header search is visible on all breakpoints — hero search was removed. */

        @media (max-width: 767px) {
            .home-content {
                padding-left: 12px;
                padding-right: 12px;
            }
        }

        /* ═══════════════════════════════════════════════════════════
           CAROUSEL SECTION - Netflix rails, serif header, chunky SEE ALL
        ═══════════════════════════════════════════════════════════ */
        .carousel-section {
            margin-bottom: 24px;
            padding: 0;
            position: relative;
            overflow: visible;
        }

        @media (min-width: 768px) {
            .carousel-section {
                padding: 0 var(--pad-page);
            }
        }

        .carousel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 0 12px;
            margin-bottom: 0;
            gap: 12px;
        }

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

        .trending-header {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

        .carousel-header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .carousel-nav-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .carousel-title-wrap {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
        }

        .carousel-title {
            font-family: var(--font-serif);
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--ink-navy);
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .carousel-subtitle {
            font-family: var(--font-sans);
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .carousel-see-all {
            font-family: var(--font-sans);
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--ink-navy);
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 10px 18px;
            border-radius: 50px;
            border: var(--border-thick) solid var(--ink-navy);
            background: var(--surface-cream);
            box-shadow: 2px 2px 0 var(--ink-navy);
            transition: transform 0.12s, box-shadow 0.12s;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .carousel-see-all:hover {
            transform: translate(-1px, -1px);
            box-shadow: 3px 3px 0 var(--ink-navy);
        }

        .carousel-see-all:active {
            transform: translate(2px, 2px);
            box-shadow: none;
        }

        /* Rail arrows - desktop */
        .rail-arrows {
            display: none;
            align-items: center;
            gap: 8px;
        }

        @media (min-width: 768px) {
            .rail-arrows {
                display: flex;
            }
        }

        .rail-arrow-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: var(--border-thick) solid var(--ink-navy);
            background: var(--surface-cream);
            color: var(--ink-navy);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 2px 2px 0 var(--ink-navy);
            transition: transform 0.12s, box-shadow 0.12s;
        }

        .rail-arrow-btn:hover {
            transform: translate(-1px, -1px);
            box-shadow: 3px 3px 0 var(--ink-navy);
        }

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

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

        /* ═══════════════════════════════════════════════════════════
           COMMENT PREVIEW CARD
        ═══════════════════════════════════════════════════════════ */
        .comment-card {
            flex: 0 0 200px;
            min-width: 200px;
            background: var(--surface-cream);
            border: 2px solid var(--ink-navy);
            border-radius: var(--radius-lg);
            padding: 16px 14px 12px;
            box-shadow: 2px 2px 0 var(--ink-navy);
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            scroll-snap-align: start;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            position: relative;
        }

        .comment-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 4px 4px 0 var(--ink-navy);
        }

        .comment-card-artist-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

        .comment-card-img-ring {
            position: relative;
            width: 72px;
            height: 72px;
        }

        .comment-card-artist-img {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            object-fit: cover;
            border: var(--border-thick) solid var(--ink-navy);
        }

        .comment-card-artist-img-placeholder {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            border: 3px solid var(--teal);
            background: var(--teal);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .comment-card-artist-img-placeholder svg {
            width: 28px;
            height: 28px;
            color: rgba(255,255,255,0.5);
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        .comment-card-play-btn {
            position: absolute;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: 2px solid var(--ink-navy);
            background: var(--orange);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            box-shadow: 1px 1px 0 var(--border-dark);
            z-index: 2;
        }

        .comment-card-play-btn:hover {
            background: #c9583a;
        }

        .comment-card-play-btn.disabled {
            background: var(--text-muted);
            opacity: 0.4;
            cursor: default;
        }

        .comment-card-play-btn.playing {
            background: var(--teal);
        }

        .comment-card-play-btn svg {
            width: 24px;
            height: 24px;
            fill: white;
            stroke: none;
        }

        .comment-card-artist-name {
            font-family: var(--font-serif);
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-dark);
            text-align: center;
            line-height: 1.2;
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .comment-card-text {
            font-size: 0.82rem;
            color: var(--text-dark);
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: center;
            font-style: italic;
            width: 100%;
        }

        .comment-card-meta {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 600;
        }

        .comment-card-meta svg {
            width: 12px;
            height: 12px;
            stroke: currentColor;
            stroke-width: 2;
            fill: none;
            vertical-align: -2px;
        }

        .comment-card-felt {
            display: flex;
            align-items: center;
            gap: 3px;
            color: var(--coral);
        }

        .comment-card-felt svg {
            fill: var(--coral);
            stroke: var(--coral);
        }

        .comment-card-replies {
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .comment-card-replies svg {
            width: 11px;
            height: 11px;
        }

        .comment-empty-card {
            flex: 0 0 230px;
            background: #FEFCF6;
            border: 2px dashed var(--border-dark);
            border-radius: 12px;
            padding: 30px 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            scroll-snap-align: start;
        }

        .comment-empty-card svg {
            width: 32px;
            height: 32px;
            color: var(--text-muted);
            stroke: currentColor;
            stroke-width: 1.5;
            fill: none;
            opacity: 0.5;
        }

        .comment-empty-card p {
            font-size: 0.82rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .carousel-scroll {
            display: flex;
            flex-wrap: nowrap;
            gap: var(--gap-rail);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            padding: 12px 18px 16px 0;
        }

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

        .carousel-wrapper {
            position: relative;
            overflow: visible;
        }

        @media (min-width: 768px) {
            .carousel-scroll {
                gap: 16px;
                padding: 16px 18px 20px 0;
            }
        }

        @media (min-width: 1024px) {
            .carousel-section {
                margin-bottom: 32px;
            }

            .carousel-scroll {
                gap: 20px;
            }

            .carousel-scroll.medium-scroll {
                padding-top: 10px;
            }

            .carousel-scroll.social-strip-scroll {
                padding-top: 8px;
            }

            .artist-card.medium-card {
                flex: 0 0 248px;
                min-width: 248px;
                text-align: left;
                border-width: 2px;
                box-shadow: 2px 2px 0 var(--ink-navy);
            }

            .artist-card.medium-card .artist-card-inner {
                padding: 14px 14px 15px;
            }

            .artist-card.medium-card .artist-card-rank,
            .artist-card.no-rank .artist-card-rank {
                display: none;
            }

            .artist-card.medium-card .artist-card-img-wrap {
                width: 100%;
                height: auto;
                aspect-ratio: 1.08;
                margin: 0 0 12px;
            }

            .artist-card.medium-card .artist-card-img {
                width: 100%;
                height: 100%;
                border-radius: 20px;
            }

            .artist-card.medium-card .artist-card-actions {
                left: 14px;
                bottom: 14px;
                transform: none;
            }

            .artist-card.medium-card .artist-card-play {
                width: 30px;
                height: 30px;
                border-width: 2px;
                box-shadow: 1px 1px 0 var(--ink-navy);
            }

            .artist-card.medium-card .artist-card-name {
                text-align: left;
                font-size: 0.98rem;
                line-height: 1.25;
                margin-bottom: 8px;
                -webkit-line-clamp: 1;
                line-clamp: 1;
            }

            .artist-card.medium-card .artist-card-badges {
                justify-content: flex-start;
                margin-bottom: 10px;
            }

            .artist-card.medium-card .artist-card-genre {
                font-size: 0.58rem;
                padding: 4px 10px;
            }

            .artist-card.medium-card .artist-card-event {
                display: flex;
                flex-direction: column;
                gap: 2px;
                font-size: 0.68rem;
            }

            .artist-card.medium-card .artist-card-event-date {
                font-size: 0.72rem;
            }

            .artist-card.medium-card .artist-card-event-city {
                font-size: 0.66rem;
                color: var(--text-muted);
            }

            .artist-card.medium-card .artist-card-from {
                font-size: 0.66rem;
            }

            .artist-card.medium-card .artist-card-event-venue {
                display: none;
            }

            .comment-card.social-strip-card {
                flex: 0 0 260px;
                min-width: 260px;
                padding: 14px;
                align-items: flex-start;
                gap: 12px;
            }

            .comment-card.social-strip-card .comment-card-artist-wrap {
                flex-direction: row;
                align-items: flex-start;
                gap: 12px;
            }

            .comment-card.social-strip-card .comment-card-img-ring,
            .comment-card.social-strip-card .comment-card-artist-img,
            .comment-card.social-strip-card .comment-card-artist-img-placeholder {
                width: 54px;
                height: 54px;
            }

            .comment-card.social-strip-card .comment-card-artist-img-placeholder svg {
                width: 22px;
                height: 22px;
            }

            .comment-card.social-strip-card .comment-card-play-btn {
                width: 22px;
                height: 22px;
                bottom: -2px;
                left: auto;
                right: -2px;
                transform: none;
            }

            .comment-card.social-strip-card .comment-card-play-btn svg {
                width: 9px;
                height: 9px;
            }

            .comment-card-copy {
                min-width: 0;
                display: flex;
                flex-direction: column;
                gap: 6px;
                flex: 1;
            }

            .comment-card.social-strip-card .comment-card-artist-name,
            .comment-card.social-strip-card .comment-card-text,
            .comment-card.social-strip-card .comment-card-meta {
                text-align: left;
                justify-content: flex-start;
            }

            .comment-card.social-strip-card .comment-card-artist-name {
                white-space: normal;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .comment-card.social-strip-card .comment-card-text {
                font-style: normal;
            }
        }


        /* Hero search block has been removed — search lives in the site header on all breakpoints. */

        /* ═══════════════════════════════════════════════════════════
           TRENDING TIME TABS (Today / Week / Month)
        ═══════════════════════════════════════════════════════════ */
        .trending-time-tabs {
            display: flex;
            gap: 5px;
            flex-shrink: 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .trending-time-tabs::-webkit-scrollbar {
            display: none;
        }

        .trending-time-tab {
            font-family: var(--font-sans);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 7px 14px;
            border-radius: var(--radius-pill);
            border: 2px solid var(--ink);
            background: var(--paper);
            color: var(--ink);
            cursor: pointer;
            transition: background 0.12s, color 0.12s, transform 0.12s, box-shadow 0.12s;
            box-shadow: 1px 1px 0 var(--ink);
            white-space: nowrap;
        }

        .trending-time-tab:hover {
            transform: translate(-1px, -1px);
            box-shadow: 2px 2px 0 var(--ink);
        }

        .trending-time-tab.active {
            background: var(--accent);
            color: white;
            border-color: var(--ink);
            box-shadow: 1px 1px 0 var(--ink);
        }

        /* ═══════════════════════════════════════════════════════════
           SOCIAL SPLIT (two-column grid)
        ═══════════════════════════════════════════════════════════ */
        .social-split {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 24px;
            padding: 0;
        }

        .home-community-section .social-split {
            margin-bottom: 0;
        }

        @media (min-width: 768px) {
            .social-split {
                padding: 0 var(--pad-page);
            }

            .home-community-section .social-split {
                padding: 0;
            }
        }

        @media (min-width: 1024px) {
            .social-split {
                display: grid;
                grid-template-columns: 1fr 1fr 1fr;
                gap: 20px;
                margin-bottom: 32px;
            }
        }

        .social-split-panel {
            background: var(--paper);
            border: var(--border-thick) solid var(--ink);
            border-radius: var(--radius-lg);
            padding: 18px;
            box-shadow: var(--shadow);
        }

        .social-split-panel-title {
            font-family: var(--font-serif);
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--ink);
            margin-bottom: 14px;
            letter-spacing: -0.01em;
        }

        .social-split-panel-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }

        .social-split-panel-head .social-split-panel-title {
            margin-bottom: 0;
            flex: 1;
            min-width: 0;
        }

        .social-split-panel-link {
            font-family: var(--font-sans);
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 6px 12px;
            border-radius: var(--radius-pill);
            border: 2px solid var(--ink);
            background: var(--accent);
            color: white;
            cursor: pointer;
            box-shadow: 1px 1px 0 var(--ink);
            text-decoration: none;
            flex-shrink: 0;
            transition: transform 0.12s, box-shadow 0.12s;
        }

        .social-split-panel-link:hover {
            transform: translate(-1px, -1px);
            box-shadow: 2px 2px 0 var(--ink);
        }

        .social-split-skeleton .social-split-panel {
            min-height: 160px;
        }

        .social-split-skeleton .social-split-panel-title,
        .social-split-skeleton .social-split-panel-head {
            margin-bottom: 14px;
        }

        /* Active Room panel */
        .active-room-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
        }

        .active-room-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: var(--border-thick) solid var(--ink);
            flex-shrink: 0;
        }

        .active-room-avatar-placeholder {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--teal);
            border: var(--border-thick) solid var(--ink);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .active-room-avatar-placeholder svg {
            width: 18px;
            height: 18px;
            color: rgba(255,255,255,0.5);
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

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

        .active-room-artist {
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--ink);
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .active-room-meta {
            font-family: var(--font-sans);
            font-size: 0.68rem;
            color: var(--text-muted);
            font-weight: 500;
            line-height: 1.3;
        }

        .active-room-meta .live-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--accent);
            margin-right: 3px;
            vertical-align: middle;
        }

        .active-room-open-btn {
            font-family: var(--font-sans);
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 6px 12px;
            border-radius: var(--radius-pill);
            border: 2px solid var(--ink);
            background: var(--accent);
            color: white;
            cursor: pointer;
            box-shadow: 1px 1px 0 var(--ink);
            text-decoration: none;
            flex-shrink: 0;
            transition: transform 0.12s, box-shadow 0.12s;
        }

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

        .active-room-notes {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 12px;
        }

        .active-room-note {
            padding: 6px 0;
            border-bottom: 1px solid rgba(26, 46, 53, 0.08);
        }

        .active-room-note:last-child {
            border-bottom: none;
        }

        .active-room-note-text {
            font-family: var(--font-sans);
            font-size: 0.78rem;
            color: var(--ink);
            line-height: 1.35;
        }

        .active-room-note-time {
            font-family: var(--font-sans);
            font-size: 0.58rem;
            color: var(--text-muted);
            margin-top: 1px;
        }

        /* ═══════════════════════════════════════════════════════════
           ARTIST BUBBLES (circle avatars)
        ═══════════════════════════════════════════════════════════ */
        .artist-bubbles {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
            justify-content: flex-start;
        }

        .artist-bubbles-skeleton {
            flex-wrap: nowrap;
            overflow: hidden;
        }

        @media (max-width: 767px) {
            .artist-bubbles {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                padding-bottom: 4px;
            }
            .artist-bubbles::-webkit-scrollbar {
                display: none;
            }
        }

        .artist-bubble-skeleton {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: var(--border-thick) solid rgba(26, 46, 53, 0.12);
            flex: 0 0 60px;
        }

        .artist-bubble {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            color: inherit;
            flex-shrink: 0;
            width: 68px;
        }

        .artist-bubble-img-wrap {
            position: relative;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .artist-bubble-img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: var(--border-thick) solid var(--ink);
            display: block;
        }

        .artist-bubble-placeholder {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: var(--teal);
            border: var(--border-thick) solid var(--ink);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .artist-bubble-placeholder svg {
            width: 22px;
            height: 22px;
            color: rgba(255,255,255,0.5);
            stroke: currentColor;
            fill: none;
            stroke-width: 2;
        }

        .artist-bubble-play {
            position: absolute;
            bottom: -3px;
            right: -3px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            border: 2px solid var(--ink);
            background: var(--accent);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            box-shadow: 1px 1px 0 var(--ink);
            z-index: 2;
        }

        .artist-bubble-play svg {
            width: 9px;
            height: 9px;
            fill: white;
            stroke: none;
        }

        .artist-bubble-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            background: var(--accent);
            border: 2px solid var(--paper);
            color: white;
            font-family: var(--font-sans);
            font-size: 0.58rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            z-index: 2;
        }

        .artist-bubble-name {
            font-family: var(--font-sans);
            font-size: 0.65rem;
            font-weight: 600;
            color: var(--ink);
            text-align: center;
            line-height: 1.2;
            width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .artist-bubble:active .artist-bubble-img-wrap {
            transform: scale(0.93);
        }

        /* ═══════════════════════════════════════════════════════════
           MINI CHAT FEED (compact note rows)
        ═══════════════════════════════════════════════════════════ */
        .mini-chat-feed {
            display: flex;
            flex-direction: column;
        }

        .mini-chat-feed-skeleton {
            gap: 10px;
        }

        .mini-chat-item-skeleton {
            height: 14px;
            border-radius: 999px;
        }

        .mini-chat-item-skeleton:nth-child(1) {
            width: 88%;
        }

        .mini-chat-item-skeleton:nth-child(2) {
            width: 76%;
        }

        .mini-chat-item-skeleton:nth-child(3) {
            width: 82%;
        }

        .mini-chat-item {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 8px;
            padding: 7px 0;
            border-bottom: 1px solid rgba(26, 46, 53, 0.08);
            text-decoration: none;
            color: inherit;
        }

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

        .mini-chat-text {
            font-family: var(--font-sans);
            font-size: 0.82rem;
            color: var(--ink);
            line-height: 1.35;
            flex: 1;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .mini-chat-time {
            font-family: var(--font-sans);
            font-size: 0.62rem;
            color: var(--text-muted);
            flex-shrink: 0;
            white-space: nowrap;
        }

        /* ═══════════════════════════════════════════════════════════
           GENRE CHIPS (horizontal pills for Top Overall)
        ═══════════════════════════════════════════════════════════ */
        .genre-chips {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            padding-bottom: 2px;
            margin-bottom: 4px;
        }

        .genre-chips.hero-rail-chips {
            margin-top: 12px;
            margin-bottom: 12px;
            padding-bottom: 4px;
        }

        .genre-chips::-webkit-scrollbar {
            display: none;
        }

        .genre-chip {
            font-family: var(--font-sans);
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 7px 14px;
            border-radius: var(--radius-pill);
            border: 2px solid var(--ink);
            background: var(--paper);
            color: var(--ink);
            cursor: pointer;
            transition: background 0.12s, color 0.12s, transform 0.12s, box-shadow 0.12s;
            box-shadow: 1px 1px 0 var(--ink);
            white-space: nowrap;
            flex-shrink: 0;
        }

        .genre-chip:hover {
            transform: translate(-1px, -1px);
            box-shadow: 2px 2px 0 var(--ink);
        }

        .genre-chip.active {
            background: var(--accent);
            color: white;
            border-color: var(--ink);
            box-shadow: 1px 1px 0 var(--ink);
        }

        .genre-chip .genre-chip-count {
            font-weight: 600;
            opacity: 0.58;
            margin-left: 3px;
            letter-spacing: 0;
            font-size: 0.66rem;
        }
        .genre-chip.active .genre-chip-count {
            opacity: 0.85;
        }

        /* Hide the now-empty Browse-by-genre mount entirely (kept in JS for back-compat). */
        #homeTopGenresMount:empty,
        #homeTopGenresMount[style*="display: none"] {
            display: none !important;
        }

        /* ═══════════════════════════════════════════════════════════
           WATCH BY GENRE
        ═══════════════════════════════════════════════════════════ */
        .home-live-stations-section {
            margin-bottom: 8px;
        }

        .live-stations-scroll {
            padding-top: 8px;
        }

        .station-card {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: var(--border-thick) solid var(--ink-navy);
            border-radius: var(--radius-lg);
            box-shadow: 2px 2px 0 var(--ink-navy);
            scroll-snap-align: start;
            flex: 0 0 232px;
            min-width: 232px;
            aspect-ratio: 4 / 5;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            text-decoration: none;
            color: white;
            display: block;
            background: var(--ink-navy);
        }

        .station-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 4px 4px 0 var(--ink-navy);
        }

        .station-card:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0 var(--ink-navy);
        }

        .station-card::before {
            content: '';
            position: absolute;
            inset: 10px;
            border: 1px solid rgba(255, 255, 255, 0.34);
            border-radius: calc(var(--radius-lg) - 6px);
            pointer-events: none;
            z-index: 2;
        }

        .station-card-thumb {
            position: absolute;
            inset: 0;
            background: var(--ink-navy);
        }

        .station-card-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
            filter: saturate(0.98) contrast(1.04);
        }

        .station-card-gradient {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(
                    180deg,
                    rgba(12, 22, 26, 0.12) 0%,
                    rgba(12, 22, 26, 0.22) 22%,
                    rgba(12, 22, 26, 0.54) 62%,
                    rgba(12, 22, 26, 0.92) 100%
                );
            z-index: 1;
        }

        .station-card-static {
            position: absolute;
            inset: 0;
            background:
                linear-gradient(135deg, rgba(255,255,255,0.08), transparent 38%),
                repeating-linear-gradient(
                    90deg,
                    rgba(255,255,255,0.05) 0,
                    rgba(255,255,255,0.05) 1px,
                    transparent 1px,
                    transparent 13px
                );
            mix-blend-mode: screen;
            opacity: 0.32;
            pointer-events: none;
            z-index: 1;
        }

        .station-card-top {
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            z-index: 3;
        }

        .station-card-live {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 26px;
            padding: 0 10px;
            border-radius: var(--radius-pill);
            border: 1.5px solid var(--ink-navy);
            box-shadow: 1px 1px 0 var(--ink-navy);
            font-family: var(--font-sans);
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .station-card-live {
            gap: 6px;
            background: rgba(254, 252, 246, 0.94);
            color: var(--ink-navy);
        }

        .station-card-live::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #E75641;
            box-shadow: 0 0 0 3px rgba(231, 86, 65, 0.18);
        }

        .station-card--music .station-card-static {
            opacity: 0.18;
        }

        .station-card--music .station-card-gradient {
            background:
                linear-gradient(
                    180deg,
                    rgba(12, 22, 26, 0.08) 0%,
                    rgba(12, 22, 26, 0.18) 22%,
                    rgba(12, 22, 26, 0.48) 62%,
                    rgba(12, 22, 26, 0.88) 100%
                );
        }

        .station-card--music .station-card-live {
            background: rgba(241, 247, 249, 0.95);
        }

        .station-card--music .station-card-live::before {
            background: rgba(26, 46, 53, 0.62);
            box-shadow: 0 0 0 3px rgba(26, 46, 53, 0.12);
        }

        .station-card-info {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 16px 14px 14px;
            z-index: 3;
        }

        .station-card-genre {
            font-family: var(--font-serif);
            font-size: 1.45rem;
            font-weight: 700;
            line-height: 0.96;
            letter-spacing: -0.03em;
            color: white;
            margin-bottom: 12px;
            text-wrap: balance;
        }

        .station-card-now-playing-label {
            font-family: var(--font-sans);
            font-size: 0.56rem;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.74);
        }

        .station-card-artist {
            margin-top: 4px;
            font-family: var(--font-sans);
            font-size: 0.92rem;
            font-weight: 700;
            line-height: 1.18;
            color: white;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .station-card-footer {
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-family: var(--font-sans);
            font-size: 0.62rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.76);
        }

        .station-card-footer span:last-child {
            color: rgba(254, 252, 246, 0.96);
        }

        .station-card-footer--solo {
            justify-content: flex-end;
        }

        .station-card-skeleton {
            pointer-events: none;
            background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(241,229,211,0.96));
        }

        .station-card-skeleton::before {
            border-color: rgba(26, 46, 53, 0.1);
        }

        .station-card-skeleton::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.42) 50%, transparent 70%);
            animation: video-skeleton-shimmer 1.6s ease-in-out infinite;
        }

        .station-card-skeleton-top,
        .station-card-skeleton-bottom {
            position: absolute;
            z-index: 3;
            left: 14px;
            right: 14px;
        }

        .station-card-skeleton-top {
            top: 14px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
        }

        .station-card-skeleton-bottom {
            bottom: 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .station-skeleton-pill,
        .station-skeleton-genre,
        .station-skeleton-label,
        .station-skeleton-artist {
            border-radius: 999px;
        }

        .station-skeleton-pill {
            width: 118px;
            height: 24px;
        }

        .station-skeleton-genre {
            width: 56%;
            height: 30px;
            border-radius: 12px;
        }

        .station-skeleton-label {
            width: 42%;
            height: 12px;
        }

        .station-skeleton-artist {
            width: 70%;
            height: 16px;
        }

        @keyframes video-skeleton-shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        @media (max-width: 767px) {
            .station-card {
                flex-basis: min(232px, 72vw);
                min-width: min(232px, 72vw);
            }

            .station-card-top {
                top: 10px;
                left: 10px;
                right: 10px;
            }

            .station-card-live {
                min-height: 24px;
                padding: 0 9px;
                font-size: 0.56rem;
            }

            .station-card-info {
                padding: 14px 12px 12px;
            }

            .station-card-genre {
                font-size: 1.28rem;
            }

            .station-card-artist {
                font-size: 0.86rem;
            }

            .station-card-footer {
                font-size: 0.58rem;
            }
        }

        /* ═══════════════════════════════════════════════════════════
           HERO + RAIL (Coming to your city)
           A featured-video player + 6 thumbnail tiles. Replaces the
           old "Live Videos" 5-card row. Pulls from /api/radio.
        ═══════════════════════════════════════════════════════════ */
        .home-hero-rail-section {
            margin-bottom: 24px;
        }

        .hero-rail-wrap {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
            gap: 16px;
            margin-top: 12px;
            /* Safari can over-stretch aspect-ratio items in grid rows when
               align-items is stretch, which creates extra vertical space. */
            align-items: start;
        }

        .hero-rail-hero {
            position: relative;
            border: var(--border-thick) solid var(--ink-navy);
            border-radius: var(--radius-lg);
            box-shadow: 3px 3px 0 var(--ink-navy);
            background: var(--ink-navy);
            overflow: hidden;
            aspect-ratio: 16 / 10;
            align-self: start;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }

        .hero-rail-hero:hover {
            transform: translate(-2px, -2px);
            box-shadow: 5px 5px 0 var(--ink-navy);
        }

        .hero-rail-hero-media {
            position: absolute;
            inset: 0;
            background: #000;
        }

        .hero-rail-hero-thumb {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: opacity 0.4s ease;
        }

        .hero-rail-hero-iframe-wrap {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
            /* Scale up to crop YouTube's letterboxing/UI for a fullbleed feel */
            overflow: hidden;
        }

        .hero-rail-hero-iframe-wrap.is-ready {
            opacity: 1;
        }

        .hero-rail-hero-iframe-wrap iframe,
        .hero-rail-hero-iframe-wrap > div {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 178%;
            height: 178%;
            transform: translate(-50%, -50%);
            border: 0;
        }

        .hero-rail-hero-gradient {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.82) 85%, rgba(0, 0, 0, 0.92) 100%);
            pointer-events: none;
        }

        .hero-rail-hero-info {
            position: absolute;
            left: 18px;
            right: 18px;
            bottom: 82px;
            color: #fff;
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
            pointer-events: none;
            z-index: 2;
        }

        .hero-rail-hero-artist {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: 1.7rem;
            line-height: 1.1;
            margin-bottom: 4px;
            letter-spacing: -0.01em;
        }

        .hero-rail-hero-meta {
            font-family: var(--font-ui);
            font-size: 0.92rem;
            opacity: 0.92;
            font-weight: 500;
        }

        .hero-rail-seek {
            position: absolute;
            left: 18px;
            right: 18px;
            bottom: 56px;
            z-index: 3;
            padding: 4px 0;
        }
        .hero-rail-seek-track {
            position: relative;
            width: 100%;
            height: 6px;
            border-radius: 999px;
            background: rgba(255, 255, 245, 0.22);
            overflow: visible;
        }
        .hero-rail-seek-fill {
            position: absolute;
            inset: 0;
            width: 0%;
            border-radius: 999px;
            background: var(--accent);
            pointer-events: none;
            transition: width 0.08s linear;
        }
        .hero-rail-seek-input {
            position: absolute;
            inset: -10px 0;
            width: 100%;
            height: 26px;
            margin: 0;
            padding: 0;
            background: transparent;
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
        }
        .hero-rail-seek-input::-webkit-slider-runnable-track {
            height: 26px;
            background: transparent;
            border: none;
        }
        .hero-rail-seek-input::-moz-range-track {
            height: 26px;
            background: transparent;
            border: none;
        }
        .hero-rail-seek-input::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid var(--ink-navy);
            box-shadow: 1px 1px 0 var(--ink-navy);
            cursor: grab;
            margin-top: 5px;
        }
        .hero-rail-seek-input::-webkit-slider-thumb:active {
            cursor: grabbing;
            transform: scale(1.15);
        }
        .hero-rail-seek-input::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #fff;
            border: 2px solid var(--ink-navy);
            box-shadow: 1px 1px 0 var(--ink-navy);
            cursor: grab;
        }
        .hero-rail-seek-input:focus {
            outline: none;
        }
        .hero-rail-time {
            display: none;
            align-items: center;
            justify-content: space-between;
            margin-top: 6px;
            color: rgba(255, 255, 245, 0.96);
            font-family: var(--font-display);
            font-size: 0.82rem;
            font-weight: 700;
            line-height: 1;
            letter-spacing: -0.01em;
        }
        .hero-rail-controls {
            position: absolute;
            left: 18px;
            right: 18px;
            bottom: 12px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 14px;
            z-index: 3;
        }

        .hero-rail-btn {
            width: 40px;
            height: 40px;
            border-radius: 999px;
            border: 2px solid var(--ink-navy);
            background: rgba(255, 255, 245, 0.94);
            color: var(--ink-navy);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 1px 1px 0 var(--ink-navy);
            transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
            padding: 0;
        }

        .hero-rail-controls--mobile {
            display: none;
        }

        .hero-rail-btn:hover {
            transform: translate(-1px, -1px);
            box-shadow: 2px 2px 0 var(--ink-navy);
            background: #fff;
        }

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

        .hero-rail-btn[disabled] {
            opacity: 0.42;
            cursor: default;
        }

        .hero-rail-btn[disabled]:hover,
        .hero-rail-btn[disabled]:active {
            transform: none;
            box-shadow: 1px 1px 0 var(--ink-navy);
            background: rgba(255, 255, 245, 0.94);
        }

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

        .hero-rail-btn-mute .hero-rail-icon-unmuted { display: none; }
        .hero-rail-btn-mute.is-muted .hero-rail-icon-muted { display: block; }
        .hero-rail-btn-mute.is-muted .hero-rail-icon-unmuted { display: none; }
        .hero-rail-btn-mute:not(.is-muted) .hero-rail-icon-muted { display: none; }
        .hero-rail-btn-mute:not(.is-muted) .hero-rail-icon-unmuted { display: block; }
        .hero-rail-btn-mute:not(.is-muted) {
            background: var(--accent);
            color: #fff;
        }

        .hero-rail-btn-save.is-saved {
            background: var(--accent);
            color: #fff;
        }

        .hero-rail-btn-save.is-saved svg {
            fill: #fff;
        }

        /* Play / pause button — shows pause icon while playing, play icon while paused. */
        .hero-rail-btn-playpause .hero-rail-icon-pause { display: none; }
        .hero-rail-btn-playpause .hero-rail-icon-play { display: none; }
        .hero-rail-btn-playpause.is-playing .hero-rail-icon-pause { display: block; }
        .hero-rail-btn-playpause:not(.is-playing) .hero-rail-icon-play { display: block; }
        .hero-rail-btn-playpause.is-playing {
            background: var(--accent);
            color: #fff;
        }
        .hero-rail-btn-playpause svg {
            width: 16px;
            height: 16px;
        }

        /* Currently-playing tile highlight (when the hero is on the viewed page). */
        .hero-rail-tile.is-playing {
            outline: 3px solid var(--accent);
            outline-offset: 0;
            box-shadow: 3px 3px 0 var(--ink-navy), 0 0 0 2px var(--accent) inset;
        }
        .hero-rail-tile-nowplaying {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 8px;
            font-family: var(--font-ui);
            font-size: 0.58rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            color: #fff;
            background: var(--accent);
            border: 1.5px solid var(--ink-navy);
            border-radius: 999px;
            box-shadow: 1px 1px 0 var(--ink-navy);
            pointer-events: none;
        }
        .hero-rail-tile-nowplaying-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #fff;
            animation: hero-rail-playing-pulse 1.2s ease-in-out infinite;
        }
        @keyframes hero-rail-playing-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50%      { opacity: 0.4; transform: scale(0.75); }
        }

        .hero-rail-right-col {
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-width: 0;
        }

        .hero-rail-page-indicator {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            padding: 2px 2px 0;
        }

        .hero-rail-page-label {
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1.05;
            font-family: var(--font-display);
            color: var(--ink-navy);
            min-width: 48px;
        }
        .hero-rail-page-label [data-hero-rail-page-label] {
            font-weight: 800;
            font-size: 0.95rem;
            letter-spacing: -0.01em;
        }
        .hero-rail-page-caption {
            font-size: 0.56rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .hero-rail-page-btn {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            border: 2px solid var(--ink-navy);
            background: var(--paper);
            color: var(--ink-navy);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 1px 1px 0 var(--ink-navy);
            transition: transform 0.12s ease, box-shadow 0.12s ease;
            padding: 0;
        }
        .hero-rail-page-btn:hover:not([disabled]) {
            transform: translate(-1px, -1px);
            box-shadow: 2px 2px 0 var(--ink-navy);
            background: #fff;
        }
        .hero-rail-page-btn:active:not([disabled]) {
            transform: translate(1px, 1px);
            box-shadow: none;
        }
        .hero-rail-page-btn[disabled] {
            opacity: 0.35;
            cursor: default;
            pointer-events: none;
        }
        .hero-rail-page-btn svg {
            width: 14px;
            height: 14px;
        }

        .hero-rail-tiles {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-auto-rows: 1fr;
            gap: 10px;
            flex: 1 1 auto;
        }

        .hero-rail-tile {
            position: relative;
            border: var(--border-thick) solid var(--ink-navy);
            border-radius: 14px;
            box-shadow: 2px 2px 0 var(--ink-navy);
            background: var(--ink-navy);
            overflow: hidden;
            cursor: pointer;
            aspect-ratio: 16 / 10;
            padding: 0;
            color: #fff;
            font-family: var(--font-ui);
            transition: transform 0.12s ease, box-shadow 0.12s ease;
        }

        .hero-rail-tile:hover {
            transform: translate(-2px, -2px);
            box-shadow: 4px 4px 0 var(--ink-navy);
        }

        .hero-rail-tile:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0 var(--ink-navy);
        }

        .hero-rail-tile-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .hero-rail-tile-gradient {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
            pointer-events: none;
        }

        .hero-rail-tile-info {
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 8px;
            text-align: left;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
        }

        .hero-rail-tile-artist {
            font-weight: 700;
            font-size: 0.82rem;
            line-height: 1.15;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .hero-rail-tile-date {
            font-size: 0.66rem;
            opacity: 0.88;
            margin-top: 2px;
            font-weight: 500;
        }

        .hero-rail-skeleton {
            /* Simple dimmed pulse — no sliding transform. Matches the cream/peach
               palette of the page rather than looking like a dark block dropped in. */
            background: var(--paper);
            border: var(--border-thick) solid var(--ink-navy);
            box-shadow: 2px 2px 0 var(--ink-navy);
            animation: hero-rail-skeleton-pulse 1.4s ease-in-out infinite;
        }
        @keyframes hero-rail-skeleton-pulse {
            0%, 100% { opacity: 0.55; }
            50%      { opacity: 0.85; }
        }

        @media (max-width: 767px) {
            .hero-rail-wrap {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .hero-rail-right-col {
                gap: 0;
            }

            .hero-rail-page-indicator {
                display: none;
            }

            .hero-rail-hero {
                aspect-ratio: 16 / 11;
                box-shadow: 2px 2px 0 var(--ink-navy);
            }

            .hero-rail-hero-artist {
                font-size: 1.32rem;
            }

            .hero-rail-hero-meta {
                font-size: 0.82rem;
            }

            .hero-rail-controls {
                left: 12px;
                right: 12px;
                bottom: 10px;
                gap: 12px;
            }

            .hero-rail-hero-info {
                left: 12px;
                right: 12px;
                bottom: 108px;
            }

            .hero-rail-seek {
                left: 12px;
                right: 12px;
                bottom: 76px;
                padding: 0;
            }

            .hero-rail-time {
                display: flex;
            }

            .hero-rail-controls--desktop {
                display: none;
            }

            .hero-rail-controls--mobile {
                display: flex;
                left: 12px;
                right: 12px;
                bottom: 10px;
                gap: 12px;
            }

            .hero-rail-controls--mobile .hero-rail-btn {
                width: 44px;
                height: 44px;
                min-width: 44px;
                min-height: 44px;
                background: rgba(255, 255, 245, 0.96);
            }

            .hero-rail-controls--mobile .hero-rail-btn svg {
                width: 22px;
                height: 22px;
            }

            .hero-rail-controls--mobile .hero-rail-btn-playpause {
                width: 60px;
                height: 60px;
                min-width: 60px;
                min-height: 60px;
                background: var(--accent);
                color: #fff;
            }

            .hero-rail-controls--mobile .hero-rail-btn-playpause svg {
                width: 30px;
                height: 30px;
            }

            .hero-rail-controls--mobile .hero-rail-btn-playpause:hover,
            .hero-rail-controls--mobile .hero-rail-btn-playpause:active {
                background: var(--accent);
            }

            .hero-rail-btn {
                width: 48px;
                height: 48px;
            }

            .hero-rail-btn svg {
                width: 22px;
                height: 22px;
            }

            .hero-rail-tiles {
                display: flex;
                flex-direction: row;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                gap: 10px;
                padding-bottom: 6px;
                scrollbar-width: none;
            }

            .hero-rail-tiles::-webkit-scrollbar {
                display: none;
            }

            .hero-rail-tile {
                flex: 0 0 46%;
                aspect-ratio: 16 / 10;
                scroll-snap-align: start;
            }
        }

        /* ═══════════════════════════════════════════════════════════
           SIMILAR STRIP ("Similar to [Artist]" recommendations)
           Horizontal carousel of photo cards, refreshes as hero changes.
        ═══════════════════════════════════════════════════════════ */
        .home-similar-strip-section {
            margin-bottom: 24px;
        }

        .similar-strip-scroll {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            padding: 6px 2px 10px;
            scrollbar-width: none;
        }
        .similar-strip-scroll::-webkit-scrollbar { display: none; }

        /* ── Card wrap (positioning container for the tile + overlays) ── */
        .similar-strip-card-wrap {
            position: relative;
            flex: 0 0 180px;
            min-width: 180px;
            scroll-snap-align: start;
        }

        /* The anchor IS the tile — square, image fills it, text overlays the bottom. */
        .similar-strip-card {
            position: relative;
            display: block;
            width: 100%;
            aspect-ratio: 1 / 1;
            border: var(--border-thick) solid var(--ink-navy);
            border-radius: 16px;
            overflow: hidden;
            background: var(--ink-navy);
            box-shadow: 2px 2px 0 var(--ink-navy);
            text-decoration: none;
            color: #fff;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
        }
        .similar-strip-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 4px 4px 0 var(--ink-navy);
        }
        .similar-strip-card:active {
            transform: translate(1px, 1px);
            box-shadow: 1px 1px 0 var(--ink-navy);
        }

        .similar-strip-card-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Dark gradient at the bottom so white text stays readable over any photo. */
        .similar-strip-card-gradient {
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(
                to bottom,
                rgba(0,0,0,0) 38%,
                rgba(0,0,0,0.35) 60%,
                rgba(0,0,0,0.78) 88%,
                rgba(0,0,0,0.92) 100%
            );
        }

        .similar-strip-card-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            font-family: var(--font-ui);
            font-size: 0.58rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            color: #fff;
            background: var(--accent);
            border: 1.5px solid var(--ink-navy);
            border-radius: 999px;
            box-shadow: 1px 1px 0 var(--ink-navy);
            pointer-events: none;
        }

        /* Text block overlaid on the bottom of the card. */
        .similar-strip-card-body {
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 10px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            z-index: 2;
            pointer-events: none;
            text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
        }

        .similar-strip-card-name {
            font-family: var(--font-display);
            font-weight: 800;
            font-size: 0.98rem;
            line-height: 1.15;
            color: #fff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            letter-spacing: -0.01em;
        }

        .similar-strip-card-genre {
            font-size: 0.62rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.72);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .similar-strip-card-meta {
            font-size: 0.72rem;
            color: rgba(255, 255, 255, 0.88);
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Play button — sits over the top-right corner of the tile. */
        .similar-strip-card-play {
            position: absolute;
            top: 8px;
            right: 8px;
            z-index: 3;
            width: 36px;
            height: 36px;
            border-radius: 999px;
            border: 2px solid var(--ink-navy);
            background: var(--accent);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            box-shadow: 1px 1px 0 var(--ink-navy);
            transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, color 0.15s ease;
            opacity: 1;
            transform: translateY(0);
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        /* Invisible padding around the play button so taps near the edge
           still register as the button rather than falling through to the
           card link. Keeps the button visually the same size. */
        .similar-strip-card-play::before {
            content: '';
            position: absolute;
            inset: -10px;
            border-radius: inherit;
        }
        .similar-strip-card-wrap:hover .similar-strip-card-play {
            box-shadow: 2px 2px 0 var(--ink-navy);
            transform: translate(-1px, -1px);
        }
        .similar-strip-card-play:hover {
            background: var(--accent-light, #F28B4C);
            box-shadow: 2px 2px 0 var(--ink-navy);
            transform: translate(-1px, -1px);
        }
        .similar-strip-card-play:active {
            transform: translate(1px, 1px);
            box-shadow: none;
        }
        .similar-strip-card-play svg {
            width: 14px;
            height: 14px;
        }
        .similar-strip-card-play .similar-strip-pause-icon { display: none; }
        .similar-strip-card-play.is-playing {
            background: var(--accent);
            color: #fff;
        }
        .similar-strip-card-play.is-playing .similar-strip-play-icon { display: none; }
        .similar-strip-card-play.is-playing .similar-strip-pause-icon { display: block; }
        .similar-strip-card-play.is-playing::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 999px;
            border: 2px solid var(--accent);
            opacity: 0.5;
            animation: similar-play-pulse 1.4s ease-out infinite;
            pointer-events: none;
        }
        @keyframes similar-play-pulse {
            0%   { transform: scale(0.9); opacity: 0.55; }
            70%  { transform: scale(1.25); opacity: 0; }
            100% { transform: scale(1.25); opacity: 0; }
        }

        /* Skeleton loading state — pulsing dim, no sliding. */
        .similar-strip-card-skeleton .similar-strip-card {
            background: var(--paper);
            animation: hero-rail-skeleton-pulse 1.4s ease-in-out infinite;
            pointer-events: none;
        }

        @media (max-width: 767px) {
            .similar-strip-card-wrap {
                flex: 0 0 150px;
                min-width: 150px;
            }
            .similar-strip-card-name {
                font-size: 0.9rem;
            }
            .similar-strip-card-meta {
                font-size: 0.68rem;
            }
            .similar-strip-card-genre {
                font-size: 0.58rem;
            }
            .similar-strip-card-play {
                top: 7px;
                right: 7px;
                width: 40px;
                height: 40px;
            }
            .similar-strip-card-play svg {
                width: 15px;
                height: 15px;
            }
            /* Wider hit-slop on touch devices so fingertips land reliably. */
            .similar-strip-card-play::before {
                inset: -12px;
            }
        }

        /* ═══════════════════════════════════════════════════════════
           NOTES MODAL
        ═══════════════════════════════════════════════════════════ */
        .notes-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            z-index: 3000;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: all 0.2s ease;
        }

        .notes-modal-overlay.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .notes-modal {
            background: var(--bg-cream);
            border: 2px solid var(--border-dark);
            border-radius: 16px 16px 0 0;
            width: 100%;
            max-width: 500px;
            max-height: 80vh;
            transform: translateY(100%);
            transition: transform 0.2s ease;
            display: flex;
            flex-direction: column;
            padding-bottom: env(safe-area-inset-bottom);
        }

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

        @media (min-width: 768px) {
            .notes-modal-overlay {
                align-items: center;
            }
            .notes-modal {
                border-radius: 16px;
                max-height: 70vh;
            }
        }

        .notes-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            background: var(--teal);
            color: white;
            border-bottom: 2px solid var(--border-dark);
            border-radius: 14px 14px 0 0;
        }

        .notes-modal-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }

        .notes-modal-img {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255,255,255,0.4);
            flex-shrink: 0;
        }

        .notes-modal-title {
            font-family: var(--font-sans);
            font-size: 1rem;
            font-weight: 700;
        }

        .notes-modal-artist {
            font-size: 0.8rem;
            opacity: 0.9;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .notes-modal-close {
            background: rgba(255,255,255,0.2);
            border: none;
            border-radius: 8px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
        }

        .notes-modal-close svg {
            width: 18px;
            height: 18px;
        }

        .notes-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px 20px;
            min-height: 150px;
        }

        .notes-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .note-item {
            background: white;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            padding: 12px;
        }

        .note-text {
            font-size: 0.9rem;
            color: var(--text-dark);
            line-height: 1.4;
            margin-bottom: 8px;
        }

        .note-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        .note-felt {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            color: var(--text-muted);
        }

        .note-felt.active {
            color: var(--orange);
        }

        .notes-empty {
            text-align: center;
            padding: 24px;
            color: var(--text-muted);
        }

        .notes-loading {
            text-align: center;
            padding: 24px;
            color: var(--text-muted);
        }

        .notes-modal-input {
            display: flex;
            gap: 10px;
            padding: 16px 20px;
            border-top: 2px solid var(--bg-warm);
            background: var(--bg-warm);
        }

        .notes-modal-input input {
            flex: 1;
            padding: 12px 16px;
            background: white;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            font-family: var(--font-sans);
            font-size: 0.9rem;
            outline: none;
        }

        .notes-modal-input input:focus {
            border-color: var(--teal);
        }

        .notes-modal-send {
            padding: 12px 20px;
            background: var(--orange);
            color: white;
            border: 2px solid var(--border-dark);
            border-radius: 10px;
            font-family: var(--font-sans);
            font-size: 0.85rem;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.15s;
        }

        .notes-modal-send:hover {
            background: var(--orange-light);
        }

        .notes-modal-send:disabled {
            background: var(--text-muted);
            cursor: not-allowed;
        }

        /* ═══════════════════════════════════════════════════════════
           ARTIST CARD
        ═══════════════════════════════════════════════════════════ */
        .artist-card {
            flex: 0 0 130px;
            min-width: 130px;
            background: var(--surface-cream);
            border: 2px solid var(--ink-navy);
            border-radius: var(--radius-lg);
            padding: 0;
            box-shadow: 2px 2px 0 var(--ink-navy);
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s;
            text-align: center;
            scroll-snap-align: start;
            text-decoration: none;
            color: inherit;
            display: block;
            position: relative;
            overflow: visible;
        }

        .artist-card-inner {
            padding: var(--pad-card);
        }

        .artist-card:hover {
            transform: translate(-2px, -2px);
            box-shadow: 4px 4px 0 var(--ink-navy);
        }

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

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

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

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

        .artist-card.featured {
            flex: 0 0 130px;
            min-width: 130px;
        }

        .artist-card.featured .artist-card-inner {
            padding: var(--pad-card);
        }

        .artist-card.featured .artist-card-img-wrap {
            width: 56px;
            height: 56px;
        }

        .artist-card.featured .artist-card-img {
            width: 56px;
            height: 56px;
        }

        .artist-card.featured .artist-card-name {
            font-size: 0.72rem;
        }

        .artist-card-rank {
            position: absolute;
            top: 6px;
            left: 6px;
            width: 22px;
            height: 22px;
            background: var(--surface-cream);
            border: 2px solid var(--ink-navy);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: var(--font-sans);
            font-size: 0.6rem;
            font-weight: 700;
            color: var(--ink-navy);
            z-index: 3;
            box-shadow: 1px 1px 0 var(--ink-navy);
        }

        .artist-card.featured .artist-card-rank {
            width: 24px;
            height: 24px;
            font-size: 0.65rem;
        }

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

        .artist-card-img {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--ink-navy);
            display: block;
            background: var(--bg-warm);
        }

        .artist-card-img-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(29, 43, 67, 0.6);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 230, 214, 0.95));
        }

        .artist-card-img-placeholder svg {
            width: 24px;
            height: 24px;
        }

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

        .artist-card-play {
            width: 26px;
            height: 26px;
            background: var(--orange);
            border: 2px solid var(--ink-navy);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.12s ease;
            padding: 0;
            box-shadow: 2px 2px 0 var(--ink-navy);
        }

        .artist-card-play:hover {
            transform: translate(-1px, -1px);
        }

        .artist-card-play svg {
            width: 10px;
            height: 10px;
            fill: white;
            margin-left: 2px;
        }

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

        .artist-card-play.disabled {
            background: var(--text-muted);
            opacity: 0.5;
            cursor: default;
        }

        .artist-card-play.disabled:hover {
            transform: none;
        }

        .artist-card-play.no-preview {
            opacity: 1;
            cursor: pointer;
        }

        .artist-card-play.loading {
            cursor: wait;
            opacity: 0.8;
        }

        .artist-card-play.loading .spin {
            animation: spin 0.8s linear infinite;
        }

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

        .artist-card-comment {
            display: none;
        }

        /* hover popup styles are inline via JS speech bubble IIFE */

        .artist-card-name {
            font-family: var(--font-sans);
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--ink-navy);
            line-height: 1.2;
            margin-bottom: 3px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            position: relative;
            z-index: 1;
        }

        .artist-card-badges {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            flex-wrap: wrap;
            margin-bottom: 2px;
        }

        .artist-card-genre {
            display: inline-block;
            font-size: 0.5rem;
            font-weight: 600;
            color: var(--ink-navy);
            background: rgba(61,107,125,0.12);
            padding: 3px 8px;
            border-radius: 50px;
            border: 1px solid var(--ink-navy);
        }

        .artist-card-from {
            font-family: var(--font-serif);
            font-size: 0.55rem;
            line-height: 1.2;
            color: var(--text-muted);
            font-style: italic;
            margin: 1px 0 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
            position: relative;
            z-index: 1;
        }

        .artist-card-event {
            font-size: 0.55rem;
            line-height: 1.25;
            position: relative;
            z-index: 1;
        }

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

        .artist-card-event-venue {
            font-weight: 600;
            color: var(--ink-navy);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-top: 1px;
        }

        .artist-card-event-city {
            color: var(--text-muted);
            font-weight: 400;
            font-size: 0.5rem;
        }

        .artist-card-growth {
            position: absolute;
            top: 6px;
            left: 6px;
            background: var(--accent2);
            color: white;
            padding: 2px 7px;
            border-radius: 50px;
            border: 2px solid var(--ink-navy);
            font-family: var(--font-sans);
            font-size: 0.55rem;
            font-weight: 700;
            z-index: 3;
            box-shadow: 1px 1px 0 var(--ink-navy);
            white-space: nowrap;
        }

        .artist-card-near-badge {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            background: var(--orange);
            color: white;
            padding: 3px 8px;
            border-radius: 50px;
            border: 1px solid var(--ink-navy);
            font-size: 0.5rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            box-shadow: 1px 1px 0 var(--ink-navy);
        }

        .artist-card.skeleton {
            pointer-events: none;
        }

        .artist-card.skeleton .artist-card-inner {
            border-color: var(--bg-warm);
        }

        .artist-card.skeleton .artist-card-img,
        .artist-card.skeleton .artist-card-name,
        .artist-card.skeleton .artist-card-genre,
        .artist-card.skeleton .artist-card-event {
            background: var(--bg-warm);
            color: transparent;
            border-radius: 4px;
            border-color: var(--bg-warm);
        }

        .artist-card.skeleton .artist-card-img {
            border-color: var(--bg-warm);
            box-shadow: none;
        }

        .artist-card.skeleton .artist-card-play,
        .artist-card.skeleton .artist-card-rank {
            display: none;
        }

        /* Empty state for section */
        .carousel-empty {
            padding: 32px 16px;
            text-align: center;
            color: rgba(255,255,255,0.9);
            font-size: 0.95rem;
        }

        /* Bottom nav + city picker styles from design-system.css */

        /* ═══════════════════════════════════════════════════════════
           AUDIO PLAYER (hidden)
        ═══════════════════════════════════════════════════════════ */
        #audioPlayer {
            display: none;
        }

        /* ═══════════════════════════════════════════════════════════
           DESKTOP STYLES
        ═══════════════════════════════════════════════════════════ */
        @media (min-width: 768px) {
            .artist-card,
            .artist-card.featured {
                flex: 0 0 180px;
                min-width: 180px;
            }

            .artist-card-img-wrap,
            .artist-card.featured .artist-card-img-wrap {
                width: 72px;
                height: 72px;
            }

            .artist-card-img,
            .artist-card.featured .artist-card-img {
                width: 72px;
                height: 72px;
            }

            .artist-card-rank,
            .artist-card.featured .artist-card-rank {
                width: 26px;
                height: 26px;
                font-size: 0.65rem;
            }

            .artist-card-name,
            .artist-card.featured .artist-card-name {
                font-size: 0.85rem;
            }

            .carousel-title {
                font-size: 1.6rem;
            }
        }

        @media (min-width: 1024px) {
            .artist-card,
            .artist-card.featured {
                flex: 0 0 210px;
                min-width: 210px;
            }

            .artist-card-img-wrap,
            .artist-card.featured .artist-card-img-wrap {
                width: 88px;
                height: 88px;
            }

            .artist-card-img,
            .artist-card.featured .artist-card-img {
                width: 88px;
                height: 88px;
            }

            .artist-card-rank,
            .artist-card.featured .artist-card-rank {
                width: 28px;
                height: 28px;
                font-size: 0.7rem;
            }

            .artist-card-name,
            .artist-card.featured .artist-card-name {
                font-size: 0.92rem;
            }

            .artist-card-event {
                font-size: 0.65rem;
            }

            .carousel-title {
                font-size: 1.7rem;
            }
        }

        /* Mobile: uniform artist card size, 1-2 visible */
        @media (max-width: 767px) {
            .artist-card,
            .artist-card.featured {
                flex: 0 0 130px;
                min-width: 130px;
            }

            .carousel-title {
                font-size: 1.25rem;
            }
        }

        @media (max-width: 767px) {
            .site-header .site-header-inner {
                display: grid !important;
                grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
                grid-template-areas:
                    "location actions"
                    "search search";
                gap: 8px;
                align-items: center;
                flex-wrap: nowrap !important;
            }

            .site-header .city-dropdown-btn {
                grid-area: location;
                width: 100%;
                min-width: 0;
                padding: 8px 10px;
                gap: 6px;
            }

            .site-header .city-dropdown-btn .city-name {
                min-width: 0;
                max-width: clamp(92px, 44vw, 142px);
            }

            .site-header .header-mobile-actions {
                grid-area: actions;
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                width: 100%;
                min-width: 0;
                gap: 6px;
            }

            .site-header .header-action-btn {
                width: 100%;
                min-width: 0;
                justify-content: center;
                padding: 8px 9px;
                gap: 4px;
                font-size: 0.72rem;
                white-space: nowrap;
            }

            .site-header .header-action-btn svg {
                width: 14px;
                height: 14px;
            }

            .site-header .header-search {
                display: block;
                grid-area: search;
                width: 100%;
                max-width: none;
                min-width: 0;
            }
        }

        /* hover popup styles are inline via JS */

        /* ═══════════════════════════════════════════════════════════
           MOBILE iOS REFINEMENTS
           Readability + touch comfort for iPhone screens.
           Scoped to max-width: 767px. Desktop untouched.
        ═══════════════════════════════════════════════════════════ */
        @media (max-width: 767px) {

            /* ─── 1. HEADER CONTROLS ─── */
            .site-header {
                border-bottom: 0.5px solid rgba(26, 46, 53, 0.15);
                padding-bottom: 10px;
            }

            .site-header .site-header-inner {
                gap: 10px;
            }

            /* 5. Slightly larger controls with 44px tap targets */
            .site-header .city-dropdown-btn {
                min-height: 44px;
                padding: 10px 14px;
                font-size: 0.88rem;
            }

            .site-header .header-action-btn {
                min-height: 44px;
                padding: 10px 12px;
                font-size: 0.8rem;
                gap: 5px;
            }

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

            /* 7. Search bar — slightly reduced height, iOS-native feel */
            .site-header .header-search input {
                min-height: 42px;
                padding: 10px 16px 10px 40px;
                font-size: 1rem;
            }

            .site-header .header-search-icon {
                left: 13px;
                width: 17px;
                height: 17px;
            }

            /* ─── 9. VERTICAL RHYTHM ─── */
            .home-content {
                padding-top: 2px;
                padding-bottom: 36px;
            }
            .site-header {
                padding-bottom: 8px;
                border-bottom: none;
            }

            /* Section spacing — consistent 32px between sections */
            .carousel-section {
                margin-bottom: 32px;
            }

            .carousel-header {
                padding-bottom: 10px;
            }

            /* ─── 4. SECTION TITLES (~26–28px) ─── */
            .carousel-title {
                font-size: 1.625rem;
                line-height: 1.15;
            }

            .carousel-subtitle {
                font-size: 0.78rem;
                margin-top: 2px;
            }

            .carousel-see-all {
                min-height: 34px;
                padding: 7px 13px;
                font-size: 0.7rem;
            }

            /* ─── 3. CAROUSEL LAYOUT — Apple Music discovery rows ─── */
            .carousel-scroll {
                gap: 14px;
                padding: 8px 20px 12px 0;
                scroll-snap-type: x proximity;
                scroll-padding-left: 12px;
            }

            /* Card width ≈ 72% viewport, peek of next card visible */
            .artist-card,
            .artist-card.featured {
                flex: 0 0 min(72vw, 280px);
                min-width: min(72vw, 280px);
                text-align: left;
                border-radius: 14px;
                border-width: 1px;
                box-shadow: 1px 1px 0 var(--ink-navy);
            }

            .artist-card-inner {
                padding: 12px 12px 14px;
            }

            /* Hide rank badge — matches desktop medium layout */
            .artist-card-rank,
            .artist-card.featured .artist-card-rank {
                display: none;
            }

            /* Full-width rectangular image */
            .artist-card-img-wrap,
            .artist-card.featured .artist-card-img-wrap {
                width: 100%;
                height: auto;
                aspect-ratio: 1;
                margin: 0 0 10px;
            }

            .artist-card-img,
            .artist-card.featured .artist-card-img {
                width: 100%;
                height: 100%;
                border-radius: 10px;
                border-width: 1px;
            }

            /* ─── 6. PLAY BUTTON — floating with soft shadow ─── */
            .artist-card-actions {
                left: 10px;
                bottom: 10px;
                transform: none;
            }

            .artist-card-play {
                width: 48px;
                height: 48px;
                border-width: 1.5px;
                box-shadow: 0 2px 8px rgba(26, 46, 53, 0.3), 1px 1px 0 var(--ink-navy);
            }

            .artist-card-play svg {
                width: 18px;
                height: 18px;
            }

            /* ─── CARD TYPOGRAPHY — left-aligned ─── */
            .artist-card-name,
            .artist-card.featured .artist-card-name {
                text-align: left;
                font-size: 1.15rem;
                margin-bottom: 5px;
                line-height: 1.2;
                -webkit-line-clamp: 1;
                line-clamp: 1;
            }

            /* ─── 8. PILL HIERARCHY — genre primary, near-you secondary ─── */
            .artist-card-badges {
                justify-content: flex-start;
                margin-bottom: 5px;
                gap: 4px;
            }

            /* Genre — primary tag */
            .artist-card-genre {
                font-size: 0.78rem;
                padding: 3px 9px;
            }

            /* Event info — left-aligned */
            .artist-card-event {
                text-align: left;
                font-size: 0.85rem;
                line-height: 1.4;
                display: flex;
                flex-direction: column;
                gap: 2px;
            }

            .artist-card-event-date {
                font-size: 0.88rem;
            }

            .artist-card-event-venue {
                display: none;
            }

            .artist-card-event-city {
                font-size: 0.78rem;
                margin-top: 0;
            }

            .artist-card-from {
                font-size: 0.78rem;
                margin: 2px 0 6px;
            }

            /* Near-you — secondary tag, smaller than genre */
            .artist-card-near-badge {
                font-size: 0.68rem;
                padding: 2px 7px;
                box-shadow: none;
            }

            /* ─── COMMENT CARDS ─── */
            .comment-card {
                flex: 0 0 min(72vw, 280px);
                min-width: min(72vw, 280px);
                padding: 14px 12px 12px;
                border-radius: 14px;
                border-width: 1px;
                box-shadow: 1px 1px 0 var(--ink-navy);
                gap: 10px;
            }

            .comment-card-img-ring,
            .comment-card-artist-img {
                width: 68px;
                height: 68px;
            }

            .comment-card-play-btn {
                width: 60px;
                height: 60px;
                box-shadow: 0 2px 6px rgba(26, 46, 53, 0.25), 1px 1px 0 var(--ink-navy);
            }

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

            .comment-card-artist-name {
                font-size: 0.95rem;
            }

            .comment-card-text {
                font-size: 0.88rem;
            }

            .comment-card-meta {
                font-size: 0.78rem;
            }

            /* Keep social bubble play buttons compact on small avatars */
            .artist-bubble-play.artist-card-play {
                width: 34px;
                height: 34px;
                right: -2px;
                bottom: -2px;
                border-width: 1.5px;
                box-shadow: 0 2px 6px rgba(26, 46, 53, 0.22), 1px 1px 0 var(--ink-navy);
            }

            .artist-bubble-play.artist-card-play svg {
                width: 13px;
                height: 13px;
                margin-left: 1px;
            }

            .artist-bubble-play.artist-card-play.playing svg {
                margin-left: 0;
            }
        }

/* ─── Spotify playlist mobile card ─── */
.home-playlist-mobile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--paper);
    border: var(--border) solid var(--ink);
    border-radius: var(--radius, 20px);
    box-shadow: 3px 3px 0 var(--ink);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.home-playlist-mobile-card:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.home-playlist-mobile-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    fill: #1DB954;
}

.home-playlist-mobile-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.home-playlist-mobile-card-title {
    font-family: var(--font-ui, Fraunces, serif);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-playlist-mobile-card-sub {
    font-family: var(--font-ui, Fraunces, serif);
    font-size: 0.8rem;
    opacity: 0.55;
}

.home-playlist-mobile-card-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.4;
}
