@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;700;800&display=swap");

:root {
  --bg: #06080f;
  --bg-soft: #0b1020;
  --surface: #10172a;
  --surface-2: #0f1f35;
  --text: #eef3ff;
  --muted: #9cabcb;
  --line: #233455;
  --line-strong: #2f4a78;
  --accent: #4de57b;
  --accent-2: #7dd3fc;
  --shadow: 0 14px 50px rgba(3, 7, 18, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 8% -10%, #15356f44 0%, transparent 60%),
    radial-gradient(900px 600px at 95% 0%, #0ea5e933 0%, transparent 62%),
    linear-gradient(180deg, #070b15 0%, var(--bg) 35%, #04060b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.wrap {
  width: min(1220px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #09111f 0%, #070d19 80%, transparent 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 340px;
  background: radial-gradient(circle at 30% 40%, #1e40af30 0%, transparent 60%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding: 72px 0 52px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: #92a7d5;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  max-width: 14ch;
}

.lead {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats span {
  border: 1px solid var(--line-strong);
  background: #0e1a31;
  color: #d8e4ff;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

main {
  padding: 34px 0 56px;
}

.catalog-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.control-label {
  font-size: 0.88rem;
  color: #9bb0dc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#searchBox {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #0b162b;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#searchBox::placeholder {
  color: #7f92ba;
}

#searchBox:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px #38bdf81c;
  transform: translateY(-1px);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-chip {
  border: 1px solid var(--line-strong);
  background: #0d1930;
  color: #c5d4f6;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  border-color: #5a7fc6;
  color: #eaf1ff;
  transform: translateY(-1px);
}

.filter-chip.active {
  background: linear-gradient(120deg, #1a4b3d, #123625);
  border-color: #2c8d62;
  color: #dcffe9;
}

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

.card {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface) 0%, #0d1526 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.playlist-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.playlist-card:hover {
  transform: translateY(-5px);
  border-color: #3c5786;
  box-shadow: 0 22px 56px rgba(5, 10, 24, 0.7);
}

.cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #243553;
  background: #0b1426;
}

.cover-fallback {
  display: grid;
  place-items: center;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
  color: #e7f0ff;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 20% 16%, #1e3a8a80 0%, transparent 45%),
    radial-gradient(circle at 82% 84%, #0ea5e96b 0%, transparent 52%),
    linear-gradient(165deg, #102347 0%, #0b1528 100%);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 16px;
  flex: 1;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #37507e;
  color: #d5e4ff;
  background: #101f3d;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 700;
}

.card h2 {
  margin: 0;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.card h2 a {
  color: #f0f6ff;
}

.card h2 a:hover {
  color: #bde7ff;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.kw {
  color: #95a7cc;
  border: 1px dashed #2f456e;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.73rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 6px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #2f456e;
  background: #111f3c;
  color: #e6f0ff;
  padding: 8px 13px;
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.links a:hover {
  transform: translateY(-1px);
  border-color: #4f70ad;
  background: #172b51;
}

.load-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.load-more {
  border: 1px solid #2f8d62;
  background: linear-gradient(135deg, #1d7d53, #145c3d);
  color: #e9fff2;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.load-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(21, 110, 71, 0.42);
}

iframe {
  width: 100%;
  height: 355px;
  border: 0;
  border-radius: 14px;
  background: #09101f;
}

footer {
  border-top: 1px solid var(--line);
  color: #8fa0c1;
  font-size: 0.88rem;
  padding: 18px 0 34px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #a9c0ed;
  font-weight: 700;
}

.back:hover {
  color: #d8e9ff;
}

.detail-hero h1 {
  max-width: 18ch;
}

.detail-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.detail-main {
  padding: 18px;
}

.detail-cover {
  border-radius: 14px;
  margin-bottom: 14px;
}

.meta-list {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.related {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--surface) 0%, #0d1526 100%);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.related h2 {
  margin: 0 0 10px;
  font-family: "Syne", "Trebuchet MS", sans-serif;
  font-size: 1.08rem;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.related a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: #c8dbff;
  border: 1px solid #243758;
  background: #0d1a31;
  font-size: 0.9rem;
}

.related a:hover {
  border-color: #3d5e94;
  color: #eaf3ff;
}

@media (min-width: 980px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .hero .wrap {
    padding: 52px 0 36px;
  }

  h1 {
    max-width: none;
  }

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

  .links a {
    flex: 1 1 auto;
  }

  iframe {
    height: 320px;
  }
}
