:root {
  --bg: #110809;
  --panel: #1a1012;
  --panel-2: #201315;
  --line: #2a1719;
  --line-soft: #241517;
  --text: #f7ead8;
  --muted: #b99b86;
  --accent: #ffb04f;
  --accent-soft: rgba(255, 176, 79, 0.12);
  --accent-strong: #ffd08a;
  --neon-red: #df4a4e;
  --neon-red-soft: rgba(223, 74, 78, 0.12);
  --chip: #221416;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(223, 74, 78, 0.14), transparent 24%),
    radial-gradient(circle at 18% 0%, rgba(255, 176, 79, 0.08), transparent 16%),
    linear-gradient(180deg, #090405 0%, #100709 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  max-width: 1880px;
  margin: 0 auto;
  padding: 10px 14px 18px;
  width: 100%;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: none;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  align-items: end;
  background: linear-gradient(180deg, rgba(255, 176, 79, 0.03), rgba(223, 74, 78, 0.03));
}

.hero::after {
  content: none;
}

.eyebrow,
.results-kicker,
.control span,
th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 0.95;
}

.lead,
.hero-note {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.4;
  max-width: 62ch;
  font-size: 0.8rem;
}

.hero-copy,
.hero-aside,
.results-header > * {
  min-width: 0;
}

.lead,
.hero-note,
.results-meta,
.venue-cell span,
.movie-cell strong,
.muted-cell {
  overflow-wrap: anywhere;
}

.hero-aside {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.hero-badge {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.hero-badge span {
  display: block;
  margin-bottom: 2px;
  color: rgba(185, 155, 134, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.58rem;
}

.hero-badge strong {
  color: rgba(247, 234, 216, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: none;
}

.day-strip,
.filters-strip,
.panel-results {
  margin-top: 8px;
}

.day-strip {
  overflow-x: auto;
  padding: 0;
}

.day-tabs {
  display: flex;
  min-width: max-content;
}

.day-tab {
  min-width: 82px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.day-tab:hover {
  color: var(--text);
  background: rgba(255, 240, 220, 0.04);
}

.day-tab.active {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
  background: rgba(255, 176, 79, 0.06);
}

.day-name,
.day-number,
.day-count {
  display: block;
}

.day-name {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.day-number {
  margin-top: 1px;
  font-size: 0.88rem;
}

.day-count {
  margin-top: 3px;
  font-size: 0.68rem;
}

.filters-strip {
  padding: 10px 12px;
}

.chip-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.filters-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  flex: 0 0 auto;
}

.chip-scroller {
  flex: 1 1 720px;
  min-width: 280px;
}

.catalog-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
  border-style: dashed;
}

.catalog-button.active {
  background: var(--accent-soft);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 176, 79, 0.28);
}

.venue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.venue-chip {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--chip);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 0.74rem;
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 100%;
}

.venue-chip span {
  margin-left: 5px;
  color: var(--accent-strong);
}

.venue-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

.toolbar-search {
  flex: 1 1 280px;
  min-width: 220px;
}

.toolbar-search input {
  min-width: 0;
  padding: 6px 10px;
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .chip-toolbar {
    align-items: flex-start;
  }

  .chip-scroller {
    flex-basis: 100%;
    min-width: 0;
    order: 2;
  }

  .catalog-button {
    order: 3;
  }

  .toolbar-search {
    order: 4;
    flex-basis: 100%;
    min-width: 0;
  }
}

input,
select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 0.88rem;
}

input::placeholder {
  color: var(--muted);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(255, 179, 71, 0.2),
    0 0 18px rgba(255, 77, 95, 0.08);
}

.panel-results {
  overflow: hidden;
}

.results-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}

h2 {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 0.95;
}

.results-meta {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.schedule-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  text-align: left;
  font-weight: 700;
  font-size: 0.68rem;
}

.schedule-table tbody tr:hover {
  background: rgba(255, 244, 230, 0.025);
  box-shadow: inset 2px 0 0 rgba(255, 176, 79, 0.5);
}

.time-cell {
  width: 82px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.venue-cell,
.movie-cell {
  display: grid;
  gap: 3px;
}

.venue-cell strong,
.movie-cell strong {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.2;
}

.venue-cell span,
.movie-cell span,
.muted-cell {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.movie-cell {
  min-width: 220px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: linear-gradient(135deg, rgba(255, 77, 95, 0.08), rgba(255, 179, 71, 0.06));
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}

.source-pill.social {
  color: var(--neon-red);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.source-link:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.source-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.dot-orange {
  background: #ff8f3d;
}

.dot-green {
  background: #2dd36f;
}

.dot-blue {
  background: #46b9ff;
}

.ticket-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
}

.ticket-link:hover {
  color: var(--accent-strong);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-aside {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 8px 10px 14px;
  }

  .hero,
  .filters-strip,
  .results-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .day-tab {
    min-width: 74px;
    padding: 8px 9px;
  }

  .chip-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-button {
    width: 100%;
    text-align: center;
  }

  .toolbar-search {
    flex-basis: auto;
  }

  .table-wrap {
    overflow: visible;
    padding: 12px;
  }

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

  .schedule-table,
  .schedule-table thead,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody {
    display: grid;
    gap: 12px;
  }

  .schedule-table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
  }

  .schedule-table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 12px;
  }

  .schedule-table td:last-child {
    border-bottom: 0;
  }

  .schedule-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.62rem;
    color: var(--muted);
  }

  .time-cell {
    width: 100%;
    font-size: 1rem;
    background: rgba(255, 176, 79, 0.06);
  }

  .movie-cell {
    min-width: 0;
  }
}
