:root {
  --bg: #f6f3ee;
  --card: #ffffff;
  --ink: #141414;
  --muted: #667078;
  --line: #e4ddd3;
  --red: #b91c1c;
  --red-deep: #7f1d1d;
  --teal: #0f766e;
  --shadow: 0 10px 30px rgba(20, 20, 20, 0.06);
  --font: "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Noto Sans SC", serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
.reg-popup {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.reg-popup[hidden] { display: none !important; }
.reg-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.48);
}
.reg-dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  padding: 1.25rem 1.15rem 1.1rem;
}
.reg-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.reg-dialog h2 {
  margin: 0 1.5rem 0.4rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.reg-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.reg-form { display: grid; gap: 0.75rem; }
.reg-field { display: grid; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }
.reg-field input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  background: #fff;
}
.reg-msg {
  margin: 0;
  font-size: 0.85rem;
  color: var(--red);
}
.reg-msg.ok { color: var(--teal); }
.reg-submit {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.reg-skip {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
}
.reg-open-btn { margin-left: 0; }

.article-layer {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(16, 14, 12, 0.45);
  display: grid;
  place-items: stretch;
  padding: max(0.5rem, env(safe-area-inset-top)) 0.5rem max(0.5rem, env(safe-area-inset-bottom));
}
.article-layer[hidden] {
  display: none !important;
}
.article-sheet {
  width: min(760px, 100%);
  margin: 0 auto;
  background: #fffaf4;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}
.article-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.article-back {
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}
.article-source {
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.1rem 1.6rem;
}
.article-body .cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #ddd;
  display: block;
}
.article-body .kicker {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.article-body h1 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  line-height: 1.35;
  margin: 0 0 0.6rem;
}
.article-body .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}
.article-body .content {
  white-space: pre-wrap;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #222;
}
.article-note {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #f3eee6;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
a[data-open-id], button[data-open-id] {
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell {
  width: min(1440px, calc(100% - 1.2rem));
  margin: 0 auto;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}
.page-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px;
  gap: 1rem;
  align-items: start;
  padding: 0.9rem 0 1.5rem;
}
.rail {
  position: sticky;
  top: 5.2rem;
  display: grid;
  gap: 0.8rem;
}
.mobile-tabs {
  display: none;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.55rem 0 0.15rem;
}
.mobile-tabs::-webkit-scrollbar { display: none; }
.mobile-tabs .tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
}
.mobile-tabs .tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.rail-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  margin: 0.4rem 0;
  cursor: pointer;
  font-weight: 600;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.9rem 0.95rem;
}
.panel h3 {
  margin: 0 0 0.7rem;
  font-size: 0.98rem;
  border-left: 3px solid var(--red);
  padding-left: 0.45rem;
}
.hot-list, .mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hot-list li, .mini-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.88rem;
  line-height: 1.35;
}
.hot-list li:last-child, .mini-list li:last-child { border-bottom: 0; }
.hot-list .n {
  color: var(--red);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mini-list a:hover { color: var(--red-deep); }
.cat-stack {
  display: grid;
  gap: 0.45rem;
}
.cat-stack button {
  border: 1px solid var(--line);
  background: #faf7f2;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  text-align: left;
  cursor: pointer;
}
.cat-stack button:hover, .cat-stack button.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
.tip {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.stat {
  background: #f7f4ee;
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
}
.stat b {
  display: block;
  font-size: 1.05rem;
}
.stat span {
  color: var(--muted);
  font-size: 0.75rem;
}

.topbar {
  background: #111;
  color: #f5f5f5;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.4rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}
.live-pill {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.refresh-btn {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}
.refresh-btn:hover { background: rgba(255,255,255,0.08); }

.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.2rem;
}
.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--red-deep);
}
.logo span {
  display: block;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-left: auto;
}
.tab {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}
.tab.active, .tab:hover {
  background: #111;
  color: #fff;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

.breaking {
  background: #fff8f6;
  border-bottom: 1px solid #f0d7d0;
}
.breaking-inner {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-height: 2.7rem;
  overflow: hidden;
}
.breaking-label {
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.breaking-track {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--red-deep);
  font-size: 0.92rem;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1rem 0 0.2rem;
}
.source-chip {
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  color: var(--muted);
}
.source-chip.ok { border-color: #99d5c7; color: var(--teal); }
.source-chip.bad { border-color: #f0c4c4; color: var(--red); }

.motion-strip { padding-top: 0.4rem; }
.focus-stage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #d9d2c6, #b7c4c1);
  height: clamp(210px, 32vw, 320px);
  box-shadow: var(--shadow);
}
.focus-track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: focus-slide 28s linear infinite;
  will-change: transform;
}
.focus-stage:hover .focus-track { animation-play-state: paused; }
.focus-card {
  position: relative;
  flex: 0 0 clamp(280px, 42vw, 420px);
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.focus-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: kenburns 10s ease-in-out infinite alternate;
}
.focus-card .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.35;
}
.focus-card .live-dot {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.3s infinite;
}
@keyframes focus-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.65); }
  70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.1rem;
  padding: 0.4rem 0 0.8rem;
}
.lead, .side-card, .depth-card, .mosaic-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lead {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 0;
  max-height: min(520px, 70vh);
  border-radius: 16px;
  color: #fff;
  display: block;
  background: #1a1a1a;
}
.lead .thumb {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.lead .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: kenburns 18s ease-in-out infinite alternate;
}
.lead .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.78) 68%);
}
.lead .copy {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  padding: 1.1rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  overflow: hidden;
}
.lead .copy p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kicker {
  color: #fecaca;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.side-card .kicker, .depth-card .kicker, .mosaic-card .kicker { color: var(--red); }
.lead h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  line-height: 1.25;
  font-weight: 700;
}
.lead p, .side-card p, .depth-card p, .mosaic-card p { margin: 0; }
.lead p { color: rgba(255,255,255,0.88); }
.side-card p, .depth-card p, .mosaic-card p { color: var(--muted); }
.meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
.side-card .meta, .depth-card .meta, .mosaic-card .meta, .realtime .meta { color: var(--muted); }
.lead a.btn {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.4rem;
  background: var(--red);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.side-stack { display: grid; gap: 0.8rem; }
.side-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.7rem;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.side-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.08); }
.side-card .thumb {
  position: relative;
  width: 118px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  min-height: 0;
  background: #ddd;
  align-self: start;
}
.side-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}
.side-card:hover .thumb img { transform: scale(1.08); }
.side-card h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.35;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  padding: 0.2rem 0 1rem;
}
.mosaic-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease;
}
.mosaic-card:hover { transform: translateY(-3px); }
.mosaic-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
}
.mosaic-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .45s ease;
}
.mosaic-card:hover .thumb img { transform: scale(1.06); }
.mosaic-card .body { padding: 0.85rem 0.95rem 1rem; }
.mosaic-card h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0 1rem;
}
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid #111;
  padding-bottom: 0.45rem;
  margin-bottom: 0.8rem;
}
.block-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.block-head span { color: var(--muted); font-size: 0.82rem; }

.realtime {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.realtime li {
  border-bottom: 1px solid var(--line);
}
.realtime a {
  display: grid;
  grid-template-columns: 4.8rem 72px 1fr;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  align-items: center;
}
.realtime .thumb {
  position: relative;
  width: 72px;
  height: 54px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  flex-shrink: 0;
}
.realtime .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.realtime a:hover { background: #faf7f2; }
.realtime time {
  color: var(--red);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.realtime strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.realtime span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.depth-list { display: grid; gap: 0.75rem; }
.depth-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.7rem;
  border-radius: 12px;
  overflow: hidden;
}
.depth-card .thumb {
  position: relative;
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  min-height: 0;
  background: #ddd;
  align-self: start;
}
.depth-card .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.depth-card h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.disclaimer {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.5rem 0 2rem;
}
.site-foot {
  border-top: 1px solid var(--line);
  background: #111;
  color: #d5d5d5;
  padding: 1.6rem 0;
}
.site-foot strong {
  display: block;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.site-foot p { margin: 0; font-size: 0.85rem; }
.muted { color: var(--muted); }

@media (max-width: 1200px) {
  .page-grid { grid-template-columns: 200px minmax(0, 1fr) 220px; gap: 0.8rem; }
}
@media (max-width: 980px) {
  .shell { width: min(1440px, calc(100% - 0.9rem)); }
  .page-grid {
    grid-template-columns: 1fr;
    padding-top: 0.35rem;
  }
  .mobile-tabs { display: flex; order: 0; }
  .main-nav { display: none !important; }
  .menu-btn { display: none; }
  .rail-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .rail {
    position: static;
    display: none;
    gap: 0.7rem;
  }
  .rail.open { display: grid; }
  #leftRailToggle { order: 1; }
  .left-rail { order: 2; }
  .main-col { order: 3; }
  #rightRailToggle { order: 4; }
  .right-rail { order: 5; }
  .btn, .refresh-btn, .rail-toggle, .tab, .rail-cat, .side-card, .mosaic-card, .depth-card, .realtime a {
    touch-action: manipulation;
  }
  .masthead-inner { min-height: 3.6rem; }
  .logo { font-size: 1.35rem; letter-spacing: 0.1em; }
  .topbar-inner {
    font-size: 0.75rem;
    gap: 0.45rem;
  }
  #updatedAt {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .refresh-btn {
    min-height: 34px;
    padding: 0.35rem 0.7rem;
  }
  .breaking-inner { min-height: 2.5rem; }
  .breaking-track {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .focus-stage {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
  }
  .focus-card { flex-basis: min(78vw, 280px); }
  .status-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .status-row::-webkit-scrollbar { display: none; }
  .source-chip { flex: 0 0 auto; }
  .hero-grid, .split, .mosaic { grid-template-columns: 1fr; gap: 0.75rem; }
  .lead {
    aspect-ratio: 4 / 5;
    max-height: min(560px, 72vh);
  }
  .lead .copy { min-height: 0; }
  .lead h1 {
    font-size: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .side-card {
    grid-template-columns: 96px 1fr;
    gap: 0.65rem;
    align-items: start;
  }
  .side-card .thumb { width: 96px; aspect-ratio: 4 / 3; }
  .realtime a {
    grid-template-columns: 3.4rem 64px 1fr;
    gap: 0.5rem;
    padding: 0.65rem 0.55rem;
    align-items: center;
  }
  .realtime .thumb {
    width: 64px;
    height: 48px;
    aspect-ratio: 4 / 3;
  }
  .depth-card {
    grid-template-columns: 92px 1fr;
    align-items: start;
  }
  .depth-card .thumb { width: 92px; aspect-ratio: 4 / 3; }
  .panel { padding: 0.8rem; }
  .cat-stack button { min-height: 44px; }
  .block-head h2 { font-size: 1.1rem; }
  .status-row { gap: 0.35rem; }
  .source-chip { font-size: 0.72rem; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 0.7rem); }
  .side-card { grid-template-columns: 78px 1fr; }
  .side-card .thumb { width: 78px; aspect-ratio: 4 / 3; }
  .realtime a {
    grid-template-columns: 64px 1fr;
    align-items: center;
  }
  .realtime time {
    grid-column: 1 / -1;
    order: 0;
  }
  .realtime .thumb {
    width: 64px;
    height: 48px;
    aspect-ratio: 4 / 3;
    order: 0;
  }
  .realtime a > div:last-child { order: 0; }
}
