:root {
  color-scheme: dark;
  --background: #10140f;
  --surface: #1a2018;
  --line: #30382b;
  --text: #f1f4eb;
  --muted: #abb5a3;
  --accent: #c5f36a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
main { width: 100%; max-width: 480px; margin: 0 auto; padding: 26px 18px max(28px, env(safe-area-inset-bottom)); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { display: block; padding: 14px; color: var(--accent); }
.wordmark { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; letter-spacing: 1.3px; }
.brand-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--accent); color: var(--background); font-size: 18px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 2px; margin: 32px 0 12px; }
h1 { font-size: clamp(36px, 11.5vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -1.9px; margin: 0; }
h1 span { color: var(--accent); }
.intro { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 17px 0; }
.freshness { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; min-height: 16px; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.browse { position: sticky; top: 0; z-index: 2; background: var(--background); padding: 14px 0 12px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.section-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.section-tab { min-height: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 9px; font-size: 13px; font-weight: 700; padding: 6px; }
.section-tab[aria-pressed="true"] { background: var(--accent); color: var(--background); }
.search-wrap { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 0 13px; }
.search-wrap svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.6; flex-shrink: 0; }
input { min-width: 0; width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--text); font-size: 16px; }
input::placeholder { color: var(--muted); font-size: 13px; }
.type-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.type-filters button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 5px 2px; font-size: 12px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; }
.type-filters button[aria-pressed="true"] { color: var(--accent); background: #242e1d; border-color: #3a4a2a; }
.type-filters span { font-size: 10px; opacity: .8; }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 23px 0 15px; }
h2 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.4px; }
#result-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.top-updated { color: var(--muted); font-size: 11px; margin: -6px 0 16px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.card { min-width: 0; }
.poster { display: block; position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 12px; text-align: center; color: var(--muted); font-size: 11px; background: linear-gradient(145deg, #293322, #1a2018); }
.poster-placeholder strong { font-size: 28px; color: var(--accent); }
.card-badge { position: absolute; left: 8px; top: 8px; padding: 5px 7px; background: #10140feb; border-radius: 5px; color: var(--text); font-size: 9px; letter-spacing: .6px; font-weight: 800; }
.card-badge.top { color: var(--background); background: var(--accent); }
.card h3 { font-size: 13px; line-height: 1.4; letter-spacing: -.1px; margin: 9px 0 4px; overflow-wrap: anywhere; }
.card h3 a { color: var(--text); text-decoration: none; display: block; min-height: 44px; }
.card-meta { font-size: 10px; line-height: 1.5; color: var(--muted); margin: 0; }
.episode { margin: 5px 0 0; font-size: 10px; color: var(--accent); line-height: 1.5; }
.notice { border: 1px solid #69562b; border-radius: 10px; background: #292416; padding: 14px; font-size: 13px; line-height: 1.5; }
.error { border-color: #a56262; background: #332020; }
.error button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--accent); color: var(--background); font-weight: 700; }
.empty, .loading { text-align: center; padding: 40px 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty h3 { color: var(--text); font-size: 17px; }
footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; color: var(--muted); font-size: 10px; line-height: 1.7; }
footer p { margin: 4px 0; }
footer a { color: var(--accent); display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 340px) {
  main { padding-left: 12px; padding-right: 12px; }
  .cards { gap: 18px 10px; }
  .type-filters button { font-size: 11px; gap: 3px; }
}
