/* =========================================================================
 * Concert Ticket Noir — /concerts page scoped styles.
 * All rules namespaced under .concerts-page to avoid leaking into rest of
 * site (light theme). Uses Unbounded / JetBrains Mono / Noto Sans TC.
 * ========================================================================= */

.concerts-page {
    --cc-bg: #0A0E14;
    --cc-bg-alt: #13181F;
    --cc-bg-deep: #06090D;
    --cc-ink: #F4EDE3;
    --cc-ink-dim: #8B92A0;
    --cc-ink-faint: #5B6472;
    --cc-magenta: #FF2D6F;
    --cc-yellow: #FFD60A;
    --cc-mint: #00F5A0;
    --cc-violet: #7B5CFF;
    --cc-line: rgba(244, 237, 227, 0.14);
    --cc-line-strong: rgba(244, 237, 227, 0.28);
    --cc-font-display: 'Unbounded', 'Noto Sans TC', sans-serif;
    --cc-font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --cc-font-body: 'Noto Sans TC', system-ui, sans-serif;

    position: relative;
    max-width: none;
    width: 100%;
    padding: 0 clamp(16px, 4vw, 48px) 96px;
    margin: 0 auto;
    font-family: var(--cc-font-body);
    color: var(--cc-ink);
    background: var(--cc-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Dark body behind header/footer */
body:has(.concerts-page) {
    background: var(--cc-bg, #0A0E14);
}
body:has(.concerts-page) .site-header {
    background: #06090D;
    border-bottom: 1px solid rgba(244,237,227,0.1);
}
body:has(.concerts-page) .site-header .logo__zh,
body:has(.concerts-page) .site-header .logo__en {
    color: #F4EDE3;
}
body:has(.concerts-page) .site-footer {
    background: #06090D;
    color: #8B92A0;
    border-top: 1px solid rgba(244,237,227,0.1);
}
body:has(.concerts-page) .site-footer a {
    color: #F4EDE3;
}

/* Grain overlay + scanlines */
.concerts-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0 2px,
            rgba(255,255,255,0.02) 2px 3px
        );
    mix-blend-mode: overlay;
}
.concerts-page::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 45, 111, 0.10), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 245, 160, 0.08), transparent 55%),
        radial-gradient(ellipse at 100% 20%, rgba(255, 214, 10, 0.05), transparent 50%);
}

.concerts-page > * { position: relative; z-index: 3; }

/* =========================================================
 * 0. Marquee strip
 * ========================================================= */
.cc-marquee {
    position: relative;
    margin: 0 calc(-1 * clamp(16px, 4vw, 48px)) 24px;
    height: 38px;
    background: linear-gradient(90deg, var(--cc-bg-deep) 0%, var(--cc-bg-alt) 50%, var(--cc-bg-deep) 100%);
    border-top: 1px solid var(--cc-line);
    border-bottom: 1px solid var(--cc-line);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.cc-marquee__track {
    display: flex;
    gap: 28px;
    animation: cc-marquee 42s linear infinite;
    white-space: nowrap;
    padding-left: 100%;
    font-family: var(--cc-font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    color: var(--cc-yellow);
}
.cc-marquee__item {
    font-weight: 500;
}
.cc-marquee__item--num {
    color: var(--cc-mint);
    font-weight: 700;
}
@keyframes cc-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* =========================================================
 * 1. Hero head
 * ========================================================= */
.cc-hero-head {
    padding: 32px 0 48px;
    border-bottom: 1px dashed var(--cc-line);
    margin-bottom: 56px;
    position: relative;
}
.cc-hero-head::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 16px;
    background: radial-gradient(circle, var(--cc-bg) 4px, transparent 4.5px);
    background-size: 18px 16px;
    background-repeat: repeat-x;
    background-position: left center;
}
.cc-hero-head__inner {
    max-width: 1280px;
    margin: 0 auto;
}
.cc-display {
    font-family: var(--cc-font-display);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    font-size: clamp(3.5rem, 11vw, 8rem);
    text-transform: uppercase;
}
.cc-display__line {
    display: block;
    color: var(--cc-ink);
    background: linear-gradient(180deg, #F4EDE3 0%, #A8A298 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cc-display__line--alt {
    color: var(--cc-magenta);
    -webkit-text-fill-color: var(--cc-magenta);
    background: none;
    text-shadow: 0 0 32px rgba(255, 45, 111, 0.45);
}
.cc-tagline {
    font-family: var(--cc-font-mono);
    color: var(--cc-ink-dim);
    font-size: clamp(13px, 1.4vw, 15px);
    letter-spacing: 0.1em;
    margin: 0 0 24px;
}
.cc-hero-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    font-family: var(--cc-font-mono);
    font-size: 14px;
    color: var(--cc-ink-dim);
    letter-spacing: 0.05em;
}
.cc-stat em {
    font-style: normal;
    font-family: var(--cc-font-display);
    font-weight: 700;
    color: var(--cc-yellow);
    font-size: 1.6em;
    margin-right: 6px;
}

/* =========================================================
 * Section scaffolding
 * ========================================================= */
.cc-section {
    max-width: 1280px;
    margin: 0 auto 72px;
    position: relative;
}
.cc-section--hero { margin-bottom: 88px; }

.cc-section__head {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cc-line);
}
.cc-section__num {
    font-family: var(--cc-font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--cc-ink-faint);
}
.cc-section__title {
    font-family: var(--cc-font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--cc-ink);
}
.cc-section__meta {
    margin-left: auto;
    font-family: var(--cc-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--cc-magenta);
    text-transform: uppercase;
}
.cc-section__meta--mint { color: var(--cc-mint); }

/* =========================================================
 * 2. Ticket-stub hero
 * ========================================================= */
.cc-ticket-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
    gap: 28px;
}
.cc-ticket {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) 0 minmax(0, 1fr);
    min-height: 240px;
    background: linear-gradient(135deg, #1A2029 0%, #0F141B 100%);
    border: 1px solid var(--cc-line-strong);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}
.cc-ticket:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px var(--cc-magenta);
}
.cc-ticket--imminent {
    box-shadow: inset 0 0 0 1px rgba(255, 45, 111, 0.45);
}
.cc-ticket--imminent::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid var(--cc-magenta);
    animation: cc-pulse-glow 1.8s ease-in-out infinite;
}
@keyframes cc-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 45, 111, 0.5); opacity: 0.9; }
    50%      { box-shadow: 0 0 24px rgba(255, 45, 111, 0.6); opacity: 1; }
}

.cc-ticket__main {
    position: relative;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}
.cc-ticket__cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    filter: saturate(1.2) contrast(1.05);
}
.cc-ticket__main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,14,20,0.62) 0%, rgba(10,14,20,0.92) 100%);
}
/* D: imminent gets magenta tint corner glow */
.cc-ticket--imminent .cc-ticket__main::after {
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255,45,111,0.38), transparent 60%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(255,45,111,0.18), transparent 65%),
        linear-gradient(135deg, rgba(10,14,20,0.55) 0%, rgba(10,14,20,0.92) 100%);
}
.cc-ticket--imminent .cc-ticket__stub {
    background: linear-gradient(180deg, rgba(255,45,111,0.10) 0%, #0F141B 100%);
}
.cc-ticket__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.cc-ticket__meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--cc-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--cc-ink-faint);
}
.cc-ticket__tag { color: var(--cc-yellow); }
.cc-ticket__platform {
    padding: 2px 10px;
    border: 1px solid var(--cc-line-strong);
    border-radius: 2px;
}
.cc-ticket__title {
    font-family: var(--cc-font-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.cc-ticket__title a {
    color: var(--cc-ink);
    text-decoration: none;
    background-image: linear-gradient(var(--cc-magenta), var(--cc-magenta));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 250ms ease;
}
.cc-ticket__title a:hover { background-size: 100% 2px; }

.cc-ticket__info {
    margin: 0;
    display: grid;
    gap: 10px;
    font-family: var(--cc-font-mono);
    font-size: 13px;
}
.cc-ticket__info > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.cc-ticket__info dt { color: var(--cc-ink-faint); font-weight: 500; }
.cc-ticket__info dd { margin: 0; color: var(--cc-ink); }

/* Perforation */
.cc-ticket__perf {
    position: relative;
    width: 0;
    border-left: 1.5px dashed var(--cc-line-strong);
}
.cc-ticket__perf::before,
.cc-ticket__perf::after {
    content: '';
    position: absolute;
    left: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cc-bg);
}
.cc-ticket__perf::before { top: -9px; }
.cc-ticket__perf::after  { bottom: -9px; }

/* Stub (right) */
.cc-ticket__stub {
    position: relative;
    background: linear-gradient(180deg, #0A0E14 0%, #0F141B 100%);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cc-ticket__stub-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: var(--cc-font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--cc-ink-faint);
}
.cc-ticket__admit {
    color: var(--cc-yellow);
    font-weight: 700;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.cc-ticket__cond {
    display: block;
    font-style: normal;
    color: var(--cc-magenta);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.02em;
    margin-top: 2px;
    line-height: 1.3;
}

/* Last-hour pulse — JS adds .cc-ticket--hot when countdown < 1h */
.cc-ticket--hot .cc-countdown__cell {
    border-color: var(--cc-magenta);
    background: rgba(255, 45, 111, 0.18);
    animation: cc-pulse-glow 0.6s ease-in-out infinite;
}
.cc-ticket--hot .cc-countdown__cell b {
    color: #fff;
    text-shadow: 0 0 8px var(--cc-magenta);
}
.cc-ticket__barcode {
    width: 124px;
    height: 26px;
    flex-shrink: 0;
    background:
        linear-gradient(to right,
            var(--cc-ink) 0 1px, transparent 1px 4px,
            var(--cc-ink) 4px 6px, transparent 6px 8px,
            var(--cc-ink) 8px 9px, transparent 9px 12px,
            var(--cc-ink) 12px 14px, transparent 14px 16px,
            var(--cc-ink) 16px 18px, transparent 18px 20px
        );
    background-size: 20px 100%;
    background-repeat: repeat-x;
    opacity: 0.78;
}

.cc-countdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    font-family: var(--cc-font-mono);
    font-weight: 700;
    flex: 1;
    justify-content: center;
}
.cc-countdown__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.cc-countdown__cell {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    background: rgba(255, 45, 111, 0.06);
    border: 1px solid rgba(255, 45, 111, 0.25);
    border-radius: 2px;
}
.cc-countdown__cell b {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--cc-magenta);
    min-width: 1.8em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.cc-countdown__cell i {
    font-style: normal;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--cc-ink-faint);
}
.cc-countdown--available .cc-countdown__pill {
    display: inline-block;
    padding: 6px 14px;
    background: var(--cc-mint);
    color: #06090D;
    font-weight: 700;
    font-family: var(--cc-font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    border-radius: 2px;
}
.cc-countdown__hint {
    display: block;
    font-size: 12px;
    color: var(--cc-ink-dim);
    margin-top: 6px;
    letter-spacing: 0.05em;
}
.cc-countdown--past .cc-countdown__hint {
    font-size: 14px;
    color: var(--cc-ink-faint);
}

.cc-ticket__cta {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid var(--cc-line-strong);
    color: var(--cc-ink);
    font-family: var(--cc-font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 2px;
    transition: all 180ms ease;
    cursor: pointer;
    width: 100%;
}
.cc-ticket__cta:hover {
    background: var(--cc-ink);
    color: var(--cc-bg);
}
.cc-ticket__cta--cal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.cc-ticket__cta--cal svg { flex-shrink: 0; }

/* Dark popover panel for hero ticket cal dropdown */
.cc-ticket__cal {
    position: relative;
    margin-top: auto;
}
.cc-ticket__cal-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--cc-bg-alt);
    border: 1px solid var(--cc-line-strong);
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 30;
}
.cc-ticket__cal.is-open .cc-ticket__cal-panel {
    display: block;
}
.cc-ticket__cal.is-open .cc-ticket__cta--cal {
    background: var(--cc-magenta);
    color: #fff;
    border-color: var(--cc-magenta);
}
.cc-ticket__cal-opt {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--cc-ink);
    font-family: var(--cc-font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    border-radius: 2px;
}
.cc-ticket__cal-opt:hover {
    background: rgba(255, 45, 111, 0.15);
    color: var(--cc-magenta);
}

/* =========================================================
 * 3. Cards (concert card — compact)
 * ========================================================= */
.cc-grid {
    display: grid;
    gap: 20px;
}
.cc-grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.cc-card {
    background: var(--cc-bg-alt);
    border: 1px solid var(--cc-line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease;
}
.cc-card:hover {
    transform: translateY(-2px);
    border-color: var(--cc-line-strong);
}
.cc-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.cc-card__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #1A2029;
}
.cc-card__cover--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A2029 0%, #0F141B 100%);
}
.cc-card__empty {
    font-family: var(--cc-font-display);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: rgba(244, 237, 227, 0.08);
}
.cc-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-family: var(--cc-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 2px;
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(4px);
    color: var(--cc-ink);
}
.cc-card__badge--available { background: var(--cc-mint); color: #06090D; }
.cc-card__badge--imminent  { background: var(--cc-magenta); color: #fff; animation: cc-pulse-badge 1.6s ease-in-out infinite; }
.cc-card__badge--past      { background: rgba(10,14,20,0.8); color: var(--cc-ink-faint); }
@keyframes cc-pulse-badge {
    0%,100% { box-shadow: 0 0 0 rgba(255,45,111,0.5); }
    50%     { box-shadow: 0 0 16px rgba(255,45,111,0.8); }
}

.cc-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cc-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--cc-font-mono);
    font-size: 12px;
    color: var(--cc-ink-dim);
}
.cc-card__date {
    color: var(--cc-yellow);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.cc-card__stages {
    font-size: 10px;
    color: var(--cc-ink-faint);
    letter-spacing: 0.1em;
}
.cc-card__title {
    font-family: var(--cc-font-body);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
    color: var(--cc-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cc-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--cc-font-mono);
    font-size: 12px;
    color: var(--cc-ink-dim);
    margin-top: 4px;
}
.cc-card__venue {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.cc-card__count {
    color: var(--cc-magenta);
    font-weight: 700;
    letter-spacing: 0.05em;
}
.cc-card--ended {
    opacity: 0.45;
    filter: grayscale(0.6);
}

/* =========================================================
 * 4. VU-meter months
 * ========================================================= */
.cc-vu {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    align-items: end;
    padding: 24px 0 16px;
    border-bottom: 1px solid var(--cc-line);
}
.cc-vu__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--cc-ink-dim);
    position: relative;
    padding-top: 8px;
    transition: color 150ms ease;
}
.cc-vu__col:hover { color: var(--cc-ink); }
.cc-vu__count {
    font-family: var(--cc-font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cc-ink);
}
.cc-vu__bar {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-bottom: 1px solid var(--cc-line-strong);
}
.cc-vu__fill {
    display: block;
    width: 70%;
    height: calc(var(--ratio, 0) * 100%);
    min-height: 4px;
    background:
        linear-gradient(180deg,
            var(--cc-magenta) 0%,
            var(--cc-yellow) 35%,
            var(--cc-mint) 80%
        );
    box-shadow: 0 0 20px rgba(0, 245, 160, 0.25);
    transition: height 500ms cubic-bezier(.16,.8,.3,1);
}
.cc-vu__scale {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent calc(10% - 1px),
        rgba(244, 237, 227, 0.05) calc(10% - 1px),
        rgba(244, 237, 227, 0.05) 10%
    );
    pointer-events: none;
}
.cc-vu__label {
    font-family: var(--cc-font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.cc-vu__col--cur .cc-vu__count { color: var(--cc-yellow); }
.cc-vu__col--cur::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--cc-yellow);
}
.cc-vu__now {
    position: absolute;
    bottom: -22px;
    font-family: var(--cc-font-mono);
    font-size: 10px;
    color: var(--cc-yellow);
    letter-spacing: 0.2em;
}

/* =========================================================
 * 5. Venues
 * ========================================================= */
.cc-venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.cc-venue {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--cc-bg-alt);
    border: 1px solid var(--cc-line);
    border-radius: 4px;
    text-decoration: none;
    color: var(--cc-ink);
    min-height: 260px;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease;
}
.cc-venue::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--venue-accent, var(--cc-magenta));
    box-shadow: 0 0 16px var(--venue-accent, var(--cc-magenta));
}
.cc-venue--magenta { --venue-accent: var(--cc-magenta); }
.cc-venue--yellow  { --venue-accent: var(--cc-yellow); }
.cc-venue--mint    { --venue-accent: var(--cc-mint); }
.cc-venue--violet  { --venue-accent: var(--cc-violet); }

.cc-venue:hover {
    transform: translateY(-2px);
    border-color: var(--venue-accent);
}
.cc-venue__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--venue-accent);
    font-family: var(--cc-font-mono);
}
.cc-venue__count {
    font-family: var(--cc-font-display);
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1;
}
.cc-venue__count-label {
    font-size: 11px;
    letter-spacing: 0.2em;
}
.cc-venue__name {
    font-family: var(--cc-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 4px;
    color: var(--cc-ink);
}
.cc-venue__meta {
    font-family: var(--cc-font-mono);
    font-size: 12px;
    color: var(--cc-ink-faint);
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--cc-line);
}
.cc-venue__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.cc-venue__row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
    font-size: 13px;
    color: var(--cc-ink-dim);
}
.cc-venue__date {
    font-family: var(--cc-font-mono);
    color: var(--venue-accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.cc-venue__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cc-venue__cta {
    margin-top: 16px;
    font-family: var(--cc-font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--venue-accent);
    align-self: flex-start;
}

/* =========================================================
 * 6. Filter + list
 * ========================================================= */
.cc-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    margin-bottom: 24px;
    background: var(--cc-bg-alt);
    border: 1px solid var(--cc-line);
    border-radius: 4px;
    position: sticky;
    top: 12px;
    z-index: 5;
    backdrop-filter: blur(8px);
    background: rgba(19, 24, 31, 0.92);
}
.cc-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.cc-filter__label {
    font-family: var(--cc-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cc-ink-faint);
    margin-right: 8px;
    min-width: 60px;
}
.cc-chip {
    position: relative;
    cursor: pointer;
}
.cc-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cc-chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--cc-line-strong);
    border-radius: 2px;
    font-family: var(--cc-font-mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--cc-ink-dim);
    background: transparent;
    transition: all 150ms ease;
}
.cc-chip span em {
    font-style: normal;
    font-size: 10px;
    color: var(--cc-ink-faint);
}
.cc-chip:hover span {
    color: var(--cc-ink);
    border-color: var(--cc-ink-dim);
}
.cc-chip input:checked + span {
    background: var(--cc-magenta);
    color: #fff;
    border-color: var(--cc-magenta);
}
.cc-chip input:checked + span em { color: rgba(255,255,255,0.7); }

.cc-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--cc-font-mono);
    font-size: 12px;
    color: var(--cc-ink-faint);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.cc-list-meta__clear {
    color: var(--cc-magenta);
    text-decoration: none;
}
.cc-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--cc-ink-dim);
    border: 1px dashed var(--cc-line);
    border-radius: 4px;
}
.cc-empty__icon {
    display: block;
    font-family: var(--cc-font-display);
    font-size: 2rem;
    color: var(--cc-ink-faint);
    margin-bottom: 12px;
}
.cc-empty__clear {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    font-family: var(--cc-font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--cc-ink);
    text-decoration: none;
    border: 1px solid var(--cc-line-strong);
    border-radius: 2px;
}

/* =========================================================
 * Responsive
 * ========================================================= */
@media (max-width: 960px) {
    .cc-ticket-rail { grid-template-columns: 1fr; }
    .cc-vu { grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .cc-vu__bar { height: 120px; }

    /* Vertical ticket: main / perf horizontal / stub stacked column */
    .cc-ticket {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        min-height: 0;
    }
    .cc-ticket__perf {
        width: 100%;
        height: 0;
        border-left: none;
        border-top: 1.5px dashed var(--cc-line-strong);
    }
    .cc-ticket__perf::before,
    .cc-ticket__perf::after {
        top: -9px;
        bottom: auto;
    }
    .cc-ticket__perf::before { left: -9px; }
    .cc-ticket__perf::after  { right: -9px; left: auto; }
    .cc-ticket__stub {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 20px 24px;
    }
    .cc-countdown {
        padding: 0;
        width: 100%;
        max-width: none;
    }
    .cc-countdown__row { gap: 8px; }
    .cc-countdown__cell { padding: 10px 6px; }
    .cc-countdown__cell b { font-size: 1.6rem; }
    .cc-ticket__cta,
    .cc-ticket__cal { margin-top: 0; width: 100%; }
    .cc-ticket__cta { padding: 12px; }
}
@media (max-width: 640px) {
    .cc-marquee { margin-left: -16px; margin-right: -16px; }
    .cc-hero-head { padding-top: 20px; padding-bottom: 32px; }
    .cc-display { font-size: clamp(2.5rem, 14vw, 4rem); }
    .cc-section { margin-bottom: 48px; }
    .cc-section__head { flex-wrap: wrap; gap: 8px; }
    .cc-section__meta { margin-left: 0; }
    .cc-ticket__stub {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    .cc-countdown { max-width: none; width: 100%; flex: 0 0 auto; }
    .cc-countdown__row { gap: 6px; }
    .cc-countdown__cell { padding: 10px 6px; }
    .cc-countdown__cell b { font-size: 1.5rem; }
    .cc-ticket__cta,
    .cc-ticket__cal { width: 100%; }
    .cc-ticket__cta { padding: 12px; }

    .cc-grid--3 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cc-card__body { padding: 12px 14px 14px; }
    .cc-card__title { font-size: 13px; }

    .cc-venue-grid { grid-template-columns: 1fr; }

    .cc-filter { position: static; padding: 14px; }
    .cc-filter__label { min-width: 0; width: 100%; margin-bottom: 4px; }
    .cc-filter__row {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -14px;
        padding: 0 14px;
        scroll-snap-type: x mandatory;
    }
    .cc-filter__row::-webkit-scrollbar { display: none; }
    .cc-chip { scroll-snap-align: start; flex-shrink: 0; }

    .cc-hero-stats { gap: 16px; font-size: 12px; }
    .cc-stat em { font-size: 1.4em; }
}
@media (max-width: 420px) {
    .cc-grid--3 { grid-template-columns: 1fr; }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .cc-marquee__track,
    .cc-ticket--imminent::before,
    .cc-card__badge--imminent {
        animation: none !important;
    }
}
