*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2e2e2e;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #e8b923;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.subtitle {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

main {
  flex: 1;
  padding: 1.5rem;
  max-width: 52rem;
  width: 100%;
  margin: 0 auto;
}

.movie-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.movie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}

.movie-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.dates {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.date-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.date-label {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 6rem;
  flex-shrink: 0;
}

.showtimes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.showtimes li {
  font-size: 0.9rem;
}

.showtimes li .time,
.showtime-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.showtime-link:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}

.time {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.hall {
  color: var(--muted);
  font-size: 0.8rem;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:hover { color: var(--text); }

.refresh-form { display: contents; }

.refresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  transition: border-color 0.15s, color 0.15s;
}

.refresh-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 480px) {
  header { padding: 1.25rem 1rem 1rem; }
  main { padding: 1rem; }
  .movie-card { padding: 1rem; }
  .date-label { min-width: auto; width: 100%; }
}
