/* Press Box — εμφάνιση */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --line: #E5E7EB;
  --chip: #EEF0F3;
  --accent: #0E1726;
  --accent-ink: #FFFFFF;
  --new: #2563EB;
  --star: #D97706;
  --danger: #DC2626;
  --ok: #059669;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0F14; --surface: #141A21; --surface-2: #1A212A; --text: #E8EDF2; --text-2: #C3CCD6;
    --muted: #8B97A6; --faint: #66717F; --line: #232B35; --chip: #1F2730; --accent-ink: #FFFFFF;
    --new: #60A5FA; --star: #FBBF24; --danger: #F87171; --ok: #34D399; --accent: #334155;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0F14; --surface: #141A21; --surface-2: #1A212A; --text: #E8EDF2; --text-2: #C3CCD6;
  --muted: #8B97A6; --faint: #66717F; --line: #232B35; --chip: #1F2730; --accent-ink: #FFFFFF;
  --new: #60A5FA; --star: #FBBF24; --danger: #F87171; --ok: #34D399; --accent: #334155;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.4; min-height: 100vh;
  padding-bottom: calc(68px + var(--safe-bottom));
  overscroll-behavior-y: contain;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  padding: calc(var(--safe-top) + 8px) 16px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background:
    radial-gradient(circle at 9px 9.5px, #F2B705 2.6px, transparent 3px),
    linear-gradient(var(--accent-ink), var(--accent-ink)) 6px 20px / 17px 3px no-repeat,
    linear-gradient(var(--accent-ink), var(--accent-ink)) 10px 15px / 13px 3px no-repeat,
    linear-gradient(var(--accent-ink), var(--accent-ink)) 14px 10px / 9px 3px no-repeat,
    var(--accent);
  transition: background-color .25s;
}
.brand h1 { font-size: 20px; line-height: 1.1; margin: 0; letter-spacing: -.01em; font-weight: 750; }
.status-line { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-line .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }
.status-line.loading .dot { background: var(--new); animation: pulse 1s infinite; }
.status-line.error .dot { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.top-actions { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:active { background: var(--chip); }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.search-bar {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px 0 10px; height: 42px;
}
.search-bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-bar input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; height: 100%; font-size: 16px; }
.text-btn { color: var(--accent-strong, var(--text)); font-weight: 600; padding: 6px 8px; border-radius: 8px; font-size: 15px; }

/* Team bar */
.team-bar { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.team-bar::-webkit-scrollbar { display: none; }
.team-pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px;
  color: var(--text-2);
}
.team-pill .crest {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: #fff; letter-spacing: .02em; background: var(--c, #555);
}
.team-bar.fit .team-pill { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 8px; gap: 7px; font-size: 14px; }
.team-bar.fit .team-pill.all { flex: 0 0 auto; padding: 0 14px; }
.team-bar.fit .team-pill.all .crest { display: none; }
.team-bar.fit .team-pill .dot { margin-left: 0; }
.team-pill .crest { flex: none; }
.team-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; margin-left: 6px; }
.team-pill[aria-pressed="true"] .dot { background: #fff; }
.team-pill .t-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.team-pill.all .crest { background: var(--text); color: var(--bg); font-size: 13px; }
.team-pill[aria-pressed="true"] { background: var(--c, var(--text)); border-color: var(--c, var(--text)); color: #fff; }
.team-pill.all[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.team-pill[aria-pressed="true"] .crest { background: rgba(255,255,255,.22); color: #fff; }
.team-pill.all[aria-pressed="true"] .crest { background: color-mix(in srgb, var(--bg) 25%, transparent); color: var(--bg); }
.team-pill .count { font-size: 12px; opacity: .75; font-weight: 600; }

/* Segmented */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 10px; background: var(--chip); padding: 3px; border-radius: 11px; }
.segmented button { white-space: nowrap; height: 32px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.segmented .n { font-size: 12px; font-weight: 600; color: var(--faint); }

/* ---------- Main ---------- */
main { max-width: 760px; margin: 0 auto; }
.view { padding: 12px 16px 24px; }

.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.source { padding-right: 9px; }
.chip.source .caret { width: 14px; height: 14px; opacity: .7; }
.chip .n { font-weight: 600; opacity: .6; font-size: 12px; }

.banner {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--new) 12%, var(--surface)); color: var(--text); font-size: 14px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--new) 25%, transparent);
}
.banner .b-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--new); flex: none; }
.banner button { margin-left: auto; color: var(--new); font-weight: 700; font-size: 13.5px; }
.banner.warn { background: color-mix(in srgb, var(--star) 12%, var(--surface)); border-color: color-mix(in srgb, var(--star) 30%, transparent); }
.banner.warn .b-dot { background: var(--star); }
.banner.info { background: var(--surface); border-color: var(--line); font-weight: 500; color: var(--text-2); }
.banner.info .b-dot { background: var(--accent); }

.day-head {
  position: sticky; top: var(--hdr, 150px); z-index: 5; margin: 18px -16px 8px; padding: 6px 16px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.day-head:first-of-type { margin-top: 2px; }
.day-head .sub { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--faint); margin-left: 6px; }

/* Article card */
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  margin-bottom: 10px; overflow: hidden; position: relative;
}
.card.is-read .title { color: var(--muted); font-weight: 560; }
.card-main { display: flex; gap: 12px; padding: 13px 14px 6px; text-decoration: none; color: inherit; }
.card-text { flex: 1; min-width: 0; }
.meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; min-width: 0; }
.meta .fav { width: 16px; height: 16px; border-radius: 4px; flex: none; background: var(--chip); object-fit: cover; }
.meta .src { font-weight: 650; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.meta .sep { color: var(--faint); }
.meta .new { color: var(--new); font-weight: 750; font-size: 11px; letter-spacing: .04em; }
.meta .mine { color: var(--star); }
.title { font-size: 16.5px; line-height: 1.32; font-weight: 650; margin: 0; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.title mark { background: color-mix(in srgb, var(--star) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.desc { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; background: var(--chip); }
.card-foot { display: flex; align-items: center; gap: 6px; padding: 4px 8px 8px 14px; min-height: 36px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; min-width: 0; }
.tag { font-size: 11.5px; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: var(--chip); color: var(--text-2); white-space: nowrap; }
.tag.team { color: #fff; background: var(--c); }
.tag.watch { background: color-mix(in srgb, var(--star) 20%, transparent); color: var(--text); }
.tag.more { background: transparent; border: 1px solid var(--line); color: var(--text-2); cursor: pointer; }
.card-actions { display: flex; gap: 2px; flex: none; }
.card-actions button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.card-actions button:active { background: var(--chip); }
.card-actions svg { width: 19px; height: 19px; }
.card-actions .saved svg { fill: var(--star); stroke: var(--star); }

.cluster { border-top: 1px solid var(--line); background: var(--surface-2); }
.cluster a { display: flex; gap: 8px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.cluster a:last-child { border-bottom: 0; }
.cluster .c-src { font-weight: 650; color: var(--text-2); white-space: nowrap; }
.cluster .c-time { color: var(--faint); white-space: nowrap; margin-left: auto; padding-left: 6px; font-size: 12.5px; }
.cluster .c-title { color: var(--text-2); }

.more-btn { display: block; width: 100%; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; color: var(--text-2); margin-top: 4px; }

/* Empty / skeleton */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .e-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--chip); display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted); }
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 17px; }
.empty p { margin: 0 auto; max-width: 320px; font-size: 14.5px; }
.empty .btn { margin-top: 16px; }
.skel { height: 104px; border-radius: var(--radius); margin-bottom: 10px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Topics view ---------- */
.section-title { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 20px 4px 8px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 4px; }
.section-title .right { margin-left: auto; text-transform: none; letter-spacing: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.stat .s-team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.stat .s-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.stat .s-num { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin: 6px 0 2px; }
.stat .s-sub { font-size: 12.5px; color: var(--muted); }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); overflow: hidden; }
.topic-main { display: flex; gap: 12px; padding: 13px 14px 10px; text-decoration: none; }
.rank { font-size: 15px; font-weight: 800; color: var(--faint); width: 22px; flex: none; padding-top: 1px; }
.topic .heat { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.heat-bar { display: inline-flex; gap: 2px; }
.heat-bar i { width: 5px; height: 12px; border-radius: 2px; background: var(--line); }
.heat-bar i.on { background: var(--accent); }
.topic-foot { display: flex; align-items: center; gap: 6px; padding: 0 8px 8px 48px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.btn.secondary { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .5; }
.brief-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.brief-card .b-text { flex: 1; font-size: 14px; color: var(--muted); }
.brief-card .b-text strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* ---------- Settings ---------- */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 52px; }
.row:last-child { border-bottom: 0; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-title { font-weight: 600; font-size: 15.5px; }
.row .r-sub { font-size: 13px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-sub.wrap { white-space: normal; }
.row button.r-link { color: var(--muted); }
.row .r-dot { min-width: 28px; height: 28px; padding: 0 5px; border-radius: 14px; flex: none; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; }
.row img.r-fav { width: 28px; height: 28px; border-radius: 7px; background: var(--chip); flex: none; object-fit: cover; }
.row.click { cursor: pointer; }
.row.click:active { background: var(--chip); }
.chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--chip); color: var(--muted); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--star) 18%, transparent); color: var(--star); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 4px 0; line-height: 1.45; }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }

.seg-inline { display: flex; background: var(--chip); padding: 3px; border-radius: 10px; gap: 2px; }
.seg-inline button { padding: 6px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg-inline button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.add-row { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.input {
  flex: 1; min-width: 0; width: 100%; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 12px; font-size: 16px; outline: none;
}
.input:focus { border-color: var(--text-2); }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.4; resize: vertical; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px 12px; border-bottom: 1px solid var(--line); }
.suggest .chip { height: 30px; font-size: 13px; }
.word-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.word-chips:empty { display: none; }
.word-chips .chip button { margin-left: 2px; color: var(--muted); display: grid; place-items: center; }
.word-chips .chip button svg { width: 14px; height: 14px; }
.team-mini { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.team-mini button { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.team-mini button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(var(--safe-bottom) + 4px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--faint); position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--accent-strong, var(--text)); }
.tab .tab-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--new); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 40; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow: auto;
  background: var(--bg); border-radius: 18px 18px 0 0; padding: 6px 16px calc(var(--safe-bottom) + 16px);
  animation: up .25s cubic-bezier(.2,.8,.2,1); max-width: 760px; margin: 0 auto;
  overscroll-behavior: contain;
}
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.sheet h2 { font-size: 19px; margin: 4px 4px 4px; }
.sheet .s-sub { color: var(--muted); font-size: 14px; margin: 0 4px 14px; }
.sheet label.field { display: block; margin: 0 0 12px; }
.sheet label.field > span { display: block; font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 4px 6px; }
.sheet label.field small { display: block; font-size: 12.5px; color: var(--faint); margin: 5px 4px 0; line-height: 1.4; }
.sheet .actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet .actions .btn { flex: 1; }
.opt-list { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px; }
.opt:last-child { border-bottom: 0; }
.opt .o-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--chip); display: grid; place-items: center; flex: none; overflow: hidden; }
.opt .o-icon img { width: 100%; height: 100%; object-fit: cover; }
.opt .o-icon svg { width: 17px; height: 17px; }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-sub { font-size: 12.5px; color: var(--muted); }
.opt .check { width: 20px; height: 20px; color: var(--new); visibility: hidden; }
.opt[aria-checked="true"] .check { visibility: visible; }
.opt.danger { color: var(--danger); }
.color-row { display: flex; gap: 10px; flex-wrap: wrap; }
.color-row button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 3px solid transparent; }
.color-row button[aria-pressed="true"] { border-color: var(--text); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 60;
  transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Pull to refresh */
.ptr { position: fixed; top: calc(var(--safe-top) + 6px); left: 50%; transform: translate(-50%, -60px); z-index: 25; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.15); display: grid; place-items: center; transition: transform .2s; }
.ptr-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--text); }
.ptr.active .ptr-spin { animation: spin .7s linear infinite; }

@media (min-width: 700px) {
  .title { font-size: 17px; }
  .thumb { width: 108px; height: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Σειρά πηγών */
.filters.sources { margin-bottom: 8px; }
.src-chip img { width: 15px; height: 15px; border-radius: 3px; flex: none; }
.chip.add-src { border-style: dashed; color: var(--muted); }
