.ai-hub--audio-reference .ai-direct-hero { max-width: 1440px; }
.ai-hub--audio-reference .ai-direct-hero h1 { letter-spacing: -1px; }
.ai-hub--audio-reference .ai-audio-prompt { width: min(952px,100%); min-height: 186px; border: 1px solid #ffffff17; background: linear-gradient(180deg,#242424b3,#242424); }
.ai-hub--audio-reference .ai-audio-prompt > #aiHubPrompt { height: 127px; min-height: 127px; padding: 8px 16px 0; font-size: 16px; line-height: 24px; }
.ai-hub--audio-reference .ai-direct-generator__footer { display: flex; }
.ai-hub--audio-reference .ai-direct-generator__controls { overflow: visible; flex-wrap: wrap; }
.ai-hub--audio-reference .ai-direct-generator__submit { min-width: 120px; width: auto; height: 40px; min-height: 40px; font-size: 14px; }
.ai-hub--audio-reference .ai-select { color: #ddd !important; background: #383838; }
.ai-hub--audio-reference .ai-select__trigger { font-weight: 400; gap: 4px; }
.ai-hub--audio-reference .ai-select__trigger > svg:last-child { width: 16px; height: 16px; }
.ai-audio-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 8px 12px; border: 0; border-radius: 48px; background: #383838; font-size: 14px; color: #ddd; }
.ai-audio-chip:disabled { color: #aaa; }
.ai-audio-chip svg { width: 16px; height: 16px; }
.ai-audio-chip[aria-pressed="true"] { color: #b8f194; background: #3a4930; }
.ai-audio-loop { display: inline-flex; align-items: center; gap: 8px; height: 40px; border: 0; background: transparent; padding: 8px 0; font-size: 14px; }
.ai-audio-loop > span { display: inline-flex; align-items: center; width: 40px; height: 24px; padding: 2px; border-radius: 24px; background: #414141; transition: background .2s; }
.ai-audio-loop i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #bbb; transition: transform .2s; }
.ai-audio-loop[aria-pressed="true"] > span { background: #87e64b; }
.ai-audio-loop[aria-pressed="true"] i { transform: translateX(16px); background: #19320a; }
.ai-audio-actions { display: flex; align-items: center; gap: 8px; }
.ai-audio-settings { position: static; }
.ai-audio-settings > summary { display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; padding: 4px 12px; list-style: none; background: #ffffff12; border-radius: 36px; font-size: 14px; }
.ai-audio-settings > summary::-webkit-details-marker { display: none; }
.ai-audio-settings > summary svg { width: 16px; height: 16px; }
.ai-audio-settings__panel { position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: min(420px,100%); max-height: min(520px,70vh); overflow-y: auto; padding: 24px; border: 1px solid #ffffff17; border-radius: 20px; background: #242424; box-shadow: 0 10px 30px #0003; }
.ai-audio-settings:not([open]) > .ai-audio-settings__panel { display: none; }
.ai-audio-settings__header { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.ai-audio-settings__header strong { font-size: 16px; }
.ai-audio-settings__header button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #ffffff17; font-size: 22px; }
.ai-audio-settings__primary { display: none; }
.ai-audio-field { display: grid; gap: 8px; width: 100%; color: #ccc; font-size: 13px; }
.ai-audio-field input, .ai-audio-field textarea { width: 100%; min-width: 0; height: auto; min-height: 42px; margin: 0; padding: 10px 12px; border: 1px solid #555; border-radius: 10px; background: #1c1c1c; color: #fff; font: inherit; }
.ai-audio-field textarea { min-height: 100px; max-height: 220px; resize: vertical; }
.ai-audio-capabilities { display: flex; align-items: center; justify-content: center; height: 128px; margin: 0 auto; padding: 28px 16px; color: #ccc; font-size: 18px; font-weight: 600; text-align: center; }
.ai-hub--audio-reference .ai-direct-gallery { margin-top: 0; }
.ai-audio-showcase__overlay { position: absolute; inset: 0; z-index: 1; opacity: 0; background: #0007; transition: opacity .2s; }
.ai-audio-showcase__play { position: absolute; top: 50%; left: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #c8c8c880; transform: translate(-50%,-50%); }
.ai-audio-showcase__play svg { width: 18px; height: 18px; margin-left: 2px; fill: #fff; stroke: none; }
.ai-audio-showcase__label { position: absolute; bottom: 12px; left: 12px; z-index: 3; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 112px; background: #0007; color: #fff; font-size: 13px; opacity: 0; transition: opacity .2s; }
.ai-audio-showcase:is(:hover,:focus-visible,[aria-pressed="true"]) .ai-audio-showcase__overlay, .ai-audio-showcase:is(:hover,:focus-visible,[aria-pressed="true"]) .ai-audio-showcase__label { opacity: 1; }
.ai-audio-showcase:is(:hover,:focus-visible,[aria-pressed="true"]) .ai-audio-showcase__play { background: #9cee69; }
.ai-audio-showcase:is(:hover,:focus-visible,[aria-pressed="true"]) .ai-audio-showcase__play svg { fill: #1c1c1c; }
.ai-audio-showcase[aria-pressed="true"] .ai-audio-showcase__play svg { opacity: 0; }
.ai-audio-showcase[aria-pressed="true"] .ai-audio-showcase__play::after { position: absolute; width: 5px; height: 17px; border-left: 5px solid #1c1c1c; border-right: 5px solid #1c1c1c; content: ""; }
.ai-audio-sample-status { min-height: 20px; margin: 12px 0 0; color: #e8be9f; text-align: center; }
.ai-audio-sample-status:empty { display: none; }
.ai-hub--audio-reference .ai-feature-grid article { position: relative; padding-left: 66px; }
.ai-hub--audio-reference .ai-feature-icon { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #9cee69; color: #191919; }
.ai-hub--audio-reference .ai-feature-icon svg { width: 30px; height: 30px; }
.ai-hub--audio-reference .ai-feature-grid h3 { font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.ai-hub--audio-reference .ai-feature-grid p { line-height: 24px; }
.ai-hub--audio-reference .ai-workflow--motion { padding: 64px 56px; }
.ai-hub--audio-reference .ai-workflow ol { gap: 38px; }
.ai-hub--audio-reference .ai-motion-demo { aspect-ratio: 660 / 490; }
.ai-hub--audio-reference .ai-motion-demo video { aspect-ratio: 660 / 490; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1023px) {
  .ai-hub--audio-reference .ai-direct-gallery { display: flex; gap: 16px; overflow-x: auto; width: calc(100% + 64px); margin-left: -32px; padding: 0 24px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ai-hub--audio-reference .ai-audio-showcase:nth-child(n) { flex: 0 0 320px; width: 320px; height: 400px; aspect-ratio: auto; margin-top: 0; scroll-snap-align: start; }
  .ai-audio-showcase__label { opacity: 1; }
  .ai-hub--audio-reference .ai-workflow--motion { padding: 40px 32px; }
  .ai-hub--audio-reference .ai-feature-grid article { padding-left: 0; }
  .ai-hub--audio-reference .ai-feature-icon { position: static; }
}
@media (max-width: 767px) {
  .ai-hub--audio-reference .ai-direct-hero { padding: 0 16px; }
  .ai-hub--audio-reference .ai-direct-hero h1 { margin: 16px auto 32px; font-size: 36px; line-height: 1.1; gap: 8px; letter-spacing: -1px; }
  .ai-hub--audio-reference .ai-direct-hero__crumbs { height: 69px; }
  .ai-hub--audio-reference .ai-audio-prompt { min-height: 178px; border-radius: 28px; }
  .ai-hub--audio-reference .ai-audio-prompt > #aiHubPrompt { height: 119px; min-height: 119px; }
  .ai-hub--audio-reference .ai-direct-generator__footer { flex-direction: column; align-items: stretch; }
  .ai-hub--audio-reference .ai-audio-primary-controls { display: flex; width: 100%; }
  .ai-hub--audio-reference .ai-audio-primary-controls > :not(.ai-select--model) { display: none; }
  .ai-audio-actions { width: 100%; justify-content: space-between; }
  .ai-audio-settings__panel { left: 0; right: 0; width: 100%; max-height: min(520px,70vh); }
  .ai-audio-settings__primary { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  .ai-audio-capabilities { height: 200px; padding: 40px 32px; font-size: 18px; }
  .ai-hub--audio-reference .ai-direct-gallery { width: calc(100% + 32px); margin-left: -16px; padding: 0 16px; gap: 12px; }
  .ai-hub--audio-reference .ai-audio-showcase:nth-child(n) { flex-basis: 280px; width: 280px; height: 360px; border-radius: 16px; }
  .ai-hub--audio-reference .ai-feature-section { padding: 64px 0; width: calc(100% - 32px); }
  .ai-hub--audio-reference .ai-feature-section > h2 { font-size: 28px; }
  .ai-hub--audio-reference .ai-feature-grid h3 { font-size: 24px; }
  .ai-hub--audio-reference .ai-workflow--motion { width: calc(100% - 32px); padding: 32px 24px; gap: 32px; margin-bottom: 64px; }
  .ai-hub--audio-reference .ai-workflow h3 { font-size: 24px; }
  .ai-hub--audio-reference .ai-workflow li p { font-size: 16px; }
  .ai-hub--audio-reference .ai-toolkit { width: calc(100% - 32px); }
}
