.bumio :is(.web-wave-card, .web-wave-dialog) { --wave-accent: #ad62ee; }
.bumio .web-wave-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 12px 17px 7px;
  color: #f7f7f5;
  border: 1px solid #392e43;
  border-radius: 17px;
  background: #17131d;
  background: color-mix(in srgb, #17131d 96%, var(--wave-accent));
  border-color: color-mix(in srgb, #392e43 90%, var(--wave-accent));
  transition: background-color 420ms, border-color 420ms;
}
.web-wave-card-header { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.web-wave-card-copy { flex: 1; min-width: 0; }
.web-wave-card-copy h3 { margin: 0; font-size: 25px; line-height: 1.2; font-weight: 700; letter-spacing: -.65px; overflow-wrap: anywhere; }
.web-wave-card-copy p { margin: 4px 0 0; color: #b8abbf; font-size: 12px; }
.web-wave-art { position: absolute; z-index: -1; pointer-events: none; top: 2px; right: -7%; width: 78%; height: 103px; }
.web-wave-art span {
  position: absolute;
  inset: 3px 0 auto;
  height: 95px;
  background: color-mix(in srgb, var(--wave-accent) 78%, #f4e9ff);
  mask: url('/icons/wave-ribbon.png') center / 100% 100% no-repeat;
  opacity: .88;
  transform: rotate(-15deg) scaleY(.64);
  transition: background-color 420ms;
}
.web-wave-art span:first-child { opacity: .42; background: var(--wave-accent); transform: translateY(7px) rotate(5deg) scaleY(.53); }
.web-wave-card[data-wave-playing='true'] .web-wave-art span { animation: web-wave-ribbon 2.4s linear infinite; }
.web-wave-card[data-wave-playing='true'] .web-wave-art span:first-child { animation: web-wave-echo 2.4s linear infinite; }
@keyframes web-wave-ribbon {
  25% { transform: translate(6px, 3px) rotate(-15deg) scaleY(.76); }
  75% { transform: translate(-6px, -3px) rotate(-15deg) scaleY(.52); }
}
@keyframes web-wave-echo {
  25% { transform: translate(7px, 10px) rotate(5deg) scaleY(.65); }
  75% { transform: translate(-7px, 4px) rotate(5deg) scaleY(.41); }
}
.bumio .web-wave-card button.web-wave-play {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #43374d;
  border-radius: 50%;
  background: #211b28;
}
.bumio .web-wave-play .icon { width: 21px; height: 21px; opacity: 1; }
.bumio .web-wave-card button.web-wave-configure {
  min-height: 44px;
  gap: 10px;
  padding: 0 12px 0 0;
  border: 0;
  color: #c5bdcb;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
}
.bumio .web-wave-card button:not(:disabled):hover { color: #fff; }
.bumio .web-wave-message { margin: 8px 0; color: #ead6ef; font-size: 13px; }

.bumio .web-wave-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 540px);
  max-width: 100%;
  max-height: min(90dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
  margin: 0 auto;
  padding: 10px 23px calc(18px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #19131e;
  background: color-mix(in srgb, #17111b 95%, var(--wave-accent));
  color: #f7f7f5;
}
.bumio .web-wave-dialog[open] { display: flex; flex-direction: column; }
.web-wave-dialog::before { content: ""; display: block; flex: none; width: 35px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: #5d5961; }
.web-wave-dialog::backdrop { background: #0009; }
.web-wave-dialog[open] { animation: web-wave-reveal .24s cubic-bezier(.2,.7,.25,1) both; }
@keyframes web-wave-reveal { from { transform: translateY(100%); } to { transform: translateY(0); } }
.web-wave-heading { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.bumio .web-wave-heading h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.45px; }
.bumio .web-wave-dialog button {
  min-height: 44px;
  padding-inline: 13px;
  border: 1px solid #3b353f;
  border-radius: 16px;
  background: #232323;
  color: #f7f7f5;
  font-size: 15px;
}
.bumio .web-wave-dialog .web-wave-close { width: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 28px; font-weight: 400; }
.bumio .web-wave-dialog button:disabled { opacity: .48; }
.bumio .web-wave-dialog .web-wave-primary { flex: 1; min-height: 48px; border: 0; border-radius: 13px; background: #ddc2f8; color: #101010; font-weight: 700; }
.web-wave-personal { display: flex; flex-direction: column; min-height: 0; }
.web-wave-scroll, .web-wave-genre { display: grid; min-height: 0; overflow: auto; gap: 12px; overscroll-behavior: contain; }
.web-wave-genre { display: flex; flex-direction: column; overflow: hidden; }
.web-wave-genre-scroll { display: grid; min-height: 0; overflow: auto; gap: 12px; overscroll-behavior: contain; }
.web-wave-actions { display: flex; align-items: stretch; flex: none; gap: 8px; padding-top: 8px; margin-top: 10px; border-top: 1px solid #413548; }
.bumio .web-wave-actions [data-wave-reset] { min-width: 76px; padding-inline: 6px; border: 0; background: transparent; color: #c5bdcb; font-size: 14px; }
.web-wave-settings { border: 1px solid #413548; border-radius: 16px; overflow: hidden; background: #211a28; }
.web-wave-reserve { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 13px; border: 1px solid #413548; border-radius: 16px; background: #211a28; font-size: 15px; font-weight: 500; }
.web-wave-reserve select { min-height: 44px; padding: 0 8px; color: #e1c9fa; color-scheme: dark; border: 0; background: transparent; font: inherit; }
.web-wave-settings details { min-width: 0; margin: 0; padding: 0; border: 0; border-bottom: 1px solid #413548; border-radius: 0; background: transparent; }
.web-wave-settings summary { display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 4px 13px; cursor: pointer; }
.web-wave-settings summary::-webkit-details-marker { display: none; }
.web-wave-settings summary strong { flex: 1; font-size: 15px; font-weight: 500; }
.web-wave-settings summary span { max-width: 44%; color: #c5bdcb; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.web-wave-settings summary .is-changed { color: #ddc2f8; }
.web-wave-settings summary .icon { width: 16px; height: 16px; }
.web-wave-settings details[open] summary .icon { transform: rotate(180deg); }
.web-wave-settings details[open] summary, .web-wave-chips { background: #282030; }
.web-wave-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 12px; }
.web-wave-chips label { position: relative; display: inline-flex; }
.web-wave-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.web-wave-chips span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #5c4b66;
  border-radius: 12px;
  color: #c5bdcb;
  font-size: 14px;
  cursor: pointer;
}
.web-wave-chips input:checked + span { border-color: #ad82d1; background: #443253; color: #ddc2f8; font-weight: 600; }
.web-wave-chips input:focus-visible + span { outline: 2px solid #f7e8ff; outline-offset: 2px; }
.web-wave-chips input:disabled + span { opacity: .48; cursor: default; }
.web-wave-explicit { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; padding: 4px 13px; font-size: 15px; font-weight: 500; }
.web-wave-explicit input {
  appearance: none;
  flex: none;
  display: grid;
  align-items: center;
  width: 36px;
  height: 17px;
  border-radius: 12px;
  background: #100e13;
}
.web-wave-explicit input::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #eee; transform: translateY(-1.5px); }
.web-wave-explicit input:checked { background: #8c55c4; }
.web-wave-explicit input:checked::before { transform: translate(16px, -1.5px); }
.web-wave-discovery { display: grid; gap: 4px; }
.web-wave-discovery h3 { margin: 0; padding-inline: 2px; color: #c5bdcb; font-size: 14px; font-weight: 600; }
.bumio .web-wave-discovery button[data-wave-options] { justify-content: space-between; padding-inline: 8px; border: 0; border-radius: 11px; background: transparent; font-weight: 500; }
.bumio .web-wave-discovery button[data-wave-options] span { color: #c5bdcb; font-size: 21px; }
.web-wave-query { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 7px; }
.bumio .web-wave-dialog input[type='search'] {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 13px;
  border: 1px solid #584663;
  border-radius: 12px;
  background: #211a28;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.bumio .web-wave-dialog button[data-wave-query] { height: 46px; padding: 0; border: 0; border-radius: 12px; background: #ddc2f8; color: #101010; font-size: 22px; }
.bumio .web-wave-dialog button[data-wave-query]:disabled { background: #2b2233; color: #c5bdcb; opacity: 1; }
.web-wave-service-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #413548; }
.bumio .web-wave-service-actions button { padding-inline: 5px; border: 0; background: transparent; color: #c5bdcb; font-size: 14px; }
.web-wave-genres { display: grid; gap: 4px; font-size: 14px; }
.web-wave-genres details { padding: 0 0 0 14px; background: transparent; }
.web-wave-genres summary { display: list-item; min-height: 40px; padding: 10px 4px; color: #c5bdcb; cursor: pointer; }
.bumio .web-wave-dialog .web-wave-genre-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border-radius: 10px; text-align: left; }
.web-wave-dialog .web-wave-genre-button[aria-checked='true'] { border-color: #ad82d1; background: #302438; }
.web-wave-genre-check { display: grid; place-items: center; flex: none; width: 21px; height: 21px; border: 1px solid #7a6886; border-radius: 6px; }
[aria-checked='true'] > .web-wave-genre-check { background: #ddc2f8; border-color: #ddc2f8; color: #101010; }
.web-wave-genre-selection { display: grid; gap: 4px; }
.web-wave-genre-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c5bdcb; font-size: 14px; }
.web-wave-genre-selection-heading small { font-size: 12px; }
.web-wave-genre-chips { display: flex; align-items: center; gap: 6px; height: 44px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.web-wave-genre-chips::-webkit-scrollbar { display: none; }
.bumio .web-wave-dialog .web-wave-genre-chip { display: flex; flex: none; align-items: center; gap: 7px; max-width: 250px; border-radius: 12px; border-color: #715087; background: #302438; color: #e1c9fa; font-size: 13px; }
.web-wave-genre-chip > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.web-wave-genre-chip > span:last-child { flex: none; font-size: 18px; }
.web-wave-genre-empty { color: #c5bdcb; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .bumio .web-wave-card { transition: none; }
  .web-wave-card[data-wave-playing='true'] .web-wave-art span,
  .web-wave-card[data-wave-playing='true'] .web-wave-art span:first-child,
  .web-wave-dialog[open] { animation: none; }
}
