/* WeatherOnFilm shared styles.
   Every page links this one file. Colours and sizes come from the style guide. */

/* ---------- Colours ---------- */
:root {
  --bg: #F3F5F8;
  --panel: #FFFFFF;
  --line: #DCE2EA;
  --border-soft: #C9D2DD;
  --border: #748293;
  --field: #FFFFFF;
  --selected: #E4EAF2;
  --text: #121A24;
  --muted: #4B5868;
  --accent: #0A5CC7;
  --on-accent: #FFFFFF;
  --chip-on-bg: #121A24;
  --chip-on-text: #FFFFFF;
  --label: #0A5CC7;
  --error: #C62828;
  --stamp: #FFD166;
  color-scheme: light;
}

/* Dark colours. Used when the visitor's device asks for dark,
   unless they picked light with the header button. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080D17;
    --panel: #111A2B;
    --line: #1A2538;
    --border-soft: #26334B;
    --border: #5F7397;
    --field: #060A12;
    --selected: #18243A;
    --text: #F2F5FA;
    --muted: #9AA8BD;
    --accent: #4DA8FF;
    --on-accent: #080D17;
    --chip-on-bg: #F2F5FA;
    --chip-on-text: #080D17;
    --label: #9AA8BD;
    --error: #FF9B8F;
    color-scheme: dark;
  }
}
/* Dark colours when the visitor picked dark with the header button. */
:root[data-theme="dark"] {
  --bg: #080D17;
  --panel: #111A2B;
  --line: #1A2538;
  --border-soft: #26334B;
  --border: #5F7397;
  --field: #060A12;
  --selected: #18243A;
  --text: #F2F5FA;
  --muted: #9AA8BD;
  --accent: #4DA8FF;
  --on-accent: #080D17;
  --chip-on-bg: #F2F5FA;
  --chip-on-text: #080D17;
  --label: #9AA8BD;
  --error: #FF9B8F;
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
/* Anything marked hidden stays hidden, whatever else styles it. */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }

/* A clear outline for people using the keyboard. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -999px; top: 8px;
  padding: 10px 16px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding: 10px 24px; border-bottom: 1px solid var(--line);
}
/* The logo: a camera in one line, a cloud inside it, a red sun behind the cloud.
   The name is set in the serif used for the homepage headline. */
.logo {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-family: Lora, Georgia, "Times New Roman", serif; font-weight: 500; font-size: 25px; letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.logo svg { flex: none; }
.logo .logo-line { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.logo .logo-cloud { fill: currentColor; stroke: var(--bg); stroke-width: 2.4; stroke-linejoin: round; paint-order: stroke; }
.logo .logo-sun { fill: #F0343C; }

.search { flex: 1 1 320px; max-width: 620px; display: flex; }
.search input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 18px;
  font-weight: 400; font-size: 16px; font-family: inherit; color: var(--text);
  background: var(--field); border: 1px solid var(--border); border-right: 0;
  border-radius: 22px 0 0 22px;
}
.search button {
  width: 64px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--text); border: 1px solid var(--border);
  border-radius: 0 22px 22px 0; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; font-weight: 600; font-size: 15px; font-family: inherit;
  border-radius: 22px; cursor: pointer; border: 1px solid var(--border);
  background: transparent; color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn-icon { width: 44px; padding: 0; }
.btn-soft { background: var(--line); border-color: transparent; }

/* ---------- Page layout ---------- */
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; }
.side-nav {
  flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 2px; padding: 12px;
}
.side-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 500; border-radius: 10px;
}
.side-nav a[aria-current="page"] { font-weight: 600; background: var(--line); }
/* Section headings in the menu: coloured, with a line above, so they read
   as labels and are not mistaken for links. */
.side-nav .nav-heading {
  margin-top: 12px; padding: 16px 14px 8px; font-weight: 600; font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--label); border-top: 1px solid var(--border);
}
.side-nav .nav-heading:first-child { margin-top: 0; padding-top: 6px; border-top: 0; }
.main { flex: 999 1 600px; min-width: 0; padding: 16px 24px 44px; display: flex; flex-direction: column; gap: 22px; }
/* The same layout on the other browsing pages: menu on the left, page on the right. */
.layout-content { flex: 999 1 600px; min-width: 0; }
.layout-content > .search-page, .layout-content > .channel-page, .layout-content > .manage-page { margin-left: 0; margin-right: 0; }

/* The one sentence at the top of the homepage that says what the site is.
   A plain large heading, shown only to visitors who are not signed in. */
.home-intro { display: none; margin: 6px 0 0; font-weight: 600; font-size: 34px; letter-spacing: -0.01em; line-height: 1.15; color: var(--text); }
.home-intro span { display: block; margin-top: 6px; font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
html[data-auth-state="out"] .home-intro { display: block; }
@media (max-width: 760px) {
  .home-intro { font-size: 26px; }
  .home-intro span { font-size: 16px; }
}
/* All, Videos, Photos sit under the "Newest" heading, above the grid they filter. */
.chips.home-filter { margin-top: 12px; }

/* The bot check. It takes no room unless it has to show its small box. */
.bot-check:empty { display: none; }
.bot-check { margin: 4px 0; }

/* ---------- The information pages: a small menu on the left, the page beside it ---------- */
.info-layout { max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding: 30px 24px 48px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px; }
.info-layout > .text-page, .info-layout > .auth-page { flex: 1 1 520px; min-width: 0; margin: 0; padding: 0; }
.info-nav { flex: 0 0 220px; display: flex; flex-direction: column; gap: 4px; }
.info-nav a { display: flex; align-items: center; min-height: 46px; padding: 0 14px; font-weight: 500; border-radius: 10px; color: var(--muted); }
.info-nav a:hover { text-decoration: none; color: var(--text); }
.info-nav a[aria-current="page"] { font-weight: 600; background: var(--line); color: var(--text); }
@media (max-width: 760px) {
  .info-layout { padding: 14px 14px 28px; gap: 16px; }
  .info-nav { flex: 1 1 100%; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .info-nav::-webkit-scrollbar { display: none; }
  .info-nav a { flex: none; white-space: nowrap; min-height: 44px; }
}

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 16px; font-weight: 500; font-size: 15px; font-family: inherit;
  background: var(--line); color: var(--text); border: 0; border-radius: 10px; cursor: pointer;
}
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-text); }

/* ---------- Small label ---------- */
.label {
  font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--label);
}

/* ---------- Camcorder date stamp (the only place this font is used) ---------- */
.stamp {
  position: absolute; left: 8px; top: 8px; padding: 2px 7px;
  font-family: VT323, "Courier New", monospace; font-size: 16px; line-height: 1.15;
  background: rgba(15, 14, 13, 0.8); color: var(--stamp);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.stamp-large { left: 14px; top: 14px; padding: 2px 9px; font-size: 24px; }
.badge {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px;
  font-weight: 600; font-size: 12px; background: rgba(15, 14, 13, 0.8); color: #FFFFFF; border-radius: 4px;
}

/* ---------- Featured film ---------- */
.featured {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
  padding: 36px 32px; background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}
/* Viewfinder corners. Only the featured film has these. */
.featured::before, .featured::after, .featured > .corner-bl, .featured > .corner-br {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent);
}
.featured::before { left: 10px; top: 10px; border-left-width: 2px; border-top-width: 2px; }
.featured::after { right: 10px; top: 10px; border-right-width: 2px; border-top-width: 2px; }
.featured > .corner-bl { left: 10px; bottom: 10px; border-left-width: 2px; border-bottom-width: 2px; }
.featured > .corner-br { right: 10px; bottom: 10px; border-right-width: 2px; border-bottom-width: 2px; }
.featured-media { position: relative; flex: 1 1 420px; min-width: 0; border-radius: 6px; overflow: hidden; }
.featured-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.featured-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.featured-text h2 { font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.01em; line-height: 1.08; }
.featured-meta { font-size: 17px; color: var(--muted); }
.featured-meta a { font-weight: 600; color: var(--muted); text-decoration: underline; }

/* ---------- Film grid ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-weight: 600; font-size: 21px; }
.section-head span { font-size: 14px; color: var(--muted); }
.film-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 24px 18px;
}
.film-card { display: flex; flex-direction: column; gap: 8px; }
/* The grey background shows while a picture loads, or if it cannot load. */
.film-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--line); }
.film-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; color: transparent; }
.film-info { display: flex; gap: 10px; }
.avatar {
  flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; background: var(--selected); color: var(--text); border-radius: 50%;
}
.film-title { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.film-meta { display: block; font-size: 14px; color: var(--muted); }
.film-meta a { color: var(--muted); }
.empty { padding: 22px 18px; background: var(--panel); border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding: 18px 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .site-header { padding: 8px 12px; }
  .logo { font-size: 21px; gap: 10px; }
  .logo svg { width: 32px; height: 28px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .side-nav { flex-direction: row; max-width: none; flex-basis: 100%; overflow-x: auto; padding: 8px 12px; }
  .side-nav a { flex: none; white-space: nowrap; }
  .side-nav, .chips { scrollbar-width: none; }
  .side-nav::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .side-nav .nav-heading { display: none; }
  .main { padding: 14px 14px 28px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
  .chip { flex: none; }
  .featured { padding: 0; overflow: hidden; }
  .featured::before, .featured::after, .featured > .corner-bl, .featured > .corner-br { display: none; }
  .featured-media { border-radius: 0; flex-basis: 100%; }
  .featured-text { padding: 0 14px 16px; }
  .film-grid { grid-template-columns: 1fr; }
}

/* People who ask their device for less motion get none. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Names the converted pages use ----------
   The inner pages were converted from the design prototype, which used
   shorter names for the same colours. These lines point the old names
   at the real ones, so there is still one set of colours. */
:root {
  --b1: var(--border-soft);
  --b2: var(--border);
  --deep: var(--field);
  --sel: var(--selected);
  --on: var(--on-accent);
  --chipbg: var(--chip-on-bg);
  --chipfg: var(--chip-on-text);
  --err: var(--error);
}

/* ---------- Top navigation (every page except the homepage) ---------- */
.top-nav { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.top-nav a {
  flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  font-weight: 500; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent;
}
.top-nav a:hover { text-decoration: none; color: var(--text); }
.top-nav a[aria-current="page"] { font-weight: 600; color: var(--text); border-bottom-color: var(--accent); }

.page { display: block; min-height: 50vh; }
.page img { max-width: 100%; }

/* ---------- Signed-in header ---------- */
.bell { position: relative; }
.bell-dot { position: absolute; right: 9px; top: 9px; width: 10px; height: 10px; background: var(--error); border: 2px solid var(--bg); border-radius: 50%; }
.avatar-button { background: var(--selected); font-weight: 600; border-radius: 50%; }

/* ---------- Plain text pages ---------- */
.text-page { max-width: 760px; margin: 0 auto; padding: 30px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.text-page h1 { font-weight: 600; font-size: 34px; letter-spacing: -0.01em; line-height: 1.1; }
.text-page p { font-size: 17px; line-height: 1.6; }
.text-page a { color: var(--accent); font-weight: 600; }
.preview-note { opacity: 0.8; }

/* ---------- Short message at the bottom of the screen ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  max-width: calc(100% - 32px); padding: 12px 18px; font-weight: 600;
  background: var(--chip-on-bg); color: var(--chip-on-text); border-left: 5px solid var(--accent);
  border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- Bottom bar on phones ---------- */
.tab-bar { display: none; }
@media (max-width: 760px) {
  .top-nav { display: none; }
  body { padding-bottom: 64px; }
  .tab-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: var(--panel); border-top: 1px solid var(--line);
  }
  .tab-bar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 56px; font-size: 11px; font-weight: 500; color: var(--muted);
  }
  .tab-bar a:hover { text-decoration: none; }
  .tab-bar a[aria-current="page"] { font-weight: 600; color: var(--text); }
  .tab-bar .tab-upload { font-weight: 600; color: var(--accent); }
  .tab-bar .tab-upload svg { width: 48px; height: 34px; padding: 6px 13px; background: var(--accent); color: var(--on-accent); border-radius: 17px; }
  .toast { bottom: 76px; }
  .site-footer { padding-bottom: 24px; }
}

/* ---------- Signed in or signed out ----------
   Both sets of header buttons are in every page. The account code
   decides which one shows. */
[data-auth] { display: none !important; }
html[data-auth-state="out"] [data-auth="out"],
html[data-auth-state="in"] [data-auth="in"] { display: inline-flex !important; }
/* Whole blocks of a page (not header buttons) that depend on being signed in. */
html[data-auth-state="out"] .auth-block[data-auth="out"],
html[data-auth-state="in"] .auth-block[data-auth="in"] { display: flex !important; flex-direction: column; align-items: flex-start; gap: 12px; }
.upload-page .card { flex: none; }
@media (max-width: 760px) { .hide-on-phone { display: none !important; } }

/* ---------- Forms ---------- */
.auth-page { max-width: 1040px; margin: 0 auto; padding: 30px 24px 48px; display: flex; flex-direction: column; gap: 26px; }
.auth-page h1 { font-weight: 600; font-size: 34px; letter-spacing: -0.01em; line-height: 1.1; }
.auth-page .lead { font-size: 17px; color: var(--muted); margin-top: 6px; }
.auth-columns { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.card {
  flex: 1 1 340px; padding: 28px; display: flex; flex-direction: column; gap: 18px;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px;
}
.card h2 { font-weight: 600; font-size: 21px; }
.card form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 0 14px; font-weight: 400; font-size: 16px; font-family: inherit;
  color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px;
}
.field textarea { min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input[type=file] { padding: 10px 14px; height: auto; }
.field-pair { display: flex; flex-wrap: wrap; gap: 14px; }
.field-pair .field { flex: 1 1 160px; }
.upload-page { max-width: 720px; }
.more-empty { color: var(--muted); font-size: 15px; }
.more-box { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.more-box h2 { font-weight: 600; font-size: 18px; }
.more-row { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.more-row:hover { text-decoration: none; }
.more-row .manage-thumb { width: 150px; }
.more-words { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
/* While a real film is loading, the sample film underneath is kept out of sight. */
html.loading-film #main > * { visibility: hidden; }
.upload-titles { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px dashed var(--border); border-radius: 10px; }
.thumb-pick { display: flex; flex-direction: column; gap: 8px; }
.thumb-pick img { display: block; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); border-radius: 8px; }
.thumb-pick input[type=range] { width: 100%; max-width: 420px; accent-color: var(--accent); }
.weather-map { height: 62vh; min-height: 380px; border: 1px solid var(--border-soft); border-radius: 12px; z-index: 0; }
.map-peek.leaflet-tooltip { padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--panel, #121a26); color: var(--text); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); white-space: normal; }
.map-peek.leaflet-tooltip::before { display: none; }
.map-peek-box { width: 180px; }
.map-peek-box img { display: block; width: 180px; height: 110px; object-fit: cover; background: var(--line); }
.map-peek-text { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 9px; font-size: 13px; line-height: 1.3; }
.map-peek-text strong { font-size: 14px; }
.map-peek-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map-peek-count { color: var(--muted); font-size: 12px; }
@media (hover: none) { .map-peek { display: none; } }
.map-dot span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-weight: 600; font-size: 14px; background: #0A5CC7; color: #FFFFFF; border: 2px solid #FFFFFF; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.map-popup { display: flex; flex-direction: column; gap: 6px; font-family: Inter, system-ui, sans-serif; font-size: 14px; color: #17202B; }
.map-popup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.map-popup a { font-weight: 600; color: #0A5CC7; text-decoration: underline; }
.map-popup .manage-meta { color: #4A5868; font-size: 13px; }
.map-tools select { min-height: 44px; padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.event-line { font-size: 16px; }
.event-add select { flex: 1 1 240px; min-height: 46px; padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.event-add form { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 10px !important; }
.inbox-note { flex: 1 1 220px; min-height: 44px; padding: 0 12px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.day-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.day-tools input[type=date] { min-height: 44px; padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.photo-page { max-width: 1400px; }
/* The photo on the left, more to see on the right; the column drops below on a phone. */
.photo-columns { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.photo-columns > .photo-body { flex: 999 1 600px; min-width: 0; }
.photo-more { flex: 1 1 340px; min-width: 0; }
.photo-body { display: flex; flex-direction: column; gap: 18px; }
.photo-frame { position: relative; margin: 0; min-height: 220px; background: var(--deep); border-radius: 12px; overflow: hidden; }
.photo-frame img { display: block; width: 100%; max-height: 80vh; object-fit: contain; cursor: zoom-in; }
/* Full screen for a photo: a button in the corner, like the one on a video. */
.photo-full {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15, 14, 13, 0.7); color: #fff; border: 0; border-radius: 10px; cursor: pointer;
}
.photo-full:hover, .photo-full:focus-visible { background: rgba(15, 14, 13, 0.9); }
/* The middle size: the photo takes the full width of the page and the
   "more" column moves underneath. Not offered on phones, where the photo
   already has the full width. */
.photo-wide { right: 62px; }
.photo-wide[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.photo-columns.is-wide > .photo-body, .photo-columns.is-wide > .photo-more { flex-basis: 100%; }
.photo-columns.is-wide .photo-frame { background: #05070B; }
.photo-columns.is-wide .photo-frame img { max-height: 88vh; }
.photo-frame.is-full .photo-wide { display: none; }
@media (max-width: 760px) { .photo-wide { display: none; } }
/* While the photo fills the screen: black all round, the whole photo visible. */
.photo-frame.is-full {
  position: fixed; inset: 0; z-index: 1000; min-height: 0; border-radius: 0; background: #000;
  display: flex; align-items: center; justify-content: center;
}
.photo-frame.is-full img { width: 100%; height: 100%; max-height: none; cursor: zoom-out; }
.photo-frame.is-full .photo-full { right: 16px; bottom: 16px; }
html.photo-open { overflow: hidden; }
.photo-page h1 { font-weight: 600; font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.channel-page.photo-page .card { max-width: none; }
.photo-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 14px 24px; }
.photo-facts dt { font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.photo-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; }
.comment-form { display: flex; gap: 10px; }
.comment-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.comment { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.comment-author { font-weight: 600; color: var(--text); }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-ask { color: var(--muted); }
.notice-list .manage-row { align-items: flex-start; }
.notice-new { border-color: var(--accent); }
.bell { position: relative; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; background: var(--accent); color: var(--on-accent); border-radius: 10px; }
.settings-page .card { flex: none; }
.channel-page { max-width: 1400px; margin: 0 auto; padding: 26px 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.channel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.channel-avatar { flex: none; width: 96px; height: 96px; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 40px; background: var(--selected); color: var(--text); border: 1px solid var(--border-soft); border-radius: 50%; }
.channel-head h1 { font-weight: 600; font-size: 34px; letter-spacing: -0.01em; line-height: 1.1; overflow-wrap: anywhere; }
.channel-facts { color: var(--muted); margin-top: 6px; }
.channel-about { max-width: 720px; margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.channel-page .card { flex: none; max-width: 720px; }
.preview-banner { margin: 14px 24px 0; padding: 12px 16px; font-size: 15px; color: var(--text); background: var(--selected); border: 1px dashed var(--accent); border-radius: 10px; }
.manage-page { max-width: 980px; margin: 0 auto; padding: 30px 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.manage-page h1 { font-weight: 600; font-size: 34px; letter-spacing: -0.01em; line-height: 1.1; }
.manage-page h2 { font-weight: 600; font-size: 21px; margin-top: 10px; }
.manage-page .lead { font-size: 17px; color: var(--muted); margin-top: 6px; }
.manage-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.manage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.manage-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; }
.manage-thumb { flex: none; width: 150px; aspect-ratio: 16 / 9; background: var(--line); border-radius: 8px; overflow: hidden; }
.manage-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.manage-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.manage-title { font-weight: 600; color: var(--text); text-decoration: underline; }
.manage-meta { font-size: 14px; color: var(--muted); }
.manage-details { font-size: 15px; white-space: pre-wrap; }
.manage-status { align-self: flex-start; padding: 2px 10px; font-weight: 600; font-size: 13px; border: 1px solid var(--border); border-radius: 12px; }
.manage-status-ready { border-color: var(--accent); }
.manage-status-held, .manage-status-removed, .manage-status-failed { border-color: var(--error); color: var(--error); }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.reason-list { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; }
.reason-list legend { padding: 0 0 6px; font-weight: 600; font-size: 14px; }
.weather-picks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.weather-picks legend { padding: 0; font-weight: 600; font-size: 14px; }
.weather-picks .hint { font-size: 13px; color: var(--muted); }
.weather-picks .weather-boxes { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.weather-picks .check-row { padding: 4px 0; }
.search-page { max-width: 1400px; margin: 0 auto; padding: 26px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
.search-page h1 { font-weight: 600; font-size: 30px; letter-spacing: -0.01em; line-height: 1.15; overflow-wrap: anywhere; }
.search-again { display: flex; gap: 10px; max-width: 560px; }
.search-again input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.search-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.upload-page progress { width: 100%; height: 14px; accent-color: var(--accent); }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; font-size: 15px; cursor: pointer; }
.check-row input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.link { color: var(--accent); font-weight: 600; }
button.link { min-height: 44px; padding: 0; font-size: 15px; font-family: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.btn-wide { width: 100%; min-height: 48px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.form-message { padding: 12px 14px; font-weight: 600; color: var(--error); border: 1px solid var(--error); border-radius: 8px; }
.form-message-ok { color: var(--text); border-color: var(--accent); background: var(--selected); }
.soft-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px dashed var(--border); border-radius: 10px; }
.soft-box p, .card p { color: var(--muted); }


/* =====================================================================
   The homepage (November 17 redesign): the newest film is the page.
   Everything here is scoped to body.home, so no other page changes.
   ===================================================================== */
body.home { position: relative; }
.home .site-header {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5; border-bottom: 0;
  flex-wrap: nowrap; justify-content: flex-start; gap: 28px; padding: 20px 48px; color: #fff;
}
.home .logo { color: #fff; }
.home .logo .logo-cloud { stroke: #0D1422; }
.home-links { display: flex; gap: 2px; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.home-links::-webkit-scrollbar { display: none; }
.home-links a { padding: 8px 13px; border-radius: 20px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.88); white-space: nowrap; }
.home-links a:hover { text-decoration: none; color: #fff; background: rgba(255, 255, 255, 0.1); }
.home-links .nav-sky::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #F0343C; vertical-align: 2px; box-shadow: 0 0 0 3px rgba(240, 52, 60, 0.18); }
.home-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.17); color: #fff; }
.home .header-actions { margin-left: auto; flex: none; }
.home .site-header .btn { white-space: nowrap; }
.home .site-header .btn { min-height: 42px; color: #fff; font-weight: 500; background: rgba(8, 13, 23, 0.28); border-color: rgba(255, 255, 255, 0.36); }
.home .site-header .btn[data-auth="out"] { background: #fff; color: #080D17; border-color: transparent; font-weight: 600; }
.home .site-header .avatar-button { background: rgba(255, 255, 255, 0.2); font-weight: 600; }

/* The hero: a film edge to edge, with the site's one sentence set on it. */
.hero { position: relative; min-height: min(92vh, 840px); display: flex; align-items: flex-end; background: linear-gradient(160deg, #16294A 0%, #080D17 70%); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* Darkens the top (for the menu), the left and the bottom (for the words), whatever the picture is. */
/* The silent moving background behind the homepage headline. */
.hero-motion { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.hero-motion.is-playing { opacity: 1; }
.hero-motion mux-player { display: block; width: 100%; height: 100%; }
.hero-pause { align-self: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 0; background: transparent;
  color: rgba(255, 255, 255, 0.78); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hero-pause:hover { color: #fff; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 13, 23, 0.6) 0%, rgba(8, 13, 23, 0) 20%, rgba(8, 13, 23, 0) 45%, rgba(8, 13, 23, 0.8) 86%, #080D17 100%),
    linear-gradient(90deg, rgba(8, 13, 23, 0.55) 0%, rgba(8, 13, 23, 0.15) 55%, rgba(8, 13, 23, 0) 78%);
}
.hero-words { position: relative; z-index: 1; width: 100%; padding: 150px 48px 52px; color: #fff; }
.hero h1 {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700;
  font-size: clamp(38px, 5.7vw, 82px); line-height: 1.04; letter-spacing: -0.022em;
}
.hero-sub { margin-top: 20px; font-size: clamp(18px, 1.7vw, 24px); color: rgba(255, 255, 255, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-play, .hero-second { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 26px; font-size: 17px; }
.hero-play { background: #fff; color: #080D17; font-weight: 600; }
.hero-second { color: #fff; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.42); background: rgba(8, 13, 23, 0.28); }
.hero-play:hover, .hero-second:hover { text-decoration: none; }
.hero-play:hover { background: #E6EBF2; }
.hero-second:hover { background: rgba(8, 13, 23, 0.5); }
.hero-credit { margin-top: 60px; padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, 0.5); max-width: 760px; }
.hero-why { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.74); }
.hero-title { display: inline-block; margin-top: 2px; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.hero-slate { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, 0.8); font-variant-numeric: tabular-nums; }
.hero-slate a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.home .hero a:focus-visible, .home .site-header a:focus-visible, .home .site-header button:focus-visible { outline-color: #fff; }

/* Below the hero */
.home-section { padding: 52px 48px 0; }
.home-section .section-head { align-items: baseline; }
.home-section h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 32px; letter-spacing: -0.015em; }

/* Kinds of weather: a picture tile each. The colours below show until a real film of that kind exists. */
.kind-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 22px; }
.kind-tile { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, #2B3B57, #121B2C); }
.kind-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kind-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 13, 23, 0) 35%, rgba(8, 13, 23, 0.8) 100%); }
.kind-tile span { position: absolute; left: 14px; right: 10px; bottom: 11px; z-index: 1; color: #fff; font-size: 16px; font-weight: 600; }
.kind-tile:hover { text-decoration: none; }
.kind-tile:hover span { text-decoration: underline; text-underline-offset: 3px; }
.kind-tile[data-weather="tornado"] { background: linear-gradient(150deg, #5B6470, #20262F); }
.kind-tile[data-weather="thunderstorm"] { background: linear-gradient(150deg, #4B3F78, #171A33); }
.kind-tile[data-weather="lightning"] { background: linear-gradient(150deg, #7C5FC0, #231A45); }
.kind-tile[data-weather="hail"] { background: linear-gradient(150deg, #9DB4C8, #3B5068); }
.kind-tile[data-weather="hurricane"] { background: linear-gradient(150deg, #4E7C8C, #14303B); }
.kind-tile[data-weather="snow"] { background: linear-gradient(150deg, #C3D3E4, #5F7893); }
.kind-tile[data-weather="rain"] { background: linear-gradient(150deg, #5C7696, #1C2A3F); }
.kind-tile[data-weather="fog"] { background: linear-gradient(150deg, #A9B2BB, #5A6470); }
.kind-tile[data-weather="wind"] { background: linear-gradient(150deg, #6FA29B, #223E3D); }
.kind-tile[data-weather="clouds"] { background: linear-gradient(150deg, #8FB2DA, #36527A); }
.kind-tile[data-weather="sun"] { background: linear-gradient(150deg, #F2B95C, #C9662B); }
.kind-tile[data-weather="rainbow"] { background: linear-gradient(120deg, #D9534F, #E0A63C 30%, #5BAE6B 55%, #4A86C8 78%, #7A5BB8); }

/* Newest: larger pictures, no boxes, more air. */
.home-filter { display: flex; gap: 22px; }
.home-filter button { padding: 6px 0; min-height: 44px; font: 500 15px Inter, system-ui, sans-serif; color: var(--muted); background: none; border: 0; cursor: pointer; }
.home-filter button[aria-pressed="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.home-count { margin-top: 2px; font-size: 14px; color: var(--muted); }
.home .film-grid { margin-top: 26px; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 52px 28px; }
.home .film-thumb { border-radius: 8px; }
.home .film-info .avatar { display: none; }
.home .film-title { font-size: 19px; line-height: 1.28; letter-spacing: -0.012em; }
.home .film-meta { margin-top: 5px; font-size: 15px; }
.home .film-card { gap: 14px; }
.home .empty { margin-top: 26px; }
.home .site-footer { margin-top: 72px; }

@media (max-width: 1280px) {
  .home .site-header { flex-wrap: wrap; row-gap: 10px; padding: 14px 24px; }
  .home-links { order: 3; flex-basis: 100%; margin: 0 -24px; padding: 0 20px; }
  .hero-words { padding: 170px 24px 44px; }
  .home-section { padding: 44px 24px 0; }
  .kind-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .home .site-header { padding: 10px 14px; gap: 10px; }
  .home .site-header .home-upload { display: none; }       /* Upload is in the bar at the bottom of a phone */
  /* Sign out and the light/dark switch stay on every other page; here the top row is kept to one line. */
  .home .site-header [data-action="sign-out"], .home .site-header #theme-button { display: none !important; }
  .home .header-actions { gap: 6px; }
  .home-links { margin: 0 -14px; padding: 0 10px; }
  .home-links a { padding: 7px 11px; }
  .hero { min-height: 88vh; }
  .hero-words { padding: 150px 16px 30px; }
  .hero h1 br { display: none; }
  .hero-actions { margin-top: 22px; }
  .hero-second { display: none; }
  .hero-credit { margin-top: 30px; }
  .hero-title { font-size: 18px; }
  .home-section { padding: 34px 16px 0; }
  .home-section h2 { font-size: 25px; }
  /* The tiles become one sliding row. */
  .kind-tiles { display: flex; overflow-x: auto; scrollbar-width: none; margin: 18px -16px 0; padding: 0 16px; gap: 10px; }
  .kind-tiles::-webkit-scrollbar { display: none; }
  .kind-tile { flex: 0 0 46%; }
  .home-filter { gap: 16px; }
  .home .film-grid { gap: 34px; }
}


/* =====================================================================
   Every other page (November 17, late): the homepage's look carried over.
   One row of links in the header, serif headings, pictures without boxes,
   hairlines instead of panels. Scoped to body.inner.
   ===================================================================== */
.inner .site-header { flex-wrap: nowrap; justify-content: flex-start; gap: 28px; padding: 14px 48px; }
.inner .home-links a { color: var(--muted); }
.inner .home-links a:hover { color: var(--text); background: var(--line); }
.inner .home-links a[aria-current="page"] { color: var(--text); background: var(--line); }
.inner .header-actions { margin-left: auto; flex: none; }
.inner .site-header .btn { min-height: 42px; font-weight: 500; white-space: nowrap; }
.inner .site-header .btn[data-auth="out"] { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 600; }

/* Headings */
.inner h1 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -0.018em; }
.inner .search-page h1, .inner .channel-page h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; }
.inner .auth-page h1, .inner .manage-page h1, .inner .text-page h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.inner .section-head h2, .inner .manage-page h2, .inner .more-box h2, .inner section[aria-label="Comments"] h2 {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important; font-weight: 700 !important; font-size: 24px !important; letter-spacing: -0.012em;
}
.inner .lead { font-size: 18px; }
.inner .label { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.inner .more-box h2 { font-size: 21px !important; }
.inner .site-footer { padding: 22px 48px; margin-top: 24px; }

/* Wide pages get the homepage's margins */
.inner .search-page, .inner .channel-page { max-width: 1680px; padding: 44px 48px 72px; gap: 26px; }
.inner .manage-page { padding: 44px 24px 72px; }
.inner .auth-page { padding: 44px 24px 72px; }

/* Grids of films: larger pictures, no avatar, more air */
.inner .film-grid { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 46px 26px; }
.inner .film-thumb { border-radius: 8px; }
.inner .film-info .avatar { display: none; }
.inner .film-card { gap: 13px; }
.inner .film-title { font-size: 18px; line-height: 1.28; letter-spacing: -0.012em; }
.inner .film-meta { margin-top: 5px; font-size: 15px; }

/* All / Videos / Photos: words with an underline, as on the homepage */
.inner .chips { gap: 22px; }
.inner .chip[aria-pressed] { padding: 6px 0; background: none; border-radius: 0; color: var(--muted); }
.inner .chip[aria-pressed="true"] { background: none; color: var(--text); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* Nothing here yet: plain words, no dashed box */
.inner .empty { padding: 6px 0; background: none; border: 0; border-radius: 0; font-size: 17px; }

/* Lists (My uploads, notifications, moderation): rows on hairlines, not boxes */
.inner .manage-list { gap: 0; }
.inner .manage-row { padding: 18px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.inner .manage-list > .manage-row:first-child { border-top: 1px solid var(--line); }
.inner .manage-thumb, .inner .manage-thumb img { border-radius: 6px; }

/* Forms keep a panel, but a quieter one */
.inner .card { box-shadow: none; border-color: var(--line); border-radius: 14px; }

/* The Archive and the Import page */
.section-more { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.archive-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.archive-delete { align-self: flex-start; min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.import-row.import-skip .manage-status { color: var(--muted); font-weight: 400; }
.import-row .manage-text { gap: 3px; }
#import-subcats { margin: 6px 0 14px; display: flex; flex-direction: column; gap: 10px; }
#import-subcats .chip { min-height: 38px; font-size: 14px; }

/* Page not found */
.lost-page { max-width: 760px; margin: 0 auto; padding: 14vh 24px 16vh; display: flex; flex-direction: column; gap: 16px; }
.lost-page h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; }
.lost-page .lead { color: var(--muted); }
.lost-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* The kinds of weather, on the search page */
.weather-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.weather-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 500; color: var(--muted); }
.weather-links a:hover, .weather-links a[aria-current="page"] { color: var(--text); }
.weather-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* ---------- The film page and the photo page ---------- */
.inner .film-page { max-width: 1680px !important; padding: 30px 48px 72px !important; gap: 44px !important; }
.inner .film-heading, .inner #photo-title {
  margin-top: 10px !important; font-size: clamp(28px, 3vw, 42px) !important; font-weight: 500 !important; line-height: 1.12 !important; overflow-wrap: anywhere;
}
/* Like, Save, Share and the rest: outlined, so Follow is the one filled button */
.inner .film-page main button[style*="var(--line)"], .inner .film-page main a[style*="var(--line)"], .inner .photo-body .btn-soft {
  background: transparent !important; border: 1px solid var(--border) !important;
}
/* The notes: no panel, a hairline above, plain labels */
.inner .film-notes, .inner .photo-body > .card {
  margin: 10px 0 0 !important; padding: 28px 0 0 !important; background: none !important; border: 0 !important;
  border-top: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important;
}
.inner .film-notes h2, .inner .photo-body > .card > .label {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.inner .film-notes dt, .inner .photo-facts dt {
  font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important;
}
.inner .film-notes dd, .inner .photo-facts dd { font-size: 17px !important; font-weight: 500 !important; }
.inner .film-notes p, .inner #photo-words { max-width: 68ch !important; font-size: 17px !important; line-height: 1.6; }
.inner .photo-page { max-width: 1680px; padding: 30px 48px 72px; }
.inner .photo-columns { gap: 44px; }
.inner .photo-frame { border-radius: 10px; }
.inner .more-row .manage-thumb { width: 168px; }
.inner .more-words strong { font-size: 16px; font-weight: 600; line-height: 1.3; }

@media (max-width: 1280px) {
  .inner .site-header { flex-wrap: wrap; row-gap: 8px; padding: 12px 24px; }
  .inner .home-links { order: 3; flex-basis: 100%; margin: 0 -24px; padding: 0 20px; }
  .inner .site-footer { padding: 18px 24px; }
  .inner .search-page, .inner .channel-page, .inner .photo-page { padding: 34px 24px 56px; }
  .inner .film-page { padding: 24px 24px 56px !important; gap: 32px !important; }
}
@media (max-width: 760px) {
  .inner .site-header { padding: 8px 14px; gap: 8px; }
  .inner .site-header .home-upload { display: none; }       /* Upload is in the bar at the bottom of a phone */
  /* On a phone the header shows the logo's picture alone, so its buttons fit on one row. */
  .inner .logo { font-size: 0; gap: 0; }
  .inner .site-header .btn { min-height: 40px; }
  .inner .site-header .btn-icon { width: 40px; }
  .inner .header-actions { gap: 6px; }
  .inner .home-links { margin: 0 -14px; padding: 0 10px; }
  .inner .home-links a { padding: 7px 11px; }
  .inner .search-page, .inner .channel-page, .inner .photo-page { padding: 22px 16px 40px; }
  .inner .manage-page, .inner .auth-page { padding: 24px 16px 40px; }
  .inner .film-page { padding: 14px 16px 40px !important; gap: 26px !important; }
  .inner .film-grid { gap: 32px; }
  .inner .more-row .manage-thumb { width: 132px; }
}

/* Between a laptop and a desktop the row of links drops to its own line, so none is cut off. */
/* (The links used to drop to their own row between 1281 and 1580 pixels; the shorter header fits on one.) */

/* The homepage's footer lines up with the page above it. */
.home .site-footer { padding: 22px 48px; }
@media (max-width: 1280px) { .home .site-footer { padding: 18px 24px; } }
@media (max-width: 760px) { .home .site-footer { padding: 16px; } }

/* The list of collections on the Import page. */
#import-preset { min-height: 46px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 8px; max-width: 100%; }
.import-row.import-heading { padding-top: 26px; border-bottom-color: var(--border); }
.import-row.import-heading strong { font-size: 17px; }

/* Import page: each result line can be cleared. */
.import-row { justify-content: space-between; }
.import-clear { flex: none; min-height: 34px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: 1px solid var(--border); border-radius: 17px; cursor: pointer; }
.import-clear:hover { color: var(--text); }
.import-row.import-heading { justify-content: space-between; }
/* Archive: videos or photos, year and order. */
.archive-picks { display: flex; flex-wrap: wrap; gap: 10px; }
.archive-picks input[type="search"] { min-width: 220px; padding: 0 16px; }
@media (max-width: 560px) { .archive-picks input[type="search"] { flex: 1 1 100%; } }
.archive-picks select, .archive-picks input[type="search"] { min-height: 42px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 21px; }

/* The picture at the top of the homepage fades in when it has arrived. */
.hero-image { opacity: 0; transition: opacity 0.45s ease; }
.hero-image.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-image { transition: none; } }

/* No separate blue panel behind the top picture: the space is the page's own
   dark until the picture is there, so nothing shows "behind" it. */
.hero { background: #080D17; }
.hero-image { transition: opacity 0.25s ease; }

/* ---------- The top of the homepage dissolves into the page ----------
   Whatever the picture and whether the page is dark or light, the bottom of
   the picture fades out into the page's own background colour. Nothing has a
   hard edge. The dark layer underneath (for before the picture arrives) and
   the shading over it fade out the same way, so all of them leave together. */
.hero { --hero-fade: 170px; background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: #080D17; }
.hero::before, .hero-image, .hero-motion, .hero::after {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--hero-fade)), rgba(0, 0, 0, 0.72) calc(100% - var(--hero-fade) * 0.62), rgba(0, 0, 0, 0.3) calc(100% - var(--hero-fade) * 0.28), transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--hero-fade)), rgba(0, 0, 0, 0.72) calc(100% - var(--hero-fade) * 0.62), rgba(0, 0, 0, 0.3) calc(100% - var(--hero-fade) * 0.28), transparent 100%);
}
/* The words stay above the part that fades, so they are always on the picture. */
.hero-words { padding-bottom: calc(var(--hero-fade) - 10px); }
/* What follows moves up into the faded part, so the two overlap a little. */
.hero + .home-section { margin-top: -34px; position: relative; padding-top: 0; }
@media (max-width: 760px) {
  .hero { --hero-fade: 120px; }
  .hero + .home-section { margin-top: -24px; }
}
/* On a light page the picture has further to travel, from dark to pale, so it is given more room to do it. */
:root[data-theme="light"] .hero { --hero-fade: 250px; }
:root[data-theme="light"] .hero + .home-section { margin-top: -56px; }
@media (max-width: 760px) {
  :root[data-theme="light"] .hero { --hero-fade: 170px; }
  :root[data-theme="light"] .hero + .home-section { margin-top: -36px; }
}

/* Import page: a small picture on each row, and a larger one beside it on hover or focus. */
.import-row .manage-thumb { flex: none; }
.import-look { cursor: zoom-in; border-radius: 6px; }
.import-look:focus-visible { outline: 2px solid var(--accent, #4DA3FF); outline-offset: 2px; }
.import-peek { position: fixed; z-index: 60; pointer-events: none; border-radius: 10px; overflow: hidden; background: #080D17;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.import-peek img { display: block; width: 100%; object-fit: contain; }
.import-peek[hidden] { display: none; }

/* Homepage: pause or play the moving background, as a small round symbol in
   the bottom corner of the picture, above the part that fades away. */
.hero-pause { position: absolute; z-index: 2; right: 48px; bottom: calc(var(--hero-fade) + 6px);
  width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 50%; align-self: auto;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  color: #fff; background: rgba(8, 13, 23, 0.45); border: 1px solid rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background 0.15s ease, border-color 0.15s ease; }
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: rgba(8, 13, 23, 0.7); border-color: rgba(255, 255, 255, 0.7); }
.hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-pause .hero-play-icon, .hero-pause.is-paused .hero-pause-icon { display: none; }
.hero-pause.is-paused .hero-play-icon { display: block; }
@media (max-width: 1280px) { .hero-pause { right: 24px; } }

/* ---------- Add to the Archive: look, pick, bring in ---------- */
.import-page { max-width: 1120px; }
.import-step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 22px; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: Inter, system-ui, sans-serif; font-size: 16px; font-weight: 600; color: var(--bg); background: var(--text); }
.import-about { margin: 10px 0 0; font-size: 17px; line-height: 1.5; max-width: 62ch; }
.import-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.import-details > summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 4px 0; }
.import-details > summary:hover { color: var(--text); }
.import-details[open] > summary { margin-bottom: 12px; color: var(--text); }
#import-tally { font-size: 17px; margin: 0; }
.pick-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pick-tile { min-width: 0; }
.pick-press { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pick-press:disabled { cursor: default; }
.pick-picture { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line);
  outline: 3px solid transparent; outline-offset: 2px; transition: outline-color 0.12s ease, transform 0.12s ease; }
.pick-picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pick-press:hover .pick-picture { outline-color: var(--border); }
.pick-press:focus-visible { outline: none; }
.pick-press:focus-visible .pick-picture { outline-color: var(--text); }
.pick-tile.is-picked .pick-picture { outline-color: #4DA3FF; }
.pick-tick { position: absolute; left: 8px; top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #06121F; background: #4DA3FF; opacity: 0; transition: opacity 0.12s ease; }
.pick-tile.is-picked .pick-tick { opacity: 1; }
.pick-badge { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(8, 13, 23, 0.78); }
.pick-title { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-meta { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.pick-note[hidden] { display: none; }
.pick-tile.is-in .pick-picture { opacity: 0.55; }
.pick-out { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.pick-out:hover { color: var(--text); }
/* The "bring in" bar stays in view while the pictures scroll. */
.import-bar { position: sticky; bottom: 12px; z-index: 5; margin-top: 22px; padding: 14px 18px; border-radius: 14px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.import-bar h2 { margin: 0; font-size: 17px; font-family: Inter, system-ui, sans-serif; font-weight: 600; }
.import-bar .manage-actions { margin: 0; }
@media (max-width: 760px) {
  .pick-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .import-bar { bottom: 72px; }
}

/* Add to the Archive: the kind of source as a row of buttons, then what to look for. */
.source-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.source-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer;
  font: inherit; color: var(--text); background: transparent; border: 1px solid var(--border-soft, var(--line)); transition: border-color 0.12s ease, background 0.12s ease; }
.source-card strong { font-size: 16px; font-weight: 600; }
.source-card span { font-size: 13px; line-height: 1.35; color: var(--muted); }
.source-card:hover { border-color: var(--border); }
.source-card[aria-pressed="true"] { border-color: #4DA3FF; background: rgba(77, 163, 255, 0.12); box-shadow: inset 0 0 0 1px #4DA3FF; }
.source-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.source-chips[hidden] { display: none; }
.source-chip.was-seen::after { content: "✓"; margin-left: 7px; font-size: 12px; opacity: 0.75; }
.source-chip.was-empty { opacity: 0.55; text-decoration: line-through; text-decoration-thickness: 1px; }
.source-cards.is-busy, .source-chips.is-busy { pointer-events: none; opacity: 0.6; }
/* The choices are buttons you can see are buttons, not a row of words. */
.inner .source-chip[aria-pressed], .source-chip[aria-pressed] { min-height: 38px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-soft, var(--line));
  background: transparent; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }
.inner .source-chip[aria-pressed]:hover, .source-chip[aria-pressed]:hover { border-color: var(--border); }
.inner .source-chip[aria-pressed="true"], .source-chip[aria-pressed="true"] { border-color: #4DA3FF; background: rgba(77, 163, 255, 0.14); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px #4DA3FF; }
.inner .source-chip.was-empty[aria-pressed] { text-decoration: line-through; text-decoration-thickness: 1px; }

/* Cards: the picture eases in a little closer under the pointer. */
.film-thumb img { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.film-card:hover .film-thumb img, .film-card:focus-within .film-thumb img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .film-thumb img { transition: none; } .film-card:hover .film-thumb img, .film-card:focus-within .film-thumb img { transform: none; } }

/* ---------- Sounds: a field recording to listen to while looking around ---------- */
.snd-btn .snd-bars { display: none; }
.snd-btn.is-on:not(.is-waiting) { border-color: #4DA3FF; box-shadow: inset 0 0 0 1px #4DA3FF; }
.snd-btn.is-on .snd-idle { display: none; }
.snd-btn.is-on .snd-bars { display: inline-flex; }
.snd-idle { display: inline-flex; }
.snd-bars { align-items: flex-end; gap: 2px; height: 14px; }
.snd-bars i { width: 3px; border-radius: 1px; background: #4DA3FF; height: 60%; animation: snd-bar 1.1s ease-in-out infinite; }
.snd-bars i:nth-child(2) { animation-delay: -0.35s; } .snd-bars i:nth-child(3) { animation-delay: -0.7s; } .snd-bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes snd-bar { 0%, 100% { height: 35%; } 50% { height: 100%; } }
.snd-btn.is-waiting .snd-bars i { animation: none; height: 35%; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .snd-bars i { animation: none; height: 70%; } }
.snd-box { position: fixed; z-index: 70; padding: 16px; border-radius: 16px; color: #F2F5FA; background: rgba(14, 22, 38, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55); }
.snd-box[hidden] { display: none; }
.snd-box h3 { margin: 0 0 4px; font: 700 19px Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #F2F5FA; }
.snd-sub { margin: 0 0 12px; font-size: 13px; color: #9FB0C8; }
.snd-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.snd-row + .snd-row { margin-top: 2px; }
.snd-row:hover { background: rgba(255, 255, 255, 0.06); }
.snd-row:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.snd-row strong { display: block; font-size: 15px; font-weight: 600; }
.snd-where { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: #9FB0C8; }
.snd-mark { flex: none; width: 22px; display: flex; justify-content: center; }
.snd-dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #5F7397; }
.snd-row .snd-bars { display: none; }
.snd-row.is-on { background: rgba(77, 163, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(77, 163, 255, 0.55); }
.snd-row.is-on .snd-dot { display: none; }
.snd-row.is-on .snd-bars { display: inline-flex; }
.snd-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.snd-vol-icon { display: inline-flex; color: #9FB0C8; }
.snd-vol-icon svg { width: 18px; height: 18px; }
.snd-vol { flex: 1; min-width: 0; accent-color: #4DA3FF; }
.snd-off { flex: none; min-height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, 0.3); background: none; color: #fff; font: 500 14px Inter, system-ui, sans-serif; cursor: pointer; }
.snd-off:hover { border-color: #fff; }
.snd-off[hidden] { display: none; }
.snd-note { margin: 10px 0 0; font-size: 13px; color: #F2F5FA; }
.snd-credit { margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: #8496B0; }
/* On a phone the header is full, so the button floats above the bottom bar. */
@media (max-width: 760px) {
  .site-header .snd-btn { position: fixed; right: 12px; bottom: 84px; z-index: 60; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(14, 22, 38, 0.9); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

/* Sounds box: fits any window. The list scrolls; the controls under it stay put. */
.snd-box { display: flex; flex-direction: column; padding: 14px; }
.snd-box[hidden] { display: none; }
.snd-box h3, .snd-sub, .snd-foot, .snd-note, .snd-credit { flex: none; }
.snd-sub { margin-bottom: 8px; }
.snd-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.snd-row { padding: 8px 12px; }
.snd-foot { margin-top: 10px; padding-top: 10px; }
.snd-credit { margin-top: 8px; }
@media (max-height: 620px) { .snd-sub, .snd-credit { display: none; } .snd-where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; } }

/* Sounds box, smaller: one line a sound. Where it was recorded shows under the one that is playing. */
.snd-box { padding: 12px; border-radius: 14px; }
.snd-box h3 { font-size: 17px; margin: 0 4px 6px; }
.snd-row { padding: 7px 10px; gap: 10px; border-radius: 9px; }
.snd-row strong { font-size: 14.5px; font-weight: 500; }
.snd-row.is-on strong { font-weight: 600; }
.snd-where { display: none; font-size: 12px; }
.snd-row.is-on .snd-where { display: block; white-space: normal; max-width: none; }
.snd-foot { margin-top: 8px; padding-top: 8px; gap: 10px; }
.snd-off { min-height: 30px; padding: 0 12px; font-size: 13px; }
.snd-credit { margin: 8px 4px 0; font-size: 11.5px; }
@media (max-height: 620px) { .snd-credit { display: block; } }

/* Sounds box: every sound keeps its line of description, small, under its name. */
.snd-where, .snd-row.is-on .snd-where { display: block; margin-top: 0; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }
.snd-row { padding: 6px 10px; }
@media (max-height: 620px) { .snd-where { max-width: 210px; } }

/* Sounds box: Pause sits at the top, beside the title. */
.snd-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 6px; }
.snd-head h3 { margin: 0; }
.snd-head .snd-off { min-width: 64px; }

/* Sounds box: title, volume and Pause share the top line. */
.snd-head { gap: 12px; }
.snd-head h3 { flex: none; }
.snd-head .snd-vol { flex: 1 1 auto; min-width: 60px; }
.snd-head .snd-off { flex: none; }
.snd-list { margin-top: 2px; }

/* Sounds button: the moving bars show only while a sound is actually playing.
   At any other time (nothing chosen, paused, or waiting for a tap) it is a
   plain speaker, which reads as "press me to hear something". */
.snd-btn.is-on.is-waiting .snd-idle { display: inline-flex; }
.snd-btn.is-on.is-waiting .snd-bars { display: none; }

/* Sounds button: on a wide screen it carries its name, so the speaker is not taken for a mute switch. */
.snd-word { display: none; }

/* Search: channels whose name matches, shown above the films. */
.search-people { margin: 0 0 14px; font-size: 17px; color: var(--muted); }
.search-people .link { font-weight: 600; }

/* ---------- Channel banner and profile picture (022) ---------- */
/* The banner runs edge to edge across the top of the channel and fades into
   the page. Without a picture it is a short, quiet band of sky colour. */
.channel-top { display: flex; flex-direction: column; }
.channel-banner {
  position: relative; overflow: hidden;
  margin: -44px -48px 0; height: 120px;
  background: linear-gradient(180deg, var(--selected), var(--bg));
}
.channel-banner.has-picture { height: clamp(170px, 21vw, 340px); background: var(--bg); }
.channel-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; opacity: 0; transition: opacity 0.35s ease;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.channel-banner img.is-loaded { opacity: 1; }
.channel-banner.has-picture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
@media (min-width: 1681px) { .channel-banner { border-radius: 0 0 18px 18px; } }

.channel-head { position: relative; z-index: 2; margin-top: -52px; align-items: flex-end; }
.channel-avatar-wrap { position: relative; flex: none; }
.channel-avatar { position: relative; overflow: hidden; width: 128px; height: 128px; font-size: 52px; border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--border-soft); }
.channel-avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.channel-avatar.has-picture #channel-letter { visibility: hidden; }
.channel-words { flex: 1 1 280px; min-width: 0; padding-bottom: 4px; }
.channel-head .manage-actions { padding-bottom: 6px; }
.inner .channel-page .channel-head h1 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -0.02em; }

/* Owner's controls. */
.pic-tools { position: absolute; top: 16px; right: 20px; z-index: 3; }
.pic-pill {
  min-height: 38px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 Inter, system-ui, sans-serif; color: #fff;
  background: rgba(8, 13, 23, 0.72); border: 1px solid rgba(255, 255, 255, 0.34);
}
.pic-pill:hover { background: rgba(8, 13, 23, 0.86); }
.pic-edit {
  position: absolute; right: 2px; bottom: 6px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); background: var(--panel); border: 1px solid var(--border-soft);
}
.pic-edit:hover { border-color: var(--border); }
.pic-menu {
  position: absolute; z-index: 20; min-width: 220px; padding: 6px;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.pic-menu[hidden] { display: none; }
.pic-tools .pic-menu { right: 0; top: calc(100% + 6px); }
.channel-avatar-wrap .pic-menu { left: 0; top: calc(100% + 8px); }
.pic-menu button {
  min-height: 42px; padding: 0 12px; text-align: left; cursor: pointer;
  font: 500 15px/1.2 Inter, system-ui, sans-serif; color: var(--text);
  background: none; border: 0; border-radius: 8px;
}
.pic-menu button:hover, .pic-menu button:focus-visible { background: var(--selected); }
.pic-menu button[hidden] { display: none; }

/* Moving a picture: the picture can be dragged, and a bar offers Save. */
.channel-banner.is-moving, .channel-avatar.is-moving { cursor: grab; touch-action: none; }
.channel-banner.is-dragging, .channel-avatar.is-dragging { cursor: grabbing; }
.channel-banner.is-moving { outline: 2px dashed var(--accent); outline-offset: -6px; }
.channel-banner.is-moving::after { display: none; }
.channel-avatar.is-moving { box-shadow: 0 0 0 3px var(--accent); }
.channel-banner.is-moving .pic-tools { display: none; }
.channel-banner:focus-visible, .channel-avatar:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.move-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px;
  padding: 12px 14px; background: var(--panel); border: 1px solid var(--accent); border-radius: 12px;
}
.move-bar[hidden] { display: none; }
.move-bar p { flex: 1 1 240px; margin: 0; }
#pic-message { margin-top: 14px; }

@media (max-width: 1280px) {
  .channel-banner { margin: -34px -24px 0; }
}
@media (max-width: 760px) {
  .channel-banner { margin: -22px -16px 0; height: 84px; }
  .channel-banner.has-picture { height: 150px; }
  .channel-head { margin-top: -40px; }
  .channel-avatar { width: 96px; height: 96px; font-size: 40px; }
  .pic-tools { top: 10px; right: 12px; }
  .pic-pill { min-height: 34px; font-size: 13px; padding: 0 12px; }
  .pic-edit { width: 34px; height: 34px; right: -2px; bottom: 2px; }
}
/* The made-up sample channel shows a note first; its banner starts below it. */
#channel-sample:not([hidden]) ~ .channel-top .channel-banner { margin-top: 0; border-radius: 14px; }

/* ---------- Channel page: links, tabs, featured film, rows, updates (023) ---------- */
.channel-about.is-folded { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.channel-about.is-folded.is-open { display: block; -webkit-line-clamp: unset; }
.about-more, .link-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 600 15px/1.4 Inter, system-ui, sans-serif; color: var(--accent);
}
.about-more:hover, .link-button:hover { text-decoration: underline; }
.channel-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.channel-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--border-soft); border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none;
}
.channel-link:hover { border-color: var(--border); text-decoration: none; }
.channel-link.is-support { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.channel-link.is-tag { color: var(--muted); font-weight: 500; }

.channel-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.channel-tabs[hidden] { display: none; }
.channel-tabs button {
  flex: none; padding: 12px 0; border: 0; background: none; cursor: pointer;
  font: 500 16px/1.2 Inter, system-ui, sans-serif; color: var(--muted);
}
.channel-tabs button[hidden] { display: none; }
.channel-tabs button:hover { color: var(--text); }
.channel-tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.channel-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.channel-tab > .row-note { margin-bottom: 16px; }

.channel-lead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.channel-lead[hidden] { display: none; }
.channel-lead.is-single { grid-template-columns: minmax(0, 1fr); }
.channel-lead.is-single .updates-box { max-width: 760px; }
.channel-featured[hidden], .updates-box[hidden] { display: none; }
.featured-pic { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #05070B; aspect-ratio: 16 / 9; }
.featured-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.featured-pic:hover img { transform: scale(1.02); }
.featured-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  color: #fff; background: rgba(8, 13, 23, 0.62); border: 1px solid rgba(255, 255, 255, 0.4);
}
.featured-pic .badge { position: absolute; right: 10px; bottom: 10px; }
.featured-chosen { margin-top: 14px; color: var(--muted); font-size: 14px; }
.channel-featured h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin-top: 2px; }
.channel-featured h2 a { color: var(--text); text-decoration: none; }
.channel-featured h2 a:hover { text-decoration: underline; }
.featured-meta { color: var(--muted); font-size: 15px; margin-top: 4px; }

.updates-box { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.updates-box h2 { font-size: 16px; font-weight: 600; }
.update-list { list-style: none; margin: 10px 0 0; padding: 0; }
.update { position: relative; padding: 14px 0; border-top: 1px solid var(--line); }
.update-list-full .update:first-child { border-top: 0; }
.update-when { display: block; color: var(--muted); font-size: 14px; }
.update-body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.update-delete { font-size: 14px; margin-top: 6px; color: var(--muted); }
.update-list-full { max-width: 760px; }
.update-form { max-width: 760px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 14px; }

.channel-row { margin-top: 10px; }
.channel-row + .channel-row { margin-top: 40px; }
.row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; }
.row-head h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.row-note { color: var(--muted); font-size: 14px; }
.row-all { margin-left: auto; font-size: 14px; }
.inner .channel-page .row-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
.channel-page .film-info .avatar { display: none; }
.event-card .badge { white-space: nowrap; }

.channel-edit .field-group { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.channel-edit legend { font-weight: 600; margin-bottom: 4px; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check-row .hint { display: block; font-weight: 400; }
.form-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .inner .channel-page .row-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inner .channel-page .row-grid > li:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
  .channel-lead { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .inner .channel-page .row-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .inner .channel-page .row-grid > li:nth-child(n+3) { display: none; }
  .channel-tabs { gap: 22px; }
  .link-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .row-head h2 { font-size: 21px; }
}
.channel-featured .featured-words { padding: 0; }
.channel-lead:not([hidden]) + #channel-rows { margin-top: 40px; }
.channel-edit .field select {
  width: 100%; min-height: 46px; padding: 0 14px; font: 400 16px/1.2 Inter, system-ui, sans-serif;
  color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px;
}
/* Share: the menu of ways to share, and the small links under each update. */
.share-menu { z-index: 60; min-width: 230px; }
#channel-share { display: inline-flex; align-items: center; gap: 8px; }
#channel-share[hidden] { display: none; }
.update-tools { display: flex; gap: 18px; margin-top: 6px; }
.update-tools .update-delete { margin-top: 0; }
/* Under a film or photo that is part of an event: the way to the whole event. */
.event-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px;
  margin-top: 14px; padding: 14px 18px; border-radius: 14px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--border-soft); color: var(--text);
}
.event-cta:hover { border-color: var(--accent); text-decoration: none; }
.event-cta-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.event-cta-label { color: var(--muted); font-size: 13px; }
.event-cta strong { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.2; }
.event-cta-go {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px;
}

/* ---------- Event page: the lead recording and the timeline ---------- */
.event-body { display: flex; flex-direction: column; gap: 34px; }
.event-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.event-head-words { max-width: 820px; min-width: 0; }
.event-back { color: var(--muted); font-size: 14px; font-weight: 500; }
.inner .event-page .event-head h1 {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; margin-top: 6px; overflow-wrap: anywhere;
}
.event-words { margin-top: 12px; font-size: 17px; line-height: 1.55; max-width: 70ch; }
.event-lead { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 28px; align-items: end; }
.event-lead[hidden] { display: none; }
.event-lead .featured-words { padding-bottom: 6px; }
.event-lead h2 { margin-top: 0; }
.event-watch { margin-top: 16px; align-self: flex-start; display: inline-flex; }
.event-lead .featured-words { display: flex; flex-direction: column; align-items: flex-start; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-day h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 22px 0 10px 110px; }
.timeline-day:first-child h3 { margin-top: 0; }
.timeline-link {
  display: grid; grid-template-columns: 74px 172px minmax(0, 1fr); gap: 0 24px; align-items: center;
  padding: 10px 12px 10px 0; border-radius: 12px; color: var(--text); text-decoration: none; position: relative;
}
.timeline-link::before {
  content: ""; position: absolute; left: 82px; top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.timeline-link:hover { background: var(--panel); text-decoration: none; }
.timeline-time { text-align: right; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline-pic { position: relative; display: block; width: 172px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--line); margin-left: 24px; }
.timeline-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.timeline-pic .badge { position: absolute; right: 6px; bottom: 6px; }
.timeline-words { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-left: 24px; }
.timeline-words strong { font-weight: 600; font-size: 16px; line-height: 1.3; }

@media (max-width: 900px) {
  .event-lead { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .timeline::before { left: 7px; }
  .timeline-day h3 { margin-left: 28px; }
  .timeline-link { grid-template-columns: 112px minmax(0, 1fr); gap: 4px 14px; padding-left: 28px; }
  .timeline-link::before { left: 3px; }
  .timeline-time { grid-column: 1 / -1; text-align: left; }
  .timeline-time:empty { display: none; }
  .timeline-pic { width: 112px; margin-left: 0; }
  .timeline-words { padding-left: 0; }
}
/* Links inside sentences are underlined, so they never rely on colour alone. */
.comment-ask a, .more-empty a, .empty a, .hint a, .form-message a, .channel-about a, .event-words a, .lead a { text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .featured-pic img, .channel-banner img { transition: none; } .featured-pic:hover img { transform: none; } }
/* Who owns a member's film, in plain words; and a creator's licensing terms. */
.rights-line { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 70ch; }
.rights-line a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.licence-details { margin-top: 12px; max-width: 720px; }
.licence-details summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.licence-details p { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.licence-terms { margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.licence-terms p { margin-top: 4px; white-space: pre-wrap; color: var(--text); overflow-wrap: anywhere; }
/* Events as a grid of pictures. */
.event-grid { margin-top: 8px; }
.event-card .film-thumb.is-empty { background: linear-gradient(160deg, var(--selected), var(--bg)); }
.snd-row.is-waiting .snd-bars i { animation: none; height: 35%; opacity: 0.7; }
.update-tools .link-button { font-size: 14px; color: var(--muted); margin-top: 0; }
.update-tools .link-button:hover { color: var(--text); }
.event-card .film-thumb.is-empty { display: block; aspect-ratio: 16 / 9; }
/* Where to go when a film or photo cannot be shown. */
.elsewhere { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* =====================================================================
   The feel layer (November 18, evening). Small things that make the
   site feel finished: pages fade into each other, movement settles
   smoothly, the header stays put on big screens with the page blurring
   softly behind it, headlines sit tighter, numbers line up.
   ===================================================================== */
:root { --ease: cubic-bezier(0.16, 1, 0.3, 1); }

/* Moving from page to page: a short cross-fade instead of a hard cut
   (in browsers that support it; the others simply change page as before). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.26s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* The header stays at the top on computers, slightly see-through. */
@media (min-width: 1000px) {
  .inner .site-header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  }
}

/* Slow, settling movement on pictures. */
.film-thumb img { transition: transform 0.6s var(--ease); }
.film-card:hover .film-thumb img, .film-card:focus-within .film-thumb img { transform: scale(1.02); }
.featured-pic img { transition: transform 0.6s var(--ease); }
.featured-pic:hover img { transform: scale(1.015); }
.btn, .chip, .channel-link, .pic-pill, .event-cta { transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.btn:active { transform: scale(0.98); }

/* Big serif headlines sit a little tighter. */
.inner h1, .home-section h2, .row-head h2, .channel-featured h2 { letter-spacing: -0.025em; }

/* Numbers line up like an instrument panel. */
.badge, .film-meta, .manage-meta, .channel-facts, .timeline-time, .update-when, .featured-meta, .row-note, time { font-variant-numeric: tabular-nums; }

/* ---------- Film page: wider view, named moments, Up next ---------- */
.film-page.is-theater { max-width: 1680px !important; }
.film-page.is-theater > main { flex: 1 1 100% !important; }
.film-page.is-theater > aside { flex: 1 1 100% !important; max-width: none !important; }
.film-page.is-theater > aside .more-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 24px; }
.film-page.is-theater > aside .more-box h2 { grid-column: 1 / -1; }
@media (max-width: 999px) { .theater-button { display: none !important; } }

.moments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.moments-label { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: 4px; }
.moment {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1.2 Inter, system-ui, sans-serif; color: var(--text); background: var(--line); border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.moment:hover { border-color: var(--border-soft); }
.moment-time { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.up-next {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px; text-align: center; background: rgba(5, 7, 11, 0.86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #F2F5FA;
}
.up-next-label { font-size: 13px; color: rgba(242, 245, 250, 0.75); font-weight: 600; }
.up-next-film { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; max-width: 340px; }
.up-next-film img { width: 240px; max-width: 60vw; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.up-next-film strong { font-size: 17px; line-height: 1.3; }
.up-next-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.up-next .btn:not(.btn-primary) { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }

/* ---------- Homepage: the featured event, right under the banner ---------- */
.home-event { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: center; }
.home-event[hidden] { display: none; }
.home-event-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #05070B; }
.home-event-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.home-event-pic:hover img { transform: scale(1.015); }
.home-event-pic .badge { position: absolute; right: 10px; bottom: 10px; }
.home-event-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.home-section.home-event h2 { margin-top: 4px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.home-event-facts { color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.home-event-about { margin-top: 12px; line-height: 1.55; max-width: 52ch; }
.home-event-go { margin-top: 18px; display: inline-flex; }
@media (max-width: 860px) { .home-event { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ---------- Live streams ---------- */
.right-now-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
#go-live-open { display: inline-flex; align-items: center; gap: 8px; }
#go-live-open[hidden] { display: none; }
.go-live { max-width: 760px; }
.go-live form { margin-top: 14px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #F0343C; box-shadow: 0 0 0 3px rgba(240, 52, 60, 0.25); margin-right: 8px; vertical-align: middle; animation: live-pulse 1.8s var(--ease) infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(240, 52, 60, 0.25); } 50% { box-shadow: 0 0 0 6px rgba(240, 52, 60, 0.08); } }
.live-section h2 { display: inline-flex; align-items: center; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.live-card { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.live-card.is-live { border-color: rgba(240, 52, 60, 0.55); }
.live-top { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.live-avatar { flex: none; position: relative; overflow: hidden; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--selected); border: 1px solid var(--border-soft); }
.live-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-words { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.live-badge { align-self: flex-start; padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: #D92A33; }
.is-replay .live-badge { background: var(--selected); color: var(--muted); }
.live-title { font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.live-title:hover { text-decoration: underline; }
.live-by { color: var(--muted); font-size: 14px; }
.live-by a { color: var(--text); font-weight: 600; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.channel-link.is-live { border-color: rgba(240, 52, 60, 0.6); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* The real-footage mark under a film or photo. */
.real-mark { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 70ch; }
.real-mark strong { color: var(--text); margin-right: 2px; }
.real-tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #1F8A4C; color: #fff; font-size: 12px; font-weight: 700; transform: translateY(4px); }
.real-mark + .rights-line { margin-top: 6px; }
.notes-pair { margin-top: 2px; }
.notes-pair[hidden] { display: none; }
.notes-pair select { width: 100%; min-height: 46px; padding: 0 14px; font: 400 16px/1.2 Inter, system-ui, sans-serif; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }

/* ---------- The Weather menu ---------- */
.home-links .nav-weather {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 20px; border: 0; cursor: pointer;
  font: 500 15px/1.2 Inter, system-ui, sans-serif; white-space: nowrap; color: rgba(255, 255, 255, 0.88); background: none;
}
.home-links .nav-weather:hover, .home-links .nav-weather[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.inner .home-links .nav-weather { color: var(--muted); }
.inner .home-links .nav-weather:hover, .inner .home-links .nav-weather[aria-expanded="true"] { color: var(--text); background: var(--line); }
.nav-weather svg { transition: transform 0.2s var(--ease); }
.nav-weather[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 760px) { .home-links .nav-weather { padding: 7px 11px; } }

.weather-panel {
  position: fixed; z-index: 90; width: 640px; max-width: calc(100vw - 24px); max-height: calc(100vh - 120px); overflow-y: auto;
  padding: 16px; border-radius: 16px; border: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.weather-panel[hidden] { display: none; }
.wp-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 12px; font-weight: 600; font-size: 14px; color: var(--muted); }
.wp-head a { color: var(--accent); font-weight: 600; }
.wp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wp-item { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.wp-item:hover, .wp-item:focus-visible { background: var(--selected); text-decoration: none; }
.wp-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, var(--selected), var(--bg)); }
.wp-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Weather tags on an event page. */
.event-weather { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.event-weather[hidden] { display: none; }
.event-weather-label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.event-weather a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-soft); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.event-weather a:hover { border-color: var(--border); text-decoration: none; }

/* ---------- Search in the header ---------- */
.header-search { position: relative; display: flex; align-items: center; width: 0; opacity: 0; overflow: hidden;
  transition: width 0.32s var(--ease), opacity 0.2s var(--ease); }
.header-search[hidden] { display: none; }
.header-search.is-open { width: min(360px, 34vw); opacity: 1; }
/* Keeps its width when the menu sits on its own row; a tight row lets the buttons'
   row grow instead of squeezing the box to nothing. */
.header-search.is-open { flex: 0 0 auto; }
.site-header.is-searching .header-actions { min-width: 0; }
@media (min-width: 761px) and (max-width: 980px) {
  .header-search.is-open { width: min(300px, 34vw); }
  /* Small tablets: two buttons step aside while the box is open, and come back when it closes. */
  .site-header.is-searching .home-upload, .site-header.is-searching #theme-button { display: none; }
}
.header-search input {
  width: 100%; min-height: 42px; padding: 0 40px 0 16px; border-radius: 999px; font: 400 15px/1.2 Inter, system-ui, sans-serif;
  color: var(--text); background: var(--field); border: 1px solid var(--border-soft); outline: none;
}
.header-search input:focus { border-color: var(--accent); }
.header-search input::-webkit-search-cancel-button { display: none; }
.home .header-search input { color: #fff; background: rgba(8, 13, 23, 0.55); border-color: rgba(255, 255, 255, 0.36); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.home .header-search input::placeholder { color: rgba(255, 255, 255, 0.7); }
.header-search-close { position: absolute; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: none; color: var(--muted); cursor: pointer; }
.home .header-search-close { color: rgba(255, 255, 255, 0.8); }
.header-search-close:hover { color: var(--text); background: var(--line); }
/* On computers the menu links make room while searching. */
@media (min-width: 1281px) { .site-header.is-searching .home-links { opacity: 0.35; } }
/* On a phone the box covers the top bar. */
@media (max-width: 760px) {
  .header-search { position: fixed; left: 8px; right: 8px; top: 8px; z-index: 95; width: auto; }
  .header-search.is-open { width: auto; }
  .header-search input { min-height: 44px; background: var(--panel); color: var(--text); }
  .home .header-search input { background: rgba(8, 13, 23, 0.9); }
}
@media (prefers-reduced-motion: reduce) { .header-search { transition: none; } }
@media (max-width: 760px) {
  /* While searching on a phone, everything else in the top bar steps aside. */
  .site-header.is-searching .logo, .site-header.is-searching .header-actions > :not(.header-search) { visibility: hidden; }
  .header-search input, .home .header-search input { background: var(--panel); color: var(--text); border-color: var(--border-soft); }
  .home .header-search input::placeholder { color: var(--muted); }
  .home .header-search-close { color: var(--muted); }
}
/* ---------- The storm encyclopedia ---------- */
.wx { max-width: 1680px; padding: 34px 48px 72px; display: flex; flex-direction: column; gap: 28px; }
.wx > article { display: flex; flex-direction: column; gap: 28px; }
.wx h1 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.025em; line-height: 1.02; margin: 6px 0 0; }
.wx-lede { font-size: 20px; line-height: 1.5; max-width: 62ch; margin: 14px 0 0; }
.wx-say { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.wx-crumbs { color: var(--muted); font-size: 14px; font-weight: 500; }
.wx-crumbs a { color: var(--muted); }
.wx-search { max-width: 560px; display: flex; }
.wx-search input { flex: 1; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--field); color: var(--text); font: 400 16px Inter, system-ui, sans-serif; }
.wx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.wx-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; color: var(--muted); font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; }
.wx-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.wx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wx-chips[hidden] { display: none; }
.wx-chips a, .wx-chips button { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-soft); background: none; color: var(--text); font: 600 14px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.wx-chips .on { background: var(--chip-on-bg); color: var(--chip-on-text); border-color: transparent; }
.wx-letters { display: flex; flex-wrap: wrap; gap: 2px; color: var(--muted); font-weight: 600; font-size: 14px; }
.wx-letters span, .wx-letters button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.wx-letters span { opacity: .45; }
.wx-letters button { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; }
.wx-letters button:hover { background: var(--panel); }
.wx-letters button.on { background: var(--chip-on-bg); color: var(--chip-on-text); }
.wx-extras { display: flex; flex-direction: column; gap: 32px; }
.wx-extras[hidden] { display: none; }
.wx-rowh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 14px; }
.wx-rowh h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -.02em; margin: 0; }
.wx-rowh span { color: var(--muted); font-size: 14px; }
.wx-rowh > a { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 20px; }
.wx-card { display: block; text-decoration: none; color: var(--text); }
.wx-card b { display: block; margin-top: 10px; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 18px; }
.wx-card span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; line-height: 1.4; }
.wx-card small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.wx-card:hover b { text-decoration: underline; }
.wx-card-pic, .wx-week-pic, .wx-sc-pic { display: block; overflow: hidden; background: var(--panel); }
.wx-card-pic { aspect-ratio: 16 / 10; border-radius: 12px; }
.wx-card-pic img, .wx-week-pic img, .wx-sc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx .is-empty, .wx-card .wx-card-pic.is-empty { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-soft); background: var(--panel); }
.wx .wx-nopic, .wx-card .wx-nopic { display: inline; margin: 0; color: var(--muted); font-size: 13px; }
.wx-card .wx-card-pic { margin: 0; }
.wx-scale { border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px 10px; background: linear-gradient(180deg, var(--panel), transparent); }
.wx-switch { margin-left: auto; display: inline-flex; border: 1px solid var(--border-soft); border-radius: 999px; padding: 3px; }
.wx-switch button { padding: 6px 14px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.wx-switch button.on { background: var(--chip-on-bg); color: var(--chip-on-text); }
.wx-scroll { overflow-x: auto; }
.wx-track { position: relative; height: 350px; margin: 6px 70px 0; min-width: 760px; }
.wx-line { position: absolute; left: 0; right: 0; top: 165px; height: 2px; background: linear-gradient(90deg, rgba(77,168,255,.25), var(--accent), #F0343C); }
.wx-tick { position: absolute; top: 176px; transform: translateX(-50%); color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-tick::before { content: ""; position: absolute; left: 50%; top: -12px; width: 1px; height: 8px; background: var(--border-soft); }
.wx-sc { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; width: 140px; color: var(--text); text-decoration: none; }
.wx-sc.down { top: 0; }
.wx-sc.up { top: 206px; flex-direction: column-reverse; }
.wx-sc::after { content: ""; position: absolute; left: 50%; width: 2px; background: var(--border-soft); }
.wx-sc.down::after { top: 122px; height: 43px; }
.wx-sc.up::after { bottom: 144px; height: 39px; }
.wx-sc-pic { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--border-soft); }
.wx-sc-pic.is-empty .wx-nopic { font-size: 11px; line-height: 1.2; padding: 0 8px; }
.wx-sc-name { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; margin: 6px 0 2px; }
.wx-sc-note { color: var(--muted); font-size: 12px; line-height: 1.35; }
.wx-sc:hover .wx-sc-pic, .wx-sc:focus-visible .wx-sc-pic { border-color: var(--accent); }
.wx-week { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.wx-week-pic { aspect-ratio: 16 / 9; border-radius: 14px; }
.wx-kicker { color: var(--muted); font-size: 14px; font-weight: 600; margin: 0; }
.wx-week h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -.025em; margin: 4px 0 10px; }
.wx-week p { font-size: 17px; line-height: 1.6; max-width: 52ch; }
.wx-notable { margin-top: 40px; }
.wx-wordlist { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 40px; }
.wx-wordrow { padding: 14px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.wx-wordrow dt { font-weight: 600; font-size: 16px; }
.wx-wordrow dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.wx-wordrow dd a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.wx-also { margin-top: 24px; }
.wx-also h3 { grid-column: 1 / -1; font-size: 15px; margin: 0 0 6px; }
.wx-note { color: var(--muted); font-size: 15px; max-width: 68ch; }
.wx-source { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.wx-hero { position: relative; display: block; aspect-ratio: 21 / 9; border-radius: 16px; overflow: hidden; background: #05070B; color: #fff; }
.wx-hero[hidden] { display: none; }
.wx-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wx-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(8,13,23,.6); border: 1px solid rgba(255,255,255,.4); padding-left: 5px; }
.wx-hero:hover .wx-play { background: rgba(8,13,23,.8); }
.wx-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.wx-cap strong { display: block; font-size: 17px; }
.wx-invite { border: 1px dashed var(--border-soft); border-radius: 16px; padding: 26px 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.wx-invite[hidden] { display: none; }
.wx-invite p { margin: 0; max-width: 64ch; line-height: 1.55; }
.wx-invite .btn { margin-top: 8px; }
.wx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.wx-art h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -.02em; margin: 32px 0 10px; }
.wx-art h2:first-child { margin-top: 0; }
.wx-art p { font-size: 17px; line-height: 1.65; max-width: 68ch; margin: 0 0 12px; }
.wx-signs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.wx-signs li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.wx-signs strong { display: block; margin-bottom: 3px; }
.wx-signs span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.wx-safe { border-left: 3px solid #F0343C; padding: 4px 0 4px 16px; }
.wx-facts { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: var(--panel); }
.wx-facts h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.wx-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 15px; }
.wx-facts dt { color: var(--muted); }
.wx-facts dd { margin: 0; }
.wx-rel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wx-danger { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 8px; }
.wx-danger i { width: 14px; height: 6px; border-radius: 2px; background: #F0343C; }
.wx-danger i.off { background: var(--line); }
/* Weather words inside a film's description */
.wx-word { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--muted); text-underline-offset: 3px; }
.wx-word:hover, .wx-word[aria-expanded="true"] { color: var(--accent); text-decoration-color: currentColor; }
.wx-tip { position: absolute; z-index: 60; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-soft); background: var(--panel); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px; line-height: 1.5; }
.wx-tip strong { display: block; margin-bottom: 4px; }
.wx-tip p { margin: 0 0 8px; color: var(--muted); }
.wx-tip a { color: var(--accent); font-weight: 600; font-size: 14px; }
/* "In this film" on a film's page */
.wx-infilm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wx-infilm-label { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) {
  .wx { padding: 22px 18px 56px; gap: 22px; }
  .wx-cols, .wx-week { grid-template-columns: 1fr; gap: 24px; }
  .wx-facts { position: static; }
  .wx-signs { grid-template-columns: 1fr; }
  .wx-hero { aspect-ratio: 16 / 9; }
  .wx-scale { padding: 18px 14px 6px; }
  .wx-track { margin: 6px 60px 0; }
  .wx-wordlist { grid-template-columns: 1fr; }
  .wx-lede { font-size: 18px; }
}
/* "What exactly did you film?" */
.wx-pick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wx-pick[hidden] { display: none; }
.wx-pick legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.wx-pick-body { display: flex; flex-direction: column; gap: 12px; }
.wx-pick-group { display: flex; flex-direction: column; gap: 6px; }
.wx-pick-group[hidden] { display: none; }
.wx-pick-topic { color: var(--muted); font-size: 13px; font-weight: 600; }
.wx-pick-all > summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 15px; padding: 4px 0; }
.wx-pick-all[open] > summary { margin-bottom: 10px; }
.wx-pick-all .wx-pick-group + .wx-pick-group { margin-top: 12px; }
.wx-pick .wx-chips button { min-height: 32px; font-size: 13px; }
.wx-pick-note { color: var(--muted); font-size: 14px; margin: 0; min-height: 1em; }

/* ---------- Watching a live stream here ---------- */
.live-away { color: var(--muted); font-size: 14px; font-weight: 600; align-self: center; }
.live-away:hover { color: var(--text); }
.live-watch { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--bg, #0A0F18); color: var(--text); overflow: auto; }
.live-watch::backdrop { background: rgba(3, 6, 12, 0.78); }
.live-watch-head { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px 12px; }
.live-watch-head > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.live-watch-title { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.live-watch-head .live-by { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.live-watch-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.live-watch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-watch-foot { margin: 0; padding: 12px 18px 16px; color: var(--muted); font-size: 14px; }
.live-watch-foot a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .live-watch { width: 100vw; max-width: 100vw; max-height: 100vh; border-radius: 0; border: 0; } .live-watch-title { font-size: 18px; } }

/* ---------- Follow a place, follow an event (029) ---------- */
.follow-place { margin-left: 10px; padding: 2px 10px; min-height: 26px; border-radius: 999px; border: 1px solid var(--border-soft); background: none; color: var(--text); font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; vertical-align: baseline; }
.follow-place:hover { border-color: var(--accent); }
.follow-place[aria-pressed="true"] { background: var(--chip-on-bg); color: var(--chip-on-text); border-color: transparent; }
.follow-place[hidden] { display: none; }
.follow-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 40px; padding: 18px 0 6px; border-top: 1px solid var(--line); }
.follow-more[hidden] { display: none; }
.follow-more h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; font-family: Inter, system-ui, sans-serif; letter-spacing: 0; }
.follow-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-chips:empty { display: none; }
.follow-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 34px; padding: 0 4px 0 13px; border-radius: 999px; border: 1px solid var(--border-soft); font-size: 14px; font-weight: 600; }
.follow-chip a { color: var(--text); }
.follow-chip-x { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.follow-chip-x:hover { background: var(--line); color: var(--text); }
.follow-add { display: flex; gap: 8px; margin-top: 10px; max-width: 460px; }
.follow-add input { flex: 1; min-width: 0; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--field); color: var(--text); font: 400 15px Inter, system-ui, sans-serif; }
.follow-none { color: var(--muted); font-size: 14px; margin: 0; }
.follow-none a { color: var(--accent); font-weight: 600; }

/* ---------- Life list (030) ---------- */
.life-list { display: flex; flex-direction: column; gap: 22px; }
.life-list[hidden] { display: none; }
.life-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 32px; }
.life-head h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 0; }
.life-count { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.life-count strong { color: var(--text); font-size: 18px; }
.life-bar { flex: 1 1 260px; max-width: 520px; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.life-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #6FD08C); }
.life-start { margin: 0; padding: 16px 18px; border: 1px dashed var(--border-soft); border-radius: 12px; }
.life-start a { color: var(--accent); font-weight: 600; }
.life-group h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.life-group h3 span { color: var(--muted); font-weight: 500; }
.life-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.life-item { display: flex; flex-direction: column; gap: 4px; }
.life-pic { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--panel); }
.life-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.life-pic.is-empty { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-soft); background: transparent; color: var(--muted); font-size: 12px; }
.life-tick { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #2E9E5B; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.life-name { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; color: var(--text); margin-top: 4px; }
.life-item:not(.is-got) .life-name { color: var(--muted); }
.life-meta { color: var(--muted); font-size: 12px; line-height: 1.35; }
/* Agree on a film page */
.wx-infilm-chip { display: inline-flex; align-items: center; gap: 2px; }
.wx-infilm-chip > a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border-soft); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.wx-infilm-chip.has-agree > a { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.wx-agree { min-height: 34px; padding: 0 12px; border-radius: 0 999px 999px 0; border: 1px solid var(--border-soft); border-left: 0; background: none; color: var(--muted); font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.wx-agree:hover { color: var(--text); }
.wx-agree.on { background: #2E9E5B; border-color: #2E9E5B; color: #fff; }
.wx-agree-n { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-soft); border-left: 0; border-radius: 0 999px 999px 0; color: var(--muted); font-size: 13px; }
.wx-untag { margin-left: 4px; min-height: 28px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border-soft); background: none; color: var(--muted); font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.wx-spotters[hidden] { display: none; }

/* ---------- A calmer header: More menu and account menu ---------- */
.nav-more.is-here, .nav-weather.is-here { color: var(--text); background: var(--line); }
.home .nav-more.is-here, .home .nav-weather.is-here { color: #fff; background: rgba(255, 255, 255, 0.17); }
.head-menu { position: fixed; z-index: 96; min-width: 200px; padding: 6px; border-radius: 14px; border: 1px solid var(--border-soft); background: var(--panel); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; }
.head-menu[hidden] { display: none; }
.head-menu .head-menu-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; border: 0; background: none; color: var(--text); font: 500 15px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.head-menu .head-menu-item:hover, .head-menu .head-menu-item:focus-visible { background: var(--line); text-decoration: none; }
.head-menu .head-menu-item[aria-current="page"] { color: var(--accent); }
.head-menu .head-menu-out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; padding-top: 11px; }
.head-menu .head-menu-out[hidden] { display: none; }
/* Signed in: Sign out lives in the account menu. The light/dark switch stays in the top bar. */
/* Sounds is the speaker alone; its name is in its tooltip and label. */
.snd-btn .snd-word { display: none; }
.avatar-button { cursor: pointer; }

/* Signed in, the full header needs about 1,400 pixels on one row. Below that the
   links take a row of their own, so More is never cut off beside Search. */
@media (min-width: 1281px) and (max-width: 1399px) {
  .home .site-header { flex-wrap: wrap; row-gap: 10px; }
  .inner .site-header { flex-wrap: wrap; row-gap: 8px; }
  .home .home-links, .inner .home-links { order: 3; flex-basis: 100%; margin: 0; padding: 0; }
}
/* From 1,400 to 1,440 pixels the header fits on one row with tighter links. */
@media (min-width: 1400px) and (max-width: 1440px) {
  .home .site-header, .inner .site-header { flex-wrap: nowrap; }
  .home .home-links, .inner .home-links { order: 0; flex-basis: auto; margin: 0; padding: 0; }
  .home-links a, .home-links .nav-weather { padding-left: 10px; padding-right: 10px; }
  .site-header.is-searching .home-links { opacity: 0.35; }
}

/* ---------- Kinds of weather: alive under the pointer ---------- */
.kind-tiles { gap: 16px; }
.kind-tile { border-radius: 16px; isolation: isolate; transform: translateZ(0); transition: transform .6s var(--ease), box-shadow .6s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.kind-tile img { transition: transform 1.1s var(--ease), filter .6s var(--ease); filter: saturate(.92) brightness(.92); }
.kind-tile::after { background: linear-gradient(180deg, rgba(8,13,23,0) 30%, rgba(8,13,23,.12) 55%, rgba(8,13,23,.72) 100%); transition: opacity .6s var(--ease); }
.kind-tile span { transition: transform .6s var(--ease); letter-spacing: -.005em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.kind-tile .kind-motion { opacity: 0; transition: opacity .45s var(--ease); z-index: 0; filter: none; }
.kind-tile .kind-motion.is-on { opacity: 1; }
.kind-tile:hover, .kind-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.kind-tile:hover img, .kind-tile:focus-visible img { transform: scale(1.06); filter: saturate(1.05) brightness(1.04); }
.kind-tile:hover::after, .kind-tile:focus-visible::after { opacity: .85; }
.kind-tile:hover span, .kind-tile:focus-visible span { transform: translateY(-2px); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .kind-tile, .kind-tile img, .kind-tile span { transition: none; }
  .kind-tile:hover, .kind-tile:focus-visible { transform: none; }
  .kind-tile:hover img, .kind-tile:focus-visible img { transform: none; }
}

/* ---------- Kinds of weather: one thin line ---------- */
.kind-line { position: relative; margin-top: 18px; }
.kind-line ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.kind-line ul::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: linear-gradient(90deg, transparent, var(--border-soft) 4%, var(--border-soft) 96%, transparent); }
.kind-line li { flex: 1 1 0; display: flex; justify-content: center; min-width: 76px; }
.kind-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding-bottom: 4px; color: var(--muted); text-decoration: none; outline: none; }
/* A short stretch of the line that lights with the symbol. */
.kind-stop::before { content: ""; position: absolute; top: 23px; left: 50%; width: 120px; height: 1px; transform: translateX(-50%) scaleX(0); background: linear-gradient(90deg, transparent, var(--accent), transparent); transition: transform .5s var(--ease); }
.kind-icon { position: relative; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border-soft); color: var(--text); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease); }
.kind-name { font-size: 13px; font-weight: 600; white-space: nowrap; transition: color .35s var(--ease); }
.kind-stop:hover, .kind-stop:focus-visible { text-decoration: none; }
.kind-stop:hover::before, .kind-stop:focus-visible::before { transform: translateX(-50%) scaleX(1); }
.kind-stop:hover .kind-icon, .kind-stop:focus-visible .kind-icon { background: #fff; color: #0A0F18; border-color: #fff; box-shadow: 0 0 0 6px rgba(77, 168, 255, 0.16), 0 0 28px rgba(77, 168, 255, 0.28); transform: translateY(-2px); }
.kind-stop:hover .kind-name, .kind-stop:focus-visible .kind-name { color: var(--text); }
html[data-theme="light"] .kind-stop:hover .kind-icon, html[data-theme="light"] .kind-stop:focus-visible .kind-icon { background: #0A0F18; color: #fff; border-color: #0A0F18; }
/* Phones and narrow windows: the row slides, and the next symbol peeks in. */
@media (max-width: 980px) {
  .kind-line { margin-left: -24px; margin-right: -24px; }
  .kind-line ul { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 8px 24px 4px; gap: 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .kind-line ul::-webkit-scrollbar { display: none; }
  .kind-line ul::before { left: 24px; right: auto; width: calc(12 * 80px); top: 31px; }
  .kind-line li { flex: 0 0 76px; scroll-snap-align: start; }
}
@media (max-width: 760px) { .kind-line { margin-left: -16px; margin-right: -16px; } .kind-line ul { padding-left: 16px; padding-right: 16px; } .kind-line ul::before { left: 16px; } }
@media (prefers-reduced-motion: reduce) { .kind-stop::before, .kind-icon { transition: none; } .kind-stop:hover .kind-icon { transform: none; } }
/* One kind awake: lit like a pointed-at symbol, with a line about it under the row. */
.kind-stop.is-awake::before { transform: translateX(-50%) scaleX(1); }
.kind-stop.is-awake .kind-icon { background: #fff; color: #0A0F18; border-color: #fff; box-shadow: 0 0 0 6px rgba(77, 168, 255, 0.16), 0 0 28px rgba(77, 168, 255, 0.28); }
.kind-stop.is-awake .kind-name { color: var(--text); }
html[data-theme="light"] .kind-stop.is-awake .kind-icon { background: #0A0F18; color: #fff; border-color: #0A0F18; }
.kind-note { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 15px; min-height: 1.5em; }
.kind-note strong { color: var(--text); font-weight: 600; }
.kind-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-soft); text-underline-offset: 3px; }
.kind-note a:hover { text-decoration-color: currentColor; }
.kind-note[hidden] { display: none; }
@media (max-width: 980px) { .kind-note { text-align: left; font-size: 14px; } }

/* ---------- One kind of weather (kind.html) ---------- */
.kp { max-width: 1680px; padding: 30px 48px 72px; }
.kp-body { display: flex; flex-direction: column; gap: 28px; }
.kp-body[hidden] { display: none; }
.kp-crumb { color: var(--muted); font-size: 14px; font-weight: 500; }
.kp-crumb a { color: var(--muted); }
.kp-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.kp-ic { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: #0A0F18; box-shadow: 0 0 0 7px rgba(77,168,255,.16), 0 0 32px rgba(77,168,255,.3); flex: none; }
.kp-ic span { display: flex; }
html[data-theme="light"] .kp-ic { background: #0A0F18; color: #fff; }
.kp-head h1 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(42px, 5vw, 64px); letter-spacing: -.025em; line-height: 1; margin: 0; }
.kp-facts { color: var(--muted); font-size: 15px; margin: 8px 0 0; min-height: 1.4em; }
.kp-act { margin-left: auto; display: flex; gap: 10px; }
.kp-lead { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.kp-v { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; color: #fff; }
.kp-v[hidden] { display: none; }
.kp-v img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.kp-v:hover img { transform: scale(1.02); }
.kp-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(8,13,23,.55); border: 1px solid rgba(255,255,255,.45); padding-left: 5px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kp-play[hidden] { display: none; }
.kp-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-size: 14px; }
.kp-cap b { display: block; font-size: 19px; margin-bottom: 2px; }
.kp-new { position: absolute; top: 16px; left: 16px; padding: 5px 11px; border-radius: 999px; background: rgba(8,13,23,.6); font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kp-v-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--panel); border: 1px dashed var(--border-soft); color: var(--text); }
.kp-v-empty[hidden] { display: none; }
.kp-v-empty p { margin: 0; color: var(--muted); }
.kp-what { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; }
.kp-what[hidden] { display: none; }
.kp-what span { color: var(--muted); font-size: 13px; font-weight: 600; }
.kp-what p { font-size: 18px; line-height: 1.55; margin: 6px 0 12px; }
.kp-what a { color: var(--accent); font-weight: 600; font-size: 15px; }
.kp-near { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.kp-near[hidden] { display: none; }
.kp-near a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-soft); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; }
.kp-near a:hover { border-color: var(--accent); }
.kp-bar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.kp-bar h2 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 28px; margin: 0; }
.kp-bar > span { color: var(--muted); font-size: 14px; }
.kp-tabs { margin-left: auto; display: flex; gap: 18px; }
.kp-tabs button { background: none; border: 0; padding: 0 0 4px; color: var(--muted); font: 500 15px Inter, system-ui, sans-serif; cursor: pointer; border-bottom: 2px solid transparent; }
.kp-tabs button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }
.kp-tabs button[hidden] { display: none; }
.kp-grid { margin-top: 22px; }
@media (max-width: 900px) {
  .kp { padding: 22px 18px 56px; }
  .kp-lead { grid-template-columns: 1fr; gap: 22px; }
  .kp-act { margin-left: 0; }
  .kp-tabs { margin-left: 0; width: 100%; }
}

/* ---------- Right now, in one line, under the homepage banner ---------- */
.now-strip { display: flex; align-items: center; gap: 12px; max-width: 1680px; margin: 0 auto; padding: 14px 48px; color: var(--muted); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); }
.now-strip[hidden] { display: none; }
.now-strip:hover { text-decoration: none; color: var(--text); }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.now-strip.is-live .now-dot { background: #F0343C; box-shadow: 0 0 0 0 rgba(240,52,60,.6); animation: now-pulse 2s infinite; }
.now-strip.is-live #now-text { color: var(--text); font-weight: 600; }
#now-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-go { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 14px; flex: none; }
@keyframes now-pulse { 0% { box-shadow: 0 0 0 0 rgba(240,52,60,.55); } 70% { box-shadow: 0 0 0 8px rgba(240,52,60,0); } 100% { box-shadow: 0 0 0 0 rgba(240,52,60,0); } }
@media (max-width: 1280px) { .now-strip { padding: 12px 24px; } }
@media (max-width: 760px) { .now-strip { padding: 12px 16px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .now-strip.is-live .now-dot { animation: none; } }

/* ---------- Storm emails: one line, on the homepage and event pages ---------- */
.storm-email { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.home .storm-email { padding: 28px; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--panel); }
.storm-email-title { font-weight: 600; font-size: 21px; }
.storm-email-words { color: var(--muted); }
.storm-email-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.storm-email-row[hidden] { display: none; }
.storm-email-row input { flex: 1 1 240px; min-height: 46px; padding: 0 14px; font: 400 16px Inter, system-ui, sans-serif; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.storm-email-note:empty { display: none; }
.storm-email-small { font-size: 13px; color: var(--muted); }

/* ---------- Hero: no jump while it loads ---------- */
/* The film's button and credit hold their place, unseen, until they are filled in. */
.hero-play.is-waiting, .hero-credit.is-waiting { visibility: hidden; }

/* ---------- Credits ---------- */
.credits-search { margin: 18px 0 6px; max-width: 420px; }
.credits-search input { width: 100%; min-height: 46px; padding: 0 16px; font: 400 16px Inter, system-ui, sans-serif; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 23px; box-sizing: border-box; }
.credits-invite { margin: 18px 0 8px; padding: 22px 24px; max-width: 680px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.credits-invite[hidden] { display: none; }
.credits-invite h2 { font-size: 19px; font-weight: 600; margin: 0; }
.credits-invite p { margin: 0; color: var(--muted); max-width: 62ch; }
#credits-count { display: block; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.credit-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; }
.credit-grid[hidden] { display: none; }
.credit-card a { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.credit-card a:hover .credit-name { text-decoration: underline; text-underline-offset: 3px; }
.credit-pic { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--panel); margin-bottom: 8px; }
.credit-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.credit-name { font-weight: 600; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.credit-meta { font-size: 14px; color: var(--muted); }

/* ---------- Photo zoom, full size, download and slideshow ---------- */
.photo-frame.is-full { touch-action: none; }
.photo-frame.is-full img { transform-origin: 0 0; will-change: transform; user-select: none; -webkit-user-drag: none; }
.photo-frame.is-full.is-zoomed img { cursor: grab; }
.photo-frame.is-full.is-zoomed img:active { cursor: grabbing; }
.zoom-bar {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(15, 14, 13, 0.75); color: #fff;
}
.zoom-bar[hidden] { display: none; }
.zoom-bar button { min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: #fff; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.zoom-bar button[data-z="fit"] { font-size: 14px; }
.zoom-bar button:hover, .zoom-bar button:focus-visible { background: rgba(255, 255, 255, 0.14); }
.zoom-bar span { min-width: 54px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.zoom-hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(15, 14, 13, 0.75); color: #fff; font-size: 14px; pointer-events: none; }
.zoom-hint[hidden] { display: none; }
.credit-box { margin: 4px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel, transparent); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.credit-box[hidden] { display: none; }
.credit-box-note { margin: 0; color: var(--muted); font-size: 15px; }
.credit-box-line { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.slideshow { position: fixed; inset: 0; z-index: 1100; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; }
.slideshow-pic { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s ease; }
.slideshow-pic.is-fading { opacity: 0; }
.slideshow-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.78)); pointer-events: none; }
.slideshow-cap a { pointer-events: auto; }
.slideshow-kind { margin: 0 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #9AA8BD; }
.slideshow-title { display: block; color: #fff; font-size: 22px; font-weight: 600; text-decoration: none; max-width: calc(100% - 260px); }
.slideshow-title:hover { text-decoration: underline; }
.slideshow-who { margin: 4px 0 0; color: #C9D2DF; font-size: 15px; white-space: pre; }
.slideshow-bar { position: absolute; right: 18px; bottom: 22px; display: flex; gap: 6px; }
.slideshow-bar button { min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.14); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.slideshow-bar button:hover, .slideshow-bar button:focus-visible { background: rgba(255, 255, 255, 0.26); }
@media (max-width: 760px) {
  .slideshow-title { max-width: 100%; font-size: 18px; }
  .slideshow-cap { padding-bottom: 84px; }
}

/* Menus drop in and fade out smoothly. */
@keyframes wof-drop { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes wof-lift { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px) scale(0.985); } }
.weather-panel:not([hidden]), .head-menu:not([hidden]) { transform-origin: top center; animation: wof-drop .2s cubic-bezier(.2, .8, .2, 1) both; }
.weather-panel.is-closing, .head-menu.is-closing { animation: wof-lift .15s ease-in both; pointer-events: none; }
.wp-pic img { animation: wof-fade .25s ease both; }
@keyframes wof-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .weather-panel, .head-menu, .wp-pic img { animation: none !important; } }

/* A status line with nothing to say takes no space (no empty red box). */
.form-message:empty { display: none; }
/* The "Add your recording" picker stays inside its card. */
.event-add select { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; text-overflow: ellipsis; }
.event-add form > * { min-width: 0; }

/* Claiming a Library credit */
.claim-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.claim-steps { display: flex; flex-direction: column; gap: 8px; }
.claim-steps[hidden] { display: none; }
.claim-steps ul { margin: 0; padding-left: 20px; color: var(--muted); }
.claim-code { display: flex; align-items: center; gap: 10px; }
.claim-code code { font: 600 20px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; padding: 6px 12px; border-radius: 8px; background: var(--field); border: 1px solid var(--border); color: var(--text); }
.credits-verified h2 { color: var(--accent); }
.credit-card.is-verified .credit-meta:last-child { color: var(--accent); font-weight: 600; }
.channel-verified { margin: 4px 0 0; font-size: 15px; color: var(--accent); }
.take-down { margin-top: 6px; align-self: flex-start; font-size: 14px; }
.credit-rename { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.credit-rename label { font-weight: 600; font-size: 15px; }
.credit-rename input { flex: 1 1 220px; min-height: 42px; padding: 0 12px; font: 400 16px Inter, system-ui, sans-serif; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 8px; }

/* Review new Library items (moderators) */
.review-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.review-bar select { min-height: 40px; padding: 0 10px; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 8px; }
.review-bar span { color: var(--muted); }
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.review-tile { display: flex; flex-direction: column; gap: 4px; }
.review-pic { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--deep); }
.review-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-title { margin: 4px 0 0; font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-meta { margin: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-hide { align-self: flex-start; margin-top: 4px; min-height: 34px; font-size: 14px; }
.review-tile.is-hidden .review-pic, .review-tile.is-hidden .review-title, .review-tile.is-hidden .review-meta { opacity: .3; }
#review-more { margin-top: 18px; }

/* Phones: the floating Sounds button is smaller and faded so it doesn't cover what's under it.
   It comes back to full strength while sound is playing or when touched. */
@media (max-width: 760px) {
  .site-header .snd-btn { width: 38px; height: 38px; right: 8px; opacity: .55; transition: opacity .2s ease; }
  .site-header .snd-btn:hover, .site-header .snd-btn:focus-visible, .site-header .snd-btn:active, .site-header .snd-btn.is-on { opacity: 1; }
}

/* Swiping between photos on phones */
.photo-frame.swipe-left img { transform: translateX(-12%); opacity: .4; transition: transform .2s ease, opacity .2s ease; }
.photo-frame.swipe-right img { transform: translateX(12%); opacity: .4; transition: transform .2s ease, opacity .2s ease; }
.swipe-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(15, 14, 13, 0.75); color: #fff; font-size: 14px; pointer-events: none; transition: opacity .4s ease; white-space: nowrap; }
.swipe-hint.is-gone { opacity: 0; }
.photo-frame { touch-action: pan-y pinch-zoom; }

/* Credits: agencies first, then photographers */
.credit-section { margin: 8px 0 26px; }
.credit-section[hidden] { display: none; }
.credit-section-head { font-size: 19px; font-weight: 600; margin: 18px 0 12px; }
.credit-section-head[hidden] { display: none; }

/* Credits tabs */
.credit-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 6px; }
.credit-tabs[hidden] { display: none; }
.is-tab-hidden { display: none !important; }
.credits-one-group .credit-section-head { display: none; }

/* Sign-in page: on a phone the sign-up form is far down, so a link jumps to it. */
.jump-signup { display: none; margin-top: 10px; font-weight: 600; }
@media (max-width: 760px) { .jump-signup { display: block; } }
#signup-heading { scroll-margin-top: 90px; }

/* Storm pages: one line on what each recording shows, and the moderator's editor for it. */
.timeline-note { display: block; margin: 3px 0 4px; color: var(--text); font-size: 15px; line-height: 1.45; }
.timeline-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px; }
.timeline-edit input { flex: 1 1 260px; min-height: 40px; padding: 0 12px; font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 8px; }

/* Storm pages: satellite views as a slow film, and a small map. */
.event-space, .event-map { margin: 28px 0; }
.space-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.space-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.25s ease; }
.space-when { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 13, 23, 0.72); color: #fff; font-weight: 600; font-size: 14px; }
.space-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.space-bar input[type="range"] { flex: 1; accent-color: var(--accent); }
.space-count { color: var(--muted); font-size: 14px; min-width: 64px; text-align: right; }
.event-map-box { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-soft); }
.event-point span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #E5484D; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(229, 72, 77, 0.25), 0 1px 4px rgba(0, 0, 0, 0.4); }
@media (prefers-reduced-motion: reduce) { .space-frame img { transition: none; } }

/* The week in weather. */
.week-storm { margin: 20px 0 28px; }
.week-storm-link { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; color: inherit; text-decoration: none; margin-top: 8px; }
.week-storm-link img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; display: block; }
.week-storm-link strong { display: block; font: 700 28px/1.2 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; margin-bottom: 6px; }
.week-storm-link:hover strong { text-decoration: underline; }
@media (max-width: 700px) { .week-storm-link { grid-template-columns: 1fr; } }

.event-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }

/* My uploads: the member's own numbers. */
.my-stats { margin: 18px 0 26px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.stat { padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--panel); }
.stat dt { color: var(--muted); font-size: 13px; }
.stat dd { margin: 2px 0 0; font: 600 24px/1.2 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.my-stats-each summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.stats-table th, .stats-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stats-table td { font-variant-numeric: tabular-nums; }
.stats-table thead th { color: var(--muted); font-weight: 600; font-size: 13px; }
@media (max-width: 640px) { .stats-table thead th:nth-child(4), .stats-table td:nth-child(4), .stats-table thead th:nth-child(5), .stats-table td:nth-child(5) { display: none; } }

/* Storm radio. */
.radio { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center; margin: 18px 0 30px; }
.radio-pic { position: relative; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; background: var(--line); }
.radio-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radio-live { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(8, 13, 23, 0.72); color: #fff; font-weight: 600; font-size: 13px; }
.radio-words h2 { font: 700 28px/1.2 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0 0 6px; }
.radio-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
#radio-kinds { margin-top: 14px; }
@media (max-width: 760px) { .radio { grid-template-columns: 1fr; } }
.radio-live .snd-bars { display: inline-flex; }
.home-event-more { margin-top: 14px; font-size: 15px; color: var(--muted); }
.home-event-more a { font-weight: 600; }
.event-embed-box { margin: 14px 0; display: grid; gap: 8px; }
.event-embed-box textarea { width: 100%; font: 13px/1.4 ui-monospace, Menlo, monospace; padding: 10px; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
.site-footer .footer-social { flex-basis: 100%; justify-content: center; border-top: 1px solid var(--line); padding-top: 4px; }
/* Official NWS warnings beside a film */
.nws-context { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid #e0a43a; max-width: 70ch; }
.nws-context-title { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 19px; margin: 0 0 10px; }
.nws-context-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nws-warning { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; line-height: 1.45; }
.nws-warning strong { font-weight: 600; }
.nws-to strong { color: #e5484d; }
.nws-warning-facts { color: var(--muted); }
.nws-warning-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-size: 14px; }
.nws-context-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }

/* Weather Map layers, live streams and quick reports (033) */
.map-layers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 10px 0 12px; font-size: 14px; }
.map-layer { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.map-layer .live-dot { margin-right: 0; }
.map-report-slot { margin-left: auto; }
.report-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #3B8BD4; }
.map-live span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #F0343C; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(240, 52, 60, 0.35); animation: live-pulse 1.8s var(--ease) infinite; }
.map-report { background: none; border: 0; }
.map-report span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: #3B8BD4; color: #fff; font: 600 12px/1.3 Inter, system-ui, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.map-report span i { font-style: normal; }
.map-report-hail span, .map-report-flooding span, .map-report-freezing-rain span { background: #D94B3D; }
.map-report-thunder span, .map-report-wind span, .map-report-heavy-rain span { background: #C77A12; }
.map-report-snow span, .map-report-sleet span { background: #6B7FA8; }
.map-report-clear span { background: #2E8B57; }
.map-report-clouds span, .map-report-fog span, .map-report-drizzle span { background: #5F6B7A; }
.map-live-watch { margin-top: 10px; }
.right-now-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.report-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--border-soft); border-radius: 16px; background: var(--bg, #0A0F18); color: var(--text); overflow: auto; }
.report-dialog::backdrop { background: rgba(3, 6, 12, 0.7); }
.report-dialog form { padding: 18px 20px 20px; display: grid; gap: 12px; }
.report-dialog-head { display: flex; align-items: flex-start; gap: 12px; }
.report-dialog-head h2 { flex: 1; margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 22px; line-height: 1.25; }
.report-close { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.report-picks, .report-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.report-sizes { align-items: center; padding-top: 2px; }
.report-sizes-label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.report-where { display: flex; gap: 8px; flex-wrap: wrap; }
.report-where input { flex: 1 1 220px; min-width: 0; min-height: 46px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.report-dialog .hint { margin: 0; }
@media (prefers-reduced-motion: reduce) { .map-live span { animation: none; } }

/* Live weather cameras (Windy) */
.skies-section { margin: 8px 0 28px; }
.skies-section .row-note a { color: var(--accent); }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cam-card { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.cam-card:hover { text-decoration: none; }
.cam-card:hover .cam-pic img { transform: scale(1.02); }
.cam-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--line); }
.cam-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.cam-live { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(8, 13, 23, 0.72); color: #fff; font-size: 12px; font-weight: 600; }
.cam-title { font-weight: 600; font-size: 15px; margin-top: 4px; }
.cam-meta { color: var(--muted); font-size: 13px; }
.cam-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2DB3A0; }
.map-cam span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #2DB3A0; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.map-cam-popup .cam-card { width: 230px; }
@media (prefers-reduced-motion: reduce) { .cam-pic img { transition: none; } }
.report-dialog .report-pick { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--field); color: var(--text); font: 500 14px/1.2 inherit; cursor: pointer; }
.report-dialog .report-pick:hover { border-color: var(--accent); }
.report-dialog .report-pick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }

/* Forecast (National Weather Service) */
.forecast-section { margin: 8px 0 28px; }
.forecast-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.forecast-form input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 14px; font-size: 16px; font-family: inherit; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.forecast-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.forecast-place { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 20px; }
.forecast-src, .forecast-wait { color: var(--muted); font-size: 14px; }
.forecast-alert { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 8px; border-left: 3px solid #e0a43a; background: rgba(224, 164, 58, 0.1); font-size: 14px; }
.forecast-alert.is-warning { border-left-color: #e5484d; background: rgba(229, 72, 77, 0.1); }
.forecast-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.forecast-day { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.forecast-day.is-night { background: rgba(127, 140, 160, 0.06); }
.forecast-when { font-weight: 600; font-size: 14px; }
.forecast-temp { font-size: 24px; font-variant-numeric: tabular-nums; }
.forecast-words { font-size: 14px; line-height: 1.35; }
.forecast-rain { color: var(--muted); font-size: 13px; }
.forecast-more { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.map-report-delete { margin-left: 6px; border: 0; background: none; padding: 0; color: #e5484d; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.cam-live.is-video { background: rgba(240, 52, 60, 0.9); }
.reports-now { margin: 8px 0 28px; }
.reports-now .row-note a { color: var(--accent); }
.reports-now-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.reports-now-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid #3B8BD4; border-radius: 0 10px 10px 0; font-size: 14px; min-width: 170px; }
.reports-now-item span { color: var(--muted); font-size: 13px; }
.reports-now-item.report-hail, .reports-now-item.report-flooding, .reports-now-item.report-freezing-rain { border-left-color: #D94B3D; }
.reports-now-item.report-thunder, .reports-now-item.report-wind, .reports-now-item.report-heavy-rain { border-left-color: #C77A12; }
.reports-now-item.report-snow, .reports-now-item.report-sleet { border-left-color: #6B7FA8; }
.reports-now-item.report-clear { border-left-color: #2E8B57; }
.event-warnings { max-width: none; margin: 24px 0; }

/* Weather map channels (map.html) */
.wx-set { position: relative; border-radius: 14px; overflow: hidden; background: #05070C; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 14px 50px rgba(0,0,0,.35); }
.wx-set .weather-map { height: min(70vh, 720px); min-height: 380px; border: 0; border-radius: 0; background: #0B1220; }
.weather-map .base-tiles { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.9) saturate(.5); }
.wx-osd { position: absolute; left: 16px; top: 12px; z-index: 500; font-family: VT323, ui-monospace, monospace; font-size: clamp(24px, 3.4vw, 40px); color: #7CFF9A; text-shadow: 0 0 8px rgba(124,255,154,.6), 2px 2px 0 #000; pointer-events: none; transition: opacity .6s ease; }
.wx-set.is-quiet .wx-osd { opacity: 0; }
.wx-stamp { position: absolute; right: 12px; top: 12px; z-index: 500; padding: 4px 10px; border-radius: 999px; background: rgba(5,7,12,.78); color: #F2F5FA; font-size: 13px; font-weight: 600; pointer-events: none; }
.wx-stamp:empty { display: none; }
.wx-legend { position: absolute; left: 12px; bottom: 26px; z-index: 500; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 999px; background: rgba(5,7,12,.78); color: #F2F5FA; font-size: 12px; pointer-events: none; }
.wx-legend i { display: block; width: 120px; height: 8px; border-radius: 4px; }
.wx-legend-radar i { background: linear-gradient(90deg, #04E9E7, #019FF4, #02FD02, #01C501, #FDF802, #FD9500, #FD0000, #BC0000, #F800FD); }
.wx-legend-rain i { background: linear-gradient(90deg, #B7E3FF, #4FA8FF, #2E6BFF, #36C94B, #F6E33B, #F58B1F, #E2231A, #B01ACF); }
.wx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.wx-where { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wx-where strong { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.wx-where span { color: var(--muted); font-size: 15px; }
.wx-knobs { display: flex; gap: 8px; }
.wx-knobs .btn { min-width: 46px; }
.wx-chips { margin: 12px 0 4px; }
.wx-credit { color: var(--muted); font-size: 13px; margin: 10px 0 18px; }
.wx-credit a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) { .wx-knobs { width: 100%; } .wx-knobs .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .wx-osd { transition: none; } }

/* Storm radio tuner (radio.html) */
.wxr { margin: 18px 0 30px; }
.wxr-face { padding: 18px; border-radius: 16px; background: linear-gradient(180deg, #121722, #0A0D14); box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 14px 50px rgba(0,0,0,.35); color: #F2F5FA; }
.wxr-display { padding: 16px 18px 14px; border-radius: 10px; background: #0B1A12; box-shadow: inset 0 0 0 1px rgba(124,255,154,.15), inset 0 6px 24px rgba(0,0,0,.6); font-family: VT323, ui-monospace, monospace; color: #7CFF9A; text-shadow: 0 0 8px rgba(124,255,154,.45); }
.wxr-top { display: flex; align-items: center; gap: 12px; font-size: 20px; opacity: .85; }
.wxr-count { margin-left: auto; font-size: 18px; }
.wxr-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.wxr-bars i { display: block; width: 4px; height: 4px; background: currentColor; opacity: .35; }
.wxr.is-on .wxr-bars i { opacity: 1; animation: wxr-bar 0.9s ease-in-out infinite alternate; }
.wxr.is-on .wxr-bars i:nth-child(2) { animation-delay: .15s; } .wxr.is-on .wxr-bars i:nth-child(3) { animation-delay: .3s; } .wxr.is-on .wxr-bars i:nth-child(4) { animation-delay: .45s; } .wxr.is-on .wxr-bars i:nth-child(5) { animation-delay: .6s; }
.wxr.is-tuning .wxr-bars i { animation-duration: .25s; }
@keyframes wxr-bar { from { height: 3px; } to { height: 16px; } }
.wxr-freq { display: flex; align-items: baseline; gap: 10px; font-size: clamp(56px, 10vw, 96px); line-height: 1; margin: 6px 0 4px; }
.wxr-freq small { font-size: .3em; }
.wxr-call { margin-left: auto; font-size: .34em; }
.wxr-where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 26px; }
.wxr-where strong { font-weight: 400; color: #C9FFD6; }
.wxr-where span { opacity: .7; font-size: 22px; }
.wxr-dial { width: 100%; margin: 18px 0 6px; height: 28px; accent-color: #7CFF9A; cursor: pointer; background: transparent; }
.wxr-dial::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 10px), rgba(255,255,255,.08); }
.wxr-dial::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 26px; margin-top: -10px; border-radius: 2px; background: #F0343C; box-shadow: 0 0 10px rgba(240,52,60,.7); }
.wxr-dial::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.wxr-dial::-moz-range-thumb { width: 6px; height: 26px; border: 0; border-radius: 2px; background: #F0343C; }
.wxr-dial { -webkit-appearance: none; appearance: none; }
.wxr-dial:focus-visible { outline: 2px solid #7CC0FF; outline-offset: 4px; }
.wxr-knobs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.wxr-knobs .btn { min-width: 46px; }
.wxr-face .btn:not(.btn-primary) { color: #F2F5FA; border-color: rgba(255,255,255,.25); background: transparent; }
.wxr-face .btn:not(.btn-primary):hover { background: rgba(255,255,255,.1); }
.wxr-play { min-width: 96px; }
.wxr-vol { margin-left: auto; display: inline-flex; align-items: center; }
.wxr-vol input { width: 130px; accent-color: #F2F5FA; }
.wxr-note { min-height: 1.3em; margin: 10px 0 0; color: rgba(242,245,250,.7); font-size: 14px; }
.wxr-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.wxr-tools select, .wxr-find input { min-height: 46px; padding: 0 14px; font: 16px Inter, system-ui, sans-serif; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 999px; }
.wxr-tools select { flex: 1 1 240px; }
.wxr-find { display: flex; gap: 8px; flex: 1 1 320px; }
.wxr-find input { flex: 1; min-width: 0; }
.wxr-credit, .wxr-warn { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.wxr-credit a { color: inherit; text-decoration: underline; }
.wxr-rec-head { margin-top: 10px; }
@media (max-width: 600px) { .wxr-vol { margin-left: 0; width: 100%; } .wxr-vol input { width: 100%; } .wxr-knobs .btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .wxr.is-on .wxr-bars i { animation: none; height: 12px; } }

/* Sounds menu: link to the Sounds page (live weather radio and recordings) */
.snd-more { display: flex; flex-direction: column; gap: 2px; margin: 10px -4px 0; padding: 10px 12px; border-radius: 10px; background: var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.snd-more::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F0343C; margin-bottom: 4px; box-shadow: 0 0 0 3px rgba(240,52,60,.18); }
.snd-more span { color: var(--muted); font-size: 13px; }
.snd-more:hover { text-decoration: none; filter: brightness(1.15); }
/* Quiet weather buttons (radio.html) */
.loops { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 10px 0 8px; }
.loop { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card, transparent); color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.loop strong { font-size: 16px; }
.loop span { color: var(--muted); font-size: 13px; }
.loop:hover { background: var(--line); }
.loop[aria-pressed="true"] { border-color: var(--text); }
.loop:focus-visible { outline: 2px solid #7CC0FF; outline-offset: 2px; }

.wx-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0; }
.wx-find input { flex: 1 1 280px; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--field); color: var(--text); font: 16px Inter, system-ui, sans-serif; }
.wx-find-note { flex-basis: 100%; color: var(--muted); font-size: 13px; min-height: 1em; }

.wx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.wx-actions:empty { display: none; }
.week-box { margin: 6px 0 26px; }

/* Creators-first homepage (preview) */
.hero-start { text-decoration: none; }
.why-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.why-grid li { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.why-grid strong { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: 21px; }
.why-grid span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.creators-row { margin-top: 14px; }
.live-trio { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.live-trio a { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.live-trio img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 0 0 1px var(--border); }
.live-trio strong { font-size: 17px; }
.live-trio span { color: var(--muted); font-size: 14px; }
.live-trio a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.hero-sub { max-width: 36ch; line-height: 1.45; }
.hero-play[hidden] { display: none; }
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .why-grid li { padding: 13px 13px 15px; gap: 4px; border-radius: 12px; }
  .why-grid strong { font-size: 17px; }
  .why-grid span { font-size: 13.5px; line-height: 1.4; }
}
@media (max-width: 600px) {
  .live-trio { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; gap: 12px; }
  .live-trio li { scroll-snap-align: start; }
}

/* ---------- Storm page v2: the film first, every angle beside it (036) ---------- */
.storm-page .event-body { gap: 22px; }
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.st-head-words { min-width: 0; max-width: 820px; }
.inner .storm-page .st-head h1 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.025em; margin: 6px 0 6px; }
.st-live { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
.st-live span { width: 9px; height: 9px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.18); }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.st-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { height: 46px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap; }
.st-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.st-tab:hover { color: var(--text); }
.st-panel { display: flex; flex-direction: column; gap: 26px; }
.st-panel[hidden] { display: none; }
.st-watch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.st-watch[hidden] { display: none; }
.st-frame { position: relative; aspect-ratio: 16 / 9; background: #04070D; border-radius: 12px; overflow: hidden; }
.st-frame > img, .st-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-frame.is-photo .st-photo img { object-fit: contain; }
.st-frame mux-player { position: absolute; inset: 0; width: 100%; height: 100%; --media-object-fit: contain; }
.st-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; background: rgba(4, 7, 13, 0.72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.st-play:hover { background: rgba(4, 7, 13, 0.9); }
.st-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-top: 12px; }
.st-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-who > div { display: flex; flex-direction: column; min-width: 0; }
.st-name { font-weight: 700; font-size: 17px; color: var(--text); }
.st-when { color: var(--muted); font-size: 14px; }
.st-open { color: var(--muted); font-size: 14px; text-decoration: underline; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-side-head { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.st-angles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-angle { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-align: left; font: inherit; cursor: pointer; text-decoration: none; }
.st-angle:hover { border-color: var(--border); text-decoration: none; }
.st-angle[aria-pressed="true"] { border: 2px solid var(--accent); padding: 7px; background: var(--selected); }
.st-angle-pic { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #04070D; }
.st-angle-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-angle-pic .badge { right: 4px; bottom: 4px; font-size: 11px; padding: 1px 5px; }
.st-angle-words { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--muted); }
.st-angle-words strong { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-angle-add { border-style: dashed; }
.st-angle-plus { flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--muted); border: 1px dashed var(--border-soft); }
.st-empty { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.st-empty[hidden] { display: none; }
.st-empty-ask { padding: 32px; border-radius: 14px; background: #04070D; color: #F2F5FA; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 280px; }
.st-empty-ask h2 { font-family: inherit; font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.st-empty-ask p { color: #C9D3E1; margin: 0; max-width: 46ch; }
.st-sofar h3, .st-about h3 { font-family: inherit; font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.st-sofar ul, .st-facts { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text); }
.st-about { display: flex; flex-direction: column; gap: 14px; }
.st-more { display: flex; flex-wrap: wrap; gap: 10px; }
.st-radar { margin: 0; }
@media (max-width: 900px) {
  .st-watch { grid-template-columns: minmax(0, 1fr); }
  .st-angles { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .st-angles { scrollbar-width: none; }
  .st-angles li { flex: 0 0 150px; width: 150px; min-width: 0; scroll-snap-align: start; }
  .st-angle { min-width: 0; }
  .st-angle-words { width: 100%; }
  .st-angle-words strong { display: block; }
  .st-actions #event-share { flex: 0 0 auto; }
  .st-angle { flex-direction: column; align-items: stretch; gap: 6px; height: 100%; }
  .st-angle-pic, .st-angle-plus { width: 100%; }
  .st-empty { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .st-frame { border-radius: 8px; }
  .st-actions .btn { flex: 1 1 auto; }
}
/* Storms list (036) */
.storms-head h1 { font-family: Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; }
.storms-row { display: flex; flex-direction: column; gap: 12px; }
.storms-row[hidden] { display: none; }
.storms-row h2 { display: inline-flex; align-items: center; gap: 10px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.18); }
.st-card-live { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 999px; background: #FF4D4D; color: #fff; font-size: 12px; font-weight: 700; }
/* Upload: which storm, and where it goes (037) */
.up-storm { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--selected); }
.up-storm[hidden] { display: none; }
.up-storm-h { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0; }
.up-matches { display: flex; flex-direction: column; gap: 8px; }
.up-match, .up-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--panel); cursor: pointer; }
.up-match:has(input:checked), .up-choice:has(input:checked) { border: 2px solid var(--accent); padding: 11px; }
.up-match input, .up-choice input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.up-match > span, .up-choice > span { display: flex; flex-direction: column; gap: 2px; }
.up-match strong { font-size: 17px; }
.up-where { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.up-where legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.up-preview { margin: 0; font-size: 15px; }
/* Member channels: pills and cards (038) */
.ch-face { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--selected); color: var(--text); font-weight: 700; }
.ch-face img { width: 100%; height: 100%; object-fit: cover; }
.ch-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ch-pill:hover { border-color: var(--border); text-decoration: none; }
.ch-pill-words { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ch-pill-words strong { font-size: 15px; }
.ch-pill-words span { font-size: 13px; color: var(--muted); }
.ch-section { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.ch-section[hidden], .ch-library-head[hidden] { display: none; }
.ch-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ch-card a { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; height: 100%; }
.ch-card-pic { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--selected); }
.ch-card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-card-row { display: flex; align-items: center; gap: 10px; }
.ch-card-start a { border: 1px dashed var(--border); border-radius: 12px; padding: 16px; justify-content: center; }
.ch-plus { font-size: 30px; line-height: 1; color: var(--muted); }
/* Homepage v2: the film first (039) */
.h2-page { max-width: 1280px; margin: 0 auto; padding: 34px 48px 56px; display: flex; flex-direction: column; gap: 44px; }
.h2-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.inner .h2-top h1 { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.035em; max-width: 16ch; margin: 0; }
.h2-sub { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.h2-explore { min-height: 48px; padding: 0 26px; font-size: 16px; }
.h2-feature[hidden] { display: none; }
.h2-storm-line { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.h2-storm-line a { color: var(--text); text-decoration: underline; }
.st-side[hidden] { display: none; }
.h2-feature .st-watch:has(.st-side[hidden]) { grid-template-columns: minmax(0, 1fr); }
.h2-row { display: flex; flex-direction: column; gap: 14px; }
.h2-row[hidden] { display: none; }
.h2-row .row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h2-page .film-grid.h2-latest { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.h2-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-pill-start { border-style: dashed; }
.h2-storm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.h2-storm-list li { border-bottom: 1px solid var(--line); }
.h2-storm-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; color: var(--text); text-decoration: none; }
.h2-storm-list a:hover { background: var(--panel); }
.h2-storm-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.h2-storm-count { color: var(--muted); white-space: nowrap; }
.h2-storm-count.is-first { color: var(--accent); }
.h2-archive-note { margin: 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 900px) {
  .h2-page .film-grid.h2-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .h2-page { padding: 20px 16px 96px; gap: 34px; }
  .h2-explore { width: 100%; }
  .h2-storm-list a { flex-direction: column; gap: 2px; }
}
.manage-page.storms-page { max-width: 1280px; }

/* Quieter angle lists: no box on each angle, names may wrap to two lines (040) */
.st-angle { border-color: transparent; background: transparent; }
.st-angle:hover { border-color: transparent; background: var(--panel); }
.st-angle[aria-pressed="true"] { border: 1px solid var(--border-soft); padding: 8px; background: var(--panel); box-shadow: inset 3px 0 0 var(--accent); }
.st-angle-words strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.st-angle-add { border: 1px dashed var(--border-soft); }
.h2-all { display: inline-block; margin-top: 10px; padding: 0 8px; font-weight: 600; color: var(--text); text-decoration: underline; }
.h2-feature .st-angle-pic { width: 128px; }
@media (max-width: 900px) {
  .st-angle[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
}

/* Learn menu: kinds of weather as plain words, two columns (041) */
.head-menu-head { margin: 8px 12px 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.head-menu-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mod-removed { margin-top: 4px; }
.mod-removed[hidden] { display: none; }
.mod-removed summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 8px 0; }
/* Follow beside the creator under the player; real faces on cards (042) */
.st-follow { min-height: 34px; padding: 0 14px; font-size: 14px; margin-left: 4px; }
.st-follow[aria-pressed="true"] { background: transparent; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h2-page .film-info .avatar { display: inline-flex; }

/* Encyclopedia: How big is it? (043) */
.wx-ladder { list-style: none; margin: 14px 0 6px; padding: 0; display: flex; flex-direction: column; }
.wx-ladder li + li { border-top: 1px solid var(--line); }
.wx-rung { display: grid; grid-template-columns: 56px minmax(150px, 220px) minmax(0, 1fr) 150px; align-items: center; gap: 18px; padding: 12px 6px; color: var(--text); text-decoration: none; border-radius: 10px; }
.wx-rung:hover { background: var(--panel); }
.wx-rung .wx-sc-pic { width: 56px; height: 56px; }
.wx-rung-words { display: flex; flex-direction: column; line-height: 1.3; }
.wx-rung-words strong { font-size: 17px; }
.wx-rung-size { font-size: 14px; }
.wx-rung-like { font-size: 13px; color: var(--muted); }
.wx-rung-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.wx-rung-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4DA8FF, #9B7BFF 60%, #FF6B6B); }
.wx-rung-life { font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 760px) {
  .wx-rung { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 12px; }
  .wx-rung .wx-sc-pic { width: 48px; height: 48px; grid-row: span 2; }
  .wx-rung-bar, .wx-rung-life { grid-column: 2; }
  .wx-rung-life { text-align: left; }
}

/* Encyclopedia: a smaller Entry of the week (044) */
.wx-week { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.wx-week-pic { border-radius: 10px; }
.wx-week h2 { font-size: 26px; margin: 2px 0 6px; }
.wx-week p { font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.wx-week .wx-kicker { margin: 0; }
@media (max-width: 760px) { .wx-week { grid-template-columns: 1fr; } }

/* Encyclopedia: Entry of the week beside the title, a short wide card (045) */
.wx-front-top { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 48px; align-items: center; }
.wx-front-top > .wx-week { justify-self: end; width: 100%; max-width: 560px; }
.wx-front-top .wx-week { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 14px; align-items: center; }
.wx-front-top .wx-week-pic { aspect-ratio: 4 / 3; width: 100%; height: auto; min-width: 0; }
.wx-front-top .wx-week h2 { font-size: 24px; margin: 0 0 6px; }
.wx-front-top .wx-week p { font-size: 15px; line-height: 1.45; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-front-top .wx-week .wx-kicker { margin: 0 0 2px; -webkit-line-clamp: unset; display: block; }
.wx-front-top .wx-week .btn { min-height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 1000px) { .wx-front-top { grid-template-columns: 1fr; gap: 18px; } .wx-front-top .wx-week { max-width: 520px; justify-self: start; } }
@media (max-width: 420px) { .wx-front-top .wx-week { grid-template-columns: 110px minmax(0, 1fr); } }

/* Encyclopedia charts per topic (046) */
.wx-rung-dot { display: block; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4DA8FF33, transparent 70%), var(--panel); border: 2px solid var(--border-soft); }
div.wx-rung:hover { background: transparent; }
.wx-rung-bar i { min-width: 6px; }
.wx-rung-bar.is-off i { background: linear-gradient(90deg, #9B7BFF, #FF6B6B); }
.wx-rung-bar.is-off { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
@media (max-width: 760px) { .wx-rung-dot { width: 48px; height: 48px; } }

/* Storm page: What it did (047) */
.st-toll { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.st-toll[hidden] { display: none; }
.st-toll h2 { font-family: inherit; font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.st-toll-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; margin: 0; }
.st-toll-list dt { color: var(--muted); }
.st-toll-list dd { margin: 0; font-weight: 600; }
.st-toll-source { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.st-toll-source a { color: var(--text); }
.st-edit-facts[hidden] { display: none; }
.st-edit-facts summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.st-facts-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 10px; }
.st-facts-form .btn, .st-facts-form .form-message { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) { .st-facts-form { grid-template-columns: 1fr; } }

/* Film and photo notes: no stray indent on added rows (048) */
.film-notes dd, .photo-facts dd, .film-notes dl dd { margin-left: 0; }
.room-new summary { cursor: pointer; font-weight: 600; color: var(--muted); } .room-new[open] summary { margin-bottom: 12px; }

/* 049 phone pass: empty moderation queues fold away; long import chips wrap */
.mod-q:has(> .empty:not([hidden])) { display: none; }
.mod-clear { display: none; padding: 14px 16px; border: 1px solid var(--border-soft, var(--line)); border-radius: 12px; color: var(--muted, inherit); }
.manage-page:has(.mod-q):not(:has(.mod-q > .empty[hidden])) .mod-clear { display: block; }
.source-chip[aria-pressed] { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; }
/* 050 phone: homepage Latest cards stay tidy with long archive titles */
@media (max-width: 560px) {
  .h2-page .h2-latest .film-info .avatar { display: none; }
  .h2-page .h2-latest .film-title, .h2-page .h2-latest .film-meta { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .h2-page .h2-latest .film-title { -webkit-line-clamp: 3; }
  .h2-page .h2-latest .film-meta { -webkit-line-clamp: 2; }
}

/* 051 entry: hero picture no taller than 460px on big screens */
@media (min-width: 900px) { .wx-hero { aspect-ratio: auto; height: min(460px, 42vw); } }
/* 052 pages that once sat beside a side menu now line up in the middle like the rest */
.layout-content > .search-page, .layout-content > .channel-page, .layout-content > .manage-page { margin-left: auto; margin-right: auto; }
.room-new { display: block; }
.room-new[hidden] { display: none; }
.room-new:not([open]) > :not(summary) { display: none; }

/* 053 homepage film: first frame first, then a soft fade into the moving film */
.st-frame > .st-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 2; opacity: 1; transition: opacity 0.8s ease; pointer-events: none; background: #04070D; }
.st-frame > .st-still.is-gone { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .st-frame > .st-still { transition: none; } }

/* 054 one weather question on Upload and Edit film: the tick boxes, then exact names as a fold */
.weather-picks .wx-pick { margin-top: 6px; }
.weather-picks .wx-pick-all summary { font-size: 14px; color: var(--muted); cursor: pointer; }

/* 055 homepage: storms going on now, at the top, before anyone has filmed them */
.h2-now { display: flex; flex-direction: column; gap: 8px; }
.h2-now[hidden] { display: none; }
.h2-now-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid rgba(240, 52, 60, 0.35); background: rgba(240, 52, 60, 0.07); border-radius: 14px; }
.h2-now-tag { display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; }
.h2-now-tag.is-live { color: #F0343C; }
.h2-now-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.h2-now-title { font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.h2-now-title:hover { text-decoration: underline; }
.h2-now-place { color: var(--muted); font-size: 14px; }
.h2-now-add { white-space: nowrap; }
@media (max-width: 640px) {
  .h2-now-row { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
  .h2-now-words { flex-basis: 100%; order: 2; }
  .h2-now-add { order: 3; width: 100%; justify-content: center; }
}

.nav-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #F0343C; margin-left: 6px; vertical-align: 2px; animation: now-pulse 2s infinite; }
.tab-bar a { position: relative; }
.tab-bar .nav-live { position: absolute; top: 6px; left: calc(50% + 8px); margin: 0; }
@media (prefers-reduced-motion: reduce) { .nav-live { animation: none; } }

/* 056 homepage top slot: live radar for today's storm, or the whole US when it is quiet */
.st-frame.is-radar { background: #0B1220; }
.h2-radar { position: absolute; inset: 0; }
.h2-radar-tag { position: absolute; left: 12px; top: 12px; z-index: 500; display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: rgba(4, 7, 13, 0.78); color: #fff; font-size: 13px; font-weight: 600; }
.st-frame.is-radar .leaflet-control-zoom { margin-top: 48px; }
.h2-radar-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.h2-radar-title { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
a.h2-radar-title:hover { text-decoration: underline; }
.st-frame.is-radar { isolation: isolate; z-index: 0; }
/* 057 storm bar: on every page while a storm is happening (or in the last 3 hours) */
.storm-bar { border-bottom: 1px solid rgba(240, 52, 60, 0.28); background: linear-gradient(90deg, rgba(240, 52, 60, 0.14), rgba(240, 52, 60, 0.04) 60%, transparent); }
.storm-bar:not(.is-live) { border-bottom-color: var(--border-soft, var(--line)); background: var(--panel); }
.storm-bar-in { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.storm-bar-tag { display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.storm-bar.is-live .storm-bar-tag { color: #F0343C; }
.storm-bar-words { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; min-width: 0; flex: 1 1 260px; }
.storm-bar-title { font-weight: 700; color: var(--text); text-decoration: none; }
.storm-bar-title:hover { text-decoration: underline; }
.storm-bar-sub { color: var(--muted); font-size: 14px; }
.storm-bar-radio { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.storm-bar-radio[hidden] { display: none; }
.storm-bar-station strong { color: var(--text); font-weight: 600; }
.storm-bar-listen { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; border: 0; background: #F0343C; color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.storm-bar:not(.is-live) .storm-bar-listen { background: var(--text); color: var(--bg); }
.storm-bar-listen[aria-pressed="true"] { background: transparent; color: #F0343C; box-shadow: inset 0 0 0 1.5px #F0343C; }
.storm-bar-add { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.storm-bar-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; margin-left: auto; }
.storm-bar-close:hover { background: rgba(127, 127, 127, 0.15); color: var(--text); }
@media (max-width: 640px) {
  .storm-bar-in { padding: 10px 16px; gap: 6px 12px; }
  .storm-bar-words { flex-basis: calc(100% - 44px); order: 1; }
  .storm-bar-tag { order: 0; }
  .storm-bar-close { order: 0; margin-left: auto; }
  .storm-bar-radio { order: 2; flex-wrap: wrap; }
  .storm-bar-add { order: 3; }
}
@media (max-width: 640px) {
  .storm-bar-radio, .storm-bar-add { order: 2; }
  .storm-bar-station strong { display: none; }
  .storm-bar-in { padding: 8px 16px 10px; }
}

/* 058 storm cards with no footage yet: the radar around the storm */
.film-thumb.is-radar { background: #dfe6ec; }
.film-thumb.is-radar .st-card-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-thumb.is-radar .st-card-map + .st-card-map { opacity: 0.8; }
.film-thumb.is-radar { aspect-ratio: 16 / 9; }
.film-thumb.is-radar .st-card-map { aspect-ratio: auto; }

.film-thumb.is-radar .st-card-tiles { position: absolute; width: 150%; height: 266.667%; }
.film-thumb.is-radar .st-card-tile { position: absolute; width: 50%; height: 50%; }
.film-thumb.is-radar .st-card-tile img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill; }
.film-thumb.is-radar .st-card-tile img + img { opacity: 0.8; }
.film-thumb.is-radar .st-card-pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #E5484D; border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(229, 72, 77, 0.25); }

/* 059 homepage radar: short enough on laptops to read the words under it without scrolling */
.h2-radar-note { color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 68ch; margin-top: 2px; }
@media (min-width: 761px) {
  .st-frame.is-radar { aspect-ratio: auto; height: clamp(280px, calc(100vh - 430px), 520px); }
}

/* 060 homepage storm callout: a storm nobody has posted from yet takes the top, words and radar side by side */
.h2-page.is-storm .h2-top { display: none; }
.h2-alert[hidden] { display: none; }
.h2-alert { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h2-alert-tag { display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.h2-alert-tag.is-live { color: #F0343C; }
.h2-alert-title { margin: 0; font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.h2-alert-title a { color: var(--text); text-decoration: none; }
.h2-alert-title a:hover { text-decoration: underline; }
.h2-alert-where { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }
.h2-alert-what, .h2-alert-ask { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.h2-alert-ask { color: var(--text); }
.h2-alert-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.h2-alert-safe { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 56ch; }
@media (min-width: 900px) {
  .h2-page.is-storm .h2-feature { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 32px; align-items: center; }
  .h2-page.is-storm .st-frame.is-radar { height: clamp(320px, calc(100vh - 190px), 590px); }
}
.h2-page:not(.is-ready) .h2-top { visibility: hidden; }
.h2-alert-more { margin: 0; font-size: 14px; color: var(--muted); }
.h2-alert-more a { color: var(--text); font-weight: 600; }

/* 061 homepage: your area line under the top slot */
.h2-area { margin: -14px 0 0; font-size: 13px; color: var(--muted); }
.h2-area a:not(.btn) { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.h2-area a:not(.btn):hover { color: var(--text); }

/* 062 storm page with no footage: live radar on top */
.st-empty-radar { grid-column: 1 / -1; position: relative; height: clamp(260px, 42vh, 440px); border-radius: 14px; overflow: hidden; isolation: isolate; background: #0B1220; }
.st-empty-map { position: absolute; inset: 0; }
.st-empty-radar .h2-radar-tag { position: absolute; left: 12px; top: 12px; z-index: 500; }
.st-empty-radar .leaflet-control-zoom { margin-top: 48px; }
.st-empty-radar .leaflet-top .leaflet-control-zoom { margin-top: 48px; }
.h2-radar-note a { color: var(--text); }
@media (min-width: 761px) { .h2-page:not(.is-storm) .st-frame.is-radar { height: clamp(290px, calc(100vh - 490px), 510px); } }

/* 063 homepage: live camera in the radar's corner, and the storm alerts ask */
.h2-cam { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; width: min(300px, 46%); border-radius: 12px; overflow: hidden; background: #04070D; color: #fff; text-decoration: none; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.h2-cam img { display: block; width: 48%; aspect-ratio: 4 / 3; object-fit: cover; }
.h2-cam-cap { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; min-width: 0; font-size: 12px; }
.h2-cam-live { display: inline-flex; align-items: center; font-weight: 700; color: #FF6B70; }
.h2-cam-live .live-dot { width: 7px; height: 7px; margin-right: 6px; }
.h2-cam-name { font-weight: 600; font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.h2-cam-by { color: #9AA6B8; font-size: 11px; }
.h2-cam:hover .h2-cam-name { text-decoration: underline; }
@media (max-width: 640px) { .h2-cam { width: calc(100% - 24px); } .h2-cam img { width: 38%; } }
.h2-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0; padding: 14px 18px; border: 1px solid var(--border-soft, var(--line)); border-radius: 14px; background: var(--panel); font-size: 15px; color: var(--muted); }
.h2-ask-words strong { color: var(--text); }
.h2-ask .btn { white-space: nowrap; }

/* 064 storm page: Stay safe */
.st-safety[hidden] { display: none; }
.st-safety { margin: 4px 0 18px; }
.safe { border: 1px solid var(--border-soft, var(--line)); border-radius: 14px; background: var(--panel); }
.safe.is-live { border-color: rgba(240, 52, 60, 0.45); background: linear-gradient(180deg, rgba(240, 52, 60, 0.08), var(--panel) 120px); }
.safe-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.safe-head::-webkit-details-marker { display: none; }
.safe-head::after { content: "Show"; margin-left: auto; font-size: 13px; color: var(--muted); }
.safe[open] .safe-head::after { content: "Hide"; }
.safe-title { font-weight: 700; font-size: 18px; }
.safe.is-live .safe-title { color: #F0343C; }
.safe-sub { color: var(--muted); font-size: 15px; }
.safe-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 32px; padding: 0 18px 18px; }
.safe-note { grid-column: 1 / -1; margin: 0 0 6px; font-size: 14px; color: var(--text); font-weight: 600; }
.safe-col h3 { font-size: 15px; font-weight: 700; margin: 12px 0 6px; }
.safe-col h3:first-child { margin-top: 0; }
.safe-col p, .safe-col li { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; }
.safe-col ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.safe-col li { color: var(--text); }
.safe-col a { color: var(--text); }
.safe-src { margin-top: 10px !important; font-size: 13px !important; }
@media (max-width: 760px) { .safe-body { grid-template-columns: minmax(0, 1fr); } }
/* 065 phone pass of the new storm pieces */
.storm-area-form .field select { width: 100%; min-height: 46px; padding: 0 14px; font: 400 16px/1.2 Inter, system-ui, sans-serif; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 6px; }
.storm-area-form { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
  /* Words under the radar take the full width; the button goes under them. */
  .st-credit:has(.h2-radar-words) { flex-direction: column; align-items: stretch; }
  .h2-radar-words { flex: 1 1 auto; }
  .st-credit:has(.h2-radar-words) .btn { align-self: flex-start; }
  /* A taller map, and a slim camera strip along its bottom. */
  .st-frame.is-radar { aspect-ratio: 4 / 3.6; }
  .h2-cam { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .h2-cam img { width: 30%; aspect-ratio: 16 / 10; }
  .h2-cam-cap { padding: 6px 10px; }
  .h2-cam-by { display: none; }
  .st-frame.is-radar .leaflet-control-attribution { font-size: 9px; }
  .h2-cam { bottom: 22px; }
}

/* 066 weather map: the story card (place, live camera, links) */
.wx-spot { position: absolute; right: 12px; top: 12px; z-index: 800; width: min(320px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: rgba(4, 7, 13, 0.9); color: #F2F5FA; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }
.wx-spot-title { font-size: 16px; font-weight: 700; line-height: 1.25; }
.wx-spot-where { font-size: 14px; color: #C9D3E1; }
.wx-spot-where:empty { display: none; }
.wx-spot-cam { display: flex; flex-direction: column; gap: 4px; color: #C9D3E1; text-decoration: none; font-size: 12px; }
.wx-spot-cam[hidden] { display: none; }
.wx-spot-cam img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.wx-spot-cam:hover span { text-decoration: underline; }
.wx-spot-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wx-spot-acts .btn { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.wx-spot-acts .btn:not(.btn-primary) { color: #F2F5FA; border-color: rgba(255, 255, 255, 0.35); background: transparent; }
@media (max-width: 640px) { .wx-spot { top: auto; bottom: 12px; right: 12px; left: 12px; width: auto; } .wx-spot-cam img { aspect-ratio: 21 / 9; } }
.wx-spot { top: 50px; }
@media (max-width: 640px) { .wx-spot { top: auto; } }

/* 067 storm page: what's it like there now */
.st-near[hidden] { display: none; }
.st-near { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--border-soft, var(--line)); border-radius: 14px; background: var(--panel); }
.st-near-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.st-near h2 { margin: 0; font-size: 18px; font-weight: 700; }
.st-near-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); max-width: 60ch; }
.st-near-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-near-list:empty { display: none; }
.st-near-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-soft, var(--line)); font-size: 14px; }
.st-near-list li span { color: var(--muted); font-size: 13px; }

/* 068 homepage: what people near the storm say; Storms list recaps */
.h2-people { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 56ch; }
.h2-people strong { color: var(--text); font-weight: 600; }
.h2-people a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.h2-people-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3B9EFF; transform: translateY(-1px); }
.h2-radar-words .h2-people { font-size: 14px; }
.st-card-recap { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-empty-follow { font-size: 14px; color: var(--muted); }

/* 069 homepage first load: the top slot keeps its place (a dark 16:9 frame) from the first moment,
   and the rows under it wait with it, so "Browse by weather" never flashes at the top. */
.h2-page:not(.is-ready) .h2-feature ~ section { visibility: hidden; }


/* 071 Weather map: the forecast for what the map shows, top right (National Weather Service) */
.wx-top { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "find" "fc" "acts"; column-gap: 32px; }
.wx-top .wx-actions { grid-area: acts; align-self: start; margin: 0; }
.wx-top .wx-fc { margin-bottom: 14px; }
.wx-head { grid-area: head; }
.wx-top .wx-find { grid-area: find; align-self: start; }
.wx-fc { grid-area: fc; }
@media (min-width: 961px) {
  .wx-top:has(.wx-fc:not([hidden])) { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto auto 1fr; grid-template-areas: "head fc" "find fc" "acts fc"; }
  .wx-top:has(.wx-fc:not([hidden])) .wx-actions { justify-content: flex-start; }
  .wx-top .wx-fc { margin-bottom: 0; }
}
.wx-fc[hidden] { display: none; }
.wx-fc { padding: 16px 18px 14px; border: 1px solid var(--border-soft, var(--line)); border-radius: 14px; background: var(--panel); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wx-fc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.wx-fc-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.wx-fc-near { color: var(--muted); font-size: 14px; }
.wx-fc-alert { margin: 0; padding: 7px 10px; border-radius: 8px; background: rgba(229, 72, 77, 0.14); border: 1px solid rgba(229, 72, 77, 0.45); font-size: 14px; }
.wx-fc-alert strong { color: #FF6B6F; }
html[data-theme="light"] .wx-fc-alert strong { color: #C21F25; }
.wx-fc-now { display: flex; align-items: center; gap: 14px; margin: 0; }
.wx-fc-temp { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.wx-fc-words { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.wx-fc-words strong { font-size: 15px; }
.wx-fc-words span { color: var(--muted); }
.wx-fc-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.wx-fc-hours li { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; }
.wx-fc-hr { color: var(--muted); white-space: nowrap; }
.wx-fc-bar { position: relative; width: 100%; max-width: 34px; height: 34px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.wx-fc-bar span { position: absolute; left: 0; right: 0; bottom: 0; background: #3B9EFF; border-radius: 0 0 6px 6px; }
.wx-fc-pc { font-weight: 600; }
.wx-fc-t { color: var(--muted); }
.wx-fc-day { margin: 0; font-size: 14px; line-height: 1.45; }
.wx-fc-src { font-size: 13px; color: var(--accent); font-weight: 600; }

/* 072 weather radio rows: map forecast box and homepage quiet radar */
.wx-fc-radio, .h2-radio { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border-soft, var(--line)); font-size: 13px; color: var(--muted); }
.wx-fc-radio strong, .h2-radio strong { color: var(--text); font-weight: 600; }
.wof-listen { flex: none; min-height: 34px; padding: 0 14px; font-size: 14px; }
.wof-listen[aria-pressed="true"] { background: #E5484D; border-color: #E5484D; color: #fff; }
.h2-radio { margin: 6px 0 2px; max-width: 520px; }

/* 073 storm page: what people say + the forecast, side by side while the storm is on */
.st-now { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0 0 18px; }
.st-now .st-near { margin: 0; }
.st-now:not(:has(> :not([hidden]))) { display: none; }
@media (min-width: 961px) { .st-now:has(.st-fc:not([hidden])) { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }

/* 074 storm page top: Stay safe and What's it like there now on the left, the forecast on the right */
.st-now .st-safety { grid-area: safe; margin: 0; }
.st-now .st-near { grid-area: near; }
.st-now .st-fc { grid-area: fc; }
.st-now { grid-template-areas: "safe" "near" "fc"; }
@media (min-width: 961px) {
  .st-now:has(.st-fc:not([hidden])) { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr; grid-template-areas: "safe fc" "near fc"; align-items: start; }
}

/* 075 Storm sounds: live weather radio that follows the visitor, a pill in the top bar */
.ss-pill { display: inline-flex; align-items: center; height: 40px; border-radius: 999px; border: 1px solid rgba(229, 72, 77, 0.55); background: rgba(229, 72, 77, 0.12); overflow: hidden; flex: none; }
.ss-main { display: inline-flex; align-items: center; gap: 9px; height: 100%; padding: 0 6px 0 14px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; }
.ss-words { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.ss-words strong { font-size: 13px; font-weight: 700; }
.ss-station { font-size: 11px; color: var(--muted); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.ss-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ss-bars i { width: 3px; border-radius: 1px; background: #FF5A5F; height: 30%; }
.ss-pill.is-playing .ss-bars i { animation: snd-bar 1.1s ease-in-out infinite; height: 60%; }
.ss-bars i:nth-child(2) { animation-delay: -0.35s; } .ss-bars i:nth-child(3) { animation-delay: -0.7s; } .ss-bars i:nth-child(4) { animation-delay: -0.15s; }
.ss-pill.is-paused { border-color: var(--border); background: transparent; }
.ss-pill.is-paused .ss-bars i { background: var(--muted); }
.ss-x { height: 100%; padding: 0 12px 0 6px; background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ss-x:hover, .ss-main:hover strong { color: var(--text); }
.ss-main:focus-visible, .ss-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 999px; }
@media (max-width: 760px) {
  .ss-pill { height: 36px; }
  .ss-main { padding-left: 11px; gap: 7px; }
  .ss-words strong { font-size: 12px; }
  .ss-station { max-width: 90px; font-size: 10px; }
}
@media (max-width: 400px) { .ss-station { display: none; } }
@media (prefers-reduced-motion: reduce) { .ss-pill.is-playing .ss-bars i { animation: none; } }

/* 076 homepage radar loop: frames cross-fade so the rain moves smoothly */
@media (prefers-reduced-motion: reduce) { .h2-frame { transition: none; } }

/* 077 homepage: radio box and Open the weather map on one line */
.h2-listen-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 2px; }
.h2-listen-line .h2-radio { margin: 0; flex: 0 1 auto; }
.h2-listen-line #h2-open-map { flex: none; }

/* 078 where the live data comes from (names and links, no logos) */
.footer-sources { flex-basis: 100%; margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.footer-sources a, .h2-sources a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }
.footer-sources a:hover, .h2-sources a:hover { color: var(--text); }
.h2-sources { margin: -6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 90ch; }
.h2-page:not(.is-ready) .h2-sources { visibility: hidden; }
.site-footer .footer-sources a { display: inline; min-height: 0; padding: 0; }

/* 079 storm replay: the radar from start to finish */
.st-replay[hidden] { display: none; }
.st-replay { margin: 0 0 24px; }
.rp-wrap { position: relative; border-radius: 12px; overflow: hidden; isolation: isolate; }
.rp-map { height: clamp(300px, 52vh, 520px); background: #0B1220; }
.rp-tag { position: absolute; left: 12px; top: 12px; z-index: 500; }
.rp-tag.is-loading { opacity: 0.8; }
.rp-wrap .leaflet-control-zoom { margin-top: 48px; }
.rp-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.rp-play { flex: none; min-width: 84px; }
.rp-step { flex: 1; min-width: 0; accent-color: #3B9EFF; }
.rp-when { flex: none; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); min-width: 92px; text-align: right; }
.rp-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.st-empty-replay { margin-bottom: 16px; }

/* 080 share kit (moderators) on storm pages */
.st-kit[hidden] { display: none; }
.st-kit { margin: 0 0 18px; padding: 12px 16px; border: 1px dashed var(--border); border-radius: 12px; }
.st-kit summary { cursor: pointer; font-weight: 700; }
.st-kit summary span { font-weight: 400; color: var(--muted); font-size: 14px; }
.st-kit-pics { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; align-items: flex-end; }
.st-kit-pic { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.st-kit-pic img { height: 180px; width: auto; border-radius: 8px; border: 1px solid var(--border-soft, var(--line)); background: #0B111C; }
.st-kit-pic strong { color: var(--text); }
.st-kit-cap textarea { width: 100%; font: 400 14px/1.5 Inter, system-ui, sans-serif; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; resize: vertical; }

/* 081 posting from the storm: quick upload */
.up-quick-film[hidden] { display: none; }
.up-quick-film { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.up-film-now, .up-pick { min-height: 56px; font-size: 17px; padding: 0 22px; }
.up-film-now { flex: 1 1 180px; }
.up-pick { flex: 1 1 140px; }
.up-chosen { flex-basis: 100%; margin: 0; }
.upload-page form.is-quick [data-more], .upload-page form.is-quick .up-file { display: none; }
.up-here { margin-top: 8px; align-self: flex-start; }
.up-more-btn { align-self: flex-start; }
.up-here { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* 082 storm page: live timeline */
.st-feed[hidden] { display: none; }
.st-feed { margin: 0 0 22px; }
.st-feed-list { list-style: none; margin: 8px 0 0; padding: 0 0 0 4px; border-left: 2px solid var(--border-soft, var(--line)); }
.st-feed-list li { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 8px 0 8px 16px; }
.st-feed-list li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); border: 2px solid var(--bg); }
.st-feed-list li.is-warning::before { background: #E5484D; }
.st-feed-list li.is-warning.is-ended::before { background: var(--muted); }
.st-feed-list li.is-report::before { background: #3B9EFF; }
.st-feed-list li.is-film::before { background: #F5A524; }
.st-feed-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; padding-top: 1px; }
.st-feed-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.st-feed-words span { color: var(--muted); font-size: 14px; }
.st-feed-words a { font-weight: 600; }
.st-feed-more { margin-top: 6px; }
@media (max-width: 760px) { .st-feed-list li { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; } }
.st-feed-more { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* 083 add to home screen nudge (phones, from the second visit) */
.app-nudge { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 900; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.app-nudge img { flex: none; border-radius: 10px; }
.app-nudge-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.app-nudge-words strong { color: var(--text); font-size: 14px; }
.app-nudge-add { flex: none; min-height: 38px; padding: 0 16px; }
.app-nudge-x { flex: none; align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 4px; cursor: pointer; }

/* 084 flowing wind toggle on the Weather map */
.wx-wind-btn[aria-pressed="true"] { border-color: rgba(77, 168, 255, 0.6); color: #4DA8FF; }
.velocity-overlay { pointer-events: none; }

/* 085 maps follow the site's light/dark setting: dark street map in dark mode, like the Weather map */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map-base { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.9) saturate(.5); }
}
:root[data-theme="dark"] .map-base { filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.9) saturate(.5); }

/* 087 Weather map top: a shorter search, and a wide, low forecast beside it */
.wx-fc-cols, .wx-fc-a, .wx-fc-b, .wx-fc-foot { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 961px) {
  .wx-top:has(.wx-fc:not([hidden])) { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .wx-top .wx-fc { gap: 8px; padding: 14px 18px; }
  .wx-top .wx-fc-cols { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 8px 22px; align-items: start; }
  .wx-top .wx-fc-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .wx-top .wx-fc-foot .wx-fc-radio { flex: 1 1 280px; padding: 6px 10px; }
  .wx-top .wx-fc-day { font-size: 13.5px; }
  .wx-top .wx-fc-bar { height: 26px; }
  .wx-top .wx-fc-temp { font-size: 34px; }
}

/* 088 Weather map stays under the sticky top bar: its layers (radar, wind, time pill) stack
   inside the map box only. */
.wx-set { isolation: isolate; z-index: 0; }

/* 089 Weather map "Right now" buttons */
.wx-now[hidden] { display: none; }
.wx-now { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 0 0 12px; }
.wx-now-label { align-self: center; font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.wx-now-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.wx-now-btn strong { font-size: 14px; }
.wx-now-btn span { font-size: 12.5px; color: var(--muted); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-now-btn[aria-pressed="true"] { border-color: #4DA8FF; box-shadow: inset 0 0 0 1px #4DA8FF; }
.wx-now-btn:disabled { opacity: 0.45; cursor: default; }
.wx-now-btn:not(:disabled):hover { border-color: var(--muted); }
@media (max-width: 760px) {
  .wx-now { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
  .wx-now-label { display: none; }
  .wx-now-btn { flex: none; }
}

/* 090 Storm radio: the weather where the station is, on the radio's screen */
.wxr-wx { min-height: 1.3em; margin-top: 8px; font-size: clamp(19px, 2.6vw, 24px); line-height: 1.25; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wxr-wx-alert { color: #FFC857; text-shadow: 0 0 8px rgba(255,200,87,.45); }

/* 091 Storm radio: next 5 days on the radio's screen */
.wxr-days { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed rgba(124,255,154,.25); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wxr-days:empty { display: none; }
.wxr-days li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wxr-day-name { font-size: 18px; opacity: .75; }
.wxr-day-temp { font-size: clamp(22px, 3vw, 30px); line-height: 1; }
.wxr-day-sky { font-size: 17px; line-height: 1.1; opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 560px) {
  .wxr-days { grid-template-columns: 1fr; gap: 4px; }
  .wxr-days li { flex-direction: row; align-items: baseline; gap: 12px; }
  .wxr-day-name { width: 3.2em; flex: none; }
  .wxr-day-temp { font-size: 22px; width: 4.6em; flex: none; }
  .wxr-day-sky { -webkit-line-clamp: 1; }
}

/* 092 Storm radio "Right now" buttons (same look as the Weather map's) */
.wxr-now { margin: 14px 0 4px; }
