:root {
    color-scheme: dark;
    --bg: #090b0e;
    --surface: #11151a;
    --surface-2: #171c22;
    --border: #252d36;
    --text: #f5f7f9;
    --muted: #95a0ac;
    --accent: #e6a51d;
    --accent-soft: rgba(230, 165, 29, .12);
    --success: #5fda91;
    --danger: #ff8585;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
}

.public-header {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.public-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent);
    color: #181108;
    font-weight: 900;
}

.public-brand strong,
.public-brand small {
    display: block;
}

.public-brand small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
}

.event-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 60px;
}

.event-hero {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--surface);
}

.event-hero-media,
.event-hero-media img,
.event-hero-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.event-hero-media img {
    object-fit: cover;
}

.event-hero-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(230,165,29,.15), transparent 35%),
        linear-gradient(135deg, #14191f, #0c0f13);
}

.event-hero-placeholder span {
    color: #4e5863;
    letter-spacing: .18em;
    font-weight: 900;
}

.event-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 9, 12, .98) 0%, rgba(7, 9, 12, .55) 48%, rgba(7, 9, 12, .15) 100%),
        linear-gradient(to right, rgba(7, 9, 12, .6), transparent 55%);
}

.event-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 38px;
}

.event-category,
.section-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.event-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: .98;
    letter-spacing: -.04em;
}

.event-lead {
    max-width: 700px;
    margin: 16px 0 0;
    color: #d5dbe1;
    font-size: 17px;
    line-height: 1.55;
}

.event-hero-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 22px;
    color: #c2c9d0;
    font-size: 13px;
}

.event-hero-meta span {
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(10, 12, 15, .42);
    backdrop-filter: blur(8px);
}

.event-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.event-main-column {
    display: grid;
    gap: 18px;
}

.event-side-column {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 18px;
}

.public-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.public-card h2 {
    margin: 0;
    font-size: 25px;
}

.event-description {
    color: #cbd2d9;
    font-size: 15px;
    line-height: 1.75;
}

.event-description-muted {
    color: var(--muted);
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.public-ticket-list {
    display: grid;
    gap: 12px;
}

.public-ticket-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 20px;
    align-items: center;
    padding: 18px;
    background: #0d1115;
    border: 1px solid #222a32;
    border-radius: 14px;
}

.public-ticket-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.public-ticket-name-row h3 {
    margin: 0;
    font-size: 20px;
}

.public-ticket-info > p {
    margin: 7px 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.ticket-sale-badge,
.ticket-upcoming-badge,
.ticket-unavailable-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ticket-sale-badge {
    color: #9df1bd;
    background: rgba(95, 218, 145, .1);
    border: 1px solid rgba(95, 218, 145, .2);
}

.ticket-upcoming-badge {
    color: #f1c668;
    background: var(--accent-soft);
    border: 1px solid rgba(230, 165, 29, .22);
}

.ticket-unavailable-badge {
    color: #a9b2bb;
    background: rgba(149,160,172,.08);
    border: 1px solid rgba(149,160,172,.15);
}

.current-batch {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.current-batch span {
    color: #bcc5ce;
    font-size: 13px;
}

.current-batch strong {
    color: var(--text);
    font-size: 21px;
}

.current-batch small {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 11px;
}

.current-batch.upcoming strong {
    color: #d6dce2;
}

.current-batch.unavailable span {
    color: var(--muted);
}

.public-ticket-action {
    display: grid;
    gap: 7px;
}

.public-ticket-action small {
    color: #68737e;
    font-size: 10px;
    text-align: center;
}

.buy-button-disabled {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: #181108;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    opacity: .72;
    cursor: not-allowed;
}

.buy-button-disabled.secondary {
    color: #87929d;
    background: #171c22;
    border: 1px solid var(--border);
}

.ticket-public-empty {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px dashed #35404b;
    border-radius: 13px;
    background: #0d1115;
}

.ticket-public-empty span {
    color: var(--muted);
    font-size: 13px;
}

.info-item {
    display: grid;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid #222a32;
}

.info-item:first-of-type {
    padding-top: 4px;
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-item small {
    color: #6f7b87;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 850;
}

.info-item strong {
    font-size: 15px;
}

.info-item span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.public-note-card {
    background: linear-gradient(145deg, #14191f, #0f1318);
}

.public-note-card strong {
    font-size: 14px;
}

.public-note-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.public-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 30px;
    color: #5e6872;
    font-size: 11px;
    text-align: center;
}

.public-error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.public-error-card {
    width: min(500px, 100%);
    padding: 36px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.public-error-card .public-brand-mark {
    margin: 0 auto 22px;
}

.public-error-card h1 {
    margin: 0 0 10px;
    font-size: 32px;
}

.public-error-card p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .event-content-grid {
        grid-template-columns: 1fr;
    }

    .event-side-column {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .public-ticket-card {
        grid-template-columns: 1fr 150px;
    }
}

@media (max-width: 680px) {
    .public-header,
    .event-page,
    .public-footer {
        width: min(100% - 20px, 1180px);
    }

    .public-header {
        padding: 14px 0;
    }

    .event-hero {
        min-height: 500px;
        border-radius: 17px;
    }

    .event-hero-content {
        padding: 22px;
    }

    .event-hero h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .event-hero-meta {
        display: grid;
        gap: 8px;
    }

    .event-hero-meta span {
        width: fit-content;
        border-radius: 10px;
    }

    .public-card {
        padding: 20px;
        border-radius: 15px;
    }

    .public-ticket-card {
        grid-template-columns: 1fr;
    }

    .public-ticket-action small {
        text-align: left;
    }

    .event-side-column {
        grid-template-columns: 1fr;
    }
}
