:root {
  color-scheme: light dark;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --bg: #07080a;
  --fg: #f5f5f5;
  --muted: #9aa0a7;
  --card: #11131a;
  --accent: #7c5dff;
  --chip-bg: #1f2230;
  --chip-active: #f0e8ff;
  --chip-active-text: #1d1530;
  --border: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: radial-gradient(circle at 10% 20%, #161827, #05060a 70%);
  color: var(--fg);
  overflow: hidden;
}

.page-shell {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  width: 100%;
  padding: 3.5rem clamp(1rem, 4vw, 5rem) 4rem;
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 1.55;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
}

.page-shell::-webkit-scrollbar {
  display: none;
}

.page-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.2rem;
  margin: 0.4rem 0 0.6rem;
  display: inline-flex;
  align-items: center;
  line-height: 1.12;
}

.page-header h1 a {
  color: inherit;
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.3rem;
  margin: 0;
  color: var(--muted);
}

.lead {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.controls-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 1.75rem auto 1.5rem;
}

.search-panel {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 0;
  position: relative;
}

.search-group {
  width: min(520px, 92vw);
  position: relative;
}

.search-field {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.65);
  color: var(--fg);
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-field:focus {
  border-color: rgba(124, 93, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(124, 93, 255, 0.2);
}

.ad-banner {
  display: block;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 10 / 1;
  min-height: 70px;
  border-radius: 22px;
  margin: 0 auto 1.75rem;
  background-color: #2a2d36;
  background-image: url("./images/ad.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tag-trigger {
  border: 1px solid var(--border);
  background: rgba(8, 10, 18, 0.65);
  color: var(--fg);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, transform 180ms ease;
}

.tag-trigger:hover {
  border-color: rgba(124, 93, 255, 0.5);
  transform: translateY(-1px);
}

.tag-trigger .chevron {
  display: inline-block;
  transition: transform 180ms ease;
}

.tag-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.tag-dropdown {
  width: min(520px, 92vw);
  max-height: 260px;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 20, 0.82);
  padding: 0.9rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 10;
}

.tag-dropdown .tag-chip {
  justify-content: center;
}

@media (min-width: 1024px) {
  .tag-dropdown {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.tag-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.tag-chip.active {
  background: var(--chip-active);
  color: var(--chip-active-text);
  border-color: transparent;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .controls-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .search-panel {
    flex: 1;
  }

  .search-group {
    width: 100%;
  }

  .filter-panel {
    flex: 0 0 auto;
    align-items: flex-end;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  border-radius: 22px;
  border: 1px solid transparent;
  min-height: 240px;
  aspect-ratio: 1 / 1;
  background-size: 101%;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
  isolation: isolate;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.card.mv .mv-label {
  position: absolute;
  top: 0.75rem;
  left: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(12, 15, 20, 0.5);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 0.12rem 0.55rem;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}

.card.mv .mv-label::before {
  display: none;
  content: "";
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(5, 6, 10, 0.9));
  border-radius: 24px;
  z-index: 1;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 30%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.9) 100%, rgba(0, 0, 0, 0.98) 100%);
  z-index: 0;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border: 1px solid rgba(124, 93, 255, 0.5);
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.55);
}

.card-info {
  position: absolute;
  inset: auto 1.1rem 1.1rem;
  padding: 0;
  width: calc(100% - 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  text-align: left;
  z-index: 2;
  color: #fff;
  overflow: hidden;
}

.card h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.015em;
  line-height: 1.15;
}

.meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  flex-wrap: nowrap;
}

.artist {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.artist span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transform: translateX(0);
  will-change: transform;
}

.artist span::after {
  content: "";
}

.artist.is-overflow {
  text-overflow: clip;
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0)
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 15%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 0)
  );
}

.artist.is-overflow span::after {
  content: attr(data-text);
  padding-left: 1.5rem;
}

.artist.is-overflow span {
  animation: marquee 10s linear infinite;
}




.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 93, 255, 0.2);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #f7f1ff;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

  .search-panel {
    margin: 1.5rem auto 0.5rem;
    width: 100%;
  }

  .filter-panel {
    align-items: stretch;
  }

  .tag-dropdown {
    width: 100%;
  }

  .search-group {
    width: 100%;
  }

  .card-info {
    width: calc(100% - 1.5rem);
    inset: auto 0.75rem 0.75rem;
  }

  .meta-line {
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .badges {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.2rem;
    overflow-x: auto;
  }
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 20px;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.75rem auto 0;
  padding: 0.7rem 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 24, 0.94);
  color: var(--fg);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  gap: 0.45rem;
  padding-right: 2.3rem;
  position: relative;
}

.load-more::after {
  content: "＋";
  position: absolute;
  right: 0.9rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.load-more::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(circle at 30% 0%, rgba(124, 93, 255, 0.55), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(0, 210, 255, 0.45), transparent 55%);
  opacity: 0.5;
  filter: blur(20px);
  transform: scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: -1;
}

.load-more:hover {
  border-color: rgba(124, 93, 255, 0.8);
  background: rgba(16, 18, 34, 0.97);
  transform: translateY(-1px);
}

.load-more:hover::before {
  opacity: 0.9;
  transform: scale(1);
}

.promo-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(416px, 90vw);
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(12, 15, 20, 0.08);
  color: #0c0f14;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.promo-popup.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.promo-media {
  width: 90px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  padding: 0.2rem 0;
}

.promo-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.promo-sub {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(12, 15, 20, 0.7);
  line-height: 1.35;
}

.promo-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: none;
  background: transparent;
  color: rgba(12, 15, 20, 0.45);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 180ms ease;
}

.promo-close:hover {
  color: rgba(12, 15, 20, 0.85);
}

@media (max-width: 520px) {
  .promo-popup {
    bottom: 1rem;
    right: 1rem;
    width: calc(100vw - 2rem);
  }
}

