/* realtimeearth.com — content pages (home / about / daily). /haneda/ keeps haneda.css. */
:root {
  --bg: #0a0e1a; --bg-card: #131826; --bg-card2: #1a2033;
  --text: #e8eaed; --muted: #9aa0a6; --accent: #4fc3f7; --live: #ff4d4f;
  --yt: #ff0033; --border: #2a3142; --max: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); line-height: 1.7;
  font-family: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* top bar */
.topbar { border-bottom: 1px solid var(--border); background: rgba(10,14,26,.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.topbar .wrap { display: flex; align-items: center; gap: 1rem; height: 56px; }
.brand { color: var(--text); font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand small { color: var(--muted); font-weight: 500; margin-left: .4rem; font-size: .75rem; }
.nav { display: flex; gap: 1.1rem; font-size: .9rem; overflow-x: auto; }
.nav a { color: var(--muted); white-space: nowrap; }
.nav a[aria-current="page"], .nav a:hover { color: var(--accent); text-decoration: none; }
.spacer { flex: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid var(--border); color: var(--text); background: var(--bg-card); white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn-sub { background: var(--yt); border-color: var(--yt); color: #fff; }
.btn-sub:hover { border-color: #fff; }
.btn-live::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255,77,79,.25); }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

/* hero */
.hero { padding: 2.2rem 0 1.5rem; }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.3; letter-spacing: -.01em; }
.hero .lede { color: var(--muted); margin-top: .7rem; max-width: 46em; }
.live-pill { display: inline-block; background: var(--live); color: #fff; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; letter-spacing: .06em; vertical-align: middle; margin-right: .5rem; }

/* video facade */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.video.vertical { aspect-ratio: 9 / 16; max-width: 340px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button.play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.65)); color: #fff; display: flex; align-items: center; justify-content: center; }
.video button.play span { width: 72px; height: 50px; border-radius: 14px; background: var(--yt); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.video .pending { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1rem; background: var(--bg-card2); color: var(--muted); font-size: .9rem; }

/* sections & cards */
section { padding: 1.6rem 0; }
h2 { font-size: 1.3rem; margin-bottom: .9rem; letter-spacing: -.005em; }
h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.card p { color: var(--muted); font-size: .92rem; }
.day-card { display: block; padding: 0; overflow: hidden; color: var(--text); }
.day-card:hover { text-decoration: none; border-color: var(--accent); }
.day-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; }
.day-card .body { padding: .7rem .9rem .85rem; }
.day-card .date { font-weight: 700; }
.day-card .nums { color: var(--muted); font-size: .85rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 4px; background: #3a2a10; color: #ffc46b; margin-left: .3rem; }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: .8rem .8rem; min-width: 0; }
.stat b { display: block; font-size: 1.7rem; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.stat span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .82rem; }
td.num { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.table-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.crumbs { font-size: .82rem; color: var(--muted); padding-top: 1.2rem; }
.crumbs a { color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.note { color: var(--muted); font-size: .85rem; margin-top: .6rem; }

/* footer */
.footer { border-top: 1px solid var(--border); margin-top: 2.5rem; padding: 1.6rem 0 2.4rem; color: var(--muted); font-size: .85rem; }
.footer a { color: var(--muted); margin-right: 1rem; }
.footer p { margin-top: .6rem; }

/* narrow screens */
@media (max-width: 600px) {
  .brand small { display: none; }
  /* two-row top bar: brand + subscribe on row 1, nav full width on row 2 (never truncates) */
  .topbar .wrap { flex-wrap: wrap; height: auto; gap: .15rem .7rem; padding-top: .5rem; padding-bottom: .35rem; }
  .topbar .wrap > .brand { order: 1; line-height: 2.1rem; }
  .topbar .wrap > .spacer { order: 2; }
  .topbar .wrap > .btn { order: 3; }
  .nav { order: 4; flex: 0 0 100%; gap: 1.25rem; font-size: .85rem; overflow: visible; padding: .1rem 0; }
  .stat b { font-size: 1.35rem; }
  th, td { padding: .45rem .45rem; }
  .table-wrap.events table { min-width: 540px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}
