:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e3de;
  --accent: #e8590c;
  --chip: #f1efe9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --card: #1c1d21;
    --text: #e8e8ea;
    --muted: #9a9ca3;
    --line: #2c2e33;
    --accent: #ff8a3d;
    --chip: #26282d;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif; }
a { color: inherit; }

header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 14px 16px 10px; }
.head-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
h1 { margin: 0; font-size: 22px; letter-spacing: 3px; }
.season-nav { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.season-nav button { border: 1px solid var(--line); background: var(--card); color: var(--text); width: 30px; height: 30px;
  border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; }
#search { margin-left: auto; width: min(260px, 100%); padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--text); font-size: 14px; }

.days { display: flex; gap: 6px; max-width: 1200px; margin: 12px auto 0; overflow-x: auto; scrollbar-width: none; }
.days button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 6px 14px;
  border-radius: 999px; cursor: pointer; font-size: 14px; }
.days button .n { color: var(--muted); font-size: 12px; margin-left: 4px; }
.days button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.days button.active .n { color: rgba(255,255,255,.8); }
.days button.today:not(.active) { border-color: var(--accent); }

.filters { display: flex; gap: 16px; align-items: center; max-width: 1200px; margin: 10px auto 0; font-size: 13px;
  color: var(--muted); flex-wrap: wrap; }
.filters label { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.summary { margin-left: auto; }

.list { max-width: 1200px; margin: 0 auto; padding: 16px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.status { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

.card { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; position: relative; }
.cover { flex: none; width: 92px; aspect-ratio: 2 / 3; border-radius: 8px; object-fit: cover; background: var(--chip); }
.body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.time { font-size: 13px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-right: 28px; }
.title a { text-decoration: none; }
.title a:hover { text-decoration: underline; }
.native { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { font-size: 12px; color: var(--muted); }
.next { font-size: 12px; }
.platforms { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.platforms a { font-size: 12px; text-decoration: none; padding: 3px 8px; border-radius: 6px; background: var(--chip); }
.platforms a:hover { background: var(--accent); color: #fff; }
.platforms .p-gamer { background: #00b4d8; color: #fff; }
.platforms .p-netflix { background: #e50914; color: #fff; }
.platforms .none { font-size: 12px; color: var(--muted); }
.fav { position: absolute; top: 8px; right: 8px; border: 0; background: none; font-size: 20px; cursor: pointer;
  color: var(--muted); line-height: 1; }
.fav.on { color: var(--accent); }

footer { max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px; font-size: 12px; color: var(--muted); }

@media (max-width: 480px) {
  .list { grid-template-columns: 1fr; }
  #search { margin-left: 0; width: 100%; }
}
