/* Star4000 fonts (Nick Smith / TWCClassics – personal use) */
@font-face {
  font-family: "Star4000";
  src: url("../fonts/Star4000.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Star4000 Large";
  src: url("../fonts/Star4000-Large.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Star4000 Small";
  src: url("../fonts/Star4000-Small.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Star4000 Extended";
  src: url("../fonts/Star4000-Extended.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Local on the 8s – Large classic WeatherStar-style
   Big type, big icons, flat, orange frame, scanlines
   ============================================================ */

:root {
  --bg: #0a2a5c;
  --bg-dark: #061e44;
  --border: #1a5088;
  --orange: #e87820;
  --orange-dark: #c45e10;
  --yellow: #f0c030;
  --yellow-soft: #ffd860;
  --cyan: #70d0f0;
  --text: #e8f4ff;
  --text-dim: #9ec0e0;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #041830;
  color: var(--text);
  font-family: "Star4000", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
}

/* Scanlines */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  opacity: 0.4;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.4) 100%);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
}

/* Orange side pillars */
#app::before,
#app::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 50;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--orange), var(--orange-dark));
}

#app::before { left: 0; }
#app::after  { right: 0; }

/* Top bar */
#top-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1.6rem;
  background: var(--bg);
  border-bottom: 2px solid rgba(240, 192, 48, 0.45);
  flex-shrink: 0;
  z-index: 100;
  margin: 0 24px;
}

.location-info {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

#location-name {
  font-family: "Star4000 Large", "Star4000", sans-serif;
  font-weight: normal;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

#clock {
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
  display: flex;
  gap: 0.35rem;
}

#city-search {
  flex: 1;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
}

#city-search:focus {
  outline: none;
  border-color: var(--yellow);
}

#geo-btn {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0;
  padding: 0 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
}

#geo-btn:hover { border-color: var(--orange); color: var(--yellow); }

#search-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 36px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
}

#search-results.hidden { display: none; }

.search-item {
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid #123868;
  font-size: 1rem;
}

.search-item:hover { background: var(--bg); color: var(--yellow); }

.controls button {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: 0.2rem;
}

.controls button:hover { border-color: var(--orange); color: var(--yellow); }

/* Slides */
#slides {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
  background: var(--bg);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.6rem 0 0.8rem 0;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.slide-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 1.2rem;
}

/* Full-width classic orange title banner (edge to edge between pillars) */
.slide-title {
  font-family: "Star4000 Large", "Star4000", sans-serif;
  font-size: 1.7rem;
  font-weight: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffe050;
  text-align: center;
  flex-shrink: 0;
  width: 100%;
  margin: 0 0 0.75rem 0;
  padding: 0.5rem 1.5rem;
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    #ffb030 0%,
    #f08a18 28%,
    #d86810 62%,
    #a84808 100%
  );
  border-top: 2px solid #ffd870;
  border-bottom: 3px solid #6e3005;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 120, 0.55),
    0 3px 6px rgba(0, 0, 0, 0.35);
  text-shadow:
    1px 1px 0 #5a2000,
    2px 2px 0 rgba(0, 0, 0, 0.35);
}

.slide[data-slide="radar"] .slide-title {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
  padding: 0.4rem 1rem;
}

.slide[data-slide="radar"] .slide-inner {
  max-width: none;
  padding: 0 0.6rem;
}

/* ========== CURRENT CONDITIONS – LARGE ========== */
.current-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  flex: 1;
  align-items: center;
}

.temp-block {
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem;
}

.big-temp {
  font-family: "Star4000 Large", "Star4000", sans-serif;
  font-size: 8.5rem;
  font-weight: normal;
  line-height: 1;
  color: var(--white);
  letter-spacing: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.big-temp .temp-num {
  display: inline-block;
  line-height: 1;
}

.big-temp .temp-deg {
  display: inline-block;
  font-size: 0.45em;
  line-height: 1;
  margin-top: 0.18em;
  margin-left: 0.02em;
  opacity: 0.95;
}

.desc {
  font-size: 2rem;
  color: var(--yellow-soft);
  margin: 0.35rem 0 0.5rem;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.weather-icon {
  font-size: 6.5rem;
  line-height: 1;
  margin: 0.25rem 0;
}

#feels-like {
  font-size: 1.35rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}

/* Large label:value rows */
.details-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  background: transparent;
  max-width: 420px;
  margin: 0 auto;
}

.detail {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  box-shadow: none;
}

.detail span {
  color: var(--cyan);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.detail strong {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
}

/* Radar */
/* Radar – maximize size, minimize letterboxing */
.slide[data-slide="radar"] .slide-inner {
  max-width: none;
  padding: 0;
}

.slide[data-slide="radar"] .slide-title {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.slide[data-slide="radar"] .radar-note {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.radar-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 2px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  min-height: 0;
  width: 100%;
}

#radar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* scale up a bit so the map fills more of the frame */
  transform: scale(1.08);
  transform-origin: center center;
}



.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  font-size: 1.3rem;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.radar-note {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#radar-station {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--cyan);
}




/* Forecast – large classic-style panels */
.forecast-grid {
  display: grid;
  gap: 0.9rem;
  flex: 1;
  align-content: center;
  justify-content: center;
}

.forecast-large {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

/* When only 3 cards (second slide), center them larger */
#forecast-grid-2.forecast-large {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  max-width: 720px;
}

.day-card {
  background: #0c3470;
  border: 2px solid #1a5088;
  border-radius: 0;
  padding: 1.1rem 0.6rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-height: 280px;
  justify-content: flex-start;
  box-shadow: none;
}

.day-card .day-name {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--yellow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.day-card .day-icon {
  font-size: 4rem;
  margin: 0.25rem 0 0.15rem;
  line-height: 1;
}

.day-card .cond {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.25;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0 0.2rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.day-card .temps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.35rem;
  width: 100%;
}

.day-card .temp-hi-row,
.day-card .temp-lo-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.day-card .lo-label,
.day-card .hi-label {
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.day-card .low {
  font-size: 1.35rem;
  color: var(--text-dim);
  font-weight: 600;
}

.day-card .high {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--white);
}

.day-card .precip {
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 0.25rem;
}

@media (max-width: 900px) {
  .forecast-large {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: none !important;
  }
  .day-card { min-height: 240px; }
  .day-card .day-icon { font-size: 3.2rem; }
}

/* Moon */
.astro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  flex: 1;
  align-items: center;
}

.moon-visual {
  text-align: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 1.6rem 1rem;
}

.moon-icon {
  font-size: 7.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

#moon-phase-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

#moon-illum {
  color: var(--yellow);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.astro-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  max-width: 400px;
}

.astro-details .detail {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Alerts */
#alerts-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  max-height: 70vh;
}

.alert-card {
  background: rgba(60, 10, 10, 0.8);
  border: 1px solid #902020;
  border-left: 6px solid #ff4040;
  border-radius: 0;
  padding: 1rem 1.15rem;
}

.alert-card.warning {
  border-left-color: var(--yellow);
  background: rgba(60, 40, 5, 0.75);
  border-color: #907020;
}

.alert-event {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.alert-headline {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.alert-desc {
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

/* Progress */
#progress-bar {
  height: 5px;
  background: var(--bg-dark);
  flex-shrink: 0;
  margin: 0 24px;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--yellow));
  transition: width 0.1s linear;
}

#slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.45rem;
  background: var(--bg-dark);
  flex-shrink: 0;
  margin: 0 24px;
  border-top: 1px solid var(--border);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: #1a4a80;
  cursor: pointer;
}

.dot.active { background: var(--yellow); }

/* Music bar */
#music-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 1.5rem;
  background: var(--bg-dark);
  border-top: 2px solid var(--orange-dark);
  flex-shrink: 0;
  margin: 0 24px;
}

.music-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#now-playing {
  color: var(--yellow);
  font-weight: 600;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.music-controls button {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.music-controls button:hover { color: var(--yellow); }

#volume {
  width: 90px;
  accent-color: var(--orange);
}

/* Responsive */
@media (max-width: 900px) {
  #app::before, #app::after { width: 12px; }
  #top-bar, #slides, #progress-bar, #slide-dots, #music-bar { margin-left: 12px; margin-right: 12px; }
  .current-grid, .astro-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .forecast-grid { grid-template-columns: repeat(4, 1fr); overflow-x: auto; }
  .big-temp { font-size: 5.5rem; }
  .weather-icon { font-size: 4.5rem; }
  .desc { font-size: 1.5rem; }
  .moon-icon { font-size: 5rem; }
  #top-bar { flex-wrap: wrap; }
  .search-wrap { max-width: none; order: 3; width: 100%; }
  .slide-title { font-size: 1.4rem; }
  .details-block { max-width: none; }
}

@media (max-width: 600px) {
  .forecast-grid { grid-template-columns: repeat(3, 1fr); }
  .big-temp { font-size: 4.2rem; }
  .slide-title { font-size: 1.2rem; }
}


#radar-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #0a1528;
}

.radar-container {
  position: relative;
}

#radar-loading {
  z-index: 5;
}


/* Pause badge */
#pause-badge {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  background: rgba(0, 0, 0, 0.75);
  color: var(--yellow);
  border: 1px solid var(--orange);
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

#pause-badge.hidden { display: none; }

#pause-btn.is-paused {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(240, 192, 48, 0.15);
}


/* Classic WeatherStar icons */
.wx-icon {
  image-rendering: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.wx-icon-lg {
  width: 140px;
  height: 140px;
}
.wx-icon-md {
  width: 72px;
  height: 72px;
}
.wx-icon-moon {
  width: 120px;
  height: 120px;
}
.weather-icon, .moon-icon, .day-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0; /* hide any leftover emoji text */
}
.day-icon .wx-icon-md {
  width: 80px;
  height: 80px;
}




/* Regional / National maps */
.regional-map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  max-width: none !important;
  width: 100%;
  padding: 0 0.5rem !important;
  display: flex;
  flex-direction: column;
}

.region-map {
  flex: 1;
  min-height: 280px;
  width: 100%;
  background: #0a1528;
  border: 2px solid var(--border);
}

.map-city-marker {
  background: transparent !important;
  border: none !important;
}

.map-city-label {
  background: rgba(6, 30, 68, 0.94);
  border: 1px solid #1a5088;
  border-left: 3px solid var(--orange);
  padding: 0.15rem 0.3rem 0.2rem;
  text-align: center;
  min-width: 68px;
  max-width: 92px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.map-city-name {
  font-family: "Star4000 Large", "Star4000", sans-serif;
  font-size: 0.65rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
}

.map-city-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0.1rem 0;
}

.map-city-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: auto;
}

.map-city-temp {
  font-family: "Star4000 Large", "Star4000", sans-serif;
  font-size: 1rem;
  color: #fff;
  line-height: 1;
}

.map-city-cond {
  font-size: 0.52rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide[data-slide="regional"] .slide-inner,
.slide[data-slide="national"] .slide-inner {
  max-width: none;
}


/* Classic Local Forecast text panel */
.local-text-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem 1rem;
  min-height: 0;
}

.local-forecast-text {
  font-family: "Star4000", "Star4000 Large", monospace, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: #e8f0ff;
  text-align: left;
  max-width: 920px;
  width: 100%;
  background: linear-gradient(180deg, #0c2a5c 0%, #0a2148 100%);
  border: 3px solid #1a4a8a;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 4px 16px rgba(0,0,0,0.35);
  padding: 1.4rem 1.6rem 1.6rem;
  text-shadow: 1px 1px 0 #001028;
  text-transform: uppercase;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 700px) {
  .local-forecast-text {
    font-size: 1.05rem;
    padding: 1rem;
    letter-spacing: 0.04em;
  }
}


/* ===== Mobile layout fixes ===== */
@media (max-width: 700px) {
  #app::before, #app::after { width: 6px; }
  #top-bar, #slides, #progress-bar, #slide-dots, #music-bar {
    margin-left: 6px;
    margin-right: 6px;
  }

  #top-bar {
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem 0.4rem;
    align-items: center;
  }

  .location-block {
    flex: 1 1 100%;
    min-width: 0;
  }

  #location-name {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }

  #clock { font-size: 0.75rem; }

  .search-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  #city-search {
    width: 100%;
    max-width: none;
    font-size: 0.9rem;
  }

  .controls { flex-shrink: 0; }

  .slide-title {
    font-size: 1.15rem;
    padding: 0.45rem 0.5rem;
    letter-spacing: 0.12em;
  }

  .slide-inner {
    padding: 0.5rem 0.4rem 0.75rem;
  }

  /* Forecast: 2 columns, readable cards */
  .forecast-grid,
  .forecast-large,
  #forecast-grid-2.forecast-large {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none !important;
    gap: 0.5rem;
    overflow-x: visible;
  }

  .day-card {
    min-height: 0;
    padding: 0.65rem 0.35rem 0.75rem;
    gap: 0.2rem;
  }

  .day-card .day-name {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .day-card .day-icon {
    font-size: 2.4rem;
    margin: 0.1rem 0;
  }

  .day-card .day-icon .wx-icon,
  .day-card .day-icon img {
    width: 48px !important;
    height: 48px !important;
  }

  .day-card .cond {
    font-size: 0.78rem;
    min-height: 2.2em;
    line-height: 1.2;
  }

  .day-card .high { font-size: 1.55rem; }
  .day-card .low { font-size: 1.15rem; }
  .day-card .precip { font-size: 0.8rem; }

  /* Current conditions */
  .current-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .big-temp { font-size: 4.5rem; }
  .desc { font-size: 1.25rem; }

  .details-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.6rem;
  }

  .detail {
    font-size: 0.82rem;
  }

  /* Local text */
  .local-forecast-text {
    font-size: 0.95rem;
    padding: 0.85rem;
    line-height: 1.4;
  }

  /* Maps */
  .region-map, #radar-map {
    min-height: 220px;
  }

  .map-city-label {
    min-width: 64px;
    max-width: 88px;
    padding: 0.15rem 0.25rem;
  }

  .map-city-name { font-size: 0.55rem; }
  .map-city-temp { font-size: 0.85rem; }
  .map-city-icon { width: 18px; height: 18px; }
  .map-city-cond { font-size: 0.45rem; max-width: 80px; }

  #music-bar {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
  }

  #volume { width: 70px; }

  #slide-dots {
    padding: 0.25rem;
    gap: 0.25rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 380px) {
  .forecast-grid,
  .forecast-large,
  #forecast-grid-2.forecast-large {
    grid-template-columns: 1fr 1fr !important;
  }
  .big-temp { font-size: 3.8rem; }
}
