/* Creator and music layer: scoped to keep the scientific controls independent. */
.credits-trigger {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; flex: 0 0 auto; height: 40px; min-width: 40px; padding: 0 12px;
  border: 1px solid #749bab40; border-radius: 10px; background: #1227349c;
  color: #c2d9e1; font: inherit; font-size: 10px; white-space: nowrap;
  cursor: pointer; transition: background .18s, border-color .18s;
}
.credits-trigger:hover { background: #24404dd9; border-color: #99b8c06b; }
.credits-trigger svg { width: 18px; height: 18px; flex-shrink: 0; }
.credits-trigger > i { position: absolute; width: 5px; height: 5px; right: 7px; top: 6px; border-radius: 50%; background: #a8d8ba; box-shadow: 0 0 8px #9ad9b66b; }
.credits-dialog {
  --credit-accent: #b8dce5; --credit-line: #6586933b;
  box-sizing: border-box; width: min(620px, calc(100vw - 32px)); max-width: 620px;
  height: auto; max-height: min(850px, calc(100dvh - 40px)); margin: auto;
  padding: 0; overflow: auto; overscroll-behavior: contain;
  color: #deebef; background: linear-gradient(135deg, #152f3b 0, #101f2b 48%, #0c1b27 100%);
  border: 1px solid #7ca1ac50; border-radius: 23px;
  box-shadow: 0 35px 120px #0009, inset 0 1px 0 #d4f2ff0d;
  font-family: inherit; font-size: 13px; line-height: 1.6;
}
.credits-dialog::backdrop { background: #020c15b3; backdrop-filter: blur(9px); }
.credits-dialog--earth { --credit-accent: #bdd7bb; background: linear-gradient(135deg, #203932, #112b31 48%, #10212b); }
.credits-dialog button, .credits-dialog a, .credits-dialog summary, .credits-trigger { touch-action: manipulation; }
.credits-dialog :focus-visible, .credits-trigger:focus-visible { outline: 2px solid var(--credit-accent, #b8dce5); outline-offset: 4px; }
.credits-dialog button { font: inherit; cursor: pointer; }
.credits-dialog a { color: var(--credit-accent); text-underline-offset: 4px; }
.credits-dialog p { margin: 0; font-size: 12px; line-height: 1.75; }
.credits-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 29px 23px; border-bottom: 1px solid var(--credit-line); }
.credits-eyebrow { display: block; font-size: 8px; font-weight: 650; letter-spacing: .19em; color: #b8b599; }
.credits-heading h2 { margin: 7px 0 0; font-size: 25px; line-height: 1.25; font-weight: 500; letter-spacing: -.035em; }
.credits-dialog .credits-close { display: grid; place-items: center; flex: 0 0 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; background: #94b8c20a; border: 1px solid var(--credit-line); border-radius: 50%; color: #c5d8df; font-size: 25px; font-weight: 300; line-height: 1; }
.credits-dialog .credits-close:hover { background: #8eb8c51c; }
.credits-body { padding: 27px 29px 18px; }
.credits-creator { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 22px 20px; align-items: center; }
.credits-portrait { position: relative; height: 96px; width: 88px; overflow: hidden; border-radius: 15px; background: #355260; box-shadow: 0 0 0 1px #acc6ce26, 0 10px 25px #0003; }
.credits-portrait > span { display: grid; place-items: center; position: absolute; inset: 0; color: #cee7e9; font-size: 28px; }
.credits-dialog .credits-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.credits-dialog .credits-portrait img[hidden] { display: none; }
.credits-identity h3 { margin: 7px 0 6px; font-size: 20px; font-weight: 540; letter-spacing: -.025em; line-height: 1.35; color: #e4f0f3; }
.credits-dialog .credits-identity p { font-size: 11px; color: #b1c7ce; }
.credits-dialog .credits-identity .credits-location { color: #829faa; font-size: 10px; margin-top: 2px; }
.credits-links { grid-column: 1 / -1; display: grid; gap: 1px; border: 1px solid var(--credit-line); border-radius: 12px; overflow: hidden; background: #a4bdc511; }
.credits-dialog .credits-links a { display: grid; grid-template-columns: 66px minmax(0, 1fr) 12px; gap: 12px; align-items: center; min-height: 40px; padding: 10px 14px; background: #0b202ad9; text-decoration: none; color: #c4d9df; line-height: 1.5; }
.credits-dialog .credits-links a:hover { background: #213c46; color: #effbff; }
.credits-links a > span { font-size: 10px; color: #8ba6b2; }
.credits-links strong { font-size: 11px; font-weight: 450; overflow-wrap: anywhere; }
.credits-links b { font-weight: 400; color: #91adb8; }
.credits-music { margin-top: 26px; padding-top: 25px; border-top: 1px solid var(--credit-line); }
.credits-music-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.credits-music h3 { margin: 7px 0 10px; font-size: 24px; font-weight: 430; letter-spacing: -.035em; line-height: 1.3; }
.credits-soundmark { height: 33px; display: flex; align-items: center; gap: 4px; padding: 0 4px; opacity: .5; }
.credits-soundmark i { display: block; width: 3px; height: 11px; border-radius: 3px; background: var(--credit-accent); }
.credits-soundmark i:nth-child(2), .credits-soundmark i:nth-child(4) { height: 23px; }
.credits-soundmark i:nth-child(3) { height: 32px; }
.credits-is-playing .credits-soundmark { opacity: .9; }
.credits-is-playing .credits-soundmark i { animation: credits-pulse 1.4s ease-in-out infinite alternate; }
.credits-is-playing .credits-soundmark i:nth-child(2n) { animation-delay: -.7s; }
.credits-is-playing .credits-soundmark i:nth-child(3) { animation-delay: -.35s; }
@keyframes credits-pulse { from { transform: scaleY(.4); } to { transform: scaleY(1); } }
.credits-dialog .credits-mood { color: #9fb8c2; max-width: 440px; font-size: 11px; }
.credits-track-meta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 13px; color: #95afb9; font-size: 8px; letter-spacing: .09em; }
.credits-track-meta span + span { border-left: 1px solid var(--credit-line); padding-left: 13px; }
.credits-controls { display: flex; align-items: center; gap: 26px; margin-top: 20px; }
.credits-dialog .credits-play { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 10px; padding: 0 18px; min-height: 44px; border: 1px solid #d4e8ee50; border-radius: 9px; color: #15303b; background: var(--credit-accent); font-size: 11px; font-weight: 650; }
.credits-dialog .credits-play:hover { background: #e2f0ef; color: #123039; }
.credits-dialog .credits-play:disabled { opacity: .65; cursor: progress; }
.credits-play-icon { font-size: 18px; line-height: 1; }
.credits-volume { display: grid; grid-template-columns: auto minmax(50px, 1fr) 30px; align-items: center; gap: 12px; flex: 1; min-width: 0; font-size: 10px; color: #a5c0c9; }
.credits-volume input { width: 100%; min-width: 45px; margin: 0; padding: 0; height: 34px; background: transparent; accent-color: var(--credit-accent); cursor: pointer; }
.credits-volume output { color: #d5e5e9; text-align: right; font-size: 10px; }
.credits-dialog .credits-status { min-height: 34px; margin-top: 10px; color: #88a7b3; font-size: 10px; }
.credits-license { border-top: 1px solid var(--credit-line); margin-top: 10px; padding-top: 5px; }
.credits-license summary { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: #a6c0c8; font-size: 11px; cursor: pointer; list-style: none; }
.credits-license summary::-webkit-details-marker { display: none; }
.credits-license summary > span { font-size: 18px; font-weight: 300; }
.credits-license[open] summary > span { transform: rotate(45deg); }
.credits-license > div { padding: 2px 0 13px; }
.credits-dialog .credits-license p { margin-bottom: 10px; font-size: 11px; color: #91adb9; line-height: 1.8; }
.credits-dialog .credits-license-file { font-size: 10px; }
.credits-dialog .credits-signoff { text-align: center; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--credit-line); color: #78939d; font-size: 9px; letter-spacing: .02em; }
@media (max-width: 1250px) {
  .credits-trigger { width: 40px; padding: 0; }
  .credits-trigger > span { display: none; }
}
@media (max-width: 720px) {
  .topbar:has(> .credits-trigger--earth) { grid-template-columns: minmax(0, 1fr) 40px 40px; }
  .topbar > .credits-trigger--earth { grid-column: 2; grid-row: 1; }
  .topbar:has(> .credits-trigger--earth) > .icon-btn { grid-column: 3; grid-row: 1; }
  .topbar:has(> .credits-trigger--earth) > .search-wrap { grid-column: 1 / -1; }
  .credits-trigger--human { min-width: 34px; width: 34px; height: 36px; border-radius: 8px; }
}
@media (max-width: 520px) {
  .credits-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .credits-heading { padding: 21px 19px 19px; }
  .credits-heading h2 { font-size: 22px; }
  .credits-body { padding: 23px 19px 17px; }
  .credits-creator { grid-template-columns: 70px minmax(0, 1fr); gap: 18px 14px; }
  .credits-portrait { width: 70px; height: 84px; border-radius: 12px; }
  .credits-identity h3 { font-size: 17px; }
  .credits-dialog .credits-identity p { font-size: 10px; }
  .credits-dialog .credits-links a { grid-template-columns: 51px minmax(0, 1fr) 10px; gap: 8px; padding: 11px; }
  .credits-links strong { font-size: 10px; }
  .credits-controls { gap: 16px; flex-wrap: wrap; }
  .credits-volume { flex-basis: 150px; }
  .credits-music { margin-top: 21px; padding-top: 20px; }
  .credits-dialog .credits-status { margin-top: 9px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .credits-trigger { transition: none; }
  .credits-is-playing .credits-soundmark i { animation: none; }
}
