* {
  box-sizing: border-box;
}

:root {
  --bg: #070d12;
  --bg-soft: #09111a;
  --panel: #0d1721;
  --panel-2: #0a141d;
  --border: #203243;

  --text: #f2f6fa;
  --muted: #8295a8;

  --blue: #1495ff;
  --blue-soft: rgba(20, 149, 255, .12);

  --green: #20d891;
  --yellow: #ffc04d;
  --red: #ff6370;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  min-height: 100vh;

  background:
    radial-gradient(
      circle at 78% 6%,
      rgba(0, 120, 230, .15),
      transparent 29%
    ),
    linear-gradient(
      rgba(25, 47, 63, .09) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(25, 47, 63, .09) 1px,
      transparent 1px
    ),
    var(--bg);

  background-size:
    auto,
    58px 58px,
    58px 58px,
    auto;

  color: var(--text);

  font-family:
    Inter,
    "Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


button,
input,
select,
textarea {
  font: inherit;
}


button {
  cursor: pointer;
}


.global-header {
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 28px;

  border-bottom: 1px solid var(--border);

  background: rgba(7, 13, 18, .94);

  backdrop-filter: blur(16px);

  position: sticky;
  top: 0;

  z-index: 100;
}


.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}


.brand-mark {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border: 1px solid #294154;

  border-radius: 8px;

  background: #0d1923;

  font-weight: 900;
}


.brand-mark span {
  color: var(--blue);
}


.brand-title {
  font-size: 12px;

  font-weight: 900;

  letter-spacing: .15em;
}


.brand-sub {
  margin-top: 3px;

  color: #71869a;

  font-size: 8px;

  letter-spacing: .17em;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}


.online-status {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 9px 12px;

  border: 1px solid var(--border);

  border-radius: 10px;

  color: #a9bdcc;

  font-size: 9px;

  letter-spacing: .18em;
}


.online-dot {
  width: 6px;
  height: 6px;

  border-radius: 999px;

  background: #22e394;

  box-shadow:
    0 0 12px rgba(34, 227, 148, .9);
}


.theme-button {
  width: 40px;
  height: 38px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: #0a141d;

  color: #dbe4eb;
}


.hero {
  padding: 90px 20px 58px;
}


.hero-inner {
  width: min(1050px, 100%);

  margin: 0 auto;
}


.hero-eyebrow,
.panel-eyebrow {
  color: #6ca8d5;

  font-size: 9px;

  letter-spacing: .21em;

  font-weight: 800;
}


.hero h1 {
  margin: 18px 0 18px;

  font-size: clamp(
    48px,
    6.5vw,
    83px
  );

  line-height: .98;

  letter-spacing: -.055em;
}


.hero h1 span {
  color: var(--blue);
}


.hero-description {
  color: #8da0b1;

  font-size: 14px;

  line-height: 1.9;
}


.search-box {
  width: min(760px, 100%);

  margin-top: 36px;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 0 18px;

  height: 62px;

  border: 1px solid #294054;

  border-radius: 15px;

  background: #0c1620;
}


.search-icon {
  color: #17a0ff;

  font-size: 24px;
}


.search-box input {
  width: 100%;

  border: 0;
  outline: 0;

  background: transparent;

  color: white;

  font-size: 14px;
}


.search-box input::placeholder {
  color: #687c8f;
}


.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 13px;
}


.quick-chips button {
  padding: 7px 11px;

  border: 1px solid #263b4c;

  border-radius: 999px;

  background: #0b151e;

  color: #8fa2b3;

  font-size: 10px;
}


.quick-chips button:hover,
.quick-chips button.active {
  border-color: var(--blue);

  background: var(--blue-soft);

  color: #8dceff;
}


.finder {
  padding: 0 20px 90px;
}


.finder-inner {
  width: min(1100px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    265px 1fr;

  gap: 18px;

  align-items: start;
}


.filter-panel,
.tracks-panel {
  border: 1px solid var(--border);

  border-radius: 16px;

  background: rgba(13, 23, 33, .94);
}


.filter-panel {
  padding: 22px;

  position: sticky;

  top: 92px;
}


.panel-heading,
.tracks-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding-bottom: 19px;

  border-bottom: 1px solid var(--border);
}


.panel-heading h2,
.tracks-heading h2 {
  margin: 8px 0 0;

  font-size: 20px;
}


.reset-button {
  border: 0;

  background: transparent;

  color: #25a7ff;

  font-size: 10px;
}


.filter-section {
  padding: 20px 0;

  border-bottom: 1px solid var(--border);
}


.filter-section h3 {
  margin: 0 0 14px;

  font-size: 11px;
}


.check-row {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 12px 0;

  color: #8fa1b2;

  font-size: 12px;
}


.check-row input {
  accent-color: var(--blue);
}


.switch-row {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 30px;

  color: #8fa1b2;

  font-size: 12px;
}


.switch-row input {
  position: absolute;

  opacity: 0;
}


.switch {
  width: 36px;
  height: 20px;

  border: 1px solid #31485a;

  border-radius: 999px;

  background: #101d28;

  position: relative;

  transition: .2s;
}


.switch::after {
  content: "";

  position: absolute;

  top: 3px;
  left: 3px;

  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: #748a9d;

  transition: .2s;
}


.switch-row input:checked + .switch {
  border-color: #168eea;

  background: rgba(20,149,255,.22);
}


.switch-row input:checked + .switch::after {
  left: 19px;

  background: #32aaff;
}


.license-warning {
  margin-top: 20px;

  padding: 14px;

  border: 1px solid rgba(255, 192, 77, .22);

  border-radius: 12px;

  background: rgba(255, 192, 77, .055);
}


.license-warning strong {
  color: #ffc75b;

  font-size: 11px;
}


.license-warning p {
  margin: 9px 0 0;

  color: #72879a;

  font-size: 10px;

  line-height: 1.7;
}


.tracks-panel {
  padding: 24px;
}


.track-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
}


.track-count strong {
  font-size: 27px;
}


.track-count span {
  color: #6d8192;

  font-size: 8px;

  letter-spacing: .15em;
}


.tracks-container {
  padding-top: 22px;
}


.loading,
.empty,
.error {
  padding: 70px 20px;

  text-align: center;

  color: #71879a;

  font-size: 13px;
}


.track-card {
  border: 1px solid #213647;

  border-radius: 14px;

  background: #0a141d;

  padding: 19px;

  margin-bottom: 13px;
}


.track-primary {
  display: flex;
  align-items: center;

  gap: 15px;
}


.play-button {
  width: 44px;
  height: 44px;

  flex: 0 0 auto;

  border: 1px solid #2a4356;

  border-radius: 11px;

  background: #0e1c27;

  color: #d8e5ee;

  font-size: 16px;
}


.play-button:hover:not(:disabled) {
  border-color: var(--blue);

  color: #55baff;
}


.play-button:disabled {
  opacity: .45;

  cursor: not-allowed;
}


.track-info {
  flex: 1;

  min-width: 0;
}


.track-title-line {
  display: flex;
  align-items: baseline;

  flex-wrap: wrap;

  gap: 9px;
}


.track-title {
  font-size: 16px;

  font-weight: 850;
}


.track-meta {
  color: #6d8192;

  font-size: 9px;
}


.track-artist {
  margin-top: 4px;

  color: #75899b;

  font-size: 10px;
}


.tags {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;

  margin-top: 11px;
}


.tag {
  padding: 5px 8px;

  border: 1px solid #263d4e;

  border-radius: 999px;

  color: #8ca0b1;

  font-size: 9px;
}


.track-actions {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-left: auto;
}


.details-button,
.source-button {
  padding: 10px 13px;

  border-radius: 9px;

  font-size: 10px;

  font-weight: 700;

  text-decoration: none;
}


.details-button {
  border: 1px solid #294153;

  background: #0b1721;

  color: #879bad;
}


.source-button {
  border: 0;

  background: #eef3f7;

  color: #071019;
}


.progress {
  height: 2px;

  margin:
    14px 0
    0
    59px;

  background: #1a3040;

  overflow: hidden;
}


.progress-bar {
  height: 100%;

  width: 0;

  background: var(--blue);
}


.license-badges {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;

  margin:
    12px 0
    0
    59px;
}


.badge {
  display: inline-flex;
  align-items: center;

  padding: 5px 8px;

  border-radius: 999px;

  font-size: 9px;
}


.badge.good {
  color: #3ce39f;

  border: 1px solid rgba(32,216,145,.3);

  background: rgba(32,216,145,.065);
}


.badge.warn {
  color: #ffc55b;

  border: 1px solid rgba(255,192,77,.3);

  background: rgba(255,192,77,.06);
}


.badge.bad {
  color: #ff7883;

  border: 1px solid rgba(255,99,112,.3);

  background: rgba(255,99,112,.06);
}


.track-details {
  display: none;

  margin-top: 17px;

  padding-top: 17px;

  border-top: 1px solid var(--border);

  color: #889bad;

  font-size: 11px;

  line-height: 1.8;
}


.track-details.open {
  display: block;
}


.detail-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px 24px;
}


.detail-label {
  color: #63788b;
}


.about-section {
  padding: 0 20px 90px;
}


.about-inner {
  width: min(1100px, 100%);

  margin: 0 auto;

  padding-top: 30px;

  border-top: 1px solid var(--border);

  display: flex;
  justify-content: space-between;

  gap: 40px;
}


.about-inner h2 {
  margin: 8px 0 0;
}


.about-inner p {
  width: min(520px, 100%);

  color: #75899b;

  font-size: 12px;

  line-height: 1.9;
}


footer {
  border-top: 1px solid var(--border);

  min-height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 0 30px;

  color: #62778a;

  font-size: 9px;

  letter-spacing: .13em;
}


body.light {
  --bg: #f6f8fa;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f9fb;
  --border: #d9e2e9;

  --text: #111a22;
  --muted: #657483;

  background: #f6f8fa;
}


body.light .global-header,
body.light .filter-panel,
body.light .tracks-panel,
body.light .track-card {
  background: #ffffff;
}


body.light .search-box {
  background: #ffffff;
}


body.light .search-box input {
  color: #111a22;
}


@media (max-width: 850px) {

  .finder-inner {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .about-inner {
    flex-direction: column;
  }

}


@media (max-width: 650px) {

  .global-header {
    padding: 0 14px;
  }

  .hero {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .finder,
  .hero,
  .about-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tracks-panel {
    padding: 15px;
  }

  .track-primary {
    align-items: flex-start;
  }

  .track-actions {
    width: 100%;

    margin:
      15px 0
      0
      59px;
  }

  .track-card {
    overflow: hidden;
  }

  .details-button,
  .source-button {
    flex: 1;

    text-align: center;
  }

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

  footer {
    flex-direction: column;

    justify-content: center;

    align-items: flex-start;
  }

}