:root {
  color-scheme: light;
  --ink: #23262d;
  --muted: #6f747c;
  --line: #dde4e8;
  --paper: #ffffff;
  --page: #f7f2ea;
  --sun: #f4b942;
  --coral: #e85d4f;
  --teal: #087f8c;
  --green: #2f9e67;
  --violet: #7867d8;
  --shadow: 0 18px 55px rgba(35, 38, 45, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(244, 185, 66, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(8, 127, 140, 0.16), transparent 38%),
    var(--page);
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.top-panel,
.weather-panel,
.mood-panel,
.hourly-panel,
.songs-panel {
  border: 1px solid rgba(221, 228, 232, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.top-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px;
}

.title-group {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 18px;
  letter-spacing: 0;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(8, 127, 140, 0.2);
  border-radius: 999px;
  background: rgba(8, 127, 140, 0.08);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.source-pill.sample {
  border-color: rgba(232, 93, 79, 0.22);
  background: rgba(232, 93, 79, 0.09);
  color: var(--coral);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 1.8s infinite;
}

.search-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 46px 136px;
  gap: 12px;
  align-items: end;
}

.field-stack {
  display: grid;
  gap: 7px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 0 14px;
}

input:focus,
button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.14);
}

.icon-button,
.primary-button,
.listen-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
}

.icon-button {
  width: 46px;
  background: rgba(8, 127, 140, 0.1);
  color: var(--teal);
}

.primary-button {
  gap: 8px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.weather-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  overflow: hidden;
  min-height: 340px;
}

.weather-scene {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent),
    linear-gradient(135deg, #f8d978, #f4b942 46%, #ee8e6c);
}

.weather-scene.night {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    linear-gradient(135deg, #23262d, #4f4a84 52%, #087f8c);
}

.weather-scene.cloudy,
.weather-scene.fog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent),
    linear-gradient(135deg, #d7e1de, #b6c6ca 48%, #f0d4bd);
}

.weather-scene.rain,
.weather-scene.storm {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, #56616b, #3f5560 48%, #087f8c);
}

.weather-scene.snow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent),
    linear-gradient(135deg, #dceaf2, #f8faf9 50%, #b7cbd4);
}

.sun,
.moon,
.cloud,
.rain,
.snow,
.bolt {
  position: absolute;
  display: block;
}

.sun {
  width: 112px;
  height: 112px;
  left: 42px;
  top: 42px;
  border-radius: 999px;
  background: #fff7c2;
  box-shadow: 0 0 0 26px rgba(255, 247, 194, 0.2);
}

.moon {
  display: none;
  width: 92px;
  height: 92px;
  left: 52px;
  top: 48px;
  border-radius: 999px;
  background: #f8f1d7;
  box-shadow: 24px -12px 0 0 rgba(35, 38, 45, 0.72);
}

.night .sun {
  display: none;
}

.night .moon {
  display: block;
}

.cloud {
  width: 172px;
  height: 66px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    34px -26px 0 8px rgba(255, 255, 255, 0.92),
    88px -14px 0 18px rgba(255, 255, 255, 0.92);
}

.cloud-one {
  left: 78px;
  top: 154px;
}

.cloud-two {
  left: 32px;
  top: 224px;
  transform: scale(0.72);
  opacity: 0.74;
}

.clear .cloud-two,
.clear .rain,
.clear .snow,
.clear .bolt,
.cloudy .rain,
.cloudy .snow,
.cloudy .bolt,
.fog .rain,
.fog .snow,
.fog .bolt,
.rain .snow,
.rain .bolt,
.snow .rain,
.snow .bolt {
  display: none;
}

.rain {
  width: 8px;
  height: 56px;
  top: 242px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(12deg);
}

.rain-one {
  left: 104px;
}

.rain-two {
  left: 164px;
}

.rain-three {
  left: 224px;
}

.snow {
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
}

.snow-one {
  left: 90px;
  top: 248px;
}

.snow-two {
  left: 210px;
  top: 274px;
}

.bolt {
  display: none;
  left: 178px;
  top: 224px;
  width: 42px;
  height: 86px;
  background: var(--sun);
  clip-path: polygon(44% 0, 100% 0, 62% 42%, 100% 42%, 22% 100%, 43% 54%, 0 54%);
}

.storm .bolt {
  display: block;
}

.weather-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 34px;
}

.weather-copy span,
.section-heading span,
.metric-grid span,
.hour-card span,
.hour-card small,
.song-card span,
.song-card p {
  color: var(--muted);
}

.weather-copy span {
  font-size: 16px;
  font-weight: 900;
}

.weather-copy strong {
  font-size: clamp(76px, 10vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
}

.weather-copy p {
  font-size: 23px;
  font-weight: 900;
}

.weather-copy time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.mood-panel,
.hourly-panel,
.songs-panel {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading span {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mood-meter {
  height: 14px;
  margin: 22px 0;
  border-radius: 999px;
  background: #edf1ef;
  overflow: hidden;
}

.mood-meter span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--sun), var(--coral));
  transition: width 0.45s ease;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid div {
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-grid strong {
  display: block;
  margin-top: 9px;
  font-size: 27px;
}

.hourly-panel,
.songs-panel {
  margin-top: 18px;
}

.hourly-list {
  display: grid;
  grid-template-columns: repeat(8, minmax(96px, 1fr));
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hour-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 174px;
  min-width: 96px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.hour-card i {
  align-self: end;
  width: 15px;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral), var(--sun), var(--teal));
}

.hour-card strong {
  font-size: 19px;
}

.hour-card small {
  line-height: 1.32;
}

.song-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.song-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
  min-height: 154px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.album-art {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(120, 103, 216, 0.78), rgba(8, 127, 140, 0.72)),
    var(--teal);
}

.album-art span {
  width: 24px;
  height: 24px;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.song-card strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.song-card p {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.42;
}

.listen-button {
  width: 42px;
  min-height: 42px;
  background: rgba(232, 93, 79, 0.12);
  color: var(--coral);
}

.listen-button svg {
  fill: currentColor;
  stroke: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(8, 127, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(8, 127, 140, 0);
  }
}

@media (max-width: 980px) {
  .dashboard-grid,
  .weather-panel,
  .song-list {
    grid-template-columns: 1fr;
  }

  .weather-scene {
    min-height: 260px;
  }

  .song-card {
    min-height: 132px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1160px);
    padding: 12px 0;
  }

  .top-panel {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .source-pill {
    justify-self: start;
  }

  .search-form {
    grid-template-columns: 1fr 46px;
  }

  .primary-button {
    grid-column: 1 / -1;
  }

  .weather-copy {
    padding: 24px;
  }

  .weather-copy strong {
    font-size: 86px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid div {
    min-height: 86px;
    padding: 12px;
  }

  .metric-grid strong {
    font-size: 22px;
  }

  .song-card {
    grid-template-columns: 56px minmax(0, 1fr) 40px;
    gap: 10px;
  }

  .album-art {
    width: 56px;
    height: 56px;
  }
}
