/* Hallmark · component: music panel + dock · genre: editorial · theme: charcoal / restrained warm orange
 * states: default · hover · focus · active · disabled · loading · error · success
 * Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 * Component-scope: no page macrostructure; preserve existing playback ownership. */
.comic-profile .soundcloud-card {
  box-sizing: border-box; right: 24px; left: auto; bottom: 92px;
  width: min(456px, calc(100% - 48px));
  max-height: min(720px, calc(100vh - 116px));
  max-height: min(720px, calc(100dvh - 116px));
  padding: 0; gap: 0; border: 1px solid var(--music-rule);
  border-radius: var(--music-radius); background: var(--music-surface); color: var(--music-ink);
  box-shadow: 0 16px 48px var(--music-shadow); backdrop-filter: none; -webkit-backdrop-filter: none;
  overflow: hidden; transform: translateY(12px); font-family: var(--profile-font);
  transition: opacity var(--music-duration) var(--music-ease), transform var(--music-enter) var(--music-ease), visibility var(--music-duration);
}
.comic-profile .soundcloud-card.is-open { transform: none; }
.comic-profile .soundcloud-card::before, .comic-profile .soundcloud-card::after,
.comic-profile .music-toggle::before, .comic-profile .music-toggle::after,
.comic-profile .soundcloud-result::before, .comic-profile .soundcloud-result::after,
.comic-profile .soundcloud-result__action::after,
.comic-profile .soundcloud-player-shell::before, .comic-profile .soundcloud-player-art::after { content: none; }
.comic-profile .soundcloud-card > * { padding: 0; flex-shrink: 0; }
.comic-profile .soundcloud-card .soundcloud-card__header {
  position: relative; top: auto; margin: 0; padding: var(--music-space-md);
  background: var(--music-surface); border-bottom: 1px solid var(--music-rule); color: var(--music-ink);
}
.comic-profile .sc-header-row { gap: var(--music-space-sm); }
.comic-profile .sc-header-brand { min-width: 0; gap: 12px; }
.comic-profile .sc-header-icon { width: 40px; height: 40px; border-radius: var(--music-radius-sm); background: var(--music-raised); color: var(--music-accent); box-shadow: none; animation: none; }
.comic-profile .soundcloud-heading { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.3px; font-style: normal; background: none; color: var(--music-ink); -webkit-text-fill-color: var(--music-ink); }
.comic-profile .sc-header-eq { display: none; }
.comic-profile .soundcloud-search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--music-space-sm); margin: 0; padding: var(--music-space-md) var(--music-space-md) 0; }
.comic-profile .soundcloud-search-label { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--music-muted); }
.comic-profile .soundcloud-input-wrap { min-width: 0; border: 1px solid var(--music-rule); border-radius: var(--music-radius-sm); background: var(--music-inset); box-shadow: none; color: var(--music-ink); }
.comic-profile .soundcloud-input-wrap > i { color: var(--music-muted); }
.comic-profile .soundcloud-input-wrap input { box-sizing: border-box; min-width: 0; width: 100%; min-height: 48px; font-family: inherit; font-size: 16px; line-height: 1.5; color: var(--music-ink); background: none; }
.comic-profile .soundcloud-input-wrap input::placeholder { color: var(--music-muted); opacity: 1; }
.comic-profile .soundcloud-card .soundcloud-input-wrap:focus-within { border-color: var(--music-focus); box-shadow: none; outline: 2px solid var(--music-focus); outline-offset: 2px; }
.comic-profile .soundcloud-submit, .comic-profile .music-close, .comic-profile .soundcloud-nav,
.comic-profile .soundcloud-control, .comic-profile .mini-player button {
  box-sizing: border-box; min-width: 48px; min-height: 48px; width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--music-space-sm);
  padding: var(--music-space-sm); border: 1px solid var(--music-rule); border-radius: var(--music-radius-sm);
  background: var(--music-raised); color: var(--music-ink); box-shadow: none; font-family: var(--profile-font);
  font-size: 14px; font-weight: 500; white-space: nowrap; text-shadow: none; animation: none; transform: none;
  transition: transform 100ms var(--music-ease);
}
.comic-profile .soundcloud-submit { width: auto; padding-inline: var(--music-space-md); background: var(--music-accent); color: var(--music-accent-ink); border-color: var(--music-accent); }
.comic-profile .soundcloud-toolbar { display: flex; align-items: flex-start; flex-direction: column; gap: var(--music-space-sm); margin: 0; padding: 12px var(--music-space-md); }
.comic-profile .soundcloud-status { display: block; width: 100%; min-height: 18px; margin: 0; color: var(--music-muted); font-size: 12px; line-height: 1.6; letter-spacing: normal; overflow-wrap: anywhere; }
.comic-profile .soundcloud-status[data-state="error"] { color: var(--music-error); }
.comic-profile .soundcloud-status[data-state="success"] { color: var(--music-accent); }
.comic-profile .soundcloud-status[data-state="loading"] { color: var(--music-muted); }
.comic-profile .soundcloud-pagebox { align-self: flex-end; padding: 0; gap: var(--music-space-sm); border: 0; background: none; box-shadow: none; color: var(--music-muted); font-size: 12px; }
.comic-profile .soundcloud-nav { border-radius: var(--music-radius-sm); }
.comic-profile .soundcloud-nav .mobile-label { display: none; }
.comic-profile .soundcloud-card .soundcloud-results {
  flex: 1 1 auto; min-height: 80px; max-height: none; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--music-rule) var(--music-surface);
  padding: 4px var(--music-space-md) var(--music-space-md); margin: 0; display: grid; gap: var(--music-space-sm);
}
.comic-profile .soundcloud-results::-webkit-scrollbar { width: 6px; height: 0; }
.comic-profile .soundcloud-results::-webkit-scrollbar-thumb { background: var(--music-rule); border-radius: 8px; }
.comic-profile .soundcloud-results::-webkit-scrollbar-track { background: var(--music-surface); }
.comic-profile .soundcloud-result { box-sizing: border-box; min-width: 0; width: 100%; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 12px; padding: 12px; border: 1px solid var(--music-clear); border-radius: var(--music-radius-sm); background: var(--music-inset); color: var(--music-ink); animation: none; opacity: 1; transform: none; box-shadow: none; transition: none; }
.comic-profile .soundcloud-result__index { display: none; }
.comic-profile .soundcloud-result__art { width: 44px; height: 44px; border-radius: 8px; background: var(--music-raised); color: var(--music-muted); }
.comic-profile .soundcloud-result__content strong { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--music-ink); }
.comic-profile .soundcloud-result__content > span { font-size: 12px; line-height: 1.5; color: var(--music-muted); }
.comic-profile .soundcloud-result__meta { margin-top: 4px; gap: 4px; }
.comic-profile .soundcloud-result__meta span { padding: 0; background: none; color: var(--music-muted); font-size: 12px; line-height: 1.5; }
.comic-profile .soundcloud-result__action { width: 44px; height: 44px; border-radius: 50%; background: var(--music-raised); color: var(--music-ink); box-shadow: none; transform: none; }
.comic-profile .soundcloud-result.is-active { border-color: var(--music-accent); background: var(--music-raised); box-shadow: none; }
.comic-profile .soundcloud-result.is-skeleton { opacity: .55; }
.comic-profile .soundcloud-result.is-skeleton :is(.soundcloud-result__art, .soundcloud-result__action, strong, .soundcloud-result__content > span) { background: var(--music-raised); animation: none; }
.comic-profile .soundcloud-empty { padding: var(--music-space-lg) var(--music-space-sm); border: 1px dashed var(--music-rule); border-radius: var(--music-radius-sm); background: none; color: var(--music-muted); }
.comic-profile .soundcloud-empty__icon { background: var(--music-raised); color: var(--music-accent); box-shadow: none; animation: none; }
.comic-profile .soundcloud-empty h3 { font-family: var(--profile-font); color: var(--music-ink); font-size: 16px; font-style: normal; line-height: 1.5; }
.comic-profile .soundcloud-empty p { color: var(--music-muted); font-size: 13px; line-height: 1.7; }
.comic-profile .soundcloud-card .soundcloud-player-shell { margin: 0; padding: 12px var(--music-space-md); border: 0; border-top: 1px solid var(--music-rule); border-radius: 0; background: var(--music-inset); color: var(--music-ink); box-shadow: none; overflow: visible; }
.comic-profile .soundcloud-player-meta { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 8px; align-items: center; }
.comic-profile .soundcloud-player-art { width: 52px; height: 52px; border-radius: var(--music-radius-sm); background: var(--music-raised); box-shadow: none; animation: none; }
.comic-profile .soundcloud-player-art-fallback { background: var(--music-raised); color: var(--music-muted); }
.comic-profile .soundcloud-player-kicker { margin: 0 0 4px; color: var(--music-muted); font-size: 12px; line-height: 1.5; letter-spacing: normal; text-transform: none; }
.comic-profile .soundcloud-player-copy { min-width: 0; }
.comic-profile .soundcloud-player-copy h3 { margin: 0; font-family: var(--profile-font); font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--music-ink); }
.comic-profile .soundcloud-player-artist { font-size: 12px; line-height: 1.5; color: var(--music-muted); }
.comic-profile .soundcloud-open-track { display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; border-radius: 4px; background: none; box-shadow: none; color: var(--music-accent); font-size: 12px; white-space: nowrap; letter-spacing: normal; }
.comic-profile .soundcloud-player-actions { grid-column: auto; width: auto; }
.comic-profile .soundcloud-player-controls { width: auto; display: flex; justify-content: center; gap: 4px; padding: 0; border: 0; background: none; box-shadow: none; }
.comic-profile .soundcloud-player-controls .soundcloud-control { min-width: 44px; min-height: 44px; width: 44px; height: 44px; padding: 8px; }
.comic-profile .soundcloud-control--primary { border-radius: 50%; background: var(--music-accent); color: var(--music-accent-ink); border-color: var(--music-accent); box-shadow: none; }
/* Reset legacy text tracking/shadows only on text elements, never icon fonts. */
.comic-profile :is(.soundcloud-card, .audio-player) :is(h2, h3, p, strong, a, label, input, button, .music-hint, .soundcloud-status, .soundcloud-page-label, .soundcloud-result__content span, .soundcloud-progress-times span, .mini-player__copy span) {
  font-family: var(--profile-font); font-style: normal; letter-spacing: normal;
  text-shadow: none; text-transform: none;
}
.comic-profile .soundcloud-player-art { width: 44px; height: 44px; }
.comic-profile .soundcloud-player-kicker { display: none; }
.comic-profile .soundcloud-player-copy h3 { display: block; width: 100%; -webkit-line-clamp: unset; font-size: 14px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comic-profile .soundcloud-player-artist { margin: 0; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comic-profile .soundcloud-open-track { min-height: 44px; font-weight: 500; }
.comic-profile .soundcloud-player-progress { margin-top: 0; }
.comic-profile .soundcloud-progress-times { line-height: 1.5; }
.comic-profile .soundcloud-progress-track { height: 44px; background: none; accent-color: var(--music-accent); }
.comic-profile .soundcloud-progress-track::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--music-accent) 0 var(--progress), var(--music-raised) var(--progress) 100%); height: 4px; border: 0; box-shadow: none; }
.comic-profile .soundcloud-progress-track::-webkit-slider-thumb { background: var(--music-accent); border: 2px solid var(--music-inset); box-shadow: none; }
.comic-profile .soundcloud-progress-track::-moz-range-track { background: var(--music-raised); height: 4px; }
.comic-profile .soundcloud-progress-track::-moz-range-progress { background: var(--music-accent); }
.comic-profile .soundcloud-progress-track::-moz-range-thumb { background: var(--music-accent); border-color: var(--music-inset); box-shadow: none; }
.comic-profile .soundcloud-progress-times { color: var(--music-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.comic-profile .audio-player { right: 24px; left: auto; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
.comic-profile .music-toggle { display: inline-flex; min-height: 52px; padding: 6px 16px 6px 6px; gap: 12px; border: 1px solid var(--music-rule); border-radius: 16px; background: var(--music-surface); color: var(--music-ink); box-shadow: 0 8px 24px var(--music-shadow); transform: none; animation: none; transition: transform 100ms var(--music-ease); }
.comic-profile.has-mini-player .music-toggle { display: none; }
.comic-profile .music-toggle .music-toggle__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--music-raised); color: var(--music-accent); box-shadow: none; transform: none; animation: none; }
.comic-profile .music-toggle i { font-size: 16px; animation: none; transform: none; }
.comic-profile .music-toggle .music-hint { color: var(--music-ink); font-family: var(--profile-font); font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none; text-shadow: none; white-space: nowrap; }
.comic-profile .music-toggle.panel-open { background: var(--music-raised); }
.comic-profile .music-toggle.is-hover { background: var(--music-hover); }
.comic-profile .music-toggle.is-focus { outline: 2px solid var(--music-focus); outline-offset: 3px; }
.comic-profile .music-toggle.is-active { transform: translateY(1px); }
.comic-profile .music-toggle[data-state="loading"] { opacity: .75; cursor: progress; }
.comic-profile .music-toggle[data-state="error"] { border-color: var(--music-error); }
.comic-profile .music-toggle[data-state="success"] { border-color: var(--music-accent); }
.comic-profile .music-toggle.playing .music-toggle__icon { background: var(--music-accent); color: var(--music-accent-ink); }
.comic-profile .mini-player { box-sizing: border-box; background: var(--music-surface); color: var(--music-ink); border: 1px solid var(--music-rule); border-radius: 16px; box-shadow: 0 8px 24px var(--music-shadow); font-family: var(--profile-font); }
.comic-profile .mini-player__copy strong { color: var(--music-ink); font-size: 14px; }
.comic-profile .mini-player__copy span { color: var(--music-muted); font-size: 12px; }
.comic-profile :is(.soundcloud-card, .audio-player) :is(button, a):focus-visible { outline: 2px solid var(--music-focus) !important; outline-offset: 3px; }
.comic-profile :is(.soundcloud-card, .audio-player) :is(button, a):active { filter: none; transform: translateY(1px); }
.comic-profile :is(.soundcloud-card, .audio-player) button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .comic-profile :is(.music-close, .soundcloud-nav, .soundcloud-control, .mini-player button):not(:disabled):hover,
  .comic-profile .music-toggle:hover, .comic-profile .soundcloud-result:hover { background: var(--music-hover); color: var(--music-ink); box-shadow: none; transform: none; }
  .comic-profile .soundcloud-submit:hover, .comic-profile .soundcloud-control--primary:not(:disabled):hover { background: var(--music-accent-hover); color: var(--music-accent-ink); }
  .comic-profile .soundcloud-result:hover .soundcloud-result__action { transform: none; box-shadow: none; background: var(--music-accent); color: var(--music-accent-ink); }
}
@media (max-width: 640px) {
  .comic-profile .soundcloud-card { inset: auto 0 0; width: 100%; max-height: calc(100vh - 16px); max-height: calc(100dvh - max(16px, env(safe-area-inset-top))); border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
  .comic-profile .audio-player { right: 16px; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .comic-profile .soundcloud-card .soundcloud-results { min-height: 48px; }
}
@media (max-width: 380px) {
  .comic-profile .soundcloud-player-meta { grid-template-columns: 44px minmax(0,1fr); }
  .comic-profile .soundcloud-player-actions { grid-column: 1 / -1; justify-self: center; }
}
@media (max-height: 540px) {
  .comic-profile .soundcloud-card { max-height: calc(100dvh - 16px); bottom: 8px; overflow-y: auto; }
  .comic-profile .soundcloud-card .soundcloud-results { flex: none; max-height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .comic-profile .soundcloud-card, .comic-profile .soundcloud-card.is-open { transform: none; transition: none; }
  .comic-profile .soundcloud-card *, .comic-profile .audio-player * { animation: none !important; transition: none !important; }
}
