:root { --fg: #1c2733; --muted: #5b6b7b; --line: #e3e8ee; --accent: #3b82f6; --bg: #fff; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e6edf3; --muted: #94a3b3; --line: #2c3947; --accent: #60a5fa; --bg: #0e1520; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 4rem; }
header h1 { font-size: 1.5rem; }
header p { color: var(--muted); margin-top: .25rem; }
header .subscribe { margin-top: .75rem; font-size: .9rem; }

/* --- unified topbar --- */
.topbar { display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 0 1.5rem; }
.topbar .brand { font-weight: 800; font-size: 1.05rem; color: var(--fg); text-decoration: none; }
.topbar-right { display: flex; align-items: center; gap: .9rem; font-size: .9rem; }
.script-toggle { color: var(--accent); text-decoration: none; }
.script-toggle:hover { text-decoration: underline; }
.switcher { position: relative; }
.switcher summary { list-style: none; cursor: pointer; color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; user-select: none; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher[open] summary { border-color: var(--accent); }
.switcher nav { position: absolute; right: 0; z-index: 10; margin-top: .4rem; min-width: 15rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25); padding: .4rem; }
.switcher nav a { display: block; padding: .45rem .7rem; border-radius: 8px;
  color: var(--fg); text-decoration: none; }
.switcher nav a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* --- country agenda --- */
.day { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.date { flex: 0 0 5rem; text-align: center; color: var(--muted); }
.date .dow { font-size: .75rem; letter-spacing: .08em; }
.date .num { display: block; font-size: 2rem; font-weight: 700; color: var(--fg); line-height: 1.1; }
.date .my { font-size: .8rem; }
.movies { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.movie { display: flex; gap: .9rem; }
.movie .thumb { flex: 0 0 74px; width: 74px; aspect-ratio: 5 / 7; object-fit: cover;
  border-radius: 8px; box-shadow: 0 3px 10px rgb(0 0 0 / .22); }
.movie-body { min-width: 0; }
.movie h2 { font-size: 1.05rem; }
.movie .orig { font-weight: 400; color: var(--muted); }
.movie .genre { color: var(--muted); font-style: italic; font-size: .85rem; margin: .1rem 0 .25rem; }
.movie .synopsis { font-size: .95rem; }
.movie .links { font-size: .9rem; margin-top: .35rem; }
.movie .links a { color: var(--accent); text-decoration: none; }
.movie .links a:hover { text-decoration: underline; }

/* mobile: date becomes a full-row header, movies take the full width */
@media (max-width: 640px) {
  .day { display: block; }
  .date { display: flex; align-items: baseline; gap: .5rem; text-align: left;
    margin-bottom: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .4rem; }
  .date .num { font-size: 1.35rem; }
  .date .dow, .date .my { font-size: .85rem; }
  .movie .thumb { flex-basis: 64px; width: 64px; }
}

footer { margin-top: 2rem; color: var(--muted); font-size: .85rem; }
footer a { color: var(--accent); text-decoration: none; }
a { color: var(--accent); }

/* --- homepage (releases-first) --- */
.hero { text-align: center; padding: 1.25rem 0 .5rem; }
.hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: -.02em; }
@media (prefers-color-scheme: dark) {
  .hero .mark { filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 55%, transparent)); }
}
.hero .tag { color: var(--muted); max-width: 34rem; margin: .75rem auto 0; font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
  color: var(--fg); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem 1rem; padding-top: 2rem; }
.release img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px;
  box-shadow: 0 6px 18px rgb(0 0 0 / .25); transition: transform .15s ease; display: block; }
.release a:hover img { transform: translateY(-4px) scale(1.02); }
.release h3 { font-size: .9rem; margin-top: .5rem; line-height: 1.3; }
.release-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.release .flags a { text-decoration: none; }
body:has(.releases) .wrap { max-width: 920px; }
body:has(.releases) footer { text-align: center; margin-top: 3rem; }
