:root {
    --bg-color: #0a0b0d;
    --card-bg: rgba(20, 22, 26, 0.85);
    --card-border: rgba(255, 255, 255, 0.06);
    --accent-crimson: #ff2e2e;
    --accent-hover: #e02020;
    --accent-glow: rgba(255, 46, 46, 0.25);
    --text-bright: #ffffff;
    --text-medium: #c5cbd3;
    --text-muted: #6f7682;
    --font-header: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(10, 11, 13, 0.7), rgba(10, 11, 13, 0.8)), url('../assets/backstage_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-medium);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-bottom: 5rem;
}

/* Core Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 3rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent-crimson);
}

.btn-back {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: var(--text-bright);
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.controls-group {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.header-market-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Action Button */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--accent-crimson);
    color: var(--accent-crimson);
    padding: 0.65rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-action:hover {
    background: var(--accent-crimson);
    color: var(--text-bright);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Universal Custom Dark Select & Option Styling */
select, 
.filter-select {
    background: #14161a !important;
    border: 1px solid var(--card-border) !important;
    color: var(--text-bright) !important;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:hover, 
select:focus,
.filter-select:hover,
.filter-select:focus {
    border-color: rgba(255, 46, 46, 0.45) !important;
    box-shadow: 0 0 12px rgba(255, 46, 46, 0.18) !important;
}

select option, 
.filter-select option {
    background-color: #14161a !important;
    color: #ffffff !important;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
}

/* Page Intro */
.intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro h1 {
    font-family: var(--font-header);
    font-size: 4rem;
    color: var(--text-bright);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.intro-title-main {
    display: block;
}

.intro-title-region {
    display: block;
    margin-top: 0.25rem;
    font-size: 2.1rem;
    letter-spacing: 0.06em;
    color: var(--text-medium);
}

.intro p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.header-market-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.header-market-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-market-link:hover {
    color: var(--text-bright);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.header-market-link.active {
    color: #ffd2d2;
    border-color: rgba(255, 46, 46, 0.45);
    background: rgba(255, 46, 46, 0.16);
    box-shadow: 0 0 14px rgba(255, 46, 46, 0.2);
}

/* Sticky Controls Container */
.sticky-controls-wrapper {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(13, 14, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.75rem 1.25rem 0.5rem 1.25rem !important;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    box-sizing: border-box;
}

.filter-actions-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    width: auto !important;
    flex: 0 0 auto !important;
    margin-left: auto;
}

.btn-premium-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 30px;
    padding: 0.3rem 0.6rem !important;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap !important;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    outline: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: all 0.25s ease;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
}

.btn-premium-filter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.22) 48%, transparent 82%);
    transform: translateX(-130%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-premium-filter:hover::before {
    transform: translateX(130%);
}

.btn-premium-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-premium-filter-label {
    display: inline-block;
    line-height: 1.15;
}

.btn-premium-filter--primary {
    color: var(--text-bright);
    background: linear-gradient(135deg, #ff5b66 0%, #e11d48 46%, #9f1239 100%);
    border: 1px solid rgba(255, 130, 150, 0.55);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.btn-premium-filter--primary .btn-premium-filter-icon {
    background: rgba(255, 255, 255, 0.16);
}

.btn-premium-filter--primary:hover {
    background: linear-gradient(135deg, #ff6a72 0%, #f43f5e 44%, #be123c 100%);
    border-color: rgba(255, 163, 178, 0.72);
    box-shadow: 0 9px 22px rgba(225, 29, 72, 0.42), 0 0 18px rgba(225, 29, 72, 0.3);
    transform: translateY(-2px);
}

.btn-premium-filter--primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(225, 29, 72, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-premium-filter--primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 120, 150, 0.32), 0 8px 20px rgba(225, 29, 72, 0.4);
}

.btn-premium-filter--secondary {
    color: #f8fafc;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn-premium-filter--secondary .btn-premium-filter-icon {
    background: rgba(255, 255, 255, 0.08);
}

.btn-premium-filter--secondary:hover {
    color: var(--text-bright);
    border-color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.09) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34), 0 0 14px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-premium-filter--secondary.is-active {
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.16) 100%);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15), 0 8px 20px rgba(217, 119, 6, 0.24);
}

.btn-premium-filter--secondary.is-active .btn-premium-filter-icon {
    background: rgba(245, 158, 11, 0.24);
}

.btn-premium-filter--secondary:active {
    transform: translateY(0);
}

.btn-premium-filter--secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 8px 20px rgba(0, 0, 0, 0.34);
}

.feature-modal-content {
    background: #14161a;
    border: 1px solid var(--card-border);
    max-width: 620px;
    width: min(92vw, 620px);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88);
    position: relative;
    overflow: hidden;
}

.feature-modal-content::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #ffb45c, #ef4444, #22d3ee);
}

.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    outline: none;
}

.modal-close-button:hover {
    color: var(--text-bright);
}

.sync-overlay-title {
    margin-top: 1.5rem;
    font-family: var(--font-header);
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sync-overlay-subtitle {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.sync-close-button {
    margin-top: 1.5rem;
    display: none;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.modal-card {
    background: #14161a;
    border: 1px solid var(--card-border);
    width: 90%;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    position: relative;
}

.modal-card-venue {
    max-width: 440px;
}

.modal-card-email {
    max-width: 460px;
}

.modal-card-contact {
    max-width: 480px;
}

.modal-card-setlist {
    width: min(96vw, 1120px);
    max-width: 1120px;
    overflow-x: hidden;
}

.modal-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    color: var(--text-bright);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--accent-crimson);
    padding-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.modal-title-venue {
    font-size: 2rem;
}

.modal-title-setlist {
    font-size: 2.4rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-title-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.modal-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.modal-field {
    margin-bottom: 1.25rem;
}

.modal-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.modal-field-value {
    color: var(--text-bright);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-actions-right {
    justify-content: flex-end;
}

.modal-actions-spacious {
    margin-top: 2rem;
}

.btn-tickets-compact {
    margin-top: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
}

#venue-modal-maps.btn-tickets-compact {
    padding: 0.55rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-tickets-highlight {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit-contact {
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}

.modal-privacy-notice {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.modal-privacy-icon {
    font-size: 1rem;
    line-height: 1;
}

.modal-privacy-heading {
    color: #ffd6d6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    font-family: var(--font-header);
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.modal-alert {
    display: none;
    padding: 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.modal-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.modal-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.form-field-lg {
    margin-bottom: 1.5rem;
}

.form-field-md {
    margin-bottom: 1rem;
}

.form-field-stack {
    margin-bottom: 1.25rem;
}

.form-label-upper {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.form-label-tight {
    font-size: 0.7rem;
    color: var(--text-medium);
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.form-input-dark,
.form-textarea-dark {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    color: #ffffff;
    outline: none;
    font-family: inherit;
}

.form-input-dark {
    padding: 0.65rem 0.85rem;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.form-input-md {
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.form-select-full {
    width: 100%;
    font-weight: 600;
}

.form-field-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.contact-char-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.form-textarea-dark {
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    resize: vertical;
    min-height: 90px;
}

.contact-status-msg {
    display: none;
    font-size: 0.8rem;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.setlist-modal-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.setlist-modal-footnote {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 1rem;
}

.setlist-source-link {
    color: var(--text-bright);
    text-decoration: underline;
}

.feature-modal-title {
    font-family: var(--font-header);
    font-size: 2rem;
    color: var(--text-bright);
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    border-bottom: 2px solid var(--accent-crimson);
    padding-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.feature-modal-intro {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.15rem;
    max-width: 54ch;
}

.feature-modal-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
}

.feature-modal-list li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-medium);
    font-size: 0.87rem;
    line-height: 1.6;
}

.feature-modal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #fbbf24;
    font-size: 1rem;
    line-height: 1.45;
}

.feature-modal-list strong {
    color: var(--text-bright);
    font-weight: 700;
}

.quick-start-strip {
    margin: 1.2rem auto 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.28);
    border-radius: 999px;
    padding: 0.4rem 0.6rem;
}

.quick-start-label {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.38);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
}

.quick-start-step {
    font-size: 0.72rem;
    color: var(--text-medium);
    padding: 0.16rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.live-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.summary-chip {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-medium);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
}

.summary-chip-market {
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(59, 130, 246, 0.14);
}

.privacy-banner-container {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.privacy-banner-icon {
    font-size: 1.15rem;
    line-height: 1.2;
}

.privacy-banner-heading {
    color: #ffd6d6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    font-family: var(--font-header);
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.search-container {
    margin-bottom: 1.25rem;
    width: 100%;
}

.search-input-wrap {
    position: relative;
}

#artist-search-input {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--card-border);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    padding-right: 2.5rem;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: inherit;
}

#artist-search-input:focus {
    border-color: var(--accent-crimson) !important;
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.45), 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0.55) !important;
}

#btn-clear-search {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-medium);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn-clear-search:hover {
    color: var(--text-bright);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
}

.filter-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group-inline {
    position: relative;
}

.market-filter-group {
    width: 100%;
    justify-content: flex-start;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
}

.region-controls {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.region-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-left: 1px solid var(--card-border);
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.region-controls .region-btn:first-child {
    border-left: none;
}

.dropdown-wrapper {
    position: relative;
}

#venue-dropdown-toggle {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    color: var(--text-medium);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    min-width: 160px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-caret-sm {
    font-size: 0.6rem;
    margin-left: 0.5rem;
}

#venue-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #14161a;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
    z-index: 130;
    padding: 0.5rem;
    max-height: 280px;
    overflow-y: auto;
    min-width: 240px;
    margin-top: 4px;
}

.venue-dropdown-header {
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.45rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#venue-search-input {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.75rem;
    width: 100%;
    outline: none;
}

.venue-dropdown-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.1rem;
}

#btn-venue-select-all,
#btn-venue-clear-all {
    background: transparent;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    transition: background 0.15s;
}

#btn-venue-select-all {
    color: #fecdd3;
}

#btn-venue-clear-all {
    color: #94a3b8;
}

#genre-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    font-weight: 600;
    min-width: 150px;
    transition: border-color 0.2s ease;
}

#month-dropdown-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    color: #ffffff;
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-weight: 600;
    transition: border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-reset-ignored {
    display: inline-flex;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
    max-width: fit-content;
    padding: 0.45rem 1rem;
    min-height: 36px;
}

.sync-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.sync-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Dynamic Month Tabs */
.tabs-container {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 3.5rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-header);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-bright);
}

.tab-btn.active {
    color: var(--accent-crimson);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 15%;
    width: 70%;
    height: 3px;
    background-color: var(--accent-crimson);
    box-shadow: 0 0 10px var(--accent-glow);
    border-radius: 2px;
}

/* Calendar Grid & View Transitions */
.calendar-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.calendar-view.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: viewFadeInUp 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


@keyframes viewFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Card Entrance & Filtering Animations */
@keyframes cardCascadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.event-card.card-entering {
    animation: cardCascadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: var(--stagger-delay, 0s);
    will-change: opacity, transform;
}

.event-card.card-hiding {
    opacity: 0 !important;
    transform: scale(0.97) translateY(-6px) !important;
    transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}

.no-events {
    text-align: center;
    padding: 5rem 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
}

.no-events-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-events-title {
    color: var(--text-bright);
    font-family: var(--font-header);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.no-events-copy {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.9rem;
}

/* Dynamic Filter Empty State & Animations */
.filter-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    margin: 1rem 0 2rem 0;
    grid-column: 1 / -1;
    animation: smoothFadeIn 0.35s ease-out forwards;
}

.filter-empty-state .btn-reset-filters:hover {
    background: rgba(225, 29, 72, 0.2) !important;
    border-color: rgba(225, 29, 72, 0.45) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

@keyframes smoothFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseScale {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.pulse-badge {
    animation: pulseScale 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Event Laminate Card Layout */
.event-card {
    display: grid;
    grid-template-columns: 140px 1fr 180px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 46, 46, 0.3);
}

/* Ticket Stub Date Block (Left) */
.date-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 1.15rem 0.75rem 0.85rem 0.75rem;
    text-align: center;
    position: relative;
}

.date-block-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.btn-ignore-event {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    line-height: 1;
    z-index: 5;
}

.btn-ignore-event:hover {
    color: #fca5a5;
    background: rgba(225, 29, 72, 0.2);
    border-color: rgba(225, 29, 72, 0.5);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
    transform: translateY(-1px);
}

.btn-ignore-event:active {
    transform: translateY(0);
}

.btn-ignore-icon {
    font-size: 0.7rem;
    line-height: 1;
}

/* Concert Details Block (Center) */

/* Notch cutouts for ticket look */
.date-stub::before, .date-stub::after {
    content: '';
    position: absolute;
    right: -8px;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border-radius: 50%;
    z-index: 2;
}
.event-availability-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0.3rem 0 0.4rem;
    padding: 0.16rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.45);
    background: rgba(225, 29, 72, 0.2);
    color: #fecdd3;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.14);
}
.date-stub::before {
    top: -8px;
}
.date-stub::after {
    bottom: -8px;
}

.date-day {
    font-family: var(--font-header);
    font-size: 3.5rem;
    color: var(--text-bright);
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-crimson);
    font-weight: 700;
}

.date-weekday {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Concert Details Block (Center) */
.event-info {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 0.15rem;
}

.artist-header .artist-name {
    margin: 0;
}

.artist-header .btn-listen,
.artist-header .btn-insights {
    margin-left: 0 !important;
}

.artist-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.artist-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    width: 100%;
}

.artist-line {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.headliner-line .artist-name {
    margin: 0;
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--text-bright);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.supporting-line {
    padding-left: 0.15rem;
}

.supporting-artist-name {
    font-family: var(--font-header);
    font-size: 1.2rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: uppercase;
}

.inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.btn-compact {
    font-size: 0.72rem !important;
    padding: 0.22rem 0.5rem !important;
}

.artist-line-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.artist-line-actions .btn-listen,
.artist-line-actions .btn-insights {
    white-space: nowrap;
}

.artist-name {
    font-family: var(--font-header);
    font-size: 2.2rem;
    color: var(--text-bright);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.badge-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.status-approved {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-rock {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-price {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: help;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.price-low {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.1);
}

.price-mid {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.1);
}

.price-high {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.1);
}

.badge-price-alert {
    font-size: 0.63rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    cursor: help;
}

.alert-drop {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.28);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.14);
}

.alert-low-ticket {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.32);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.16);
}

.alert-pulse {
    animation: alertPulse 2.2s ease-in-out infinite;
}

@keyframes alertPulse {
    0% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(34, 211, 238, 0);
    }
    50% {
        transform: translateY(-0.5px);
        box-shadow: 0 0 14px rgba(34, 211, 238, 0.28);
    }
    100% {
        transform: translateY(0);
        box-shadow: 0 0 0 rgba(34, 211, 238, 0);
    }
}

.venue-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.time-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.time-row-wrap {
    flex-wrap: wrap;
}

.venue-location-text {
    color: var(--text-muted);
}

.subgenre-source-note {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.meta-row {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Call to Action Column (Right) */
.ticket-stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.05);
    width: 170px;
    flex-shrink: 0;
}

.btn-tickets {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--accent-crimson);
    color: var(--text-bright);
    text-decoration: none;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
}

.btn-tickets:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-tickets.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-medium);
    margin-top: 0.45rem;
    box-shadow: none;
}

.btn-tickets.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-bright);
}

/* Premium Action Row for card stubs */
.ticket-action-row {
    display: flex;
    gap: 0.45rem;
    width: 100%;
    margin-top: 0.5rem;
    justify-content: space-between;
}

.btn-ticket-action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 34px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-medium);
    font-size: 0.85rem;
    border-radius: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
    outline: none;
    text-decoration: none;
}

.btn-ticket-action:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-bright);
    transform: translateY(-1px);
}

.btn-ticket-action.btn-interested-toggle {
    color: var(--text-medium);
}

.btn-ticket-action.btn-interested-toggle:hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
}

.btn-ticket-action.btn-interested-toggle.active {
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    background: rgba(245, 158, 11, 0.12) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2) !important;
}

.btn-ticket-action.btn-interested-toggle.active:hover {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.6) !important;
    color: #fcd34d !important;
}

/* Weather Badges */
.weather-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: capitalize;
}

.weather-badge.rain-warning {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    animation: pulse-border 2s infinite alternate;
}

@keyframes pulse-border {
    0% { border-color: rgba(239, 68, 68, 0.25); }
    100% { border-color: rgba(239, 68, 68, 0.6); }
}

.weather-badge.unavailable {
    opacity: 0.55;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }


    .filter-actions-group {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.45rem;
        width: auto !important;
        flex: 0 0 auto !important;
        margin-left: auto;
    }

    .filter-actions-group .btn-premium-filter {
        flex: 0 0 auto !important;
        width: auto !important;
    }
    .controls-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .header-market-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .header-market-switcher {
        width: 100%;
        border-radius: 12px;
    }

    .header-market-link {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .header-copy-link {
        width: 100%;
        justify-content: center;
    }

    .feature-modal-content {
        padding: 1.6rem 1.35rem;
    }

    .feature-modal-title {
        font-size: 1.7rem;
    }

    .privacy-feature-button {
        width: 100%;
    }

    .sync-status {
        width: 100%;
        justify-content: center;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .btn-email-passport-premium {
        width: 100%;
        justify-content: center;
    }

    .date-stub {
        flex-direction: row;
        gap: 1rem;
        border-right: none;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
        padding: 1rem 1.5rem;
        justify-content: flex-start;
    }
    
    .date-stub::before, .date-stub::after {
        display: none;
    }
    
    .date-day {
        font-size: 2.2rem;
    }

    .event-info {
        padding: 1.5rem;
    }

    .ticket-stub {
        border-left: none;
        border-top: 1px dashed rgba(255, 255, 255, 0.05);
        padding: 1.25rem 1.5rem;
        width: 100%;
    }
    
    .intro h1 {
        font-size: 2.8rem;
    }
}

/* Modal overlay loader styling */
.sync-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 13, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-bright);
}

/* Modal layering above sticky controls */
#venue-modal { z-index: 2100; }
#setlist-modal { z-index: 2200; }
#email-modal { z-index: 2300; }
#features-modal { z-index: 2350; }
#contact-modal { z-index: 2400; }

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--card-border);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
.loader::after {
    content: '';  
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--accent-crimson);
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
    
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sync-logs {
    margin-top: 2rem;
    max-width: 600px;
    width: 90%;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    height: 200px;
    overflow-y: auto;
    color: #4ade80;
}

/* Expansion Filter Styles */
.btn-toggle {
    transition: all 0.2s ease;
}
.btn-toggle.active {
    background: var(--accent-crimson) !important;
    color: white !important;
}
.region-btn {
    transition: all 0.2s ease;
}
.region-btn.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

/* Strict Mode Hidden Rules */
/* Interested Concert Card Variant */
.event-card.is-interested {
    border-color: rgba(245, 158, 11, 0.7) !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08) !important;
}
.event-card.is-interested:hover {
    border-color: rgba(245, 158, 11, 0.95) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.12) !important;
}
.event-card.is-interested .date-stub {
    border-right-color: rgba(245, 158, 11, 0.18) !important;
}

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    gap: 0.15rem;
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Collapsible Notes Drawer */
.notes-drawer {
    grid-column: 1 / -1;
    background: rgba(0,0,0,0.25);
    border-top: 1px dashed rgba(255,255,255,0.06);
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
}
.media-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.media-link-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    color: var(--text-bright);
    text-decoration: none;
    font-size: 0.75rem;
    transition: background 0.2s ease;
}
.media-link-tag:hover {
    background: rgba(255,255,255,0.08);
}

/* Clickable Venue Info Styles */
.clickable-venue {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.15);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.clickable-venue:hover {
    color: var(--accent-crimson) !important;
    text-decoration-color: var(--accent-crimson);
}

/* Subgenre Tag Badges */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tags-row-spaced {
    margin-top: 0.15rem;
    margin-bottom: 0.65rem;
}

.badge-shared-lineup {
    background: rgba(225, 29, 72, 0.25);
    border: 1px solid var(--accent-crimson);
    color: #fecdd3;
}

.badge-multi-day {
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid #f59e0b;
    color: #fde68a;
}
.tag-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-medium);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}
.tag-pill:hover {
    background: rgba(255, 46, 46, 0.06);
    border-color: rgba(255, 46, 46, 0.3);
    color: var(--text-bright);
}

/* Audio Player Drawer & Listen Button Styles */
.btn-listen,
.btn-insights,
.btn-links-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-medium);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
}
.btn-listen:hover,
.btn-insights:hover,
.btn-links-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-bright);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn-listen.active,
.btn-insights.active,
.btn-links-toggle.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.artist-links-dropdown {
    position: relative;
    display: inline-block;
}

.links-popover {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    z-index: 120;
    min-width: 145px;
    background: #14161a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
    padding: 0.35rem 0;
    backdrop-filter: blur(8px);
    animation: popoverFadeIn 0.15s ease-out;
}

.links-popover.open {
    display: block !important;
}

/* Custom Single-Select Dropdowns (Genre & Month Selector) */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 100;
}

.custom-select-wrapper.is-open,
.custom-select-wrapper:focus-within {
    z-index: 99999 !important;
}

.custom-select-toggle {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-select-toggle:hover,
.custom-select-toggle.active {
    border-color: rgba(255, 46, 46, 0.4);
    box-shadow: 0 4px 14px rgba(255, 46, 46, 0.15);
}

.custom-select-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 999999 !important;
    min-width: 100%;
    background: #14161a;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    padding: 0.35rem 0;
    max-height: 260px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    animation: popoverFadeIn 0.15s ease-out;
}

.custom-select-menu.open {
    display: block !important;
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    white-space: nowrap;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.custom-select-option.selected {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.18);
    font-weight: 700;
}

@keyframes popoverFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.link-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.link-item .link-icon {
    font-size: 0.75rem;
    line-height: 1;
}

.dropdown-caret {
    font-size: 0.55rem;
    margin-left: 0.15rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-links-toggle.active .dropdown-caret {
    transform: rotate(180deg);
}

.audio-drawer {
    display: none;
    grid-column: 1 / -1;
    background: rgba(10, 11, 13, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    animation: audioSlideDown 0.3s ease-out;
}
@keyframes audioSlideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.audio-tracks-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .audio-tracks-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}
.audio-track-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 0;
}
.audio-track-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}
.audio-artwork {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.audio-track-info {
    flex: 1;
    min-width: 0;
}
.audio-track-name {
    font-weight: 600;
    color: var(--text-bright);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.audio-collection-name {
    color: var(--text-muted);
    font-size: 0.7rem;
    white-space: normal;
    line-height: 1.3;
    margin-top: 0.15rem;
}
.btn-play-preview {
    background: var(--accent-crimson);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    outline: none;
    flex-shrink: 0;
}
.btn-play-preview:hover {
    background: var(--accent-hover);
    transform: scale(1.1);
}
.audio-loading, .audio-empty, .audio-error {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 0.5rem;
}

/* Setlist modal layout for shared lineups */
.setlist-acts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.setlist-acts-grid--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#setlist-modal .modal-content {
    width: min(96vw, 1120px);
    max-width: 1120px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#setlist-songs-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.35rem;
    margin-bottom: 1.25rem;
}

.setlist-act-card {
    background: rgba(18, 20, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
    min-width: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.setlist-act-title {
    font-family: var(--font-header);
    font-size: 1.45rem;
    color: var(--text-bright);
    margin: 0 0 0.85rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid rgba(239, 68, 68, 0.45);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.setlist-song-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-bright);
    font-size: 0.9rem;
    line-height: 1.65;
}

.setlist-song-list li {
    margin-bottom: 0.35rem;
}

.setlist-tour-note {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-bottom: 0.85rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

.setlist-empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2rem 0;
    font-style: italic;
}

@media (max-width: 900px) {
    #setlist-modal .modal-content {
        width: min(96vw, 760px);
        max-width: 760px;
    }

    .setlist-acts-grid--two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .setlist-acts-grid {
        grid-template-columns: 1fr;
    }

    .setlist-acts-grid--two-column {
        grid-template-columns: 1fr;
    }

    #setlist-modal .modal-content {
        width: 94vw;
        max-width: 94vw;
    }

    .setlist-act-card {
        padding: 0.85rem;
    }

    .setlist-act-title {
        font-size: 1rem;
    }

    .setlist-song-list {
        font-size: 0.85rem;
        padding-left: 1.1rem;
        line-height: 1.55;
    }
}

/* Style the month dropdown to match the site aesthetic */
.month-select-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    padding: 0;
    margin-bottom: 0.5rem;
    border-bottom: none;
    position: relative;
    z-index: 100;
    overflow: visible;
}

.month-select-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
}

.month-select-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-medium);
    white-space: nowrap;
}

#month-dropdown-select {
    background-color: #14161a !important; /* Deep dark background */
    border: 1px solid var(--card-border) !important; /* Matches your cards */
    color: var(--text-bright) !important; /* White text */
    padding: 0.55rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    font-family: var(--font-body);
}

/* Optional: Style the dropdown options for better contrast */
#month-dropdown-select option {
    background-color: #14161a;
    color: var(--text-bright);
    padding: 10px;
}

/* Privacy notice banner styling */
.privacy-banner-container {
    justify-content: space-between;
    flex-wrap: wrap;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.privacy-banner-icon {
    flex: 0 0 auto;
}

.privacy-banner-copy {
    flex: 1 1 560px;
    min-width: 260px;
}

.privacy-feature-button {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 34px;
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    color: var(--text-medium);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.privacy-feature-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-bright);
}

.privacy-feature-button:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.privacy-feature-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fbbf24;
    font-size: 0.62rem;
    line-height: 1;
}

.privacy-banner-container:hover {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

@media (min-width: 901px) {
    .search-container {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    .privacy-banner-container {
        flex-wrap: nowrap;
        align-items: center;
    }

    .filter-panel {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "region region region"
            "venues venues venues"
            "genre interested email";
        gap: 1rem 1.25rem;
        align-items: start;
    }

    .filter-panel > .filter-group {
        width: 100%;
        min-width: 0;
    }

    .filter-panel > .filter-group:nth-child(1) {
        grid-area: region;
        align-items: flex-start;
    }

    .filter-panel > .filter-group:nth-child(2) {
        grid-area: venues;
        justify-content: flex-start;
    }

    .filter-panel > .filter-group.genre-filter-group {
        grid-area: genre;
        justify-content: flex-start;
    }

    .filter-panel > .filter-group:nth-child(4) {
        grid-area: interested;
        justify-content: flex-start;
    }

    .filter-panel > .filter-group:nth-child(5) {
        grid-area: email;
        justify-content: flex-end;
    }

    .filter-panel > .filter-group:nth-child(1) > div {
        display: inline-flex;
        width: fit-content;
        max-width: 100%;
        flex-wrap: nowrap;
        justify-self: start;
    }

    .filter-panel > .filter-group:nth-child(2) > .dropdown-wrapper {
        min-width: 280px;
    }

    .filter-panel > .filter-group:nth-child(4) .btn-tickets.secondary {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
        min-height: 30px;
        border-radius: 999px;
        width: auto;
        align-self: center;
    }

    .filter-panel .btn-email-passport {
        width: 100%;
        justify-content: center;
    }
}

/* Submit button sending state animations and styles */
#btn-submit-email:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: var(--text-muted) !important;
}

/* Artist Insights Drawer Styles */
.insights-drawer-wrapper {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: rgba(10, 11, 13, 0.5);
    border-top: 0 solid rgba(255, 255, 255, 0.05);
}

.insights-drawer-wrapper.open {
    grid-template-rows: 1fr;
    border-top-width: 1px;
}

.insights-drawer {
    min-height: 0;
    transition: visibility 0.35s;
    visibility: hidden;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.insights-drawer-wrapper.open .insights-drawer {
    visibility: visible;
    padding: 1.25rem 1.5rem;
}

/* Skeleton loader */
.skeleton-pulse {
    animation: insightsPulse 1.5s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}
@keyframes insightsPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.insights-bio {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.insights-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.insight-tag-pill {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Genre Dropdown Select styling */
#genre-select option {
    background-color: #14161a;
    color: var(--text-bright);
    padding: 10px;
}

.genre-filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    flex: 0 0 auto;
}

.genre-help-trigger {
    width: 20px;
    height: 20px;
    min-height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-medium);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex: 0 0 20px;
    margin-left: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.genre-help-trigger:hover {
    color: #ffffff;
    border-color: var(--accent-crimson);
    background: var(--accent-crimson);
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.5);
}

.genre-help-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 2rem));
    background: #14161a;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85);
    padding: 0.85rem 1rem;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.genre-help-panel.active {
    display: block;
    opacity: 1;
}

.genre-help-panel.fading {
    opacity: 0;
}

.genre-help-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-bright);
    margin-bottom: 0.4rem;
}

.genre-help-text {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.site-footer-contact-btn {
    background: transparent;
    border: none;
    color: var(--accent-crimson);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-footer-contact-btn span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer-contact-btn:hover {
    color: var(--accent-hover);
}

.site-footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Focused mobile layout pass: only applies to small screens. */
@media (max-width: 768px) {
    .quick-start-strip {
        border-radius: 0.75rem;
        padding: 0.45rem 0.55rem;
    }

    .quick-start-step {
        font-size: 0.69rem;
    }

    .live-filter-summary {
        margin-bottom: 0.7rem;
    }

    .summary-chip {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }

    .filter-panel {
        position: relative;
        z-index: 140;
    }

    .filter-panel .genre-filter-group {
        position: relative;
        z-index: 220;
    }

    .filter-panel .genre-filter-group .custom-select-wrapper,
    .filter-panel .genre-filter-group #genre-select {
        position: relative;
        z-index: 230;
    }

    .filter-panel .dropdown-wrapper,
    #venue-dropdown-toggle,
    #venue-dropdown-menu {
        position: relative;
        z-index: 320 !important;
    }

    .genre-help-panel {
        z-index: 260;
    }

    .month-select-row,
    .month-select-section {
        position: relative;
        z-index: 90;
    }

    .genre-help-panel {
        left: 0;
        top: calc(100% + 0.65rem);
    }

    .container {
        padding: 0 0.85rem;
    }

    .site-footer {
        margin-top: 2rem;
        padding: 1.5rem 0.9rem;
    }

    .sticky-controls-wrapper {
        position: static;
        top: auto;
        z-index: auto;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: transparent;
        border-bottom: none;
        padding-top: 0.6rem;
        padding-bottom: 0.4rem;
    }

    .privacy-banner-container {
        padding: 0.75rem 0.8rem !important;
        margin-bottom: 0.9rem !important;
        gap: 0.65rem !important;
        font-size: 0.74rem !important;
    }

    .search-container {
        margin-bottom: 0.9rem !important;
    }

    #artist-search-input {
        font-size: 0.94rem !important;
        padding: 0.75rem 1rem !important;
        padding-right: 2.35rem !important;
    }

    .filter-panel {
        display: block !important;
        padding: 0.9rem !important;
        margin-bottom: 0.9rem !important;
    }

    .filter-panel > .filter-group {
        width: 100% !important;
        margin-bottom: 0.8rem;
        flex-wrap: wrap;
    }

    .filter-panel > .filter-group:last-child {
        margin-bottom: 0;
    }

    .filter-panel > .filter-group > span {
        font-size: 0.72rem !important;
    }

    .filter-panel .header-market-switcher {
        width: 100%;
    }

    .filter-panel .header-market-link {
        flex: 1 1 calc(33.333% - 0.35rem);
        justify-content: center;
        padding: 0.45rem 0.45rem;
        font-size: 0.66rem;
    }

    .filter-panel .region-controls {
        width: 100%;
        overflow: visible !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.35rem;
        padding: 0.35rem;
    }

    .region-btn {
        flex: 1 1 auto;
        min-width: 120px;
        white-space: nowrap;
    }

    .filter-panel .dropdown-wrapper {
        width: 100%;
    }

    #venue-dropdown-toggle,
    #genre-select {
        width: 100% !important;
        min-width: 0 !important;
    }

    #venue-dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .filter-actions-group {
        gap: 0.45rem;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .filter-actions-group .btn-premium-filter {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .month-select-section {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.7rem !important;
    }

    .month-select-label {
        white-space: normal;
        line-height: 1.2;
    }

    .month-select-section > .filter-group {
        max-width: none !important;
    }

    #btn-reset-ignored {
        width: 100% !important;
        justify-content: center !important;
    }

    .event-info {
        padding: 1rem !important;
    }

    .ticket-stub {
        padding: 1rem !important;
    }

    .artist-line-actions {
        flex-wrap: wrap;
    }

    .btn-listen,
    .btn-insights,
    .btn-links-toggle,
    .btn-ticket-action {
        min-height: 32px;
    }

    .sync-status {
        text-align: center;
        white-space: normal;
    }
}

@media (max-width: 420px) {
    .intro h1 {
        font-size: 2.35rem;
    }

    .intro-title-region {
        font-size: 1.5rem;
    }

    .date-stub {
        padding: 0.85rem 1rem;
    }

    .date-day {
        font-size: 1.95rem;
    }
}

/* Final responsive polish pass */
@media (max-width: 768px) {
    .modal-card,
    .feature-modal-content {
        width: min(94vw, 620px);
        padding: 1.15rem;
        border-radius: 12px;
    }

    .modal-title,
    .modal-title-venue,
    .modal-title-setlist,
    .feature-modal-title {
        font-size: 1.45rem;
        line-height: 1.15;
        margin-bottom: 0.75rem;
    }

    .setlist-modal-meta,
    .modal-subtext,
    .feature-modal-intro {
        font-size: 0.8rem;
        margin-bottom: 0.9rem;
    }

    .modal-actions {
        width: 100%;
        gap: 0.55rem;
        flex-wrap: wrap;
    }

    .modal-actions .btn-tickets,
    .modal-actions .btn-premium-filter,
    .btn-submit-contact,
    #venue-modal-maps.btn-tickets-compact {
        width: 100%;
        justify-content: center;
    }

    .form-field-lg,
    .form-field-md,
    .form-field-stack {
        margin-bottom: 0.85rem;
    }

    .form-field-head {
        align-items: flex-start;
        gap: 0.35rem;
        flex-direction: column;
    }

    .filter-panel {
        gap: 0.75rem;
    }

    .month-select-row {
        gap: 0.55rem;
        margin-bottom: 0.35rem;
    }

    .month-select-controls {
        max-width: none;
    }

    .btn-reset-ignored {
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .modal-close-button {
        top: 0.65rem;
        right: 0.85rem;
    }

    .modal-card,
    .feature-modal-content {
        width: 95vw;
        padding: 1rem 0.9rem;
    }

    .modal-title,
    .modal-title-venue,
    .modal-title-setlist,
    .feature-modal-title {
        font-size: 1.2rem;
    }

    .privacy-banner-container {
        border-radius: 10px;
    }

    .privacy-banner-heading,
    .form-label-upper,
    .filter-label,
    .month-select-label {
        letter-spacing: 0.04em;
    }
}

@media (max-width: 360px) {
    .header-market-switcher {
        gap: 0.35rem;
        padding: 0.3rem;
    }

    .header-market-link {
        flex: 1 1 100%;
        min-height: 40px;
        padding: 0.5rem 0.55rem;
        font-size: 0.64rem;
        line-height: 1.2;
        text-align: center;
    }

    .region-btn {
        min-height: 40px;
        min-width: 0;
        padding: 0.45rem 0.65rem;
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: normal;
    }

    #artist-search-input,
    #genre-select,
    #month-dropdown-select,
    #venue-dropdown-toggle,
    #venue-search-input,
    .form-input-dark,
    .form-textarea-dark {
        font-size: 16px;
    }

    .btn-premium-filter,
    .btn-tickets,
    .btn-ticket-action,
    .btn-listen,
    .btn-insights,
    .btn-links-toggle,
    .btn-action,
    .privacy-feature-button {
        min-height: 40px;
    }

    .btn-premium-filter,
    .btn-tickets,
    .btn-action {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    .month-select-label,
    .filter-label,
    .form-label-upper,
    .form-label-tight,
    .sync-status {
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .sync-status {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .artist-line {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.45rem;
    }

    .artist-line-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 0.3rem;
    }

    .modal-actions .btn-tickets,
    .modal-actions .btn-premium-filter,
    .btn-submit-contact,
    #venue-modal-maps.btn-tickets-compact {
        min-height: 42px;
    }
}

/* ==========================================================================
   Tightened Header & Unified 2-Row Control Panel Layout
   ========================================================================== */
.header-compact {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-info-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-medium);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.btn-info-badge:hover {
    background: rgba(255, 46, 46, 0.15);
    color: var(--text-bright);
    border-color: rgba(255, 46, 46, 0.4);
}

.intro-drawer-panel {
    background: rgba(20, 22, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.intro-drawer-panel.hidden {
    display: none;
}

.intro-drawer-copy {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.controls-row-primary {
    position: relative;
    z-index: 50;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.85rem !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: nowrap !important;
}

.controls-row-primary:has(.custom-select-wrapper.is-open),
.controls-row-primary:focus-within {
    z-index: 9999;
}

.controls-row-primary .header-market-switcher {
    margin-bottom: 0;
    flex: 0 0 auto !important;
}

.controls-row-primary .month-select-controls {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

.controls-row-secondary {
    position: relative;
    z-index: 40;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    flex-wrap: wrap !important;
}

.controls-row-secondary .region-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
}

.controls-row-secondary .dropdown-filters-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
}

.controls-row-actions {
    position: relative;
    z-index: 30;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.75rem !important;
    margin-top: 0.4rem !important;
    flex-wrap: nowrap !important;
}

.controls-row-actions .search-input-wrap {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 150px !important;
    max-width: none !important;
    margin-right: 0.5rem !important;
}

.controls-row-actions .search-input-wrap #artist-search-input,
.search-input-wrap #artist-search-input {
    height: 36px !important;
    font-size: 0.82rem !important;
    padding: 0.4rem 2.2rem 0.4rem 0.85rem !important;
    width: 100% !important;
    max-width: none !important;
}

.controls-row-actions .filter-actions-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

.controls-row-actions .filter-actions-group .btn-premium-filter,
.controls-row-secondary .btn-premium-filter,
.filter-actions-group .btn-premium-filter,
.btn-premium-filter {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-height: 30px !important;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    white-space: nowrap !important;
}

.live-filter-summary-compact {
    margin-top: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.privacy-inline-badge {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    cursor: help;
    opacity: 0.8;
}

.privacy-inline-badge:hover {
    opacity: 1;
    color: #86efac;
}

/* Load More & Lazy Chunking Styling */
.load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    margin-top: 1.5rem;
    grid-column: 1 / -1;
}

.btn-load-more {
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.18), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 46, 46, 0.4);
    color: var(--text-bright);
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-load-more:hover {
    background: rgba(255, 46, 46, 0.35);
    border-color: rgba(255, 46, 46, 0.7);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 46, 46, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   Mobile Responsive Refinements (Controls & Card Flow)
   ========================================================================== */
@media (max-width: 768px) {
    .header-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .header-nav .logo {
        order: 1;
    }

    .header-nav .btn-back {
        order: 2;
    }

    .header-nav .btn-info-badge {
        order: 3;
        margin-left: 0;
    }

    .header .controls-group {
        order: 4;
        margin-left: auto;
    }

    .controls-row-primary,
    .controls-row-secondary,
    .controls-row-actions {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }

    .controls-row-primary .header-market-switcher {
        width: 100% !important;
        flex: 1 1 100% !important;
    }

    .controls-row-primary .month-select-controls {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        justify-content: flex-end;
    }

    .controls-row-secondary .region-controls {
        width: 100% !important;
        flex: 1 1 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
        overflow: visible !important;
    }

    .controls-row-secondary .region-controls .region-btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0.4rem 0.55rem !important;
        font-size: 0.72rem !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .controls-row-secondary .dropdown-filters-group {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        flex-wrap: wrap;
        gap: 0.4rem !important;
    }

    .controls-row-secondary .dropdown-filters-group .dropdown-wrapper,
    .controls-row-secondary .dropdown-filters-group .custom-select-wrapper {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 130px;
    }

    .controls-row-actions .search-input-wrap {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-right: 0 !important;
    }

    .controls-row-actions .filter-actions-group {
        width: 100% !important;
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .controls-row-actions .filter-actions-group .btn-premium-filter {
        flex: 1 1 auto !important;
        text-align: center;
        justify-content: center;
    }

    .live-filter-summary-compact {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .privacy-inline-badge {
        margin-left: 0;
        width: 100%;
    }

    .event-card {
        grid-template-columns: 1fr !important;
    }

    .ticket-stub {
        border-left: none !important;
        border-top: 1px solid var(--card-border) !important;
        padding: 0.85rem 1rem !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .ticket-stub .btn-tickets {
        width: 100% !important;
        order: 1;
        margin-bottom: 0.5rem;
    }

    .ticket-stub .ticket-stub-actions {
        width: 100% !important;
        order: 2;
        justify-content: space-between;
    }
}
