/* lake-style.css */
/* Theme: Dawn Atmospheric */

:root {
  --bg-top:          #0d1b2a;
  --bg-bottom:       #122a1e;
  --surface:         rgba(255, 255, 255, 0.06);
  --surface-border:  rgba(255, 255, 255, 0.10);
  --text-primary:    #dce8f0;
  --text-secondary:  #8eadc4;
  --accent-gold:     #f5a623;
  --accent-blue:     #5ac8fa;
  --card-radius:     14px;
  --inner-max-width: 1100px;
}

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(160deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
}

/* Site header */
.site-header {
  padding: 1rem 2rem 0.75rem;
  border-bottom: 1px solid var(--surface-border);
}

.site-header-inner {
  max-width: var(--inner-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.site-header-text {
  display: flex;
  flex-direction: column;
}

.unit-toggle {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.unit-toggle:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.22);
  color: var(--text-primary);
}

.site-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.site-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}

/* Page layout */
.page-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 2rem 3rem;
}

.section-inner {
  max-width: var(--inner-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Media wrapper — must be position:relative so absolute children (pills, expand btn) anchor here */
.media-wrapper {
  position: relative;
  display: inline-block;
}

/* Hero section */
.hero-section .media-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-section .media-wrapper {
  display: block;
  width: 100%;
}

.hero-section .media-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--card-radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;
}

.last-updated {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Video row */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.video-card-label {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 0.25rem;
}

.eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.label-detail {
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--accent-gold);
  min-height: 1.4em;
}

.video-card .media-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-card .media-wrapper {
  display: block;
  width: 100%;
}

.video-card .media-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

/* Media actions (share button row) */
.media-actions {
  display: flex;
  justify-content: flex-end;
}

/* Expand button */
.expand-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.expand-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

.media-wrapper:hover .expand-btn,
.media-wrapper:focus-within .expand-btn {
  opacity: 1;
}

.expand-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.expand-btn:focus {
  opacity: 1;
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Share button */
.share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.share-btn:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.share-btn.share-copied {
  color: #34c759;
}

/* Condition pills overlay */
.overlay-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  pointer-events: none;
  z-index: 5;
}

.weather-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.weather-overlay.visible {
  opacity: 1;
}

.weather-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  cursor: default;
  position: relative;
}

.weather-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #ffd60a;
}

#weatherWindPill .weather-icon {
  color: #aeefff;
}

.weather-gust {
  color: #ff9500;
}

.lake-overlay {
  pointer-events: auto;
  cursor: default;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.lake-overlay.visible {
  opacity: 1;
}

.lake-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--accent-blue);
}

/* Hover tooltips */
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: pre-line;
  width: max-content;
  max-width: min(280px, 90vw);
  text-transform: none;
  padding: 4px 9px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  text-shadow: none;
  letter-spacing: 0.01em;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Conditions card */
.conditions-section {
  display: none;
}

.conditions-section.visible {
  display: block;
}

.conditions-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1rem 1.25rem 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.conditions-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 1rem;
}

.conditions-age {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem 2rem;
  margin-bottom: 1rem;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stat-tile.hidden {
  display: none;
}

/* Wind + Rain + Pressure sub-boxes */
.data-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

.data-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.data-box.hidden {
  display: none;
}

.data-box-title {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--surface-border);
}

/* Wind sub-box */
.wind-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
}

.wind-col {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.wind-col-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.wind-sub-line {
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Rain sub-box */
.rain-rate {
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--surface-border);
}

.rain-rate .stat-label {
  margin-top: 0.15rem;
}

.rain-rate .stat-value.raining {
  color: var(--accent-blue);
}

.rain-table {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.rain-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.rain-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.rain-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.last-rain-line {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--surface-border);
}

.stat-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  line-height: 1;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-value.gold {
  color: var(--accent-gold);
}

.stat-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.15rem;
}

/* 7-day forecast */

.forecast-section {
  padding: 0 1rem 1.5rem;
}

.forecast-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.forecast-summary {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.forecast-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1rem 1.25rem 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.forecast-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 1rem;
}

.forecast-age {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Next 60 min precip sparkline */
.precip-now {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.precip-now-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.precip-sparkline-wrap {
  flex: 1;
  height: 24px;
}

.precip-sparkline-wrap svg {
  width: 100%;
  height: 100%;
}

.precip-sparkline-wrap svg rect {
  fill: rgba(100, 160, 255, 0.75);
}

.precip-now-status {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* 8-hour precip outlook */
.precip-8h {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--surface-border);
}

.precip-8h-bars {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.precip-8h-bars::-webkit-scrollbar { display: none; }

.ph-col {
  flex: 0 0 auto;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

.ph-time {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ph-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.ph-icon svg {
  width: 100%;
  height: 100%;
}

.ph-temp {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ph-wind {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ph-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(100, 160, 255, 0.9);
}

.ph-pct-none {
  color: var(--text-secondary);
  opacity: 0.4;
}

/* PoP info button + panel */
.pop-info-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0 0 0 3px;
  vertical-align: middle;
  line-height: 1;
  opacity: 0.7;
}

.pop-info-btn:hover { opacity: 1; }

.precip-now-label {
  position: relative;
}

.pop-info-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  background: rgba(20, 28, 40, 0.97);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
  z-index: 50;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  word-wrap: break-word;
  pointer-events: none;
}

.pop-info-panel.open {
  display: block;
  pointer-events: auto;
}

.pop-info-panel strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.pop-info-panel a {
  display: inline-block;
  margin-top: 0.4rem;
  color: rgba(100, 160, 255, 0.9);
  text-decoration: none;
  font-size: 0.75rem;
}

.pop-info-panel a:hover { text-decoration: underline; }

/* 7-day strip */
.forecast-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

@media (max-width: 540px) {
  .forecast-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }
  .forecast-strip::-webkit-scrollbar { display: none; }
  .forecast-day {
    min-width: 72px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.25rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

.fd-name {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.fd-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.fd-icon svg {
  width: 100%;
  height: 100%;
}

.fd-sq {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sq-clear    { background: #f5c842; }
.sq-partial  { background: #f5a623; }
.sq-cloudy   { background: #8a9bb0; }
.sq-overcast { background: #4a5568; }

.fd-temps {
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
}

.fd-high {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fd-low {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.fd-precip {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(100, 160, 255, 0.9);
}

.fd-precip-none {
  color: var(--text-secondary);
  opacity: 0.4;
}

.fd-sunrise {
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Forecast tile tooltip */
.fc-tip {
  position: fixed;
  z-index: 300;
  background: rgba(20, 28, 40, 0.97);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.6;
  pointer-events: none;
  max-width: 210px;
  white-space: normal;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-content img,
.fullscreen-content video {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.close-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.close-btn:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.2);
}

/* Sky info bar (sunrise, sunset, moon) */
.sky-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 0.75rem;
}

.sky-info.hidden {
  display: none;
}

.sky-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 2rem 0 0;
}

.sky-item + .sky-item {
  padding: 0 2rem;
  border-left: 1px solid var(--surface-border);
}

.sky-item.hidden {
  display: none;
}

.sky-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sky-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

#moonEmoji {
  font-size: 1em;
  vertical-align: -0.1em;
  line-height: 1;
}

/* Pressure sub-box */
.pressure-trend {
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--surface-border);
}

.pressure-rising  { color: #34c759; }
.pressure-falling { color: #ff6b6b; }
.pressure-steady  { color: var(--text-secondary); }

/* Smaller stat-value for 5-char readings like 29.92 */
.stat-value.sm {
  font-size: 1.25rem;
}

/* UV index color coding */
.uv-low       { color: #34c759; }
.uv-moderate  { color: var(--accent-gold); }
.uv-high      { color: #ff9500; }
.uv-very-high { color: #ff3b30; }
.uv-extreme   { color: #af52de; }

/* Dew point comfort color coding (NWS scale) */
.dp-pleasant      { color: #4cd964; }
.dp-comfortable   { color: #34c759; }
.dp-sticky        { color: #ffd60a; }
.dp-uncomfortable { color: #ff9500; }
.dp-oppressive    { color: #ff3b30; }
.dp-miserable     { color: #cc2200; }

/* Archive video loading overlay (shown while spinning disk wakes) */
.video-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  z-index: 6;
}

.video-loading-overlay.hidden {
  display: none;
}

.video-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.video-loading-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Video date picker */
.video-date-picker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--surface-border);
  margin-top: 0.25rem;
}

.video-date-picker.hidden {
  display: none;
}

.video-date-picker .eyebrow {
  flex-shrink: 0;
}

.video-date-picker select {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 8px;
  cursor: pointer;
  appearance: auto;
}

.video-date-picker select:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.video-date-picker select option {
  background: #1a2f3f;
  color: var(--text-primary);
}

/* Changelog / What's New */
.changelog-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--card-radius);
  padding: 1.25rem 1.5rem;
}

.changelog-header {
  margin-bottom: 0.75rem;
}

.changelog-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}

.changelog-toggle:hover .eyebrow {
  color: var(--text-primary);
}

.changelog-toggle-icon {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.changelog-toggle:hover .changelog-toggle-icon {
  opacity: 1;
}

.changelog-body {
  margin-top: 0.75rem;
}

.changelog-body.hidden {
  display: none;
}

.changelog-release + .changelog-release {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-border);
}

.changelog-release-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.changelog-release-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.changelog-release-date {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.changelog-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.changelog-item {
  font-size: 0.83rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.changelog-item::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.changelog-all-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0.65rem 0 0;
  letter-spacing: 0.02em;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}

.changelog-all-btn:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* AQI category colors */
.aqi-good          { color: #34c759; }
.aqi-moderate      { color: #ffd60a; }
.aqi-sensitive     { color: #ff9500; }
.aqi-unhealthy     { color: #ff3b30; }
.aqi-very-unhealthy { color: #af52de; }
.aqi-hazardous     { color: #cc2200; }

/* Air quality overlay pill */
.aq-overlay {
  pointer-events: auto;
  cursor: default;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.aq-overlay.visible { opacity: 1; }

.aq-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Air quality data box */
.aq-aqi {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--surface-border);
}

.aq-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.aq-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.aq-metric-row.hidden { display: none; }

.aq-metric-label {
  position: relative;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: default;
}

.aq-metric-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.aq-metric-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}

.aq-info-svg {
  width: 10px;
  height: 10px;
  vertical-align: middle;
  margin-left: 3px;
  opacity: 0.4;
  transition: opacity 0.15s ease;
  position: relative;
  top: -0.5px;
}

[data-tooltip]:hover .aq-info-svg {
  opacity: 0.7;
}

.aq-aqi .stat-label {
  position: relative;
  cursor: default;
}

/* Responsive */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding: 1.5rem 1.5rem 2rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 0.75rem 1rem 0.5rem;
  }

  .site-brand {
    gap: 0.6rem;
  }

  .site-logo {
    width: 36px;
    height: 36px;
  }

  .page-main {
    padding: 1rem 0.75rem 2rem;
    gap: 1.5rem;
  }

  .video-card {
    padding: 0.75rem;
  }

  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-boxes {
    grid-template-columns: 1fr;
  }

  .expand-btn {
    opacity: 0.8;
  }

  .close-btn {
    top: 10px;
    right: 10px;
  }
}

/* Page footer */
.page-footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}

.feedback-link {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}

.feedback-link:hover {
  opacity: 1;
  color: var(--text-primary);
}
