:root {
    --red: #d86451;
    --maroon: #6d2620;
    --black: #1e1f23;
    --white: #ffffff;
    --muted: #cfc7c2;
}

* {
    box-sizing: border-box;
    border-radius: 0;
}

html, body {
    margin: 0;
}

body {
    min-height: 100dvh;
    color: var(--white);
    font-family: Anton, Impact, Haettenschweiler, sans-serif;
    background-color: var(--red);
    background-image: url("/pattern.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

a {
    color: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px 4px;
    background: var(--white);
    color: var(--black);
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
}

.titles h1 {
    margin: 0;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 0.9;
    text-shadow: 1px 1px 0 #000;
}

.titles h1 a {
    color: inherit;
    text-decoration: none;
}

.titles p {
    margin: 4px 0 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #000;
}

.watch-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px 10px;
    background: var(--black);
    color: var(--white);
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
}

.watch-cta:hover,
.watch-cta:focus-visible {
    background: var(--white);
    color: var(--black);
}

.wrap {
    max-width: 820px;
    margin: 0 16px 32px;
    padding: 28px 24px;
    background: var(--black);
}

.wrap-wide {
    max-width: 980px;
}

h2 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h3 {
    margin: 28px 0 10px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

p, li {
    font-family: system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

p {
    margin: 0 0 14px;
}

ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 22px;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--white);
}

pre {
    overflow: auto;
    padding: 14px;
    background: #111;
    color: #f3ece9;
    font-size: 13px;
    line-height: 1.45;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.note {
    color: var(--muted);
    font-size: 14px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.photo-tile {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #111;
    border: 0;
    cursor: pointer;
    aspect-ratio: 3 / 2;
}

.photo-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-credit {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 8px 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: var(--white);
    font-family: system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-figure {
    margin: 0;
    max-width: min(1100px, calc(100vw - 120px));
    max-height: calc(100dvh - 40px);
    text-align: center;
}

.lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 90px);
    margin: 0 auto;
    object-fit: contain;
    background: #000;
}

.lightbox-figure figcaption {
    margin-top: 10px;
    font-family: system-ui, sans-serif;
    font-size: 14px;
    color: var(--muted);
}

.lightbox-close,
.lightbox-nav {
    flex-shrink: 0;
    border: 0;
    background: var(--white);
    color: var(--black);
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 28px;
}

.lightbox-nav {
    width: 48px;
    height: 64px;
    font-size: 36px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: var(--red);
    color: var(--white);
}

@media (max-width: 700px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lightbox {
        flex-direction: column;
        gap: 10px;
        padding: 56px 12px 12px;
    }

    .lightbox-figure {
        max-width: 100%;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
}

.day-block {
    margin-bottom: 28px;
}

.act-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 8px;
    font-family: system-ui, sans-serif;
    font-size: 15px;
}

.act-row a {
    color: var(--white);
}

.act-time {
    color: var(--muted);
}

.stream-yes,
.stream-no,
.stream-maybe {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stream-yes {
    background: var(--white);
    color: var(--black);
}

.stream-no {
    background: #5c4038;
    color: #f0e6e2;
}

.stream-maybe {
    border: 1px solid currentColor;
}

@media (max-width: 640px) {
    .watch-cta {
        display: none;
    }
}
