.back-link { display: inline-block; color: var(--home-muted); font-size: 14px; margin-top: 16px; }
.back-link:hover { color: var(--home-accent); }
.city-page .site-nav { padding-top: 16px; padding-bottom: 16px; }
.city-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px 0 16px; }
.city-heading h1 { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -1px; margin: 0 0 6px; overflow-wrap: anywhere; }
.city-location { color: var(--home-muted); font-size: 14px; margin: 0; }
.spotify-connect { font-size: 14px; color: var(--home-muted); text-align: right; flex: none; }
.spotify-connect a { display: inline-block; text-decoration: underline; text-underline-offset: 4px; }
.spotify-connect .connect-link { color: var(--home-accent); font-weight: 600; }
.connected-label { display: block; margin-bottom: 4px; }
.text-button { background: none; border: 0; color: var(--home-accent); font-size: 14px; padding: 8px 0; min-height: 36px; }
.concert-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--home-muted); margin: 0 0 12px; }
.concert-status[data-state="error"] { border: 1px solid var(--home-line); border-radius: 7px; padding: 8px 12px; color: var(--home-ink); background: var(--home-surface); }
.venue-filter { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.city-toggles { display: flex; flex: 1; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px 0; }
.city-toggles button { flex: none; min-height: 36px; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--home-line); background: transparent; color: var(--home-muted); font-size: 14px; }
.city-toggles button span { font-size: 12px; margin-left: 6px; opacity: .8; }
.city-toggles button[aria-pressed="true"] { background: var(--home-surface); color: var(--home-ink); border-color: var(--home-line); }
.city-toggles button:hover { background: var(--home-hover); }
.city-toggles button[aria-pressed="false"] { opacity: .65; }
.venue-filter > .text-button { color: var(--home-muted); white-space: nowrap; font-size: 13px; }
.filters-button { flex: none; font: inherit; font-size: 14px; min-height: 38px; padding: 8px 14px; background: transparent; color: var(--home-ink); border: 1px solid var(--home-line); border-radius: 8px; cursor: pointer; }
.filters-button:hover { background: var(--home-hover); }
.filter-dialog { box-sizing: border-box; width: min(520px, calc(100% - 32px)); max-height: 85dvh; padding: 0; border: 1px solid var(--home-line); border-radius: 14px; background: var(--home-bg); color: var(--home-ink); }
.filter-dialog::backdrop { background: rgba(0,0,0,.65); }
.filter-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--home-line); }
.filter-dialog-header h2 { font-size: 20px; margin: 0; }
.filter-close { font: inherit; font-size: 22px; background: transparent; color: var(--home-ink); border: 0; padding: 4px 10px; border-radius: 7px; cursor: pointer; }
.filter-close:hover { background: var(--home-hover); }
.filter-dialog-fields { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.filter-dialog-fields label { font-size: 15px; font-weight: 600; }
.filter-dialog-fields select, .radius-fallback select { font: inherit; font-size: 15px; border: 1px solid var(--home-line); color: var(--home-ink); background: var(--home-surface); border-radius: 8px; padding: 10px 12px; }
.filter-dialog-footer { display: flex; justify-content: flex-end; border-top: 1px solid var(--home-line); padding: 16px 24px; }
.radius-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.venue-filter { margin-bottom: 14px; }
.date-group { margin-bottom: 18px; }
.date-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--home-line); }
.date-header h3 { font-size: 18px; font-weight: 600; margin: 0; }
.date-count { font-size: 13px; color: var(--home-muted); }
.date-body { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 16px; align-items: start; padding-top: 8px; }
.events-list { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.event-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 11px 13px; background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 7px; }
.event-card.now-playing { border-color: var(--home-accent); background: var(--home-active); }
.event-name { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.event-artists { color: var(--home-accent); font-size: 14px; line-height: 1.4; margin: 3px 0 0; overflow-wrap: anywhere; }
.event-detail { color: var(--home-muted); font-size: 14px; line-height: 1.5; margin: 4px 0 0; overflow-wrap: anywhere; }
.event-time { color: var(--home-ink); }
.event-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.event-price { color: var(--home-muted); font-size: 14px; }
.ticket-link { display: inline-flex; min-height: 36px; align-items: center; padding: 5px 9px; font-size: 14px; font-weight: 600; border: 1px solid var(--home-line); border-radius: 5px; color: var(--home-accent); white-space: nowrap; }
.ticket-link:hover { background: var(--home-hover); border-color: var(--home-accent); }
.track-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.track-badge { font-size: 12px; background: var(--home-active); color: var(--home-accent); border-radius: 4px; padding: 2px 5px; margin-top: 4px; }
.playlist-panel { border: 1px solid var(--home-line); border-radius: 7px; overflow: hidden; min-width: 0; }
.playlist-panel summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; font-size: 14px; min-height: 38px; list-style: none; }
.playlist-panel summary::-webkit-details-marker { display: none; }
.playlist-panel summary:focus-visible { outline: 3px solid var(--home-accent); outline-offset: -4px; }
.playlist-icon { color: var(--home-accent); margin-right: 6px; font-size: 17px; }
.playlist-status { color: var(--home-muted); font-size: 12px; }
.playlist-status::after { content: ' +'; color: var(--home-accent); font-size: 16px; }
.playlist-panel[open] .playlist-status::after { content: ' −'; }
.playlist-content { padding: 0 10px 10px; }
.playlist-note { color: var(--home-muted); font-size: 12px; line-height: 1.4; margin: 0 0 6px; }
/* Match Spotify's 12px corners so its white iframe canvas stays clipped. */
.playlist-player iframe { width: 100%; border: 0; border-radius: 12px; background: var(--home-bg); display: block; }
.playlist-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 13px; }
.playlist-actions a { color: var(--home-accent); text-decoration: underline; text-underline-offset: 3px; }
.action-button { background: var(--home-accent); color: var(--home-on-accent); border: 0; border-radius: 5px; min-height: 36px; padding: 7px 11px; font-weight: 600; font-size: 14px; }
.action-button:disabled { opacity: .6; cursor: default; }
.playlist-error { color: var(--home-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.empty-state { padding: 24px 16px; text-align: center; border: 1px dashed var(--home-line); border-radius: 7px; margin: 16px 0; }
.empty-state h3 { font-size: 20px; font-weight: 550; margin: 0 0 8px; }
.empty-state p, .no-js-note { font-size: 14px; color: var(--home-muted); line-height: 1.5; }
.loading-concerts { display: grid; gap: 6px; }
.loading-concerts div { border-radius: 7px; height: 70px; background: var(--home-surface); border: 1px solid var(--home-line); }
.city-page .footer { padding-top: 20px; margin-top: 20px; }
@media (max-width: 900px) {
    .date-body { grid-template-columns: minmax(0,1fr); gap: 8px; }
}
@media (max-width: 700px) {
    .city-page .site-nav { padding-top: 12px; padding-bottom: 12px; }
    .city-heading { flex-wrap: wrap; gap: 10px; padding-bottom: 12px; }
    .city-heading h1 { font-size: 30px; }
    .spotify-connect { display: flex; gap: 10px; text-align: left; font-size: 13px; }
    .connected-label { margin: 0; }
    .venue-filter { align-items: start; gap: 8px; }
    .venue-filter > .text-button { white-space: nowrap; }
    .city-toggles button { flex: none; min-height: 40px; padding: 6px 9px; }
    .date-header h3 { font-size: 17px; }
    .event-card { grid-template-columns: minmax(0,1fr); gap: 6px; padding: 10px 12px; }
    .event-name { font-size: 18px; }
    .event-actions { flex-direction: row; justify-content: space-between; align-items: center; }
    .ticket-link, .text-button, .action-button { min-height: 40px; }
    .playlist-panel summary { min-height: 44px; }
}
.place-content { padding: 36px 0 12px; }
.place-content h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 550; letter-spacing: -1px; margin: 30px 0; overflow-wrap: anywhere; }
.place-content .message { color: var(--home-muted); font-size: 14px; line-height: 1.7; max-width: 680px; }
.place-content .place-list { padding: 0; margin-top: 24px; }

.day-picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.day-picker input { font: inherit; padding: 10px; min-height: 44px; box-sizing: border-box; color: var(--home-ink); background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 7px; }
.day-picker .action-button { min-height: 44px; }
.day-picker .action-button { background: transparent; color: #b8b8b8; border: 1px solid #555; font-weight: 500; }
[data-theme="light"] .day-picker .action-button { color: #555; border-color: #aaa; }
.day-picker .action-button:hover { border-color: var(--home-muted); }
.day-picker .action-button:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }
.day-picker a { color: var(--home-accent); font-size: 14px; }
.selected-night { color: var(--home-muted); }
.date-header { flex-wrap: wrap; }
.date-meta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.night-share { position: relative; font-size: 12px; }
.night-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--home-muted); font-size: 12px; text-decoration: none; }
.night-link:hover { color: var(--home-ink); text-decoration: underline; }
.night-link:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }
.share-dialog { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); }
.share-dialog-fields { padding: 20px 24px; }
.share-dialog-fields > p:first-child { margin-top: 0; }
.share-dialog-fields > p, .share-dialog-fields > label { color: var(--home-muted); font-size: 14px; }
.share-link-row { display: flex; gap: 8px; margin-top: 8px; }
.share-link-row input { min-width: 0; flex: 1; box-sizing: border-box; padding: 10px; font: inherit; font-size: 14px; color: var(--home-ink); background: var(--home-bg); border: 1px solid var(--home-line); border-radius: 5px; }
.share-copy { min-height: 44px; padding: 8px 16px; border: 1px solid var(--home-line); border-radius: 5px; background: var(--home-surface); color: var(--home-ink); font: inherit; cursor: pointer; }
.share-copy:hover { border-color: var(--home-muted); }
.share-copy:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 3px; }
.share-dialog .share-feedback { min-height: 20px; font-size: 13px; margin-bottom: 0; overflow-wrap: anywhere; }

.now-playing-label { visibility: hidden; display: inline-block; margin-top: 5px; color: var(--home-accent); font-size: 12px; font-weight: 600; }
.now-playing .now-playing-label { visibility: visible; }

@media (max-width: 900px) {
    .has-playing-playlist { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
    .playlist-player.is-playing { min-height: 152px; }
    .playlist-player.is-playing iframe {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 12px;
        width: calc(100% - 24px);
        height: 152px;
        z-index: 20;
        box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
    }
}
