@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
  --blush: #f7e7dc;
  --blush-dim: #f1dccc;
  --ink: #1f1f1f;
  --ink-soft: #4a4340;
  --blue: #2c5fe0;
  --pink: #e23e76;
  --tomato: #dd4a22;
  --yellow: #f2be3c;
  --paper: #fffaf3;
  --line: rgba(31,31,31,0.14);
  --shadow: 0 10px 24px rgba(31,20,10,0.14);
  --radius: 18px;
}

[data-theme="dark"] {
  --blush: #1b1310;
  --blush-dim: #241a15;
  --ink: #f6ece2;
  --ink-soft: #cdbfb4;
  --paper: #241a15;
  --line: rgba(246,236,226,0.16);
  --shadow: 0 10px 28px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  transition: background 0.3s ease, color 0.3s ease;
}

.display {
  font-family: 'Archivo Black', sans-serif;
  text-transform: none;
  letter-spacing: -0.01em;
}

a { color: inherit; }

/* Header */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand h1 {
  font-size: clamp(20px, 3vw, 26px);
  margin: 0;
}

.brand span.dot {
  color: var(--tomato);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.playlist-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}
.playlist-bar:hover { background: var(--paper); transform: translateY(-1px); }

button.icon-btn {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.15s ease, background 0.15s ease;
}
button.icon-btn:hover { transform: translateY(-1px); background: var(--paper); }

/* Hero */

.hero {
  padding: clamp(40px, 8vw, 90px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 48px);
  max-width: 920px;
}

.hero h2 {
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  margin: 0 0 18px;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.5;
  margin: 0 0 30px;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); background: var(--tomato); }

.card-count {
  color: var(--ink-soft);
  font-size: 14px;
}

/* Search */

.search-bar {
  margin: 0 clamp(20px, 5vw, 56px) 20px;
  max-width: 480px;
}

.search-bar input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.search-bar input:focus { border-color: var(--blue); }
.search-bar input::placeholder { color: var(--ink-soft); }

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
  padding: 10px clamp(20px, 5vw, 56px) 20px;
}

.grid-more {
  display: flex;
  justify-content: center;
  padding: 20px clamp(20px, 5vw, 56px) 70px;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-secondary:hover { background: var(--paper); transform: translateY(-2px); }

.card-tile {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
  border: 1px solid var(--line);
  position: relative;
}
.card-tile:hover { transform: translateY(-4px); }

.card-tile img {
  width: 100%;
  display: block;
  aspect-ratio: 760 / 1154;
  object-fit: cover;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(20,14,10,0.82) 0%, rgba(20,14,10,0.45) 45%, rgba(20,14,10,0) 75%);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.card-tile:hover .tile-overlay,
.card-tile:focus-visible .tile-overlay {
  opacity: 1;
}

.tile-overlay .tile-label {
  color: #fffaf3;
  font-size: 13px;
  line-height: 1.3;
}

.tile-overlay .tile-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  color: var(--yellow);
  display: block;
  margin-bottom: 3px;
}

.empty-state {
  padding: 60px clamp(20px, 5vw, 56px);
  color: var(--ink-soft);
  font-size: 16px;
}

/* Detail overlay */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.overlay.open { display: flex; }

.detail-card {
  background: var(--paper);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

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

.detail-image img {
  width: 100%;
  display: block;
}

.detail-body {
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.detail-num {
  font-family: 'Archivo Black', sans-serif;
  color: var(--tomato);
  font-size: 13px;
}

.detail-body h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  line-height: 1.08;
}

.detail-body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
}

.detail-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  font-size: 20px;
  z-index: 51;
}
.detail-nav.prev { left: clamp(8px, 3vw, 30px); }
.detail-nav.next { right: clamp(8px, 3vw, 30px); }
.detail-nav:hover { background: #fff; }

/* Playlist block */

.playlist-block {
  margin: 20px clamp(20px, 5vw, 56px) 60px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.playlist-eyebrow {
  display: block;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.playlist-text p {
  font-size: clamp(20px, 2.6vw, 28px);
  margin: 0 0 20px;
  max-width: 30ch;
  line-height: 1.2;
  font-family: 'Archivo Black', sans-serif;
}

.playlist-play {
  display: inline-block;
  text-decoration: none;
}

.playlist-qr img {
  display: block;
  border-radius: 12px;
  background: var(--paper);
  padding: 10px;
}

@media (max-width: 640px) {
  .playlist-block { flex-direction: column; align-items: flex-start; }
}

/* Footer */

footer.site {
  padding: 40px clamp(20px, 5vw, 56px) 60px;
  color: var(--ink-soft);
  font-size: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
