.performance-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 10%, rgb(243 57 145 / 13%), transparent 29rem),
    radial-gradient(circle at 88% 48%, rgb(126 86 196 / 14%), transparent 31rem),
    linear-gradient(135deg, #fff8ee 0%, #fff2f7 52%, #f7f2ff 100%);
}

.performance-shell {
  width: min(100% - clamp(1rem, 4vw, 5rem), 92rem);
  margin-inline: auto;
  padding-block: clamp(0.8rem, 2vw, 1.5rem) 2rem;
}

.performance-topbar {
  margin-bottom: clamp(1.2rem, 3vw, 3rem);
}

.performance-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fffafc 0%, #fff0f7 54%, #f7f1ff 100%);
  border: 1px solid var(--cheer-line);
  border-radius: clamp(1.8rem, 3vw, 3.5rem);
  box-shadow: var(--cheer-shadow);
}

.performance-hero-photo {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 740 / 290;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 3%), rgb(243 57 145 / 10%)),
    url("./apink_dome.webp") center / cover no-repeat;
  border-bottom: 1px solid rgb(243 57 145 / 14%);
}

.performance-hero-copy,
.performance-scoreboard {
  position: relative;
  z-index: 1;
}

.performance-hero-copy {
  max-width: 42rem;
  padding: clamp(1.8rem, 4vw, 3.6rem);
}

.performance-eyebrow,
.performance-kicker {
  margin: 0;
  color: var(--cheer-pink-700);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

.performance-hero-copy > p:last-child {
  max-width: 37rem;
  margin: 0.8rem 0 0;
  color: var(--cheer-ink-soft);
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  line-height: 1.85;
}

.performance-scoreboard {
  display: grid;
  gap: 0.25rem;
  align-content: center;
  min-height: 0;
  margin-right: clamp(1.8rem, 4vw, 3.6rem);
  padding: 0.85rem 1.1rem;
  color: var(--cheer-ink-soft);
  background: linear-gradient(145deg, rgb(255 255 255 / 92%), rgb(247 232 255 / 92%));
  border: 1px solid rgb(126 86 196 / 16%);
  border-radius: 1.2rem;
  box-shadow: 0 12px 28px rgb(64 35 81 / 12%);
  text-align: center;
  backdrop-filter: blur(12px);
}

.performance-scoreboard span {
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.performance-scoreboard strong {
  color: var(--cheer-pink-700);
  font-family: "Outfit", var(--cheer-sans);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 1.1rem rgb(243 57 145 / 18%);
}

.performance-library {
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
  padding: clamp(1rem, 2.8vw, 2.4rem);
  background: rgb(255 255 255 / 66%);
  border: 1px solid var(--cheer-line);
  border-radius: clamp(1.5rem, 2.5vw, 2.5rem);
  box-shadow: 0 18px 42px rgb(64 35 81 / 10%);
  backdrop-filter: blur(20px);
}

.performance-library-head {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  padding-inline: 0.35rem;
}

.performance-library-head h2 {
  margin: 0.35rem 0 0;
  font-family: var(--cheer-serif);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.performance-total {
  margin: 0;
  color: var(--cheer-ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: right;
}

.performance-tabs-wrap {
  position: sticky;
  z-index: 10;
  top: 0;
  margin: 1.4rem -0.2rem 1.25rem;
  padding: 0.45rem;
  overflow: hidden;
  background: rgb(255 248 250 / 88%);
  border: 1px solid var(--cheer-line);
  border-radius: 1.2rem;
  backdrop-filter: blur(18px);
}

.performance-tabs {
  display: flex;
  gap: 0.38rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.performance-tabs::-webkit-scrollbar {
  display: none;
}

.performance-tab {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.48rem;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.58rem 0.86rem;
  color: var(--cheer-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 0.85rem;
  font-family: var(--cheer-sans);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.performance-tab:hover,
.performance-tab:focus-visible {
  color: var(--cheer-pink-700);
  background: rgb(243 57 145 / 8%);
  outline: none;
}

.performance-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--cheer-pink-500), var(--cheer-pink-700));
  box-shadow: 0 8px 18px rgb(214 29 120 / 20%);
}

.performance-tab--youtube.is-active {
  background: linear-gradient(135deg, #ff3d5a, #d91d78);
}

.performance-tab b {
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.25rem;
  place-items: center;
  background: rgb(53 27 76 / 8%);
  border-radius: 999px;
  font-size: 0.61rem;
}

.performance-tab.is-active b {
  background: rgb(255 255 255 / 24%);
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 34rem));
  align-items: start;
  justify-content: center;
  gap: clamp(0.8rem, 1.5vw, 1.25rem);
  min-height: 15rem;
}

.performance-loading,
.performance-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 15rem;
  place-items: center;
  align-content: center;
  gap: 0.9rem;
  color: var(--cheer-ink-soft);
  text-align: center;
}

.performance-loading p,
.performance-empty p {
  max-width: 34rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
}

.performance-empty strong {
  color: var(--cheer-ink);
  font-family: var(--cheer-serif);
  font-size: 1.5rem;
}

.performance-spinner {
  width: 2.5rem;
  aspect-ratio: 1;
  border: 3px solid var(--cheer-pink-100);
  border-top-color: var(--cheer-pink-500);
  border-radius: 50%;
  animation: performanceSpin 800ms linear infinite;
}

.performance-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: rgb(255 255 255 / 88%);
  border: 1px solid var(--cheer-line);
  border-radius: 1.35rem;
  box-shadow:
    0 12px 30px rgb(214 29 120 / 7%),
    0 3px 10px rgb(126 86 196 / 6%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.performance-card:hover,
.performance-card:focus-within {
  box-shadow:
    0 18px 38px rgb(214 29 120 / 11%),
    0 5px 14px rgb(126 86 196 / 8%);
  transform: translateY(-3px);
}

.performance-card-link {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.performance-card--embed {
  overflow: hidden;
}

.performance-embed-shell {
  position: relative;
  width: 100%;
  min-height: 25rem;
  overflow: hidden;
  background: linear-gradient(145deg, #ffd0e8, #bda7e7);
}

.performance-embed-shell--instagram {
  min-height: 38rem;
  background: linear-gradient(145deg, #833ab4, #e1306c 58%, #fcb045);
}

.performance-embed-shell--threads {
  background: linear-gradient(145deg, #f6eaff, #ffd8e9 70%);
}

.performance-embed-shell[aria-busy="false"] {
  min-height: 0;
}

.performance-embed-frame {
  display: block;
  width: 100%;
  height: 12.5rem;
  min-width: 0;
  background: transparent;
  border: 0;
  opacity: 0;
  transition: opacity 250ms ease;
}

.performance-embed-frame.is-ready {
  opacity: 1;
}

.performance-embed-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.85rem;
  place-content: center;
  color: rgb(255 255 255 / 82%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  pointer-events: none;
}

.performance-embed-spinner {
  width: 2rem;
  aspect-ratio: 1;
  margin-inline: auto;
  border: 3px solid rgb(255 255 255 / 24%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: performanceSpin 800ms linear infinite;
}

.performance-embed-shell--threads .performance-embed-placeholder {
  color: var(--cheer-ink-soft);
}

.performance-embed-shell--threads .performance-embed-spinner {
  border-color: rgb(126 86 196 / 18%);
  border-top-color: var(--cheer-lavender-500);
}

.performance-card-media {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #ffd0e8, #bda7e7);
}

.performance-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.performance-card:hover .performance-card-media img {
  transform: scale(1.035);
}

.performance-platform-art {
  display: grid;
  width: 4.2rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: rgb(255 255 255 / 18%);
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 1.3rem;
  font-size: 2rem;
  box-shadow: 0 12px 25px rgb(53 27 76 / 20%);
}

.performance-card-media[data-platform="instagram"] {
  background: linear-gradient(140deg, #833ab4, #e1306c 58%, #fcb045);
}

.performance-card-media[data-platform="threads"] {
  background: linear-gradient(140deg, #f1e4ff, #ffd1e7 70%);
}

.performance-card-media[data-platform="threads"] .performance-platform-art {
  color: var(--cheer-lavender-500);
  background: rgb(255 255 255 / 72%);
  border-color: rgb(126 86 196 / 16%);
  box-shadow: 0 10px 24px rgb(126 86 196 / 10%);
}

.performance-card-media[data-platform="other"] {
  background: linear-gradient(140deg, var(--cheer-lavender-500), var(--cheer-pink-500));
}

.performance-play {
  position: absolute;
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  background: rgb(217 29 120 / 88%);
  border: 2px solid rgb(255 255 255 / 74%);
  border-radius: 50%;
  box-shadow: 0 9px 22px rgb(53 27 76 / 28%);
  font-size: 1rem;
}

.performance-card-body {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1rem;
}

.performance-card-meta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  color: var(--cheer-ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.performance-card-platform {
  color: var(--cheer-pink-700);
}

.performance-card-title {
  margin: 0;
  color: var(--cheer-ink);
  font-family: var(--cheer-serif);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.performance-card-credit {
  margin: auto 0 0;
  color: var(--cheer-lavender-500);
  font-size: 0.64rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.performance-card-open {
  display: inline-flex;
  width: fit-content;
  min-height: 2.35rem;
  margin-top: 0.2rem;
  padding: 0.55rem 0.85rem;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--cheer-pink-500), var(--cheer-pink-700));
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
}

.performance-card-open:hover,
.performance-card-open:focus-visible {
  box-shadow: 0 8px 18px rgb(214 29 120 / 22%);
  outline: 2px solid rgb(243 57 145 / 24%);
  outline-offset: 2px;
}

.performance-notice {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  color: #6f4a16;
  background: #fff7d6;
  border: 1px solid rgb(205 142 45 / 22%);
  border-radius: 1rem;
  font-size: 0.72rem;
  line-height: 1.65;
}

.performance-notice[hidden] {
  display: none;
}

.performance-retry {
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: 0.5rem 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cheer-pink-500), var(--cheer-pink-700));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 16px rgb(214 29 120 / 18%);
  font-family: var(--cheer-sans);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.performance-retry:hover,
.performance-retry:focus-visible {
  box-shadow: 0 9px 20px rgb(214 29 120 / 25%);
  outline: 2px solid rgb(243 57 145 / 24%);
  outline-offset: 2px;
}

.performance-more {
  display: block;
  min-height: 2.8rem;
  margin: 1.3rem auto 0;
  padding: 0.65rem 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cheer-pink-500), var(--cheer-pink-700));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgb(214 29 120 / 20%);
  font-family: var(--cheer-sans);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.performance-more[hidden] {
  display: none;
}

@keyframes performanceSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .performance-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .performance-scoreboard {
    justify-self: start;
    margin: 0 2rem 2rem;
  }

  .performance-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }

  .performance-tab {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .performance-tab--youtube {
    grid-column: span 2;
  }

  .performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .performance-shell {
    width: min(100% - 1rem, 92rem);
    padding-block: 0.6rem 1.2rem;
  }

  .performance-topbar {
    margin-bottom: 0.8rem;
  }

  .performance-hero {
    min-height: 0;
    padding: 0;
    background: linear-gradient(145deg, #fffafc, #fff0f7 58%, #f7f1ff);
    border-radius: 1.65rem;
  }

  .performance-hero-copy {
    padding: 1.5rem;
  }

  .performance-scoreboard {
    display: none;
  }

  .performance-library {
    padding: 0.75rem;
    border-radius: 1.4rem;
  }

  .performance-library-head {
    display: block;
    padding: 0.45rem;
  }

  .performance-total {
    margin-top: 0.45rem;
    text-align: left;
  }

  .performance-tabs-wrap {
    position: static;
    margin-top: 0.85rem;
  }

  .performance-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .performance-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .performance-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .performance-retry {
    width: 100%;
  }

  .performance-card {
    border-radius: 1.15rem;
  }

  .performance-card-link {
    grid-template-columns: minmax(8rem, 40%) minmax(0, 1fr);
  }

  .performance-card--embed .performance-card-body {
    padding: 0.9rem;
  }

  .performance-card-media {
    aspect-ratio: auto;
    min-height: 9.5rem;
  }

}

@media (max-width: 420px) {
  .performance-card-link {
    grid-template-columns: 1fr;
  }

  .performance-card-media {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .performance-spinner,
  .performance-embed-spinner {
    animation-duration: 1.5s !important;
  }

  .performance-card,
  .performance-card-media img,
  .performance-embed-frame {
    transition: none;
  }
}
