:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  background: #0c0d12;
  color: #f5f1e8;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(245, 193, 95, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(80, 178, 167, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, #0c0d12 0%, #15131b 52%, #111822 100%);
  background-size: 34px 34px, 34px 34px, auto;
}

.sound-shell {
  width: min(1060px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.sound-hero {
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 8px;
  background: #090a0d;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
}

.sound-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.86), rgba(7, 8, 12, 0.16) 60%, rgba(7, 8, 12, 0.62)),
    linear-gradient(0deg, rgba(7, 8, 12, 0.92), transparent 54%);
}

.sound-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.sound-hero div {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
}

h1,
p {
  margin: 0;
}

h1 {
  color: #fff4c6;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(245, 193, 95, 0.35);
}

.sound-hero p,
.now-playing span,
.volume-control,
.loop-control,
.track-card span {
  color: #d8d0c0;
}

.sound-hero p {
  margin-top: 8px;
  font-size: 18px;
}

.player-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 8px;
  background: rgba(9, 10, 13, 0.72);
}

.now-playing {
  display: grid;
  gap: 5px;
}

.eyebrow {
  color: #51dbc7;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.now-playing strong {
  color: #fff4c6;
  font-size: 26px;
  line-height: 1.1;
}

.controls {
  display: flex;
  gap: 8px;
}

button {
  min-width: 72px;
  min-height: 40px;
  border: 1px solid rgba(245, 241, 232, 0.24);
  border-radius: 6px;
  background: rgba(245, 241, 232, 0.08);
  color: #f5f1e8;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.track-card.active {
  border-color: rgba(245, 193, 95, 0.82);
  background: rgba(245, 193, 95, 0.16);
}

.volume-control,
.loop-control {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.loop-control {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.track-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.track-card {
  min-height: 116px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(245, 241, 232, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 241, 232, 0.08), rgba(245, 241, 232, 0.04)),
    rgba(9, 10, 13, 0.72);
  text-align: left;
}

.track-card strong {
  color: #fff4c6;
  font-size: 19px;
}

@media (max-width: 820px) {
  .player-panel {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-wrap: wrap;
  }
}
