/* Component styles. Every color, font and radius comes from css/theme.css. */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
h1 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 40px; letter-spacing: -0.01em; }
h2 { font-size: 19px; letter-spacing: -0.01em; }
h3 { font-size: 16px; }
.serif { font-family: var(--font-display); font-weight: var(--display-weight); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
svg.ic { width: 18px; height: 18px; flex-shrink: 0; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .logo svg { height: 26px; width: auto; display: block; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 12px; border-radius: 8px; font-weight: 500; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.topbar .spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 12px; border-radius: 10px; min-width: 240px;
}
.search input[type=text] { border: none; outline: none; background: none; width: 100%; color: var(--text); padding: 0; }
.mode-switch { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.mode-switch button { border: none; background: none; padding: 5px 12px; border-radius: 7px; font-weight: 500; cursor: pointer; color: var(--muted); font-size: 14px; }
.mode-switch button.on { background: var(--surface-3); color: var(--text); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); color: var(--text);
  display: grid; place-items: center; font-weight: 600; font-size: 13px; cursor: pointer; border: 1px solid var(--border);
}

.tabbar { display: none; }
main { max-width: 1280px; margin: 0 auto; padding: 24px 32px 90px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); font-weight: 600; cursor: pointer; font-size: 14px;
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { opacity: .9; }
.btn.light { background: var(--on-image-btn); border-color: var(--on-image-btn-border); color: var(--on-image); backdrop-filter: blur(6px); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: transparent; font-weight: 500; cursor: pointer; font-size: 13.5px; color: var(--muted);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: 48px; min-height: 440px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  color: var(--on-image); margin: 20px 0 40px;
}
.hero > .poster { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-scrim); }
.hero .label { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.hero h1 { font-size: 72px; line-height: 1; max-width: 70%; }
.hero p { max-width: 520px; margin: 0; color: var(--on-image-muted); font-size: 16px; }
.hero .meta-line { display: flex; gap: 14px; font-size: 13px; color: var(--on-image-muted); }
.hero .actions { display: flex; gap: 10px; margin-top: 10px; }
.hero.compact { min-height: 240px; padding: 36px; }
.hero.compact h1 { font-size: 52px; }

/* Rows and cards */
.row { margin-bottom: 40px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.row-head .sub { color: var(--muted); font-size: 13px; }
.row-head a { color: var(--muted); font-weight: 500; font-size: 13px; }
.row-head a:hover { color: var(--text); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 280px; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.card { cursor: pointer; }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.thumb .poster { width: 100%; height: 100%; display: block; transition: transform .35s ease; }
.card:hover .thumb .poster { transform: scale(1.04); }
.thumb::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--image-ring); }
.thumb .badge {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .06em;
}
.thumb .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--progress-track); }
.thumb .progress span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.card .meta { padding: 9px 2px 0; }
.card .title { font-weight: 600; font-size: 14.5px; }
.card .sub { font-size: 13px; color: var(--muted); }

.top10 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.top10 .item { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 4px; border-radius: var(--radius); cursor: pointer; }
.top10 .item:hover { background: var(--surface); }
.top10 .rank { font-family: var(--font-display); font-size: 56px; line-height: 1; width: 48px; text-align: center; color: transparent; -webkit-text-stroke: 1.2px var(--rank-stroke); }
.top10 .mini { width: 96px; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.top10 .mini .poster { width: 100%; height: 100%; display: block; }

/* Series page */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.series-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; margin: 14px 0 32px; }
.series-art { border-radius: 16px; aspect-ratio: 16/10; overflow: hidden; }
.series-art .poster { width: 100%; height: 100%; display: block; }
.genre-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.series-info h1 { font-size: 56px; margin: 8px 0 10px; }
.creator-line { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.series-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.stats { display: flex; gap: 16px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.stats b { color: var(--text); font-weight: 600; }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs button { border: none; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-color: var(--accent); }

.ep-list { display: flex; flex-direction: column; gap: 6px; }
.ep { display: grid; grid-template-columns: 36px 170px 1fr auto; gap: 18px; align-items: center; padding: 10px; border-radius: var(--radius); cursor: pointer; }
.ep:hover { background: var(--surface); }
.ep .num { font-family: var(--font-display); font-size: 26px; color: var(--muted); text-align: center; }
.ep .ep-thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.ep .ep-thumb .poster { width: 100%; height: 100%; display: block; }
.ep .tag { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ep .tag svg.ic { width: 13px; height: 13px; }
.tag.free { background: var(--success-soft); color: var(--success); }
.tag.locked { background: var(--surface-2); color: var(--muted); }
.tag.early { background: var(--accent-soft); color: var(--accent); }

.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.tier-pill { font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 5px; margin-left: 6px; }

/* Panels and forms */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.panel + .panel { margin-top: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field .hint a, a.link { color: var(--accent); }
input[type=text], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.radio-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--bg); }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card.on { border-color: var(--accent); background: var(--accent-soft); }
.radio-card b { display: block; font-weight: 600; }
.radio-card span { font-size: 13px; color: var(--muted); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; display: inline-block; width: 40px; height: 23px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--switch-off); border-radius: var(--radius-pill); cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: var(--switch-knob); border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }

details.more { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 6px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary:hover { color: var(--text); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border); font-size: 13px; }
details.more[open] summary::before { content: '–'; }
details.more .stack { margin-top: 14px; }

/* Creator studio */
.creator-layout { display: grid; grid-template-columns: 210px 1fr; gap: 32px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 86px; align-self: start; }
.side-nav a { padding: 9px 12px; border-radius: 9px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.side-nav a:hover { color: var(--text); }
.side-nav a.active { background: var(--surface-2); color: var(--text); }
.side-nav .studio { font-family: var(--font-display); font-size: 22px; padding: 0 12px 12px; color: var(--text); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.metric .label { color: var(--muted); font-size: 13px; }
.metric .value { font-family: var(--font-display); font-size: 40px; line-height: 1.1; }
.metric .delta { font-size: 13px; color: var(--success); font-weight: 500; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .06em; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--border); }
.table .mini { width: 64px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; display: inline-block; vertical-align: middle; }
.table .mini .poster { width: 100%; height: 100%; display: block; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars span.bar { width: 100%; max-width: 44px; background: var(--accent); border-radius: 6px 6px 2px 2px; }
.bars small { color: var(--muted); font-size: 12px; }

.steps { display: flex; gap: 8px; margin: 16px 0 22px; }
.steps div { flex: 1; text-align: center; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; color: var(--muted); font-size: 13.5px; }
.steps div.done { color: var(--success); }
.steps div.now { border-color: var(--accent); color: var(--text); }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 14px; padding: 48px; text-align: center; background: var(--bg); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dropzone:hover { border-color: var(--accent); }
.dropzone .big-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.upload-bar { height: 6px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; margin-top: 10px; width: 100%; max-width: 360px; }
.upload-bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.estimate { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.estimate b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 28px; }
.split-row { display: grid; grid-template-columns: 1fr 1fr 110px 40px; gap: 10px; align-items: center; }

/* Overlays */
.overlay { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(4px); z-index: 50; display: grid; place-items: center; padding: 20px; }
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 26px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.sheet-head h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 28px; }
.close { border: 1px solid var(--border); background: var(--surface-2); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: var(--text); flex-shrink: 0; }
.close[disabled] { opacity: .3; cursor: not-allowed; }
.center { text-align: center; }
.success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0; }
.success .check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.sub-poster { width: 100%; aspect-ratio: 16/7; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.sub-poster .poster { width: 100%; height: 100%; display: block; }
.billing-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--border); padding: 3px; border-radius: 10px; margin: 4px 0 14px; }
.billing-toggle button { border: none; background: none; padding: 6px 12px; border-radius: 7px; font-weight: 500; cursor: pointer; color: var(--muted); font-size: 13.5px; }
.billing-toggle button.on { background: var(--surface-3); color: var(--text); }
.pay-btn { background: var(--pay-bg); color: var(--pay-ink); border-color: var(--pay-bg); }
.pay-btn:hover { opacity: .88; }

.player { width: min(1040px, 100%); background: var(--player-bg); border-radius: var(--radius-lg); overflow: hidden; color: var(--on-image); border: 1px solid var(--border); }
.screen { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; animation: drift 24s ease-in-out infinite alternate; }
.screen.paused .poster { animation-play-state: paused; }
@keyframes drift { from { transform: scale(1.05) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }
.screen .state { position: absolute; inset: 0; display: grid; place-items: center; }
.screen .state span { width: 72px; height: 72px; border-radius: 50%; background: var(--scrim-soft); display: grid; place-items: center; backdrop-filter: blur(4px); }
.screen .caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-weight: 500; font-size: 18px; }
.screen .caption span { background: var(--caption-bg); padding: 4px 10px; border-radius: 4px; }
.controls { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--player-controls); }
.scrub { height: 4px; background: var(--progress-track); border-radius: var(--radius-pill); cursor: pointer; }
.scrub span { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-pill); }
.ctrl-row { display: flex; align-items: center; gap: 8px; }
.ctrl-row .spacer { flex: 1; }
.pbtn { background: var(--player-btn); border: none; color: var(--on-image); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.pbtn:hover { background: var(--player-btn-hover); }
.pbtn.on { background: var(--accent); color: var(--accent-ink); }
.settings-pop { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.settings-pop label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text); padding: 10px 18px; border-radius: 12px; font-weight: 500; z-index: 60;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.empty { text-align: center; padding: 50px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.reorder { display: flex; flex-direction: column; gap: 8px; }
.reorder .r { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.reorder .r .name { flex: 1; font-weight: 500; }

/* Prototype-only brand color switcher */
.palette {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; font-size: 12px; color: var(--muted);
}
.palette .swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.palette .swatch.on { border-color: var(--text); }
.palette .skin { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: var(--radius-sm); padding: 3px 8px; cursor: pointer; font-size: 12px; }
.palette .skin.on { background: var(--surface-3); color: var(--text); }
.palette span:not(:first-child) { margin-left: 6px; }
.proto-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 40px; }

/* Mobile */
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar .nav, .topbar .search { display: none; }
  .topbar .logo svg { height: 22px; }
  main { padding: 16px 16px 100px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--header-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 8px 0 16px;
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .tabbar a.active { color: var(--text); }
  .hero { padding: 24px; min-height: 380px; }
  .hero h1 { font-size: 46px; max-width: 100%; }
  .hero.compact h1 { font-size: 38px; }
  .scroller { grid-auto-columns: 220px; }
  .series-hero { grid-template-columns: 1fr; gap: 20px; }
  .series-info h1 { font-size: 40px; }
  .ep { grid-template-columns: 26px 110px 1fr; gap: 12px; }
  .ep .tag { grid-column: 3; justify-self: start; }
  .creator-layout { grid-template-columns: 1fr; }
  .side-nav { flex-direction: row; overflow-x: auto; position: static; }
  .side-nav .studio { display: none; }
  .side-nav a { white-space: nowrap; }
  .metrics { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr 1fr; }
  .palette { bottom: 84px; }
}

/* Filter bar on Home: genre, My list and Filters narrow the catalog in place */
.filter-bar { margin: 4px 0 8px; }
.chip-sep { width: 1px; align-self: stretch; background: var(--border); margin: 2px 2px; }
.chip.on-outline { border-color: var(--accent); color: var(--text); }
.filter-panel { margin-top: 12px; }
.results-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 22px 0 18px; }
.results-head .btn { margin-left: auto; align-self: center; }
@media (max-width: 760px) {
  .filter-bar > .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .filter-bar > .chips .chip { white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 760px) {
  .hero .actions { flex-wrap: wrap; }
  .hero .btn { white-space: nowrap; padding: 9px 14px; }
  .hero .meta-line { flex-wrap: wrap; gap: 2px 12px; }
}
