:root {
  --bg: #0f1115;
  --card-bg: #1a1d24;
  --fg: #e6e8ec;
  --muted: #9aa0ab;
  --accent: #6ea8fe;
  --error: #ff6b6b;
  --border: #272b34;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

.page-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
}

.today {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* ----- Auth screens ----- */
.auth {
  max-width: 360px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.auth h1 {
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
}

.auth form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth input {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #11141b;
  color: var(--fg);
  font-size: 1rem;
}

.auth button {
  margin-top: 0.3rem;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0d12;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.auth .auth-btn {
  display: block;
  margin-top: 0.5rem;
  padding: 0.6rem;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0d12;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

/* ----- Session bar ----- */
.session {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.session button {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 0.85rem;
}

.widgets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem 1.5rem 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-header .card-title {
  margin: 0;
}

.reload-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
}

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

.reload-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.loading,
.empty {
  color: var(--muted);
  margin: 0;
}

.error {
  color: var(--error);
  margin: 0;
}

.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.show {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.4;
}

.show-time {
  background: #242833;
  color: var(--accent);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.show-title {
  color: white;
  font-weight: 600;
}

.show-title a {
  color: var(--accent);
  text-decoration: none;
}

.show-title a:hover {
  text-decoration: underline;
}

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

.show-line {
  font-weight: 600;
}

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