:root {
  color-scheme: light;
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #e8e8e8;
  --surface-3: #f4f4f4;
  --text: #000000;
  --muted: #555555;
  --line: #d7d7d7;
  --accent: #ffde59;
  --accent-2: #e5c846;
  --accent-soft: rgba(255, 222, 89, 0.22);
  --accent-3: #00aeef;
  --ok: #00aeef;
  --danger: #e10600;
  --command-text: #000000;
  --body-grid: rgba(0, 0, 0, 0.035);
  --hero-tint: rgba(255, 222, 89, 0.16);
  --hero-overlay: rgba(220, 220, 220, 0.5);
  --hero-transition: 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  --hero-shell-width: min(1560px, calc(100% - 32px));
  --hero-content-padding: 42px 0 46px;
  --hero-content-gap: 24px;
  --hero-copy-max: none;
  --hero-title-size: clamp(3.1rem, 7.2vw, 7.4rem);
  --hero-title-max: min(1260px, 100%);
  --hero-subtitle-size: clamp(1.12rem, 1.6vw, 1.48rem);
  --hero-subtitle-max: 900px;
  --hero-toolbar-width: 100%;
  --hero-toolbar-columns: minmax(210px, 0.85fr) minmax(220px, 0.95fr) minmax(240px, 1fr) minmax(260px, 500px) 76px;
  --hero-toolbar-gap: 12px;
  --hero-toolbar-padding: 14px;
  --hero-field-label-size: 0.78rem;
  --hero-field-control-size: 1.05rem;
  --hero-field-control-height: 42px;
  --hero-field-control-padding: 14px;
  --hero-brand-size: 1.08rem;
  --hero-brand-mark-size: 38px;
  --hero-image-width: min(520px, 30vw);
  --hero-image-height: min(245px, 38vw);
  --hero-image-top: 92px;
  --hero-image-opacity: 0.2;
  --shadow: none;
  --display-font: "Aptos Display", Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: Aptos, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font: "Aptos Mono", "SFMono-Regular", Consolas, "Liberation Mono", ui-monospace, monospace;
  font-family: var(--body-font);
}

:root:not(.hero-compact) {
  --hero-content-padding: clamp(56px, 8vh, 92px) 0 clamp(64px, 9vh, 104px);
  --hero-content-gap: 34px;
  --hero-field-control-height: 50px;
  --hero-image-height: min(315px, 25vw);
  --hero-image-top: 104px;
}

:root.dark-theme {
  color-scheme: dark;
  --bg: #000000;
  --surface: #1c1c1c;
  --surface-2: #2b2b2b;
  --surface-3: #111111;
  --text: #ffffff;
  --muted: #d7d7d7;
  --line: #2b2b2b;
  --accent: #ffde59;
  --accent-2: #e5c846;
  --accent-soft: rgba(255, 222, 89, 0.18);
  --accent-3: #00aeef;
  --ok: #00aeef;
  --danger: #e10600;
  --command-text: #000000;
  --body-grid: rgba(255, 255, 255, 0.04);
  --hero-tint: rgba(255, 222, 89, 0.16);
  --hero-overlay: rgba(0, 0, 0, 0.28);
  --shadow: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--body-grid) 1px, transparent 1px),
    linear-gradient(0deg, var(--body-grid) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 80px;
  color: var(--text);
  min-width: 320px;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app-hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(90deg, var(--hero-tint), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 68px),
    #000000;
  border-bottom: 1px solid #2b2b2b;
  color: #ffffff;
  transition: min-height var(--hero-transition);
}

:root:not(.hero-compact) .app-hero {
  min-height: 100svh;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: var(--hero-image-width);
  height: var(--hero-image-height);
  top: var(--hero-image-top);
  right: max(16px, calc((100vw - 1180px) / 2));
  left: auto;
  bottom: auto;
  object-fit: cover;
  border-radius: 0;
  opacity: var(--hero-image-opacity);
  filter: grayscale(1) saturate(0.2) contrast(1.15);
  mix-blend-mode: screen;
  z-index: -2;
  transition: height var(--hero-transition), top var(--hero-transition);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.86)),
    var(--hero-overlay);
  z-index: -1;
}

.topbar {
  width: var(--hero-shell-width);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: var(--hero-brand-size);
  letter-spacing: 0;
  color: #ffffff;
}

.brand-mark {
  width: calc(var(--hero-brand-mark-size) * 0.72);
  height: calc(var(--hero-brand-mark-size) * 0.72);
  border-radius: 0;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #ffde59;
  box-shadow: none;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 4px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.brand-mark::after {
  width: 4px;
  height: 100%;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display-font);
  font-size: 1.2em;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--accent);
  font-family: var(--mono-font);
  font-size: 0.62em;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.icon-button,
.language-toggle,
.ghost-link {
  min-height: 38px;
  border-radius: 0;
  border: 1px solid #2b2b2b;
  background: #1c1c1c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-button {
  width: 38px;
  cursor: pointer;
}

.language-toggle {
  min-width: 46px;
  cursor: pointer;
  font-weight: 850;
  padding: 0 10px;
}

.ghost-link {
  padding: 0 14px;
  font-weight: 700;
}

.hero-content {
  width: var(--hero-shell-width);
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: var(--hero-content-gap);
  padding: var(--hero-content-padding);
  transition: gap var(--hero-transition), padding-block var(--hero-transition);
}

.hero-copy {
  max-width: var(--hero-copy-max);
}

.eyebrow {
  margin: 0 0 8px;
  color: #d7d7d7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 850;
  font-family: var(--mono-font);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: var(--hero-title-size);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--accent);
  max-width: var(--hero-title-max);
}

.hero-subtitle {
  max-width: var(--hero-subtitle-max);
  margin: 20px 0 0;
  color: #d7d7d7;
  font-size: var(--hero-subtitle-size);
  line-height: 1.55;
}

.weekend-toolbar {
  width: var(--hero-toolbar-width);
  display: grid;
  grid-template-columns: var(--hero-toolbar-columns);
  gap: var(--hero-toolbar-gap);
  padding: var(--hero-toolbar-padding);
  border: 1px solid #2b2b2b;
  background: rgba(28, 28, 28, 0.92);
  box-shadow: var(--shadow);
  border-radius: 0;
}

.field {
  display: grid;
  gap: 6px;
  color: #d7d7d7;
  font-size: var(--hero-field-label-size);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  font-family: var(--mono-font);
}

.field input,
.field select {
  width: 100%;
  min-height: var(--hero-field-control-height);
  border: 1px solid #2b2b2b;
  background: #000000;
  color: #ffffff;
  border-radius: 0;
  padding: 0 var(--hero-field-control-padding);
  font-size: var(--hero-field-control-size);
  letter-spacing: 0;
  outline: none;
  transition: min-height var(--hero-transition);
}

.search-field input {
  font-size: 1rem;
  min-height: 42px;
  padding-inline: 11px;
}

.go-button {
  align-self: end;
  min-height: var(--hero-field-control-height);
  border-radius: 0;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--command-text);
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0;
  padding: 0 14px;
  transition: background var(--hero-transition), border-color var(--hero-transition), min-height var(--hero-transition);
}

.go-button:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.field select option {
  color: var(--text);
}

.field input:focus,
.field select:focus,
.page-size-field select:focus,
.collapse-toggle:focus-visible,
.pagination-button:focus-visible,
.series-toggle:focus-visible,
.event-summary:focus-visible,
.event-actions a:focus-visible,
.event-actions button:focus-visible,
.clipboard-toggle:focus-visible,
.clipboard-remove:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.segment:focus-visible,
.icon-button:focus-visible,
.language-toggle:focus-visible,
.ghost-link:focus-visible,
.go-button:focus-visible {
  outline: 3px solid rgba(255, 222, 89, 0.42);
  outline-offset: 2px;
}

.summary-band {
  border-block: 1px solid #2b2b2b;
  background: rgba(28, 28, 28, 0.96);
}

.summary-grid {
  width: var(--hero-shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.summary-grid article {
  min-height: 96px;
  padding: 20px 24px;
  border-inline-start: 1px solid #2b2b2b;
  display: grid;
  align-content: center;
  gap: 4px;
  transition: min-height var(--hero-transition), padding-block var(--hero-transition);
}

.summary-grid article:last-child {
  border-inline-end: 1px solid #2b2b2b;
}

.summary-grid span,
.side-section h2,
.meta-copy,
.helper-text,
.event-location,
.watch-copy {
  color: var(--muted);
}

.summary-grid span {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  font-weight: 850;
  color: #d7d7d7;
  font-family: var(--mono-font);
}

.summary-grid strong {
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  letter-spacing: 0;
  color: #ffffff;
  font-family: var(--display-font);
}

:root:not(.hero-compact) .summary-grid article {
  min-height: 112px;
  padding: 24px;
}

.content-shell,
.directory-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0 48px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 12px;
}

.side-section {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  padding: 16px;
}

.side-section h2 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--mono-font);
}

.segmented {
  display: grid;
  gap: 8px;
}

.segment,
.primary-action,
.secondary-action,
.event-actions a,
.event-actions button {
  min-height: 38px;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: transparent;
  font-weight: 800;
  font-size: 0.9rem;
}

.segment.is-active,
.primary-action {
  background: var(--accent);
  color: var(--command-text);
  border-color: transparent;
}

.secondary-action,
.segment,
.event-actions a,
.event-actions button {
  background: var(--surface-3);
}

.segment:not(.is-active):hover,
.secondary-action:hover,
.event-actions a:hover,
.event-actions button:hover,
.collapse-toggle:hover,
.pagination-button:not(:disabled):hover,
.series-toggle:hover {
  border-color: rgba(255, 222, 89, 0.65);
}

.primary-action,
.secondary-action {
  width: 100%;
  margin-top: 8px;
}

.primary-action:disabled,
.secondary-action:disabled,
.pagination-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.helper-text {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.clipboard-count {
  margin: 0 0 10px;
  font-weight: 850;
}

.clipboard-list {
  display: grid;
  gap: 8px;
}

.clipboard-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-3);
  padding: 10px;
}

.clipboard-item div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.clipboard-item span,
.clipboard-item em,
.clipboard-empty,
.clipboard-more {
  color: var(--muted);
}

.clipboard-item span {
  font-family: var(--mono-font);
  font-size: 0.75rem;
  font-weight: 850;
}

.clipboard-item strong,
.clipboard-item em {
  overflow-wrap: anywhere;
}

.clipboard-item strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.clipboard-item em {
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
}

.clipboard-remove {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 850;
}

.clipboard-remove:hover,
.danger-action:hover {
  border-color: rgba(225, 6, 0, 0.7);
  color: var(--danger);
}

.clipboard-empty,
.clipboard-more {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.coverage-list {
  display: grid;
  gap: 8px;
}

.coverage-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.coverage-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.schedule-panel {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.heading-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: 0;
}

.meta-copy {
  margin: 0;
  font-size: 0.92rem;
  text-align: right;
}

.pagination-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.page-size-field {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-3);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono-font);
}

.page-size-field select {
  min-height: 28px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 0;
  padding: 0 7px;
  outline: none;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.page-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-status {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.84rem;
  font-weight: 850;
  font-family: var(--mono-font);
  white-space: nowrap;
}

.pagination-button {
  min-height: 36px;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  font-weight: 850;
  font-size: 0.84rem;
}

.collapse-toggle {
  min-height: 36px;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-weight: 850;
  font-size: 0.88rem;
}

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

.event-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  overflow: clip;
  transition: border-color 160ms ease;
}

.event-card.is-open {
  background: var(--surface);
  border-color: rgba(255, 222, 89, 0.72);
}

.event-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  background: var(--surface);
  transition: background 160ms ease;
}

.event-card:hover .event-header,
.event-header:hover,
.event-card:focus-within .event-header {
  background: var(--surface-3);
}

.event-summary {
  width: 100%;
  border: 0;
  color: var(--text);
  background: transparent;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  text-align: left;
}

.clipboard-toggle {
  min-width: 88px;
  min-height: 40px;
  align-self: center;
  margin: 16px 16px 16px 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 850;
}

.clipboard-toggle:hover {
  border-color: rgba(255, 222, 89, 0.65);
}

.clipboard-toggle-mark {
  width: 18px;
  height: 18px;
  border-radius: 0;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 950;
  line-height: 1;
}

.clipboard-toggle.is-saved {
  background: var(--accent);
  border-color: transparent;
  color: var(--command-text);
}

.clipboard-toggle.is-saved .clipboard-toggle-mark {
  background: rgba(0, 0, 0, 0.16);
  color: var(--command-text);
}

.event-main {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.event-date {
  min-height: 92px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--accent) 0 5px, var(--surface-3) 5px 100%);
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: var(--text);
  font-weight: 900;
  font-family: var(--mono-font);
  line-height: 1.2;
}

.event-copy {
  min-width: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pill,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 850;
  font-family: var(--mono-font);
  text-transform: uppercase;
}

.pill {
  background: var(--accent-soft);
  color: var(--text);
  border: 1px solid rgba(255, 222, 89, 0.5);
}

.pill-muted {
  background: rgba(0, 174, 239, 0.12);
  color: var(--accent-3);
  border-color: rgba(0, 174, 239, 0.36);
}

.source-pill {
  background: rgba(0, 174, 239, 0.12);
  color: var(--ok);
  border: 1px solid rgba(0, 174, 239, 0.36);
  text-transform: capitalize;
}

.event-series {
  display: block;
  margin: 0;
  font-size: clamp(1.03rem, 2vw, 1.32rem);
  letter-spacing: 0;
  font-weight: 850;
}

.event-title {
  display: block;
  margin: 4px 0 0;
  font-weight: 850;
}

.event-location,
.watch-copy {
  display: block;
  margin: 6px 0 0;
  line-height: 1.45;
}

.collapse-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: var(--surface-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.when-open {
  display: none;
}

.event-card.is-open .when-open {
  display: inline;
  color: var(--text);
}

.event-card.is-open .when-closed {
  display: none;
}

.collapse-arrow {
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.event-card.is-open .collapse-arrow {
  transform: rotate(225deg) translate(-1px, -1px);
}

.event-details {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 18px;
  padding: 16px;
  background: var(--surface-3);
}

.event-detail-copy {
  min-width: 0;
}

.watch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.watch-links a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent-3);
  display: inline-flex;
  font-family: var(--mono-font);
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 30px;
  padding: 0 10px;
  text-decoration: none;
}

.watch-links a:hover,
.watch-links a:focus-visible {
  background: rgba(0, 174, 239, 0.12);
  border-color: rgba(0, 174, 239, 0.55);
  outline: none;
}

.event-note,
.source-copy,
.series-source-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.source-copy a {
  color: var(--accent-3);
  font-weight: 800;
}

.event-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.event-actions a,
.event-actions button {
  justify-content: flex-start;
  background: var(--surface);
}

.event-actions .source-link {
  color: var(--accent-3);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 0;
  padding: 30px;
  background: var(--surface);
}

.empty-state h3 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.directory-shell {
  padding: 12px 0 56px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-3);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-family: var(--mono-font);
  font-weight: 850;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: var(--surface-3);
}

.series-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.series-toggle-mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 0;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}

.series-toggle-mark::before {
  content: "+";
  font-weight: 900;
  line-height: 1;
}

.series-toggle[aria-expanded="true"] .series-toggle-mark::before {
  content: "-";
}

.series-toggle[aria-expanded="true"] .series-toggle-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--command-text);
}

.series-detail-row td {
  padding: 0;
  background: var(--surface-3);
}

.series-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 12px;
  padding: 14px 14px 8px;
}

.series-detail-grid > div {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  background: var(--surface);
}

.detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.68rem;
  font-weight: 850;
  font-family: var(--mono-font);
}

.series-source-copy {
  padding: 0 14px;
}

.series-event-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0 14px 14px;
  list-style: none;
}

.series-event-list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(160px, 0.7fr);
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  line-height: 1.4;
}

.series-event-list span,
.series-event-list em {
  color: var(--muted);
  font-style: normal;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: #000000;
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 12px 14px;
  box-shadow: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .weekend-toolbar,
  .content-shell,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-field,
  .schedule-panel,
  .side-panel {
    grid-column: 1 / -1;
  }

  .side-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-image {
    width: 320px;
    height: 210px;
    opacity: 0.12;
  }

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

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

  .event-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .series-detail-grid,
  .series-event-list li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .app-hero {
    min-height: 0;
  }

  .topbar {
    align-items: flex-start;
    padding: 16px 0;
  }

  .brand {
    max-width: 190px;
  }

  .weekend-toolbar,
  .summary-grid,
  .side-panel,
  .event-main,
  .event-actions {
    grid-template-columns: 1fr;
  }

  .summary-grid article,
  .summary-grid article:last-child {
    border-inline: 1px solid var(--line);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .heading-actions {
    justify-items: start;
  }

  .pagination-toolbar,
  .page-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .page-nav {
    flex-wrap: wrap;
  }

  .pagination-button {
    flex: 1 1 94px;
  }

  .page-status {
    flex: 1 1 120px;
  }

  .meta-copy {
    text-align: left;
  }

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

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

  .clipboard-toggle {
    justify-self: start;
    margin: 0 16px 16px;
  }

  .hero-image {
    width: 260px;
    height: 170px;
    top: 112px;
    right: -42px;
    opacity: 0.1;
  }

  .hero-content {
    padding-top: 28px;
  }

  .collapse-chip {
    justify-self: start;
  }

  .event-date {
    min-height: 56px;
    place-items: center start;
    text-align: left;
  }

  .hero-content,
  .content-shell {
    padding-bottom: 34px;
  }
}
