:root {
    --bg: #080d14;
    --bg-soft: #101925;
    --card: rgba(14, 22, 33, 0.78);
    --text: #fff7e8;
    --muted: #d8c8aa;
    --gold: #f2b636;
    --gold-soft: #ffd36c;
    --twitch: #9146ff;
    --focus: #fff3a6;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top, rgba(145, 70, 255, 0.15), transparent 32rem), linear-gradient(135deg, rgba(8, 13, 20, 0.9), rgba(8, 13, 20, 0.98)), url("../img/heinzlive-background.webp?v=1") center / cover fixed;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    border: 2px solid var(--focus);
    border-radius: 0.6rem;
    color: #080d14;
    background: var(--focus);
    font-weight: 900;
    text-decoration: none;
    transform: translateY(calc(-100% - 1rem));
    transition: transform 120ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

body.has-open-modal {
    overflow: hidden;
}

.page-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    padding: clamp(1.25rem, 4vw, 3rem);
}

.landing,
.content-page {
    margin: auto;
    text-align: center;
}

.landing,
.content-page {
    width: min(100%, 52rem);
}

.schedule-page {
    width: min(100%, 76rem);
    margin: auto;
    text-align: center;
}

.brand-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: min(100%, 31rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    padding: 0;
}

.site-logo {
    display: block;
    width: min(100%, 24rem);
    max-height: 8rem;
}

.content-logo {
    display: flex;
    max-width: min(100%, 31rem);
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    text-decoration: none;
}

.content-logo .site-logo {
    width: min(100%, 24rem);
    max-height: 8rem;
}

.portrait-wrap {
    max-width: min(100%, 35rem);
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    padding: clamp(0.45rem, 1.4vw, 0.75rem);
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(242, 182, 54, 0.9), rgba(145, 70, 255, 0.45));
    box-shadow: var(--shadow);
}

.portrait {
    display: block;
    width: 100%;
    max-height: min(58vh, 42rem);
    border-radius: 1.45rem;
    object-fit: cover;
    object-position: center;
}

.intro,
.content-card {
    border: 1px solid rgba(255, 211, 108, 0.18);
    border-radius: 1.4rem;
    background: var(--card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.intro {
    margin: 0 auto clamp(1.4rem, 4vw, 2.4rem);
    padding: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.intro h2 {
    position: relative;
    width: fit-content;
    margin: 0 auto 0.9rem;
    padding-bottom: 0.55rem;
    color: var(--text);
    font-size: clamp(1.45rem, 4vw, 2.15rem);
    line-height: 1.1;
    text-wrap: balance;
}

.intro h2::after {
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 0.18rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--twitch));
    content: "";
}

.intro p,
.text-content p {
    margin: 0 0 1rem;
}

.intro p:last-child,
.text-content p:last-child {
    margin-bottom: 0;
}

.social-links {
    display: grid;
    gap: 0.85rem;
    margin-bottom: clamp(1.6rem, 5vw, 3rem);
}

.social-links-featured,
.social-links-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.social-links-featured .social-link {
    min-width: min(13rem, 45%);
    min-height: 4.25rem;
    justify-content: center;
    padding-inline: 1.4rem;
    font-size: 1.08rem;
    font-weight: 900;
}

.social-links-featured .social-link img {
    width: 2.15rem;
    height: 2.15rem;
}

.social-links-featured .social-link-twitch {
    border-color: rgba(183, 139, 255, 0.95);
    background: linear-gradient(135deg, #772ce8, #4f179f);
    box-shadow: 0 14px 36px rgba(145, 70, 255, 0.32);
}

.social-links-featured .social-link-discord {
    border-color: rgba(153, 170, 255, 0.95);
    background: linear-gradient(135deg, #4752c4, #303991);
    box-shadow: 0 14px 36px rgba(88, 101, 242, 0.28);
}

.social-links-featured .social-link-twitch:hover {
    border-color: #d3b8ff;
    background: linear-gradient(135deg, #6f27d4, #46138e);
}

.social-links-featured .social-link-discord:hover {
    border-color: #bdc5ff;
    background: linear-gradient(135deg, #3f49b5, #29327f);
}

.social-links-secondary .social-link {
    min-height: 2.9rem;
    padding: 0.6rem 0.85rem;
}

.social-links-secondary .social-link img {
    width: 1.35rem;
    height: 1.35rem;
}

.stream-schedule {
    margin: 0 auto clamp(1.6rem, 5vw, 3rem);
    text-align: left;
}

.schedule-heading {
    margin-bottom: 1rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.35rem;
    color: var(--gold-soft);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.schedule-heading h1,
.schedule-heading h2 {
    margin: 0;
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    line-height: 1;
}

.schedule-heading p:last-child {
    max-width: 38rem;
    margin: 0.85rem auto 0;
    color: var(--muted);
    line-height: 1.6;
}

.schedule-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.42fr);
    gap: clamp(0.75rem, 2vw, 1rem);
    align-items: start;
}

.month-panel,
.upcoming-panel,
.schedule-empty {
    border: 1px solid rgba(255, 211, 108, 0.18);
    border-radius: 1.4rem;
    background: linear-gradient(145deg, rgba(14, 22, 33, 0.9), rgba(16, 25, 37, 0.68));
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.month-panel,
.upcoming-panel {
    overflow: hidden;
}

.month-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(255, 247, 232, 0.1);
}

.month-header span {
    color: var(--gold-soft);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 900;
    text-align: center;
}

.month-header a,
.schedule-empty a {
    color: var(--gold-soft);
    font-weight: 800;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.22em;
}

.month-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 211, 108, 0.28);
    border-radius: 999px;
    background: rgba(8, 13, 20, 0.48);
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
}

.current-month-link {
    grid-column: 1 / -1;
    justify-self: center;
    font-size: 0.9rem;
}

.weekday-row,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
    background: rgba(16, 25, 37, 0.96);
    color: var(--muted);
    font-size: clamp(0.48rem, 1.25vw, 0.7rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.weekday-row span {
    padding: clamp(0.26rem, 1vw, 0.5rem) clamp(0.18rem, 0.8vw, 0.45rem);
    border-right: 1px solid rgba(255, 247, 232, 0.08);
    text-align: center;
}

.calendar-scroll {
    overflow: visible;
    border-top: 1px solid rgba(255, 247, 232, 0.08);
}

.calendar-agenda {
    display: none;
}

.calendar-day {
    min-height: clamp(4.4rem, 8vw, 6.4rem);
    padding: clamp(0.22rem, 0.8vw, 0.45rem);
    border-right: 1px solid rgba(255, 247, 232, 0.08);
    border-bottom: 1px solid rgba(255, 247, 232, 0.08);
    background: rgba(255, 247, 232, 0.035);
}

.calendar-day.is-outside-month {
    background: rgba(255, 247, 232, 0.015);
}

.calendar-day.is-outside-month .day-number {
    color: var(--muted);
}

.calendar-day.is-today {
    background: linear-gradient(180deg, rgba(242, 182, 54, 0.16), rgba(145, 70, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(242, 182, 54, 0.34);
}

.day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.15rem, 2.5vw, 1.55rem);
    height: clamp(1.15rem, 2.5vw, 1.55rem);
    margin-bottom: clamp(0.12rem, 0.5vw, 0.25rem);
    border-radius: 999px;
    background: rgba(8, 13, 20, 0.52);
    font-size: clamp(0.64rem, 1.5vw, 0.82rem);
    font-weight: 900;
}

.today-label {
    display: inline-block;
    margin-left: 0.2rem;
    color: var(--gold-soft);
    font-size: clamp(0.48rem, 1.15vw, 0.68rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.day-event {
    display: grid;
    gap: clamp(0.1rem, 0.35vw, 0.18rem);
    margin-top: clamp(0.16rem, 0.45vw, 0.28rem);
    padding: clamp(0.2rem, 0.7vw, 0.42rem);
    border: 1px solid rgba(145, 70, 255, 0.45);
    border-radius: 0.9rem;
    background: rgba(145, 70, 255, 0.16);
    font-size: clamp(0.5rem, 1.08vw, 0.7rem);
    transition: border-color 160ms ease, background 160ms ease;
}

.day-event:has(.calendar-event-trigger:hover),
.day-event:has(.calendar-event-trigger:focus-visible) {
    border-color: rgba(255, 211, 108, 0.64);
    background: rgba(145, 70, 255, 0.24);
}

.event-title {
    display: block;
    width: 100%;
    min-height: 1.5rem;
    padding: 0;
    border: 0;
    color: var(--text);
    background: transparent;
    font: inherit;
    font-weight: 900;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

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

.upcoming-panel {
    padding: 0.85rem;
}

.landing-upcoming {
    width: min(100%, 32rem);
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    text-align: center;
}

.landing-upcoming .upcoming-list {
    text-align: left;
}

.upcoming-panel h3 {
    margin: 0 0 0.9rem;
    color: var(--gold-soft);
    font-size: 1.25rem;
}

.landing-upcoming h3 {
    margin-bottom: 0.65rem;
    font-size: clamp(1rem, 3vw, 1.35rem);
}

.live-now {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(15rem, 0.72fr);
    gap: clamp(1rem, 3vw, 1.5rem);
    margin: 0 auto clamp(1.8rem, 5vw, 3rem);
    padding: clamp(0.75rem, 2vw, 1rem);
    border: 1px solid rgba(255, 68, 68, 0.55);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(145, 70, 255, 0.34), transparent 38%),
        linear-gradient(145deg, rgba(19, 10, 18, 0.96), rgba(12, 19, 30, 0.95));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 247, 232, 0.08);
    text-align: left;
}

.live-now-player {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: #05080d;
    aspect-ratio: 16 / 9;
}

.live-now-player img,
.live-now-player iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.live-now-player iframe[hidden] {
    display: none;
}

.live-now-player.is-playing img,
.live-now-player.is-playing .live-now-play {
    display: none;
}

.live-now-play {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 0.7rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 13, 0.82));
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.live-now-play span {
    width: 0;
    height: 0;
    border-top: 0.55rem solid transparent;
    border-bottom: 0.55rem solid transparent;
    border-left: 0.85rem solid #fff;
    filter: drop-shadow(0 0 0.5rem rgba(255, 255, 255, 0.45));
}

.live-now-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(0.35rem, 2vw, 0.85rem) clamp(0.25rem, 1vw, 0.65rem);
}

.live-now-status-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.live-now-badge,
.live-now-viewers,
.live-now-category {
    margin: 0;
}

.live-now-badge {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-now-badge span {
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 50%;
    background: #ff3b3b;
    box-shadow: 0 0 1rem rgba(255, 59, 59, 0.9);
}

.live-now-viewers {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 750;
}

.live-now-category {
    margin-top: 1.1rem;
    color: var(--gold-soft);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.live-now h2 {
    margin: 0.5rem 0 1.2rem;
    overflow-wrap: anywhere;
    font-size: clamp(1.4rem, 3.8vw, 2.2rem);
    line-height: 1.05;
    text-wrap: balance;
}

.social-link.live-now-link {
    width: auto;
    margin-top: auto;
    border-color: rgba(191, 153, 255, 0.7);
    background: linear-gradient(135deg, #9146ff, #6629ba);
    font-weight: 850;
}

.social-link.live-now-link:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #a66cff, #7434c9);
}

.upcoming-list {
    display: grid;
    gap: 0.75rem;
}

.upcoming-card {
    display: grid;
    grid-template-columns: 4.1rem 1fr;
    gap: 0.72rem;
    padding: 0.72rem;
    border: 1px solid rgba(255, 247, 232, 0.1);
    border-radius: 1rem;
    background: rgba(8, 13, 20, 0.45);
}

.upcoming-card time {
    display: grid;
    place-content: center;
    min-height: 3.8rem;
    border-radius: 0.9rem;
    background: linear-gradient(145deg, rgba(242, 182, 54, 0.92), rgba(145, 70, 255, 0.82));
    color: #080d14;
    text-align: center;
}

.upcoming-card time strong {
    font-size: 1.15rem;
}

.upcoming-card time em {
    margin-top: 0.08rem;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.upcoming-card time span {
    font-size: 0.78rem;
    font-weight: 900;
}

.upcoming-card h4 {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.25;
}

.upcoming-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.next-stream-card {
    position: relative;
    display: grid;
    gap: 0.85rem;
    padding: clamp(1rem, 4vw, 1.55rem);
    overflow: hidden;
    border: 1px solid rgba(255, 211, 108, 0.3);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 92% 18%, rgba(145, 70, 255, 0.36), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(242, 182, 54, 0.2), transparent 38%),
        linear-gradient(145deg, rgba(11, 18, 28, 0.96), rgba(29, 17, 45, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.08);
    color: inherit;
    text-align: left;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.next-stream-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 108, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.12), 0 18px 44px rgba(0, 0, 0, 0.28);
}

.next-stream-card.has-category-image {
    grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr);
    align-items: stretch;
}

.next-stream-category-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 10rem;
    border-radius: 0.85rem;
    object-fit: cover;
}

.next-stream-card-content {
    display: grid;
    align-content: center;
    gap: 0.85rem;
    min-width: 0;
}

.next-stream-card::after {
    content: "";
    position: absolute;
    top: 1.55rem;
    right: 1rem;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: #ff3b3b;
    box-shadow: 0 0 1.1rem rgba(255, 59, 59, 0.85);
}

.next-stream-kicker {
    width: fit-content;
    margin: 0;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 211, 108, 0.35);
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(8, 13, 20, 0.5);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.next-stream-copy {
    display: grid;
    gap: 0.55rem;
}

.next-stream-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.next-stream-copy h4 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.45rem, 4.4vw, 2.28rem);
    line-height: 1.02;
    text-wrap: balance;
}

.next-stream-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

.next-stream-footer time {
    display: inline-flex;
    width: fit-content;
    padding: 0.55rem 0.72rem;
    border-radius: 0.85rem;
    color: #080d14;
    background: linear-gradient(135deg, rgba(242, 182, 54, 0.98), rgba(255, 211, 108, 0.9));
    font-size: clamp(0.95rem, 2.5vw, 1.08rem);
    font-weight: 900;
}

.next-stream-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.event-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.35rem;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-top: 0;
}

.calendar-link {
    display: inline-flex;
    justify-content: center;
    width: auto;
    margin: 1rem auto 0;
}

.landing-upcoming .calendar-link {
    margin-inline: auto;
}

.vod-section {
    margin: 0 auto clamp(1.6rem, 5vw, 3rem);
    text-align: left;
}

.vod-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.vod-card {
    overflow: hidden;
    border: 1px solid rgba(255, 247, 232, 0.1);
    border-radius: 1rem;
    color: var(--text);
    background: rgba(8, 13, 20, 0.45);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.vod-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 108, 0.55);
    background: rgba(24, 36, 52, 0.68);
}

.vod-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(255, 247, 232, 0.06);
}

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

.vod-card span {
    display: block;
    padding: 0.72rem;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.25;
}

.vod-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.vod-link {
    width: max-content;
    margin: 0;
}

.event-actions-compact {
    margin-top: 0.2rem;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(1.45rem, 3.4vw, 2rem);
    height: clamp(1.45rem, 3.4vw, 2rem);
    border: 1px solid rgba(255, 211, 108, 0.32);
    border-radius: 999px;
    color: var(--gold-soft);
    background: rgba(8, 13, 20, 0.54);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-action:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 211, 108, 0.75);
    background: rgba(145, 70, 255, 0.28);
}

.icon-action-large {
    width: 3.2rem;
    height: 3.2rem;
}

.icon-action-large .icon-mask {
    width: 1.45rem;
    height: 1.45rem;
}

.icon-mask {
    display: block;
    width: clamp(0.72rem, 1.8vw, 1rem);
    height: clamp(0.72rem, 1.8vw, 1rem);
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.icon-stream {
    -webkit-mask-image: url("../icons/external-link.svg");
    mask-image: url("../icons/external-link.svg");
}

.icon-calendar {
    -webkit-mask-image: url("../icons/calendar.svg");
    mask-image: url("../icons/calendar.svg");
}

.schedule-empty {
    padding: 1.2rem;
    color: var(--muted);
    text-align: center;
}

.event-modal[hidden] {
    display: none;
}

.event-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow-y: auto;
}

.event-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, 0.72);
    backdrop-filter: blur(10px);
}

.event-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    padding: clamp(1.2rem, 4vw, 1.7rem);
    border: 1px solid rgba(255, 211, 108, 0.26);
    border-radius: 1.35rem;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 92% 18%, rgba(145, 70, 255, 0.34), transparent 28%),
        radial-gradient(circle at 0% 100%, rgba(242, 182, 54, 0.18), transparent 38%),
        linear-gradient(145deg, rgba(11, 18, 28, 0.99), rgba(29, 17, 45, 0.96));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    text-align: left;
}

.event-modal-layout {
    display: grid;
    gap: clamp(1rem, 3vw, 1.4rem);
}

.event-modal-card.has-category-image .event-modal-layout {
    grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
}

.event-modal-image-wrap {
    overflow: hidden;
    min-height: 13rem;
    border-radius: 0.95rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.event-modal-image-wrap[hidden] {
    display: none;
}

.event-modal-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-modal-copy {
    display: grid;
    align-content: center;
    min-width: 0;
}

.event-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 247, 232, 0.14);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(8, 13, 20, 0.7);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.event-modal-card h2 {
    margin: 0.2rem 2.2rem 0.85rem 0;
    color: var(--text);
    font-size: clamp(1.35rem, 5vw, 2rem);
    line-height: 1.12;
}

.event-modal-time,
.event-modal-category {
    margin: 0.4rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.event-modal-category {
    color: var(--gold-soft);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.event-modal-time {
    width: fit-content;
    padding: 0.55rem 0.72rem;
    border-radius: 0.85rem;
    color: #080d14;
    background: linear-gradient(135deg, rgba(242, 182, 54, 0.98), rgba(255, 211, 108, 0.9));
    font-weight: 900;
}

.event-modal-actions {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 247, 232, 0.15);
    border-radius: 999px;
    color: var(--text);
    background: rgba(16, 25, 37, 0.86);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 182, 54, 0.72);
    background: rgba(24, 36, 52, 0.95);
}

.social-link-primary {
    min-height: 3.65rem;
    padding-inline: 1.25rem;
    border-color: rgba(145, 70, 255, 0.9);
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.95), rgba(98, 42, 188, 0.95));
    box-shadow: 0 12px 34px rgba(145, 70, 255, 0.24);
    font-weight: 800;
}

.content-page {
    text-align: left;
}

.content-card {
    padding: clamp(1.4rem, 4vw, 2.5rem);
}

.content-card h1 {
    margin: 0 0 1.25rem;
    color: var(--gold-soft);
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.text-content {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.breadcrumb ol {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 211, 108, 0.2);
    border-radius: 999px;
    background: rgba(8, 13, 20, 0.66);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
    list-style: none;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.breadcrumb li + li::before {
    color: var(--gold-soft);
    content: ">";
}

.breadcrumb a {
    color: var(--gold-soft);
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.2em;
}

.site-footer {
    width: min(100%, 52rem);
    margin-top: clamp(2rem, 6vw, 4rem);
    color: var(--muted);
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.2rem;
    margin-bottom: 0.75rem;
}

.footer-nav a {
    text-decoration-color: rgba(242, 182, 54, 0.55);
    text-underline-offset: 0.2em;
}

.footer-nav a:hover {
    color: var(--gold-soft);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 42rem) {
    body {
        background-attachment: scroll;
    }

    .page-shell {
        padding-inline: 1rem;
    }

    .portrait {
        max-height: 54vh;
    }

    .social-links {
        width: 100%;
    }

    .social-links-featured {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .social-links-secondary {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .social-link {
        justify-content: center;
    }

    .social-links-featured .social-link {
        min-width: 0;
        padding-inline: 0.75rem;
    }

    .live-now {
        grid-template-columns: 1fr;
    }

    .live-now-content {
        padding: 0.45rem 0.35rem 0.35rem;
    }

    .social-link.live-now-link {
        width: 100%;
    }

    .vod-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .month-header {
        gap: 0.45rem;
        padding: 0.7rem;
    }

    .month-nav {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 1.8rem;
    }

    .current-month-link {
        font-size: 0.95rem;
    }

    .calendar-scroll {
        display: none;
    }

    .calendar-agenda {
        display: grid;
        gap: 0.8rem;
        padding: 0.85rem;
    }

    .agenda-day {
        display: grid;
        grid-template-columns: 4.4rem 1fr;
        gap: 0.75rem;
        align-items: start;
    }

    .agenda-date {
        display: grid;
        place-content: center;
        min-height: 4.4rem;
        border-radius: 1rem;
        background: linear-gradient(145deg, rgba(242, 182, 54, 0.92), rgba(145, 70, 255, 0.82));
        color: #080d14;
        text-align: center;
    }

    .agenda-date strong {
        font-size: 1.05rem;
    }

    .agenda-date span {
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .agenda-events {
        display: grid;
        gap: 0.55rem;
    }

    .agenda-event {
        display: grid;
        gap: 0.35rem;
        width: 100%;
        padding: 0.85rem;
        border: 1px solid rgba(145, 70, 255, 0.45);
        border-radius: 1rem;
        color: var(--text);
        background: rgba(145, 70, 255, 0.16);
        font: inherit;
        text-align: left;
    }

    .agenda-event strong {
        font-size: 1rem;
        line-height: 1.25;
    }

    .agenda-event span,
    .agenda-empty {
        color: var(--muted);
        font-size: 0.95rem;
    }

    .event-modal-card.has-category-image .event-modal-layout {
        grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
    }

    .event-modal-image-wrap {
        min-height: 10rem;
    }

    .agenda-empty {
        margin: 0;
        text-align: center;
    }

    .upcoming-card {
        grid-template-columns: 4.2rem 1fr;
    }
}

@media (max-width: 56rem) and (orientation: landscape) {
    .portrait-wrap {
        width: min(42vh, 18rem);
        aspect-ratio: 1;
        margin-bottom: clamp(1rem, 3vw, 1.5rem);
    }

    .portrait {
        height: 100%;
        max-height: none;
        aspect-ratio: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    .intro,
    .content-card,
    .month-panel,
    .upcoming-panel,
    .schedule-empty,
    .social-link,
    .vod-card,
    .next-stream-card,
    .event-modal-card {
        border-width: 2px;
    }

    .muted,
    .schedule-heading p:last-child,
    .text-content,
    .site-footer {
        color: var(--text);
    }
}

@media (forced-colors: active) {
    .skip-link,
    .social-link,
    .next-stream-card,
    .vod-card,
    .icon-action,
    .event-modal-card,
    .event-modal-time,
    .agenda-date {
        border: 2px solid ButtonText;
        color: ButtonText;
        background: Canvas;
        box-shadow: none;
    }

    .calendar-day.is-today {
        outline: 3px solid Highlight;
        outline-offset: -3px;
    }

    .icon-mask {
        background: ButtonText;
    }

    .next-stream-card::after {
        border: 2px solid ButtonText;
        background: Highlight;
        box-shadow: none;
    }
}
