.od1-beat-store {
  color: var(--beat-text, #e7edf7);
  font-family: var(--font-sans, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  max-width: 1120px;
  margin-inline: auto;
  --od1-beat-row-height: 114px;
  --od1-beat-grid-gap: 10px;
  --od1-beat-visible-rows: 4;
  --beat-panel: #0c1118;
  --beat-panel-2: #121a24;
  --beat-line: rgba(126, 241, 255, .24);
  --beat-line-strong: rgba(126, 241, 255, .58);
  --beat-text: #e7edf7;
  --beat-muted: #8d9bad;
  --beat-accent: #7ef1ff;
  --beat-accent-2: #b6ff6f;
}

.od1-beat-store * {
  box-sizing: border-box;
}

.od1-beat-store__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.od1-beat-store__title-block h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.od1-beat-store__title-block p {
  margin: 8px 0 0;
  max-width: 56ch;
  color: var(--beat-muted);
}

.od1-beat-store__search {
  flex: 0 1 280px;
}

.od1-beat-store__search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--beat-line);
  border-radius: 8px;
  background: rgba(12, 17, 24, .78);
  color: var(--beat-text);
  padding: 10px 12px;
  font: inherit;
}

.od1-beat-store__search input:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring, rgba(17, 24, 39, .16));
}

.od1-beat-store__filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scrollbar-width: none;
}

.od1-beat-store__filters::-webkit-scrollbar {
  display: none;
}

.od1-beat-store__chip {
  border: 1px solid var(--beat-line);
  border-radius: 999px;
  background: rgba(12, 17, 24, .72);
  color: var(--beat-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.od1-beat-store__chip:hover,
.od1-beat-store__chip.is-active {
  border-color: var(--beat-line-strong);
  background: rgba(126, 241, 255, .12);
  color: var(--beat-text);
}

.od1-beat-store__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--od1-beat-grid-gap);
  max-height: calc((var(--od1-beat-row-height) * var(--od1-beat-visible-rows)) + (var(--od1-beat-grid-gap) * (var(--od1-beat-visible-rows) - 1)));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
}

.od1-beat-store__grid::-webkit-scrollbar {
  width: 8px;
}

.od1-beat-store__grid::-webkit-scrollbar-thumb {
  background: var(--beat-line-strong);
  border-radius: 999px;
}

.od1-beat-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: stretch;
  min-height: var(--od1-beat-row-height);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--beat-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(126, 241, 255, .09), transparent 38%),
    linear-gradient(180deg, var(--beat-panel-2), var(--beat-panel));
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.od1-beat-card:hover,
.od1-beat-card.is-playing {
  border-color: var(--beat-line-strong);
  background:
    linear-gradient(135deg, rgba(126, 241, 255, .14), transparent 42%),
    linear-gradient(180deg, #15202c, #0c1118);
}

.od1-beat-card[hidden],
.od1-beat-card.is-filtered-out {
  display: none !important;
}

.od1-beat-card__media {
  position: relative;
  width: 88px;
  min-height: 88px;
  background: #070a0f;
  border-right: 1px solid var(--beat-line);
}

.od1-beat-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.od1-beat-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--beat-muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.od1-beat-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(126, 241, 255, .72);
  border-radius: 50%;
  background: rgba(7, 10, 15, .78);
  cursor: pointer;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(6px);
}

.od1-beat-card__play:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.od1-beat-card__play:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring, rgba(17, 24, 39, .24));
}

.od1-beat-card__play-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--beat-accent);
}

.od1-beat-card.is-playing .od1-beat-card__play-icon {
  width: 13px;
  height: 15px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, var(--beat-accent) 0 35%, transparent 35% 65%, var(--beat-accent) 65% 100%);
}

.od1-beat-card__body {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  min-width: 0;
  padding: 12px;
}

.od1-beat-card__row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  grid-column: 1;
}

.od1-beat-card__info-toggle {
  display: none;
}

.od1-beat-card h3 {
  margin: 0;
  min-width: 0;
  color: var(--beat-text);
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.od1-beat-card__price {
  flex: 0 0 auto;
  color: var(--beat-accent-2);
  font-size: 14px;
  font-weight: 800;
}

.od1-beat-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.od1-beat-card__details {
  display: grid;
  gap: 8px;
  grid-column: 1;
}

.od1-beat-card__meta span {
  border: 1px solid rgba(126, 241, 255, .18);
  border-radius: 6px;
  background: rgba(126, 241, 255, .08);
  color: var(--beat-muted);
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
}

.od1-beat-card p {
  margin: 0;
  color: var(--beat-muted);
  font-size: 13px;
  line-height: 1.35;
  grid-column: 1;
  max-width: 34ch;
}

.od1-beat-card__waveform {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 3;
  display: block;
  width: 100%;
  min-width: 0;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--beat-line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(126, 241, 255, .08), rgba(182, 255, 111, .04)),
    #080d13;
  cursor: pointer;
  padding: 0;
}

.od1-beat-card__waveform:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.od1-beat-card__waveform:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring, rgba(17, 24, 39, .16));
}

.od1-beat-card__waveform canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.od1-beat-card__wave-progress {
  display: none;
}

.od1-beat-card__actions {
  display: grid;
  grid-template-columns: 104px 104px;
  gap: 8px;
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
}

.od1-beat-card__button {
  min-height: 42px;
  border: 1px solid var(--beat-line);
  border-radius: 8px;
  background: rgba(12, 17, 24, .68);
  color: var(--beat-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
}

.od1-beat-card__button:hover {
  border-color: var(--beat-line-strong);
  background: rgba(126, 241, 255, .1);
}

.od1-beat-card__button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.od1-beat-card__button--primary {
  background: var(--beat-accent);
  border-color: var(--beat-accent);
  color: #061016;
}

.od1-beat-card__button--primary:hover {
  background: var(--beat-accent-2);
  border-color: var(--beat-accent-2);
}

.od1-beat-store__empty {
  border: 1px solid var(--beat-line);
  border-radius: 8px;
  color: var(--beat-muted);
  padding: 18px;
}

.od1-beat-license-modal[hidden] {
  display: none !important;
}

.od1-beat-license-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.od1-beat-license-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, .78);
  backdrop-filter: blur(8px);
}

.od1-beat-license-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow-y: auto;
  border: 1px solid var(--beat-line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(126, 241, 255, .12), transparent 45%),
    linear-gradient(180deg, #121a24, #080d13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
  padding: 18px;
}

.od1-beat-license-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--beat-line);
  border-radius: 50%;
  background: rgba(12, 17, 24, .76);
  color: var(--beat-text);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.od1-beat-license-modal__close:hover {
  border-color: var(--beat-line-strong);
  background: rgba(126, 241, 255, .12);
}

.od1-beat-license-modal__header {
  display: grid;
  gap: 6px;
  padding-right: 42px;
  margin-bottom: 14px;
}

.od1-beat-license-modal__eyebrow {
  color: var(--beat-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.od1-beat-license-modal h3 {
  margin: 0;
  color: var(--beat-text);
  font-size: 24px;
  line-height: 1.1;
}

.od1-beat-license-modal__options {
  display: grid;
  gap: 10px;
}

.od1-beat-license-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--beat-line);
  border-radius: 8px;
  background: rgba(12, 17, 24, .76);
  color: var(--beat-text);
  cursor: pointer;
  font: inherit;
  padding: 14px;
  text-align: left;
}

.od1-beat-license-option:hover,
.od1-beat-license-option:focus-visible {
  outline: none;
  border-color: var(--beat-line-strong);
  background: rgba(126, 241, 255, .1);
}

.od1-beat-license-option:disabled {
  cursor: wait;
  opacity: .72;
}

.od1-beat-license-option__title {
  min-width: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.od1-beat-license-option__price {
  color: var(--beat-accent-2);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.od1-beat-license-option__description {
  grid-column: 1 / -1;
  color: var(--beat-muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-line;
}

.od1-beat-license-modal__message {
  margin: 12px 0 0;
  border: 1px solid rgba(255, 141, 141, .38);
  border-radius: 8px;
  background: rgba(255, 141, 141, .1);
  color: #ffd1d1;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .od1-beat-store__grid {
    grid-template-columns: 1fr;
  }

  .od1-beat-card__body {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 1.3fr);
    align-items: start;
  }

  .od1-beat-card__waveform {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .od1-beat-card__actions {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 140px));
  }
}

@media (max-width: 640px) {
  .od1-beat-store {
    --od1-beat-row-height: 104px;
    --od1-beat-grid-gap: 8px;
  }

  .od1-beat-store__bar {
    align-items: stretch;
    flex-direction: column;
  }

  .od1-beat-store__search {
    flex-basis: auto;
  }

  .od1-beat-store__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    align-content: start;
  }

  .od1-beat-card {
    grid-template-columns: 58px minmax(0, 1fr);
    height: auto;
    min-height: 134px;
  }

  .od1-beat-card__media {
    width: 58px;
    min-height: 0;
    height: 100%;
  }

  .od1-beat-card__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px;
  }

  .od1-beat-card__row {
    align-items: baseline;
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
  }

  .od1-beat-card__info-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 1px solid var(--beat-line);
    border-radius: 50%;
    background: rgba(126, 241, 255, .08);
    color: var(--beat-accent);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    padding: 0;
  }

  .od1-beat-card__info-toggle[aria-expanded="true"] {
    border-color: var(--beat-line-strong);
    background: rgba(126, 241, 255, .18);
    color: var(--beat-text);
  }

  .od1-beat-card h3 {
    font-size: 14px;
  }

  .od1-beat-card__price {
    font-size: 12px;
  }

  .od1-beat-card__details {
    display: none;
  }

  .od1-beat-card.is-info-open .od1-beat-card__details {
    display: grid;
    gap: 6px;
  }

  .od1-beat-card.is-info-open .od1-beat-card__meta {
    display: flex;
  }

  .od1-beat-card.is-info-open p {
    display: block;
    max-width: none;
    font-size: 12px;
  }

  .od1-beat-card p {
    display: none;
  }

  .od1-beat-card__waveform {
    grid-column: 1;
    grid-row: auto;
  }

  .od1-beat-card__actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
  }

  .od1-beat-card__waveform {
    height: 34px;
  }

  .od1-beat-card__button {
    display: block;
    width: 100%;
    min-height: 44px;
    border-radius: 6px;
    border-color: var(--beat-line-strong);
    background: #172331;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    padding: 9px 8px;
  }

  .od1-beat-card__button--primary {
    border-color: var(--beat-accent);
    background: var(--beat-accent);
    color: #061016;
  }

  .od1-beat-card__play {
    width: 34px;
    height: 34px;
  }

  .od1-beat-card__play-icon {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 10px;
  }

  .od1-beat-license-modal {
    align-items: center;
    padding: 10px;
  }

  .od1-beat-license-modal__panel {
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .od1-beat-license-modal h3 {
    font-size: 20px;
  }

  .od1-beat-license-option {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 6px;
  }

  .od1-beat-license-option__price {
    white-space: normal;
  }
}
