/* Wakil Flicks — terminal window, Tokyo Night / Tokyo Day */

@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-latin-600-italic.woff2) format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Amiri"; src: url(fonts/amiri-arabic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* Tokyo Day */
  --page: #cfd3e1;
  --win: #e1e2e7;
  --bar: #d4d6e4;
  --surface: #e9e9ee;
  --line: #c4c8da;
  --fg: #343b58;
  --dim: #6172b0;
  --faint: #8990b3;
  --accent: #2e7de9;
  --film: #9854f1;
  --tv: #007197;
  --green: #587539;
  --yellow: #8c6c3e;
  --red: #f52a65;
  --orange: #b15c00;
  --rate1: #1f66c9;
  --rate2: #7f5b00;
  --shadow: 0 18px 50px rgba(52, 59, 88, .18);
  --ph-l: 78%;
  --ph-s: 30%;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #101118; --win: #1a1b26; --bar: #16161e; --surface: #1f2335; --line: #292e42;
    --fg: #c0caf5; --dim: #8b93c2; --faint: #565f89; --accent: #7aa2f7;
    --film: #bb9af7; --tv: #7dcfff; --green: #9ece6a; --yellow: #e0af68; --red: #f7768e; --orange: #ff9e64;
    --shadow: 0 18px 60px rgba(0, 0, 0, .55); --ph-l: 24%; --ph-s: 28%;
    --rate1: #7aa2f7; --rate2: #e0af68;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #101118; --win: #1a1b26; --bar: #16161e; --surface: #1f2335; --line: #292e42;
  --fg: #c0caf5; --dim: #8b93c2; --faint: #565f89; --accent: #7aa2f7;
  --film: #bb9af7; --tv: #7dcfff; --green: #9ece6a; --yellow: #e0af68; --red: #f7768e; --orange: #ff9e64;
  --shadow: 0 18px 60px rgba(0, 0, 0, .55); --ph-l: 24%; --ph-s: 28%;
  --rate1: #7aa2f7; --rate2: #e0af68;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 28px 16px 40px;
  background: var(--page); color: var(--fg);
  font: 14px/1.6 "JetBrains Mono", ui-monospace, monospace;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { color: var(--orange); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; color: var(--dim); }
b { font-weight: 700; }

/* window */
.window {
  max-width: 1080px; margin: 0 auto;
  background: var(--win); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow); overflow: hidden;
}
.chrome {
  display: flex; align-items: center; gap: 18px;
  padding: 0 14px; min-height: 44px;
  background: var(--bar); border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 7px; flex-shrink: 0; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); opacity: .85; }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--green); }
.brand { color: var(--fg); font-weight: 700; white-space: nowrap; }
.brand::before { content: "~/"; color: var(--faint); font-weight: 400; }
.tabs { display: flex; gap: 2px; align-self: stretch; overflow-x: auto; scrollbar-width: none; margin-right: auto; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; padding: 0 14px;
  color: var(--dim); border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--fg); text-decoration: none; }
.tab.on { color: var(--fg); border-bottom-color: var(--accent); background: var(--win); }
.tab-add { color: var(--green); }
.theme-btn {
  background: none; border: 1px solid var(--line); color: var(--dim);
  width: 30px; height: 30px; border-radius: 3px; cursor: pointer; font-size: 15px; flex-shrink: 0;
}
.theme-btn svg { width: 14px; height: 14px; display: block; margin: auto; }
.theme-btn:hover { color: var(--fg); border-color: var(--faint); }

.body { padding: 26px 30px 34px; min-height: 60vh; }

/* footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px;
  padding: 14px 30px; border-top: 1px solid var(--line); background: var(--bar);
  color: var(--dim); font-size: 12px;
}
.foot-credit { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.foot-sep { opacity: .6; }
.foot [lang="ar"] { font-family: "Amiri", "Noto Naskh Arabic", serif; font-size: 1.15rem; color: var(--fg); }
.foot-tmdb { flex-basis: 100%; margin: 2px 0 0; color: var(--faint); font-size: 11px; }

/* section headers */
.sec {
  display: flex; align-items: center; gap: 12px;
  margin: 30px 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.body > .sec:first-child, .body > .flash + .sec { margin-top: 0; }
.sec-label { color: var(--accent); }
.sec-label::before { content: "# "; color: var(--faint); }
.sec-rule { flex: 1; height: 1px; background: var(--line); }
.sec-extra { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--dim); }

.flash { border: 1px solid var(--line); border-left: 3px solid var(--yellow); background: var(--surface); padding: 8px 14px; margin: 0 0 20px; }
.flash p { margin: 0; }
.empty { color: var(--dim); font-style: italic; font-family: "Newsreader", Georgia, serif; font-size: 16px; }
.note { margin: -4px 0 12px; font-size: 12px; }
.more { margin: 8px 0 0; font-size: 13px; }

/* tags, titles, stars */
.tag {
  display: inline-block; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px;
  font-size: 10px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px;
}
.tag-movie { color: var(--film); }
.tag-tv { color: var(--tv); }
.meta { margin: 0; color: var(--dim); font-size: 12px; }
.ttl { font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--fg); }
a.ttl:hover, .ttl a:hover { color: var(--accent); text-decoration: none; }
.ttl a { color: inherit; }
.stars { color: var(--yellow); letter-spacing: 1px; }

/* posters */
.poster { display: block; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; background: var(--surface); border: 1px solid var(--line); }
.poster-xs { width: 40px; }
.poster-sm { width: 64px; }
.poster-md { width: 100%; }
.poster-lg { width: 100%; max-width: 260px; }
.poster-ph {
  --h: 220;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 12px 12px 10px;
  background:
    linear-gradient(160deg, hsl(var(--h) var(--ph-s) calc(var(--ph-l) + 6%)), hsl(calc(var(--h) + 30) var(--ph-s) calc(var(--ph-l) - 6%)));
  color: var(--fg); overflow: hidden; position: relative; container-type: inline-size;
}
.poster-ph::before {
  content: ""; position: absolute; inset: 7%; border: 1px solid currentColor; opacity: .25; border-radius: 2px;
}
.ph-kind { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.ph-title { font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: clamp(10px, 14cqw, 28px); line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.ph-year { font-size: 10px; opacity: .7; }
.poster-xs.poster-ph, .poster-sm.poster-ph { padding: 0; }
.poster-xs.poster-ph > *, .poster-sm.poster-ph > * { display: none; }

/* progress bar */
.bar { display: inline-block; width: 120px; height: 6px; background: var(--line); border-radius: 1px; vertical-align: middle; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--tv); }
.prog-line { margin: 10px 0 4px; display: flex; align-items: center; gap: 10px; }
.prog-line.big .bar { width: min(360px, 70%); height: 8px; }

/* year strip */
.yearline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px;
  margin-bottom: 26px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
}
.yl-item b { font-size: 20px; color: var(--fg); margin-right: 4px; }
.yl-item { color: var(--dim); }
.yl-label { color: var(--faint); margin-left: auto; }

/* now watching */
.now-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.now {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: start;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
}
.now-info .ttl { margin: 4px 0 0; font-size: 21px; }
.now-info .dim { margin: 4px 0 10px; font-size: 13px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }

/* rows (queue) */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row-n { width: 18px; text-align: right; color: var(--faint); font-size: 12px; flex-shrink: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main .ttl { font-size: 17px; }
.row-main p { margin: 2px 0 0; font-size: 12px; }
.row-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }

.pick { display: flex; align-items: center; gap: 12px; color: var(--fg); font-family: "Newsreader", Georgia, serif; font-size: 17px; }
.pick:hover { text-decoration: none; }
.pick:hover b { color: var(--accent); }
.pick .poster { flex-shrink: 0; }
.pick .dim { font-family: "JetBrains Mono", monospace; font-size: 12px; }

/* log list */
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.log li:last-child { border-bottom: 0; }
.log-date { color: var(--faint); width: 56px; flex-shrink: 0; font-size: 12px; }
#log .log-date { width: 100px; }
.log-title { color: var(--fg); font-family: "Newsreader", Georgia, serif; font-size: 16px; }
.log-what { color: var(--dim); font-size: 12px; }
.log-note { flex-basis: 100%; padding-left: 112px; color: var(--dim); font-size: 13px; }
.log-del { margin-left: auto; }

/* shelf page */
.subtabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.subtabs a { color: var(--dim); }
.subtabs a.on { color: var(--fg); font-weight: 700; }
.subtabs a.on::before { content: "▸ "; color: var(--accent); }
.count { color: var(--faint); font-weight: 400; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 20px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.seg a { padding: 3px 11px; color: var(--dim); font-size: 12px; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--surface); color: var(--fg); }
.seg a:hover { text-decoration: none; color: var(--fg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 18px; }
.card { display: flex; flex-direction: column; gap: 4px; color: var(--fg); }
.card:hover { text-decoration: none; }
.card .poster { transition: transform .15s, border-color .15s; }
.card:hover .poster { transform: translateY(-2px); border-color: var(--accent); }
.card-title { font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 15px; line-height: 1.2; margin-top: 4px; }
.card-meta { font-size: 11px; color: var(--dim); }
.card-prog { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.card-prog .bar { flex: 1; }

/* detail page */
.detail { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.big-title { font-family: "Newsreader", Georgia, serif; font-weight: 600; font-size: 38px; line-height: 1.08; margin: 6px 0 4px; }
.tagline { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 18px; color: var(--dim); margin: 0 0 10px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 16px 0; font-size: 13px; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; }
.overview { font-family: "Newsreader", Georgia, serif; font-size: 17px; line-height: 1.55; max-width: 62ch; }
.move { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; font-size: 12px; }
.rate-form select { font-size: 13px; padding: 2px 6px; color: var(--yellow); }

.seasons { list-style: none; margin: 10px 0 0; padding: 0; max-width: 640px; }
.season { display: grid; grid-template-columns: 28px 1fr auto 120px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.season.done .season-name { color: var(--dim); }
.season.nextup .season-name { font-weight: 700; }
.season.nextup .season-when { color: var(--tv); }
.season-name { font-family: "Newsreader", Georgia, serif; font-size: 16px; }
.season-meta, .season-when { color: var(--dim); font-size: 12px; }
.season-when { text-align: right; }
.check {
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--faint); border-radius: 2px; background: none; color: var(--green);
  font: 700 14px "JetBrains Mono", monospace; cursor: pointer; padding: 0;
}
.season.done .check { border-color: var(--green); background: color-mix(in srgb, var(--green) 15%, transparent); }
button.check:hover { border-color: var(--accent); }
.date-pick { font-size: 12px; margin: 10px 0 0; }
.season-tools { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; align-items: center; }

.watch-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.watch-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.grow { flex: 1; min-width: 180px; }
.notes-form textarea { width: 100%; max-width: 720px; display: block; margin-bottom: 8px; }
.notes { font-family: "Newsreader", Georgia, serif; font-size: 17px; white-space: pre-wrap; max-width: 62ch; }
.danger { display: flex; gap: 10px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }

/* diary */
.diary { list-style: none; margin: 0; padding: 0; }
.diary li { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.diary li:last-child { border-bottom: 0; }
.d-day { width: 26px; text-align: right; font-size: 18px; color: var(--faint); flex-shrink: 0; }
.d-main { min-width: 0; }
.d-main .ttl { font-size: 17px; }
.d-main p { margin: 2px 0 0; font-size: 12px; }

/* add page */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.search-bar input[type=search] { flex: 1; min-width: 240px; font-size: 16px; padding: 10px 12px; }
.search-bar label { font-size: 12px; }
.results { list-style: none; margin: 0; padding: 0; }
.result { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.result-main { flex: 1; min-width: 0; }
.result-main .ttl { display: block; font-size: 17px; }
.result-ov { margin: 2px 0 0; font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.manual { margin-top: 30px; }
.manual summary { list-style: none; cursor: pointer; }
.manual summary::-webkit-details-marker { display: none; }
.manual summary .sec-label::after { content: " +"; color: var(--faint); }
.manual[open] summary .sec-label::after { content: " −"; }
.form[data-kind="movie"] .only-tv, .form[data-kind="tv"] .only-movie { display: none; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.form > label, .form-row > label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.form-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.form .check-label { flex-direction: row; align-items: center; gap: 8px; }
.form > .btn { align-self: flex-start; }
.poster-edit { align-items: center; }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 3px; padding: 7px 9px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 0; border-color: var(--accent); }
input[type=file] { padding: 5px; font-size: 12px; }
input[type=checkbox] { accent-color: var(--accent); }
textarea { resize: vertical; font-family: "Newsreader", Georgia, serif; font-size: 16px; line-height: 1.5; }
.small-input { width: 96px; }
.narrow { max-width: 420px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px;
  padding: 7px 14px; border-radius: 3px; cursor: pointer;
  background: var(--accent); color: var(--win); border: 1px solid var(--accent); font-weight: 700;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { font-size: 12px; padding: 4px 10px; }
.btn-ghost { background: none; color: var(--accent); font-weight: 400; }
.btn-danger { background: none; color: var(--red); border-color: var(--red); font-weight: 400; }
.chip {
  font: inherit; font-size: 12px; padding: 2px 9px; cursor: pointer;
  background: var(--surface); color: var(--dim); border: 1px solid var(--line); border-radius: 2px;
}
.chip:hover { color: var(--fg); border-color: var(--accent); }
.icon-btn {
  font: inherit; width: 26px; height: 26px; padding: 0; cursor: pointer;
  background: none; color: var(--dim); border: 1px solid var(--line); border-radius: 2px;
}
.icon-btn:hover { color: var(--fg); border-color: var(--accent); }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
.link:hover { text-decoration: underline; }
.inline { display: inline; margin: 0; }

/* stats */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.tile { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; display: flex; flex-direction: column; }
.tile-n { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-l { color: var(--dim); font-size: 12px; }
.key { font-size: 11px; display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; }
.key::before { content: ""; width: 9px; height: 9px; border-radius: 1px; }
.key-film::before { background: var(--film); }
.key-tv::before { background: var(--tv); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 170px; align-items: end; }
.month { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 4px; }
.month-bar { flex: 1; width: 100%; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.mb-film { background: var(--film); border-radius: 1px; }
.mb-tv { background: var(--tv); border-radius: 1px; }
.month-n { font-size: 11px; color: var(--dim); height: 16px; }
.month-l { font-size: 11px; color: var(--faint); }
.heat-wrap { overflow-x: auto; }
.heat { display: flex; gap: 3px; }
.heat-col { display: flex; flex-direction: column; gap: 3px; }
.heat-cell { width: 13px; height: 13px; border-radius: 2px; background: var(--surface); border: 1px solid var(--line); }
.heat-cell.l1 { background: color-mix(in srgb, var(--accent) 40%, var(--surface)); border-color: transparent; }
.heat-cell.l2 { background: color-mix(in srgb, var(--accent) 70%, var(--surface)); border-color: transparent; }
.heat-cell.l3 { background: var(--accent); border-color: transparent; }
.heat-cell.future { visibility: hidden; }
.hbars { list-style: none; margin: 0; padding: 0; }
.hbars li { display: grid; grid-template-columns: 120px 1fr 28px; gap: 10px; align-items: center; padding: 3px 0; font-size: 12px; }
.hb-track { height: 8px; background: var(--surface); border-radius: 1px; overflow: hidden; }
.hb-fill { display: block; height: 100%; background: var(--yellow); }
.hb-fill.alt { background: var(--film); }
.hbars .num { text-align: right; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 3px 0; }
.table { border-collapse: collapse; width: 100%; max-width: 600px; font-size: 13px; }
.table th { text-align: left; font-weight: 400; color: var(--faint); border-bottom: 1px solid var(--line); padding: 4px 10px 4px 0; }
.table + .note { margin-top: 12px; }
.table td { padding: 5px 10px 5px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }

.error { padding: 40px 0; }
.err-code { font-size: 64px; font-weight: 700; color: var(--faint); margin: 0; line-height: 1; }

/* phone */
@media (max-width: 720px) {
  body { padding: 0; }
  .window { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .chrome { gap: 10px; padding: 0 10px; flex-wrap: wrap; }
  .dots { display: none; }
  .tabs { order: 3; flex-basis: 100%; margin: 0 -10px; padding: 0 4px; border-top: 1px solid var(--line); min-height: 40px; }
  .brand { margin-right: auto; padding: 10px 0; }
  .body { padding: 20px 16px 28px; }
  .foot { padding: 14px 16px; }
  .two-col { grid-template-columns: 1fr; }
  .now-grid { grid-template-columns: 1fr; }
  .now { grid-template-columns: 84px 1fr; gap: 12px; }
  .detail { grid-template-columns: 1fr; gap: 18px; }
  .detail-poster .poster-lg { max-width: 160px; }
  .big-title { font-size: 30px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px 12px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .months { gap: 3px; height: 140px; }
  .season { grid-template-columns: 26px 1fr auto; }
  .season-when { grid-column: 2 / -1; text-align: left; margin-top: -4px; }
  .season-when:empty { display: none; }
  .log-note { padding-left: 0; }
  .rows-queue .row { flex-wrap: wrap; }
  .rows-queue .row-actions { flex-basis: 100%; padding-left: 96px; }
  .hbars li { grid-template-columns: 90px 1fr 24px; }
  .yl-label { margin-left: 0; }
}

/* quotes */
.quote { margin: 0 0 18px; padding: 2px 0 2px 18px; border-left: 2px solid var(--film); max-width: 720px; }
.quote blockquote { margin: 0; font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.45; white-space: pre-wrap; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--dim); }
.q-who { color: var(--fg); }
.q-where { color: var(--faint); }
.q-del { margin-left: auto; }
.quote-home { margin: 30px 0 4px; max-width: none; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--film); border-radius: 3px; }
.quote-home blockquote { font-size: 21px; }
.q-all { margin-left: auto; }
.quote-add summary { cursor: pointer; color: var(--accent); font-size: 13px; margin-bottom: 12px; }
.sec-label a { color: inherit; }
.quote-add summary { list-style: none; }
.quote-add summary::-webkit-details-marker { display: none; }
a:has(> .poster):hover { text-decoration: none; }

/* two ratings */
.rts { display: inline-flex; gap: 6px; vertical-align: 1px; }
.rt {
  display: inline-block; padding: 0 5px; border-radius: 2px; font-size: 11px; line-height: 17px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.rt-1 { color: var(--rate1); }
.rt-2 { color: var(--rate2); }
.facts dt.rt-1, .facts dt.rt-2 { color: inherit; }
.facts dt.rt-1 { color: var(--rate1); }
.facts dt.rt-2 { color: var(--rate2); }
.rate-form select.rt-1 { color: var(--rate1); }
.rate-form select.rt-2 { color: var(--rate2); }
.card .rts { margin-top: 2px; }
.key-r1::before { background: var(--rate1); }
.key-r2::before { background: var(--rate2); }
.avgs { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: -2px 0 12px; font-size: 12px; }
.avgs b { font-size: 18px; margin-right: 2px; }
.hbars-pair li { padding: 4px 0; }
.hb-pair { display: flex; flex-direction: column; gap: 2px; }
.hb-pair .hb-track { height: 6px; }
.hb-fill.r1 { background: var(--rate1); }
.hb-fill.r2 { background: var(--rate2); }
.hbars-pair li { grid-template-columns: 120px 1fr 40px; }
.splits { list-style: none; margin: 0; padding: 0; }
.splits li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-family: "Newsreader", Georgia, serif; font-size: 16px; }
.splits li:last-child { border-bottom: 0; }
.splits .rts { font-family: "JetBrains Mono", monospace; flex-shrink: 0; }
@media (max-width: 720px) { .hbars-pair li { grid-template-columns: 90px 1fr 36px; } }
