/* news. – M-Familie. Farben, Schriften und Radien kommen ausschließlich aus /brand/tokens.css. */
:root {
  --bg: var(--color-bg);
  --card: var(--color-surface);
  --card2: color-mix(in srgb, var(--color-line) 45%, var(--color-bg));
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-line);
  --accent: var(--brand-strong);
  --accent-hover: var(--brand-deep);
  --accent-soft: var(--brand-soft);
  --on-accent: var(--color-on-brand);
  --shadow: 0 1px 2px color-mix(in srgb, var(--color-text) 5%, transparent), 0 2px 8px -2px color-mix(in srgb, var(--color-text) 7%, transparent);
  --shadow-lift: 0 2px 4px color-mix(in srgb, var(--color-text) 6%, transparent), 0 12px 28px -10px color-mix(in srgb, var(--color-text) 18%, transparent);
  --r: var(--radius-card);
  --rc: var(--radius-control);
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --scrim: rgba(8, 14, 16, .78);
}
:root { --danger: #A3473B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --danger: #E0978A; --shadow: none; --shadow-lift: 0 12px 28px -12px rgba(0, 0, 0, .6); }
}
:root[data-theme="dark"] { --danger: #E0978A; --shadow: none; --shadow-lift: 0 12px 28px -12px rgba(0, 0, 0, .6); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--font-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
body.noscroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: 30px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 500; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

#app { padding: calc(var(--safe-t) + 14px) 16px calc(var(--tabs-h) + var(--safe-b) + 28px); max-width: 1180px; margin: 0 auto; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 6px; }
.top h1 .wordmark { font-size: 34px; }
.top-left { min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.top-acts { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--rc); background: var(--card); box-shadow: var(--shadow); color: var(--text); flex: none; text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.spin svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; }

.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 14px; flex-wrap: wrap; }
.live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-dot); flex: none; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand-dot); opacity: 0; animation: ping 2.4s ease-out infinite; }
.live.off { background: var(--line); }
.live.off::after { display: none; }
@keyframes ping { 0% { transform: scale(.4); opacity: .8; } 80%, 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- search ---------- */
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: var(--rc); padding: 0 12px; box-shadow: var(--shadow); color: var(--muted); margin-bottom: 12px; }
.searchbar input { flex: 1; border: 0; background: transparent; padding: 12px 0; outline: none; color: var(--text); font-size: 16px; min-width: 0; }
.searchbar svg { width: 18px; height: 18px; }

/* ---------- chips ---------- */
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: var(--safe-t); background: var(--bg); z-index: 40; }
.filters { position: sticky; top: var(--safe-t); z-index: 20; margin: 0 -16px 10px; padding: 8px 16px 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 13px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); color: var(--text); transition: background .15s, color .15s; }
.chip svg { width: 15px; height: 15px; }
.chip.on { background: var(--text); color: var(--bg); }
.chip .cnt { font-size: 12px; font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.chips.small .chip { font-size: 13px; padding: 6px 11px; }

/* ---------- trending ---------- */
.trend { margin: 4px 0 16px; }
.trend-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.trend-head svg { width: 15px; height: 15px; }
.tchip { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 14px; font-weight: 600; }
.tchip i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tchip.on { outline: 2px solid var(--accent); }

/* ---------- sections ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 12px; gap: 10px; }
.sec-head h2 { font-size: 20px; }
.sec-head .muted { font-size: 13px; }
.day { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- hero ---------- */
.hero-grid { display: grid; gap: 12px; }
.hero { position: relative; display: block; border-radius: calc(var(--r) + 4px); overflow: hidden; background: var(--card2); aspect-ratio: 16 / 10; cursor: pointer; box-shadow: var(--shadow-lift); isolation: isolate; }
.hero img, .hero .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hero:hover img { transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--scrim) 0%, rgba(8, 14, 16, .35) 45%, transparent 70%); z-index: 1; }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 18px; z-index: 2; color: #fff; }
.hero-body h3 { font-size: clamp(20px, 5.4vw, 28px); font-weight: 700; line-height: 1.18; text-wrap: balance; }
.hero-body .imeta { color: rgba(255, 255, 255, .82); margin-bottom: 8px; }
.hero-body .src { background: rgba(255, 255, 255, .18); color: #fff; }
.hero .play { z-index: 2; }
.hero .bm { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(8, 14, 16, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero.small { aspect-ratio: 16 / 9; }
.hero.small .hero-body h3 { font-size: 18px; }
.hero-side { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hero-side .hero { aspect-ratio: 1 / 1.05; }
.hero-side .hero-body { padding: 10px 12px 12px; }
.hero-side .hero-body h3 { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-side .hero-body .imeta .sname, .hero-side .hero-body .imeta .sep { display: none; }

/* ---------- list / cards ---------- */
.list { display: grid; gap: 10px; }
.item { position: relative; display: flex; gap: 14px; background: var(--card); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); cursor: pointer; transition: transform .18s, box-shadow .18s; animation: rise .4s both; }
.item:hover { box-shadow: var(--shadow-lift); }
.item:active { transform: scale(.985); }
.item.read .ibody h3 { color: var(--muted); }
.ibody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ibody h3 { font-family: var(--font-text); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.teaser { font-size: 14px; color: var(--muted); line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.imeta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.imeta .sname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imeta .sep { opacity: .5; }
.src { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--card2); color: var(--text); font-family: var(--font-display); letter-spacing: 0; }
.newdot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-dot); flex: none; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.lang { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.thumb { position: relative; flex: none; width: 108px; height: 80px; border-radius: var(--rc); overflow: hidden; background: var(--card2); }
.thumb img, .vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { width: 30px; height: 30px; }
.thumb .play svg { width: 13px; height: 13px; margin-left: 2px; }
.noimg { display: grid; place-items: center; background: var(--accent-soft); color: var(--text); }
.noimg span { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; opacity: .75; }
.hero .noimg span { font-size: 48px; }
.iacts { display: flex; align-items: center; gap: 2px; margin-top: auto; padding-top: 2px; }
.iacts .grow { flex: 1; }
.act { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--rc); color: var(--muted); }
.act svg { width: 18px; height: 18px; }
.act:hover { background: var(--card2); color: var(--text); }
.act.on { color: var(--accent); }
.act.on svg { fill: currentColor; }
.bm { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.bm svg { width: 18px; height: 18px; }
.bm.on svg { fill: currentColor; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.5); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.popping svg { animation: pop .35s ease; }

/* video cards */
.vgrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.vcard { cursor: pointer; animation: rise .4s both; min-width: 0; }
.vthumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--card2); box-shadow: var(--shadow); }
.vthumb img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.vcard:hover .vthumb img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 14, 16, .55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .2s, background .2s; }
.play svg { width: 22px; height: 22px; fill: #fff; stroke: none; margin-left: 3px; }
.vcard:hover .play, .hero:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--brand-dot); }
.vthumb .bm { position: absolute; top: 8px; right: 8px; background: rgba(8, 14, 16, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.vbody { display: flex; gap: 10px; padding: 10px 2px 0; }
.vbody .ibody h3 { -webkit-line-clamp: 2; font-size: 15px; }
.vrow { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.vrow::-webkit-scrollbar { display: none; }
.vrow .vcard { flex: none; width: min(78vw, 320px); scroll-snap-align: start; }

.feed-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.feed-grid > *, .vgrid > *, .hero-grid > *, .hero-side > * { min-width: 0; }

/* ---------- empty & skeleton ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty svg { width: 40px; height: 40px; stroke-width: 1.5; margin-bottom: 8px; color: var(--line); }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.skel { background: var(--card); border-radius: var(--r); height: 104px; position: relative; overflow: hidden; }
.skel.big { height: auto; aspect-ratio: 16 / 10; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-line) 50%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- new items pill ---------- */
.newpill { position: fixed; left: 50%; top: calc(var(--safe-t) + 64px); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lift); transition: .3s cubic-bezier(.2, .8, .2, 1); }
.newpill svg { width: 16px; height: 16px; }
.newpill.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }

/* pull to refresh */
.ptr { position: fixed; left: 50%; top: calc(var(--safe-t) + 6px); width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-lift); display: grid; place-items: center; z-index: 70; transform: translateY(-60px); opacity: 0; color: var(--accent); }
.ptr svg { width: 20px; height: 20px; }
.ptr.go svg { animation: spin .9s linear infinite; }

/* ---------- tabbar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: center; gap: 4px; padding: 8px 12px calc(var(--safe-b) + 8px); background: color-mix(in srgb, var(--card) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
.tab { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: var(--rc); font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--text); }
.tab.on svg { color: var(--accent); }
.tab .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--text); color: var(--bg); font-size: 10px; line-height: 17px; text-align: center; }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; overflow-y: auto; background: var(--bg); border-radius: calc(var(--r) + 4px) calc(var(--r) + 4px) 0 0; padding: 8px 18px calc(var(--safe-b) + 20px); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); max-width: 680px; margin: 0 auto; overscroll-behavior: contain; }
.sheet.tall { height: 94dvh; max-height: 94dvh; }
.sheet-wrap.open .sheet-bg { opacity: 1; }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-grab { width: 100%; height: 22px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grab::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet h3.st { margin: 4px 0 6px; font-size: 20px; font-weight: 700; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); color: var(--muted); z-index: 2; }
.sheet-x svg { width: 18px; height: 18px; }

/* reader */
.r-img { margin: 6px -18px 16px; aspect-ratio: 16 / 9; background: var(--card2); overflow: hidden; }
.r-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reader h2 { font-size: 24px; line-height: 1.2; margin: 10px 0; text-wrap: balance; }
.reader .lead { font-size: 17px; line-height: 1.55; color: var(--text); }
.orig { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin: 14px 0; }
.orig b { font-weight: 600; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* player */
.player { margin: 4px -18px 14px; aspect-ratio: 16 / 9; background: #000; position: relative; }
.player iframe, .player > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.queue { margin-top: 18px; }
.qrow { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--rc); cursor: pointer; }
.qrow.cur { background: var(--accent-soft); }
.qrow img { width: 88px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex: none; background: var(--card2); }
.qrow b { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qrow .n { width: 20px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.ctrls { display: flex; gap: 8px; margin-top: 12px; }
.ctrls .btn { margin: 0; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: var(--rc); background: var(--card); box-shadow: var(--shadow); font-weight: 600; margin-top: 10px; text-decoration: none; color: var(--text); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn.primary:active { background: var(--accent-hover); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }
.btn.sm { padding: 10px 12px; font-size: 14px; width: auto; }

/* segmented */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--card2); border-radius: var(--rc); padding: 3px; margin: 6px 0 16px; }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg button { padding: 9px; border-radius: calc(var(--rc) - 2px); font-weight: 600; font-size: 14px; color: var(--muted); display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.seg button svg { width: 16px; height: 16px; }

/* playlists */
.plgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.plcard { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; animation: rise .4s both; }
.plcover { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 8; gap: 2px; background: var(--card2); }
.plcover img, .plcover div { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--accent-soft); }
.plcover.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.plbody { padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.plbody b { font-family: var(--font-display); font-size: 17px; font-weight: 700; display: block; }
.plbody span { font-size: 13px; color: var(--muted); }
.plbody .grow { flex: 1; min-width: 0; }
.plnew { display: grid; place-items: center; gap: 6px; min-height: 150px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); font-weight: 600; cursor: pointer; }
.plnew svg { width: 28px; height: 28px; }
.round-play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.round-play svg { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 2px; }

.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--rc); background: var(--card); box-shadow: var(--shadow); margin-top: 8px; text-align: left; }
.pick .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: var(--on-accent); }
.pick .box svg { width: 15px; height: 15px; stroke-width: 3; }
.pick.on .box { background: var(--accent); border-color: var(--accent); }
.pick .grow { flex: 1; min-width: 0; }
.pick small { display: block; color: var(--muted); font-size: 12px; }

.field { display: block; margin-top: 12px; }
.field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 6px 4px; }
.field input { width: 100%; font-size: 16px; padding: 14px 16px; border-radius: var(--rc); border: 1px solid var(--line); background: var(--card); outline: none; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* settings */
.acct { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.acct b { display: block; font-weight: 600; }
.acct span { display: block; font-size: 12px; color: var(--muted); word-break: break-all; }
.acct .grow { flex: 1; min-width: 0; }
.set-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.srcrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: var(--rc); margin-top: 6px; }
.srcrow .grow { flex: 1; min-width: 0; font-weight: 500; }
.srcrow small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.srcrow small.err { color: var(--danger); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 20px); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: .25s; z-index: 300; pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- larger screens ---------- */
@media (min-width: 700px) {
  #app { padding-left: 24px; padding-right: 24px; }
  .filters, .chips { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
  .vrow { margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .vrow { scroll-padding-inline: 24px; }
  .hero-grid { grid-template-columns: 1.6fr 1fr; }
  .hero-grid .hero:first-child { aspect-ratio: auto; min-height: 380px; }
  .item.card-v { flex-direction: column; padding: 0; overflow: hidden; }
  .item.card-v .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; order: -1; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-side .hero { aspect-ratio: auto; min-height: 184px; }
  .hero-side .hero-body h3 { font-size: 18px; }
  .hero-side .hero-body .imeta .sname, .hero-side .hero-body .imeta .sep { display: inline; }
  .item.card-v .ibody { padding: 12px 14px 10px; }
}
@media (min-width: 1000px) {
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabbar { left: 50%; right: auto; bottom: calc(var(--safe-b) + 14px); transform: translateX(-50%); width: 420px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; box-shadow: var(--shadow-lift); }
  .tab { flex-direction: row; justify-content: center; gap: 8px; font-size: 14px; padding: 9px 10px; border-radius: 999px; }
  .tab.on { background: var(--card2); }
  .tab .badge { position: static; }
  :root { --tabs-h: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
