:root {
  --black: #101010;
  --black-soft: #171717;
  --gold: #f5a914;
  --gold-dark: #b9820f;
  --line: rgba(245, 169, 20, 0.22);
  --line-gray: rgba(255, 255, 255, 0.16);
  --text-dim: rgba(245, 169, 20, 0.72);
  --text-muted: rgba(255, 255, 255, 0.42);
  --now-bg: #f5a914;
  --active-row: #2b2b2b;
  --over-opacity: 0.32;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

button, a { font: inherit; }

a {
  color: inherit;
  text-decoration: none;
}

.schedule-app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--black);
  padding: 24px 16px 86px;
}

.day-header {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: end;
  gap: 4px;
  margin-bottom: 12px;
}

.day-arrow {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
}

.day-arrow.disabled {
  opacity: 0.18;
  pointer-events: none;
}

.schedule-word {
  color: var(--gold);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1;
  margin-bottom: 2px;
}

.day-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(29px, 8vw, 38px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
}

.now-card {
  background: var(--now-bg);
  color: #0a0a0a;
  border-radius: 7px;
  padding: 10px 16px 11px;
  margin-bottom: 8px;
  min-height: 62px;
}

.now-eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.now-title {
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.now-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-list {
  border-top: 0;
}

.screening-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr 28px;
  gap: 10px;
  align-items: center;
  min-height: 61px;
  padding: 10px 2px 10px 0;
  border-bottom: 2px solid var(--line-gray);
}

.screening-row.is-now {
  background: var(--active-row);
  margin-left: -2px;
  padding-left: 2px;
}

.screening-row.is-now::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 0;
  border-right: 15px solid var(--gold);
}

.screening-row.is-over {
  opacity: var(--over-opacity);
}

.screening-row.is-next .time-block::before {
  content: "NEXT";
  display: block;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 2px;
}

.time-block {
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
  text-align: right;
  letter-spacing: 0.02em;
}

.film-block {
  min-width: 0;
}

.film-title {
  color: var(--gold);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.star {
  color: var(--gold);
  margin-left: 4px;
}

.meta-line {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.badge {
  border: 1px solid rgba(245, 169, 20, 0.4);
  border-radius: 999px;
  padding: 2px 5px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-icon {
  justify-self: end;
  width: 19px;
  height: 19px;
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  font-family: Georgia, serif;
  line-height: 1;
}

.day-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(16, 16, 16, 0.96);
  border-top: 1px solid rgba(245, 169, 20, 0.22);
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
}

.day-tabs-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.day-tab {
  appearance: none;
  border: 0;
  background: rgba(245, 169, 20, 0.25);
  color: var(--gold);
  height: 27px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.day-tab.active {
  background: var(--gold);
  color: #0a0a0a;
}

.error-card {
  border: 1px solid var(--line);
  padding: 14px;
  color: var(--gold);
}
