:root {
  --ink: #161515;
  --muted: #716a63;
  --paper: #f7f3ec;
  --paper-strong: #fffaf2;
  --line: #ddd3c7;
  --black: #101010;
  --red: #d84034;
  --cyan: #1ba6b8;
  --gold: #b38a47;
  --radius: 8px;
  --shadow: 0 20px 70px rgba(18, 17, 15, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Microsoft YaHei",
    system-ui, sans-serif;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  outline-offset: 4px;
}

.site-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  color: #fffaf2;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.82) 0%, rgba(9, 9, 8, 0.58) 42%, rgba(9, 9, 8, 0.08) 76%),
    linear-gradient(0deg, rgba(16, 16, 16, 0.88) 0%, rgba(16, 16, 16, 0.08) 38%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.nav-link,
.primary-action,
.watch-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 250, 242, 0.5);
  background: rgba(216, 64, 52, 0.82);
  font-weight: 900;
}

.nav-link {
  border-bottom: 1px solid rgba(255, 250, 242, 0.65);
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10vh 0 13vh;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #ff6b56;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 250, 242, 0.84);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.primary-action,
.ghost-action {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  background: #fffaf2;
  color: var(--ink);
  font-weight: 800;
}

.ghost-action {
  width: 48px;
  color: #fffaf2;
  background: rgba(255, 250, 242, 0.14);
  border: 1px solid rgba(255, 250, 242, 0.38);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(760px, calc(100% - 40px));
  margin: 0 auto -1px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  background: rgba(16, 16, 16, 0.72);
  backdrop-filter: blur(16px);
}

.hero-metrics div {
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 250, 242, 0.18);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.hero-metrics small {
  color: rgba(255, 250, 242, 0.68);
  text-transform: uppercase;
}

.archive-shell {
  padding: 34px 0 70px;
}

.control-panel,
.workspace {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-wrap,
.filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-wrap input,
.filters select {
  height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  text-transform: none;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.toggles {
  display: grid;
  gap: 8px;
  min-width: 142px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.player-panel {
  min-width: 0;
}

.panel-sticky {
  position: sticky;
  top: 18px;
  background: var(--black);
  color: #fffaf2;
  box-shadow: var(--shadow);
}

.player-frame {
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.empty-player {
  display: grid;
  place-items: center;
  height: 100%;
  color: rgba(255, 250, 242, 0.62);
  text-align: center;
  padding: 24px;
}

.selected-info {
  padding: 22px;
}

.selected-date,
.selected-info > p {
  color: rgba(255, 250, 242, 0.7);
}

.selected-info h2 {
  margin-bottom: 4px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.meta-grid div {
  border: 1px solid rgba(255, 250, 242, 0.18);
  padding: 10px;
}

.meta-grid dt {
  color: rgba(255, 250, 242, 0.54);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 4px 0 0;
  color: #fffaf2;
}

.tie-up {
  margin-bottom: 14px;
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
}

.track-list {
  margin: 0 0 18px;
  padding-left: 22px;
  color: rgba(255, 250, 242, 0.86);
}

.track-list li + li {
  margin-top: 5px;
}

.watch-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.watch-link[aria-disabled="true"] {
  pointer-events: none;
  background: rgba(255, 250, 242, 0.16);
  color: rgba(255, 250, 242, 0.5);
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.results-head h2 {
  margin: 0;
  font-size: 2rem;
}

#result-count {
  color: var(--muted);
  font-weight: 800;
}

.month-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.month-chip {
  flex: 0 0 auto;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: #fffaf2;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.month-chip.is-active {
  border-color: var(--black);
  background: var(--black);
  color: #fffaf2;
}

.single-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 16px;
}

.single-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffaf2;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.single-card:hover,
.single-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(216, 64, 52, 0.55);
  box-shadow: 0 18px 40px rgba(18, 17, 15, 0.14);
}

.single-card.is-active {
  border-color: var(--black);
  box-shadow: 0 0 0 2px var(--black);
}

.cover-wrap {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.18;
  background:
    linear-gradient(135deg, rgba(16, 16, 16, 0.08), rgba(216, 64, 52, 0.08)),
    #ebe2d7;
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.86);
  color: #fffaf2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.play-badge.is-missing {
  background: rgba(16, 16, 16, 0.38);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 13px;
}

.card-date {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.28;
}

.card-artist,
.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.tag.youtube {
  border-color: rgba(27, 166, 184, 0.45);
  color: #087d8d;
}

.tag.chart {
  border-color: rgba(232, 181, 72, 0.52);
  color: #9a6600;
}

.tag.chart.muted {
  border-color: rgba(255, 250, 242, 0.18);
  color: var(--muted);
}

.empty-state {
  padding: 38px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .control-panel,
  .workspace {
    grid-template-columns: 1fr;
  }

  .panel-sticky {
    position: static;
  }

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

@media (max-width: 640px) {
  .topbar,
  .hero-content,
  .control-panel,
  .workspace,
  .hero-metrics {
    width: min(100% - 28px, 1180px);
  }

  .site-hero {
    min-height: 88vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 9, 8, 0.88), rgba(9, 9, 8, 0.48)),
      linear-gradient(0deg, rgba(16, 16, 16, 0.9), rgba(16, 16, 16, 0.18));
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-content {
    padding-top: 9vh;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-metrics div {
    padding: 14px 12px;
  }

  .hero-metrics span {
    font-size: 1.45rem;
  }

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

  .single-grid {
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
