* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Indie Flower', cursive;
  overflow-x: hidden;
  color: #000;
}

/* ── grid background ── */
.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-grid::before,
.page-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 92, 92, 0.34) 0%,
    rgba(255, 110, 110, 0.32) 28%,
    rgba(228, 168, 92, 0.31) 68%,
    rgba(196, 176, 96, 0.34) 100%
  );
}
.page-grid::before {
  -webkit-mask-image: repeating-linear-gradient(to right, #000 0 1px, transparent 1px 125px);
  mask-image: repeating-linear-gradient(to right, #000 0 1px, transparent 1px 125px);
}
.page-grid::after {
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 1px, transparent 1px 125px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 1px, transparent 1px 125px);
}


/* ── page content ── */
.page-content {
  position: relative;
  z-index: 1;
  width: 1440px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 80px 80px;
}

/* ── search ── */
.search-section {
  padding: 20px 0 40px;
}
.search-wrap {
  position: relative;
  width: 780px;
  max-width: 100%;
  margin: 0 auto;
  height: 88px;
}
.search-box-bg {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 44px;
  box-shadow: 4px 4px 0 #000;
}
.search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  z-index: 2;
}
.search-input {
  position: absolute;
  left: 76px;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Indie Flower', cursive;
  font-size: 32px;
  color: #000;
  z-index: 2;
  width: calc(100% - 104px);
}
.search-input::placeholder { color: #999; }

.search-clear {
  display: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
  z-index: 2;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: background 0.1s, color 0.1s;
}
.search-clear:hover { background: #f0f0f0; color: #555; }

.search-no-results {
  text-align: center;
  font-size: 28px;
  color: #999;
  margin-top: 18px;
  font-style: italic;
}

/* ── genre pills ── */
.genre-section { margin-bottom: 56px; }
.section-label {
  font-size: 28px;
  color: #666;
  margin-bottom: 18px;
}
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pill {
  background: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  padding: 6px 28px;
  font-family: 'Indie Flower', cursive;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
}
.pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}
.pill-active {
  background: #000;
  color: #fff;
}

/* ── section titles ── */
.section-title-block {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}
.section-title-bg {
  position: absolute;
  left: 10px;
  top: 14px;
  right: 10px;
  bottom: 4px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 14px;
}
.section-title {
  position: relative;
  font-size: 44px;
  line-height: 64px;
  font-weight: 400;
  padding: 0 20px;
}
.gradient-gold {
  background: linear-gradient(180deg, #000000 0%, #E8B857 77%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-orange {
  background: linear-gradient(90deg, #E96F4C 0%, #354D60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── artists grid ── */
.artists-section { margin-bottom: 72px; }
.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.artist-card {
  position: relative;
}
.acard-bg {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 28px;
  box-shadow: 5px 5px 0 #000;
  transform: rotate(-0.4deg);
}
.acard-inner {
  position: relative;
  z-index: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.artist-avatar {
  width: 80px;           
  height: 80px;
  border-radius: 50%;    
  object-fit: cover;     
  display: block;
  margin: 0 auto 12px;
  border: 2px solid #ddd;
}
.acard-name {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
}
.acard-genre {
  font-size: 22px;
  color: #555;
}
.acard-stats {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}
.astat {
  font-size: 24px;
  background: #f5f5f5;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 2px 12px;
}

/* ── albums grid ── */
.albums-section { margin-bottom: 72px; }
.albums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.album-card {
  position: relative;
}
.album-card-bg {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 22px;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(0.3deg);
}
.album-cover-wrap {
  position: relative;
  z-index: 1;
  padding: 18px 18px 0;
}
.album-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  display: block;
}
.album-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.album-info {
  position: relative;
  z-index: 1;
  padding: 12px 18px 18px;
}
.album-title {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 2px;
}
.album-artist {
  font-size: 20px;
  color: #444;
}
.album-year {
  font-size: 18px;
  color: #888;
  margin-bottom: 6px;
}
.album-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.score-star { font-size: 22px; }
.album-score { font-size: 24px; font-weight: 400; }

/* ── responsive ── */

@media (max-width: 1200px) {
  .albums-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .page-content { padding: 0 24px 60px; }
  .artists-grid { grid-template-columns: repeat(2, 1fr); }
  .albums-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .artists-grid, .albums-grid { grid-template-columns: 1fr; }
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    border: 2px solid #000;
    border-radius: 18px;
    box-shadow: 3px 3px 0 #000;
    z-index: 0;
  }
  .page-content { padding: 0 16px 40px; }
  .search-wrap { height: 64px; }
  .search-input { font-size: 22px; }
  .search-icon { font-size: 24px; }
  .pill { font-size: 20px; padding: 4px 18px; }
  .section-title { font-size: 32px; line-height: 48px; }
}


/* =========================
   FOOTER (updated)
========================= */

.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 20px 32px;
  margin-top: 60px;
}

.footer-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 80px 36px;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 2.5px solid #000;
  border-radius: 32px;
  box-shadow: 5px 5px 0 #000;
  transform: rotate(-0.25deg);
}

.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 220px;
}

.footer-logo { width: 52px; height: 47px; object-fit: contain; }
.footer-tagline { font-size: 22px; color: #444; font-family: 'Indie Flower', cursive; }
.footer-desc { font-size: 16px; color: #888; font-family: 'Indie Flower', cursive; line-height: 1.5; margin-top: 4px; }

.footer-nav-group { display: flex; flex-direction: column; gap: 10px; }

.footer-group-label {
  font-size: 14px;
  font-family: 'Indie Flower', cursive;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.footer-links, .footer-auth, .footer-about-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-link {
  text-decoration: none;
  font-size: 24px;
  color: #000;
  font-family: 'Indie Flower', cursive;
  transition: opacity 0.15s;
}
.footer-link:hover { opacity: 0.6; }

.footer-divider {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  border: none;
  border-top: 1.5px dashed #ccc;
}

.footer-bottom-row {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-credit { font-size: 16px; color: #aaa; font-family: 'Indie Flower', cursive; }

.footer-social { display: flex; gap: 18px; align-items: center; }
.footer-social-link {
  text-decoration: none;
  font-size: 22px;
  color: #666;
  font-family: 'Indie Flower', cursive;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}
.footer-social-link:hover { color: #000; transform: scale(1.15); }

@media (max-width: 1024px) {
  .footer-inner { padding: 36px 40px 28px; }
}

@media (max-width: 480px) {
  .footer-inner { padding: 24px 18px 18px; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-link { font-size: 20px; }
  .footer-bottom-row { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer-social { justify-content: flex-start; }
}
