@font-face {
  font-family: "CandyPillSans";
  src: url("./assets/a34f9d1faa5f3315-s.p-658c9f47.woff2") format("woff2");
  font-display: swap;
}

body {
  font-family: "CandyPillSans", Arial, Helvetica, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

.cp-home-main {
  padding-bottom: max(6rem, env(safe-area-inset-bottom, 0px));
}

.active-filter {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
  box-shadow: none;
}

.artwork img {
  transition: transform 0.25s ease;
}

.artwork:hover img {
  transform: scale(1.015);
}

.pt-32 {
  padding-top: 170px !important;
}

.modal-open {
  overflow: hidden;
}

.cp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cp-modal {
  background: transparent;
  max-width: none;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

.cp-close-og {
  position: fixed;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  z-index: 90;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: #000;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
  transition: background-color 0.15s ease;
}

.cp-close-og:hover {
  background: #1f2937;
}

.cp-close-og:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.cp-close-og-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .cp-close-og {
    top: calc(6rem + env(safe-area-inset-top, 0px));
    right: max(2rem, env(safe-area-inset-right, 0px));
  }
}

.cp-artwork-prose {
  color: #111827;
  font-size: 1rem;
  line-height: 1.625;
  max-width: 65ch;
}

.cp-modal-youtube {
  width: 100%;
  max-width: min(100%, 1200px);
  aspect-ratio: 16 / 9;
  max-height: min(80vh, 80dvh);
  height: auto;
  border: 0;
  display: block;
  background: #000;
}

.cp-modal-overlay dl dd {
  margin: 0.15rem 0 0;
}

.cp-about h1 {
  margin-top: 0;
}

.cp-about h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.cp-about h3 {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.cp-about h4 {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.cp-about p {
  margin: 0 0 8px;
}

.cp-about ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.about-layout {
  max-width: 1800px;
  margin: 0 auto;
  padding: 6.5rem 1rem 2.5rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
}

@media (min-width: 640px) {
  .about-layout {
    padding: 7.25rem 1.5rem 3rem;
  }
}

@media (min-width: 768px) {
  .about-layout {
    padding: 7.25rem 2rem 3rem;
  }
}

.about-hero {
  margin-bottom: 42px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-portrait-wrap {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-heading h1 {
  margin: 0 0 8px;
}

.about-heading h2 {
  margin: 0;
}

.about-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-music-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.about-music-links a {
  color: #111827;
  text-decoration: none;
}

.detail-body {
  background: #fff;
  color: #111827;
}

.detail-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 1rem 3rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .detail-main {
    padding: 6.5rem 1.25rem 3.75rem;
  }
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.back-link {
  color: #374151;
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
}

.detail-content {
  max-width: 760px;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.detail-image-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.detail-media {
  width: 100%;
  max-height: min(80vh, 80dvh);
  height: auto;
  display: block;
  background: #f9fafb;
  object-fit: contain;
}

.detail-iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: min(80vh, 80dvh);
  min-height: 200px;
}

.detail-meta h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.detail-category {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.detail-year {
  margin-top: 0;
  color: #6b7280;
}

.detail-meta ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.detail-nav {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.detail-nav a {
  color: #111827;
  text-decoration: none;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
}

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

  .detail-meta h1 {
    font-size: 1.65rem;
  }

  .detail-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .detail-header {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-header .back-link {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .about-hero {
    flex-direction: row;
    align-items: flex-end;
  }

  .about-portrait-wrap,
  .about-heading {
    width: 50%;
  }

  .about-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
