/* ============================================================
   Kerr Lake Level — Premium Design System
   ============================================================ */

/* ---------- Design tokens (dark = default) ---------- */
:root {
  --bg-base:        #0B1120;
  --bg-surface:     #111827;
  --bg-elevated:    #1E293B;

  --text-primary:   #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary:  #64748B;

  --border-subtle:  rgba(148, 163, 184, 0.08);
  --border-strong:  rgba(148, 163, 184, 0.14);

  --accent-400:     #22D3EE;
  --accent-500:     #06B6D4;
  --accent-600:     #0891B2;
  --accent-glow:    rgba(34, 211, 238, 0.35);

  --status-good:        #34D399;
  --status-good-bg:     rgba(52, 211, 153, 0.10);
  --status-warn:        #FBBF24;
  --status-warn-bg:     rgba(251, 191, 36, 0.10);
  --status-danger:      #F87171;
  --status-danger-bg:   rgba(248, 113, 113, 0.10);
  --status-info:        #60A5FA;
  --status-info-bg:     rgba(96, 165, 250, 0.12);

  --card-bg:        rgba(30, 41, 59, 0.5);
  --card-border:    rgba(148, 163, 184, 0.08);
  --card-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 4px 24px rgba(0, 0, 0, 0.25);
  --card-shadow-hover:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 12px 40px rgba(0, 0, 0, 0.35);

  --skeleton-base:  rgba(148, 163, 184, 0.08);
  --skeleton-shine: rgba(148, 163, 184, 0.18);

  --radius-xl:  20px;
  --radius-lg:  16px;
  --radius-md:  12px;
  --radius-sm:  8px;

  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:     0.18s var(--ease);
  --t-base:     0.3s var(--ease);
  --t-slow:     0.6s var(--ease);

  --maxw:       min(92vw, 1400px);
}

/* ---------- Light mode ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --bg-base:        #F8FAFC;
    --bg-surface:     #FFFFFF;
    --bg-elevated:    #F1F5F9;

    --text-primary:   #0F172A;
    --text-secondary: #475569;
    --text-tertiary:  #64748B;

    --border-subtle:  rgba(15, 23, 42, 0.06);
    --border-strong:  rgba(15, 23, 42, 0.10);

    --accent-400:     #0891B2;
    --accent-500:     #0E7490;
    --accent-600:     #155E75;
    --accent-glow:    rgba(8, 145, 178, 0.25);

    --status-good-bg:     rgba(16, 185, 129, 0.10);
    --status-warn-bg:     rgba(217, 119, 6, 0.10);
    --status-danger-bg:   rgba(220, 38, 38, 0.10);
    --status-info-bg:     rgba(37, 99, 235, 0.10);
    --status-good:        #059669;
    --status-warn:        #B45309;
    --status-danger:      #DC2626;
    --status-info:        #2563EB;

    --card-bg:        #FFFFFF;
    --card-border:    rgba(15, 23, 42, 0.06);
    --card-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 8px 24px rgba(15, 23, 42, 0.06);
    --card-shadow-hover:
      0 2px 4px rgba(15, 23, 42, 0.06),
      0 16px 40px rgba(15, 23, 42, 0.10);

    --skeleton-base:  rgba(15, 23, 42, 0.06);
    --skeleton-shine: rgba(15, 23, 42, 0.12);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
a { color: var(--accent-400); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-500); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Aurora background (dark mode) ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 40%, rgba(99, 102, 241, 0.08), transparent 60%);
}
@media (prefers-color-scheme: light) {
  .bg-aurora {
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(14, 165, 233, 0.10), transparent 60%),
      radial-gradient(ellipse 60% 40% at 100% 20%, rgba(8, 145, 178, 0.06), transparent 60%);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-icon {
  width: 26px; height: 26px;
  fill: var(--accent-400);
  filter: drop-shadow(0 0 8px var(--accent-glow));
  transition: transform var(--t-base);
}
.brand:hover .brand-icon { transform: translateY(-1px) scale(1.05); }
.brand-name { display: inline-flex; align-items: baseline; }
.brand-accent {
  background: linear-gradient(135deg, var(--accent-400), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.brand-dot { color: var(--text-tertiary); font-weight: 500; }

.refresh-btn {
  background: var(--card-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--t-base);
}
.refresh-btn:hover {
  color: var(--accent-400);
  border-color: var(--accent-400);
  box-shadow: 0 0 0 4px var(--accent-glow);
  transform: translateY(-1px);
}
.refresh-btn:active { transform: translateY(0) scale(0.96); }
.refresh-btn svg { width: 18px; height: 18px; fill: currentColor; }
.refresh-btn.spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- Cards (glassmorphism) ---------- */
.card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.6s var(--ease) forwards;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-strong);
}
main > .card:nth-child(1) { animation-delay: 0ms; }
main > .card:nth-child(2) { animation-delay: 75ms; }
main > .card:nth-child(3) { animation-delay: 150ms; }
main > .card:nth-child(4) { animation-delay: 225ms; }
main > .card:nth-child(5) { animation-delay: 300ms; }
main > .card:nth-child(6) { animation-delay: 375ms; }
@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.card-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.sub {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none;
  opacity: 0.6;
}
.hero > * { position: relative; }

.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.label {
  font-size: 12px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-prov {
  background: var(--status-info-bg);
  color: var(--status-info);
  border-color: var(--status-info-bg);
}
.hidden { display: none !important; }

/* ---------- Big number ---------- */
.big-number {
  font-size: clamp(72px, 18vw, 128px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 10px 0 6px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 130%);
  -webkit-background-clip: text;
  background-clip: text;
}
.unit-row { margin-bottom: 16px; }
.unit {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.diff {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.diff strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ---------- Trend pill ---------- */
.trend-row { margin-bottom: 18px; }
.trend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--status-info-bg);
  color: var(--status-info);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.trend-icon { font-size: 14px; line-height: 1; }

/* ---------- Status message ---------- */
.status-message {
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-400);
  margin-bottom: 16px;
  line-height: 1.55;
}
.status-message.good { border-left-color: var(--status-good); background: var(--status-good-bg); color: var(--text-primary); }
.status-message.warn { border-left-color: var(--status-warn); background: var(--status-warn-bg); color: var(--text-primary); }
.status-message.bad  { border-left-color: var(--status-danger); background: var(--status-danger-bg); color: var(--text-primary); }

/* ---------- Meta row with live pulse ---------- */
.meta-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-tertiary);
  font-weight: 500;
}
.dot-sep { opacity: 0.5; }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status-good);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: livePulse 2s infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Pool bar ---------- */
.pool-bar { margin-top: 24px; }
.pool-bar-track {
  position: relative;
  height: 10px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: visible;
  border: 1px solid var(--border-subtle);
}
.pool-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg,
    #F87171 0%,
    #FBBF24 35%,
    #34D399 65%,
    #22D3EE 100%);
  border-radius: 999px;
  width: 0%;
  transition: width var(--t-slow);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}
.pool-bar-marker {
  position: absolute;
  top: 50%;
  width: 6px; height: 22px;
  background: var(--text-primary);
  border-radius: 3px;
  transform: translate(-50%, -50%);
  left: 0%;
  transition: left var(--t-slow);
  box-shadow:
    0 0 0 3px var(--bg-base),
    0 0 0 4px var(--accent-400),
    0 0 16px var(--accent-glow);
}
.pool-bar-labels {
  display: flex; justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pool-bar-labels small {
  display: block;
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Compare (inline in hero) ---------- */
.hero-compare {
  position: relative;
  float: right;
  max-width: 280px;
  margin: -4px 0 12px 20px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.compare-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: border-color var(--t-base), transform var(--t-base);
}
.compare-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.compare-label {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.compare-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  line-height: 1.1;
}
.compare-delta {
  font-size: 11px;
  margin-top: 3px;
  color: var(--text-tertiary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.compare-delta.up { color: var(--status-good); }
.compare-delta.down { color: var(--status-danger); }

.seasonal-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 8px 10px;
  background: var(--status-info-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  line-height: 1.45;
}

@media (max-width: 600px) {
  .hero-compare {
    float: none;
    max-width: 100%;
    margin: 0 0 16px 0;
  }
  .compare-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Chart ---------- */
.chart-card { padding-bottom: 16px; }
.chart-card .card-header { margin-bottom: 8px; }
.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 160px;
}
.chart-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 13px;
}

/* ---------- Two-column row ---------- */
.two-col-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}
.two-col-row .card { margin: 0; }
.two-col-row .weather-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .two-col-row { grid-template-columns: 1fr; }
}

/* ---------- Ramps ---------- */
.ramps-card details > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.ramps-card details > summary::-webkit-details-marker { display: none; }
.summary-title h2 { font-size: 18px; }
.summary-title .sub { display: block; margin-top: 3px; }
.chev {
  transition: transform 0.25s var(--ease);
  color: var(--text-tertiary);
  font-size: 14px;
}
.ramps-card details[open] .chev { transform: rotate(180deg); }

.ramp-list {
  list-style: none;
  padding: 0; margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.ramp-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 8px;
  transition: border-color var(--t-base);
}
.ramp-item:hover {
  border-color: var(--border-strong);
}
.ramp-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.ramp-min {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.ramp-status {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ramp-status.good { background: var(--status-good-bg);   color: var(--status-good); }
.ramp-status.warn { background: var(--status-warn-bg);   color: var(--status-warn); }
.ramp-status.bad  { background: var(--status-danger-bg); color: var(--status-danger); }

@media (min-width: 900px) {
  .ramp-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .ramp-list { grid-template-columns: 1fr; }
}

.fine-print {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ---------- Weather ---------- */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.weather-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  padding: 24px 0;
}
.wx-day {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 4px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 0;
  transition: border-color var(--t-base), transform var(--t-base), background var(--t-base);
}
.wx-day:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  background: var(--bg-surface);
}
/* "Today" is always the first column */
.wx-day:first-child {
  background: var(--status-info-bg);
  border-color: rgba(96, 165, 250, 0.25);
}
.wx-day.rainy {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.20);
}
.wx-dow {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.wx-day:first-child .wx-dow { color: var(--status-info); }
.wx-icon { font-size: 24px; line-height: 1; }
.wx-hi {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.wx-lo {
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.wx-rain {
  font-size: 10px;
  color: var(--accent-400);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .weather-grid { grid-template-columns: repeat(4, 1fr); }
  .wx-day:nth-child(n+8) { display: none; }
}
@media (max-width: 400px) {
  .weather-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 28px 24px 40px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.75;
  border-top: 1px solid var(--border-subtle);
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--accent-400); }
.disclaimer { font-style: italic; margin-top: 12px !important; opacity: 0.85; }
.copyright { margin-top: 10px !important; opacity: 0.7; }

/* ---------- Loading shimmer ---------- */
.loading-shimmer {
  display: inline-block;
  background: linear-gradient(90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.6s ease infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Error state ---------- */
.error-banner {
  background: var(--status-danger-bg);
  color: var(--status-danger);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(248, 113, 113, 0.2);
  font-size: 14px;
  margin-top: 12px;
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  main { padding: 12px 24px 48px; gap: 14px; }
  .card { padding: 2rem; }
  .site-header { padding: 24px 28px; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card { opacity: 1; transform: none; }
  .live-dot { animation: none; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
}

/* ---------- Focus states ---------- */
:focus-visible {
  outline: 2px solid var(--accent-400);
  outline-offset: 3px;
  border-radius: 4px;
}
.refresh-btn:focus-visible {
  outline-offset: 4px;
}

/* ---------- Webcams ---------- */
.webcam-card .card-header { margin-bottom: 20px; }

.webcam-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .webcam-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.webcam-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.webcam-frame {
  position: relative;
  width: 100%;
  padding-bottom: 45%; /* shorter than 16:9 */
  max-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
}

.webcam-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Fishing Report ---------- */
.fishing-card .card-header { margin-bottom: 10px; }

.fishing-overview {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px 20px;
}

.fishing-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.fishing-stars {
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
}
.fishing-stars .stars-filled { color: #FBBF24; }
.fishing-stars .stars-empty { color: var(--text-tertiary); opacity: 0.5; }
.fishing-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.fishing-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
}
.cond-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}
.cond-pill .cond-icon { font-size: 12px; line-height: 1; }
.cond-pill strong { color: var(--text-primary); font-weight: 600; }
.cond-pill.cond-good { border-color: rgba(52, 211, 153, 0.35); background: var(--status-good-bg); }
.cond-pill.cond-bad  { border-color: rgba(248, 113, 113, 0.35); background: var(--status-danger-bg); }
.cond-pill.cond-good strong { color: var(--status-good); }
.cond-pill.cond-bad  strong { color: var(--status-danger); }

.fishing-windows {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  gap: 20px;
}
.fw-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
}
.fw-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.fw-times { color: var(--text-primary); font-variant-numeric: tabular-nums; }

.fishing-species-details {
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}
.fishing-species-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.fishing-species-details > summary::-webkit-details-marker { display: none; }
.fishing-species-details .summary-title h3 {
  font-size: 14px;
  margin: 0;
}
.fishing-species-details[open] .chev { transform: rotate(180deg); }

.fishing-species {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.species-card {
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.species-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.species-icon { font-size: 16px; line-height: 1; }
.species-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.activity-bar {
  display: inline-flex;
  gap: 2px;
}
.act-cell {
  width: 18px;
  height: 5px;
  border-radius: 2px;
  background: var(--border-subtle);
}
.act-cell.act-high { background: var(--status-good); }
.act-cell.act-med  { background: var(--status-warn); }
.act-cell.act-low  { background: var(--status-danger); }
.species-meta {
  font-size: 11px;
  color: var(--text-secondary);
}
.species-meta .meta-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-right: 3px;
}
.species-tech {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .fishing-species { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .fishing-overview { grid-template-columns: 1fr; }
  .fishing-windows { flex-direction: column; gap: 4px; }
  .fishing-species { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .fishing-species { grid-template-columns: 1fr; }
}
