/* CocoRae's listening invitation. All component styling is intentionally scoped. */
.hc-player-open { overflow: hidden; }
.hc-dialog,
.hc-dock {
  --hc-emerald: #173f35;
  --hc-deep: #103128;
  --hc-gold: #d4af37;
  --hc-stone: #f5f2eb;
  --hc-muted: #c0d1c8;
  --hc-line: #d4af3740;
  color: var(--hc-stone);
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.hc-dialog *, .hc-dock * { box-sizing: border-box; }
.hc-dialog [hidden], .hc-dock [hidden] { display: none !important; }
.hc-dialog {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: 90vh;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a88c36 var(--hc-deep);
  color-scheme: dark;
  border: 1px solid #d4af3780;
  border-radius: 24px;
  background: var(--hc-emerald);
  box-shadow: 0 26px 85px #001b16a6;
  z-index: 1000;
}
.hc-dialog:not([open]) { display: none; }
.hc-dialog::backdrop { background: #031c17b8; backdrop-filter: blur(5px); }
.hc-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 18px;
  background: var(--hc-emerald);
  border-bottom: 1px solid var(--hc-line);
}
.hc-heading-copy { min-width: 0; }
.hc-dialog .hc-brand-logo { display: block; width: 232px; max-width: 100%; height: auto; margin: 0 0 10px; object-fit: contain; }
.hc-dialog .hc-eyebrow {
  margin: 0 0 4px;
  color: var(--hc-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hc-dialog h2 {
  margin: 0;
  color: var(--hc-stone);
  font: 400 29px/1.2 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}
.hc-dialog h3 { margin: 0; color: var(--hc-stone); }
.hc-dialog button,
.hc-dock button {
  margin: 0;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hc-dialog button:disabled,
.hc-dock button:disabled { opacity: .45; cursor: default; }
.hc-dialog svg, .hc-dock svg {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hc-dialog .hc-icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  color: var(--hc-stone);
  background: transparent;
  border: 1px solid #c0d1c859;
  border-radius: 50%;
  box-shadow: none;
}
.hc-dialog .hc-icon-button:hover:not(:disabled) { background: #ffffff10; border-color: var(--hc-gold); }
.hc-dialog .hc-close { align-self: flex-start; width: 44px; height: 44px; min-width: 44px; border-color: transparent; }
.hc-artwork { position: relative; margin: 16px 24px 0; overflow: hidden; border-radius: 14px; background: var(--hc-deep); }
.hc-artwork img { display: block; width: 100%; height: 204px; max-width: none; object-fit: cover; object-position: center 39%; }
.hc-hosts { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border: 1px solid #ffffff3d; border-radius: 6px; color: var(--hc-stone); background: #103128e8; font-size: 14px; }
.hc-content { padding: 14px 24px 20px; }
.hc-dialog .hc-intro { margin: 0 0 14px; color: var(--hc-muted); font-size: 16px; }
.hc-now-playing { min-width: 0; }
.hc-kicker { display: block; margin-bottom: 2px; color: var(--hc-gold); font-size: 14px; font-weight: 600; }
.hc-dialog .hc-now-playing h3 { font: 400 27px/1.25 Georgia, 'Times New Roman', serif; overflow-wrap: anywhere; }
.hc-dialog .hc-now-playing p { margin: 3px 0 0; color: var(--hc-muted); font-size: 14px; }
.hc-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0 6px; }
.hc-dialog .hc-play-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  min-width: 184px;
  padding: 11px 22px;
  border: 1px solid var(--hc-gold);
  border-radius: 30px;
  color: #173f35;
  background: var(--hc-gold);
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
}
.hc-dialog .hc-play-button:hover:not(:disabled) { background: #e5c45b; border-color: #e5c45b; }
.hc-progress { margin-top: 4px; }
.hc-progress input[type=range] {
  display: block;
  width: 100%;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--hc-gold);
  appearance: none;
  cursor: pointer;
}
.hc-progress input[type=range]:disabled { cursor: default; opacity: .7; }
.hc-progress input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--hc-gold) var(--hc-progress, 0%), #839b8f66 var(--hc-progress, 0%)); }
.hc-progress input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: #839b8f66; }
.hc-progress input[type=range]::-moz-range-progress { height: 4px; background: var(--hc-gold); }
.hc-progress input[type=range]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--hc-gold); appearance: none; }
.hc-progress input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--hc-gold); }
.hc-times { display: flex; justify-content: space-between; margin-top: -2px; color: var(--hc-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.hc-dialog .hc-status { margin: 10px 0 0; padding: 8px 11px; border-left: 2px solid var(--hc-gold); color: var(--hc-stone); background: #0b2d2480; font-size: 14px; }
.hc-playlist-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.hc-playlist-heading h3 { font: 600 16px/1.5 Arial, Helvetica, sans-serif; }
.hc-playlist-heading > span { color: var(--hc-muted); font-size: 14px; }
.hc-dialog .hc-playlist {
  display: block;
  max-height: 185px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #a88c36 var(--hc-deep);
  scrollbar-width: thin;
  list-style: none;
  border: 1px solid var(--hc-line);
  border-radius: 12px;
  background: #10312880;
}
.hc-playlist li { display: block; margin: 0; padding: 0; }
.hc-playlist li + li { border-top: 1px solid #c0d1c820; }
.hc-dialog .hc-track {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 38px 20px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 55px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  color: var(--hc-stone);
  background: transparent;
  text-align: left;
  box-shadow: none;
}
.hc-dialog .hc-track:hover { background: #ffffff0c; }
.hc-dialog .hc-track.hc-current-track { background: #d4af3717; }
.hc-track-number { color: var(--hc-gold); font-size: 14px; font-variant-numeric: tabular-nums; }
.hc-track-name { font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.hc-track-duration { color: var(--hc-muted); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.hc-track-action { color: var(--hc-gold); }
.hc-track-action svg { width: 18px; height: 18px; }
.hc-links { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; }
.hc-dialog .hc-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--hc-stone); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: #d4af3777; text-underline-offset: 4px; }
.hc-dialog .hc-links .hc-station-link { color: var(--hc-gold); }
.hc-links svg { width: 18px; height: 18px; }
.hc-dialog .hc-minimise { display: block; width: 100%; min-height: 44px; padding: 7px 10px; border: 1px solid #c0d1c833; border-radius: 9px; background: transparent; color: var(--hc-muted); font-size: 14px; }
.hc-dialog .hc-listening-tip { margin: 0 0 12px; color: var(--hc-muted); font-size: 13px; line-height: 1.5; }
.hc-dialog .hc-minimise:hover { background: #ffffff08; color: var(--hc-stone); }
.hc-dock {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  width: min(340px, calc(100vw - 36px));
  gap: 2px;
  padding: 6px;
  border: 1px solid #d4af3777;
  border-radius: 16px;
  background: var(--hc-emerald);
  box-shadow: 0 9px 30px #001b1670;
}
.hc-dock[data-dialog-open=true] { visibility: hidden; pointer-events: none; }
.hc-dock .hc-dock-open { display: flex; align-items: center; flex: 1 1 auto; gap: 10px; min-width: 0; min-height: 48px; padding: 3px 7px; border: 0; border-radius: 10px; background: transparent; color: var(--hc-stone); text-align: left; box-shadow: none; }
.hc-dock-copy { display: block; min-width: 0; width: 100%; }
.hc-dock .hc-dock-brand { display: block; width: 154px; max-width: 100%; height: auto; margin: 0 0 5px; object-fit: contain; }
.hc-dock-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--hc-muted); font-size: 14px; line-height: 1.4; }
.hc-dock-copy strong { display: inline; flex: 0 0 auto; color: var(--hc-stone); font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.hc-dock-divider { flex: 0 0 auto; }
#hc-dock-title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hc-dock .hc-dock-toggle { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--hc-emerald); background: var(--hc-gold); box-shadow: none; }
.hc-dialog :is(button, a, input):focus-visible,
.hc-dock button:focus-visible { outline: 3px solid #f5f2eb; outline-offset: 3px; }
.hc-dialog .hc-track:focus-visible { position: relative; outline-offset: -4px; }
.hc-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .hc-dialog { width: calc(100vw - 24px); border-radius: 19px; }
  .hc-heading { padding: 16px 16px 13px; gap: 7px; }
  .hc-dialog .hc-brand-logo { width: 210px; margin-bottom: 8px; }
  .hc-dialog h2 { font-size: 24px; }
  .hc-dialog .hc-eyebrow { font-size: 14px; letter-spacing: .045em; }
  .hc-artwork { margin: 13px 16px 0; border-radius: 11px; }
  .hc-artwork img { height: 156px; object-position: center 38%; }
  .hc-hosts { left: 8px; bottom: 8px; padding: 4px 8px; }
  .hc-content { padding: 12px 16px 16px; }
  .hc-dialog .hc-intro { margin-bottom: 12px; }
  .hc-dialog .hc-now-playing h3 { font-size: 25px; }
  .hc-controls { gap: 12px; margin-top: 13px; }
  .hc-dialog .hc-play-button { min-width: 172px; padding: 10px 15px; }
  .hc-dialog .hc-track { gap: 7px; padding: 9px; grid-template-columns: 23px minmax(0, 1fr) 34px 18px; }
  .hc-links { gap: 10px; flex-wrap: wrap; }
  .hc-links a { flex-shrink: 0; }
  .hc-dock { left: max(12px, env(safe-area-inset-left)); bottom: calc(82px + env(safe-area-inset-bottom)); width: min(340px, calc(100vw - 24px)); padding: 5px; border-radius: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hc-dialog[open] { animation: hc-arrive .18s ease-out; }
  @keyframes hc-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) { .hc-dialog, .hc-dock, .hc-dialog * { scroll-behavior: auto; animation: none; transition: none; } }
