/* A compact drawn player; SoundCloud continues to handle the audio. */
#jingles .jingles-film { position: relative; display: block; height: calc(100% - 8px); max-width: 100%; aspect-ratio: 9 / 16; margin: 0; }
#jingles [data-jingles-video] { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 2px; box-shadow: 2px 3px 0 #25251f, 3px 5px 10px rgb(36 32 24 / 22%); }
#jingles .jingles-caption { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; max-width: 100%; line-height: 1.4; }
#jingles [data-jingles-title] { min-width: 0; overflow-wrap: anywhere; }
.jingles-motion-toggle { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.jingles-motion-toggle[hidden] { display: none; }
.jingles-motion-toggle svg { width: 21px; height: 21px; fill: currentColor; }
.jingles-motion-toggle:active { background: rgb(36 32 24 / 8%); }
/* Leave the official controls available while the Widget API is loading. */
.jingles-player-surface { margin-top: 14px; overflow: hidden; border-radius: 3px; filter: contrast(1.1) invert(1) grayscale(1) brightness(.5) sepia(1) saturate(3.717) hue-rotate(6.122deg) brightness(1.240227); }
.jingles-player { display: block; width: 100%; height: 116px; margin: 0; border: 0; background: #fff; color-scheme: light; }
.has-jingles-controls .jingles-player-surface { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.jingles-audio { position: relative; isolation: isolate; width: min(100%, 360px); margin: 14px 0 4px; padding: 8px 13px 9px 9px; color: var(--yellow); transform: rotate(-.35deg); }
.jingles-audio[hidden] { display: none; }
.jingles-audio-edge { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(2px 3px 0 #625016) drop-shadow(1px 4px 4px rgb(36 32 24 / 16%)); pointer-events: none; }
.jingles-audio-edge path { fill: #080808; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.jingles-audio-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 9px; }
.jingles-audio-play { display: grid; place-items: center; width: 44px; height: 44px; padding: 7px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 150ms var(--ease-settle), background 150ms; }
.jingles-audio-play svg { display: block; width: 28px; height: 28px; overflow: visible; }
.jingles-audio-play path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.jingles-audio-play:active { transform: translate(1px, 2px) scale(.95); background: rgb(254 191 21 / 9%); }
.jingles-audio-timeline { position: relative; height: 44px; min-width: 0; }
.jingles-seek-line, .jingles-waveform { position: absolute; inset: 5px 0; width: 100%; height: 34px; pointer-events: none; }
.jingles-seek-line path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .48; }
.jingles-waveform { object-fit: fill; filter: url('#jingles-waveform-ink'); opacity: .85; }
.jingles-audio-timeline:has(.jingles-waveform:not([hidden])) .jingles-seek-line { opacity: 0; }
.jingles-waveform[hidden] { display: none; }
.jingles-audio-seek { appearance: none; -webkit-appearance: none; position: relative; display: block; width: 100%; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 2px; background: transparent; color: inherit; cursor: pointer; accent-color: var(--yellow); touch-action: pan-y; }
.jingles-audio-seek::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.jingles-audio-seek::-moz-range-track { height: 2px; background: transparent; }
.jingles-audio-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 5px; height: 29px; margin-top: -13.5px; border: 1px solid #080808; border-radius: 45% 35% 32% 40%; background: var(--yellow); box-shadow: 0 0 0 1px rgb(254 191 21 / 25%); }
.jingles-audio-seek::-moz-range-thumb { width: 4px; height: 27px; border: 1px solid #080808; border-radius: 45% 35% 32% 40%; background: var(--yellow); box-shadow: 0 0 0 1px rgb(254 191 21 / 25%); }
.jingles-audio-seek:disabled { opacity: .4; cursor: default; }
.jingles-audio-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 0 7px; font-size: 12px; line-height: 1.4; }
.jingles-audio-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; opacity: .78; }
.jingles-audio-meta a { display: inline-flex; align-items: center; gap: 3px; min-height: 24px; color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(254 191 21 / 35%); }
.jingles-audio-play:focus-visible, .jingles-audio-seek:focus-visible, .jingles-audio-meta a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.jingles-status { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.jingles-status[hidden] { display: none; }
#jingles.is-audio-playing [data-jingles-track][aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--ink); }

@media (max-width: 760px) {
  #jingles .jingles-player-surface { margin-top: 0; }
  .jingles-audio { margin: 0 auto 4px; }
}

@media (hover: hover) and (pointer: fine) {
  .jingles-audio-play:hover { transform: scale(1.06); }
  .jingles-audio-meta a:hover { text-decoration-color: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  .jingles-audio { transform: none; }
  .jingles-audio-play { transition: none; }
}

@media (forced-colors: active) {
  .jingles-audio { color: CanvasText; background: Canvas; border: 2px solid CanvasText; }
  .jingles-audio-edge, .jingles-waveform { display: none; }
  .jingles-audio-seek { appearance: auto; -webkit-appearance: auto; }
  .jingles-audio-play, .jingles-audio-seek, .jingles-audio-meta a { color: CanvasText; }
}
