/* Shared by the readable initial HTML and the interactive music studio home. */
.music-home { --mh-width: 1160px; color: var(--rf-ink, #f7f7f7); background: var(--rf-bg, #111214); font-family: Inter, Arial, sans-serif; }
.music-home *, .music-home *::before, .music-home *::after { box-sizing: border-box; }
.music-home a { color: inherit; text-decoration: none; }
.music-home button { font-family: inherit; cursor: pointer; }
.music-home :is(a, button, summary):focus-visible { outline: 2px solid var(--rf-accent); outline-offset: 5px; }
.music-home [hidden] { display: none !important; }
.music-home section { scroll-margin-top: 95px; }
.mh-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 88px; padding: 16px 40px; border-bottom: 1px solid var(--rf-line); }
.mh-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.7px; }
.mh-brand img { border-radius: 8px; }
.mh-header nav, .mh-header-actions { display: flex; align-items: center; gap: 25px; }
.mh-header nav a, .mh-account { color: var(--rf-muted); font-size: 13px; font-weight: 500; }
.mh-header nav a:hover, .mh-account:hover { color: var(--rf-ink); }
.mh-header-actions { gap: 18px; }
.mh-account { background: transparent; border: 0; padding: 10px 0; }
.music-home .mh-button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 48px; padding: 0 22px; background: var(--rf-accent); color: #151316; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 650; transition: transform .2s, filter .2s; }
.music-home .mh-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.music-home .mh-header-cta { min-height: 40px; padding: 0 15px; font-size: 12px; }
.mh-mobile-menu { display: none; }
.mh-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 580px; padding: 64px 24px 38px; text-align: center; overflow: hidden; }
.mh-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(17,18,20,.94), rgba(17,18,20,.85), rgba(17,18,20,.94)), url('/images/templates/hotel-lobby-frame.webp') center 43% / cover; opacity: .75; }
.mh-hero-copy { max-width: 940px; }
.music-home .mh-eyebrow { margin: 0 0 20px; color: var(--rf-accent); font-size: 10px; font-weight: 600; letter-spacing: .17em; line-height: 1.5; }
.music-home h1 { margin: 0; font-family: 'Space Grotesk', Inter, Arial, sans-serif; font-size: clamp(44px, 5.3vw, 74px); font-weight: 550; letter-spacing: -.055em; line-height: 1.06; }
.music-home .mh-lead { margin: 23px 0 0; font-size: 20px; line-height: 1.5; color: var(--rf-ink); }
.music-home .mh-sublead { margin: 7px 0 0; font-size: 14px; color: var(--rf-muted); line-height: 1.6; }
.music-home .home-create-area { margin-top: 30px; width: min(760px, 100%); text-align: left; }
.music-home .home-composer { background: var(--rf-panel); border-color: var(--rf-line); box-shadow: 0 16px 50px #0003; border-radius: 16px; }
.music-home .home-composer:focus-within { border-color: var(--rf-accent); }
.music-home .home-generate { color: #151316; background: var(--rf-accent); box-shadow: none; }
.music-home .home-generate:hover:not(:disabled) { background: var(--rf-accent); filter: brightness(1.1); }
.music-home .home-start-options { margin-top: 15px; }
.music-home .home-upload-note { margin-top: 10px; }
.mh-watch { margin-top: 24px; padding: 8px; font-size: 12px; color: var(--rf-muted) !important; }
.mh-static-create { margin-top: 30px; width: min(760px,100%); padding: 20px; text-align: left; border: 1px solid var(--rf-line); background: var(--rf-panel); border-radius: 16px; }
.mh-static-create > p { color: var(--rf-muted); }
.mh-section { width: min(var(--mh-width), calc(100% - 80px)); margin: 0 auto; padding: 82px 0; }
.music-home h2 { margin: 0; max-width: 660px; font-family: 'Space Grotesk', Inter, Arial, sans-serif; font-size: clamp(30px,3.1vw,44px); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; }
.music-home h3 { font-size: 17px; line-height: 1.4; font-weight: 550; margin: 12px 0 7px; letter-spacing: -.015em; }
.music-home p { line-height: 1.65; }
.mh-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; margin-bottom: 32px; }
.mh-section-title > p { margin: 0; max-width: 340px; color: var(--rf-muted); font-size: 13px; }
/* Portrait references keep the whole subject visible on phones and desktop. */
.mh-examples .mh-section-title { display: block; }
.mh-examples .mh-section-title h2 { max-width: 660px; }
.mh-examples .mh-section-title > p { max-width: 580px; margin-top: 16px; font-size: 14px; }
.mh-demo-grid, .mh-three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.mh-demo-grid figure { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--rf-line); border-radius: 16px; background: var(--rf-panel); }
.mh-demo-media { position: relative; overflow: hidden; aspect-ratio: 9/14; background: #090b0c; }
.mh-demo-media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.music-home .mh-demo-media button { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; border: 0; border-radius: 0; background: #0001; color: #fff; font-size: 12px; }
.mh-demo-play-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #121719b3; border: 1px solid #ffffff80; backdrop-filter: blur(10px); box-shadow: 0 4px 20px #0003; transition: transform .2s, background .2s; }
.mh-demo-play-icon svg { margin-left: 2px; }
.mh-demo-media button:hover .mh-demo-play-icon { transform: scale(1.06); background: #121719e6; }
.mh-demo-label { max-width: 240px; padding: 5px 10px; border-radius: 6px; background: #090b0cb3; line-height: 1.5; text-align: center; }
.mh-demo-label:empty { display: none; }
.mh-demo-media button:disabled { cursor: wait; }
.mh-demo-media button:disabled .mh-demo-play-icon svg { display: none; }
.mh-demo-media button:disabled .mh-demo-play-icon::after { content: ''; width: 20px; height: 20px; border: 2px solid #fff5; border-top-color: #fff; border-radius: 50%; animation: mh-preview-spin .8s linear infinite; }
@keyframes mh-preview-spin { to { transform: rotate(360deg); } }
.mh-demo-grid figcaption { padding: 20px; }
.music-home .mh-demo-grid h3 { margin: 0 0 6px; font-size: 20px; }
.mh-demo-grid figcaption p, .mh-three p, .mh-use-links p { margin: 0; font-size: 13px; color: var(--rf-muted); }
.music-home .mh-demo-grid figcaption a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rf-line); color: var(--rf-accent); font-size: 13px; font-weight: 550; }
.mh-demo-grid figcaption a svg { flex-shrink: 0; transition: transform .2s; }
.mh-demo-grid figcaption a:hover svg { transform: translate(2px,-2px); }
.mh-band { background: var(--rf-raised); border-block: 1px solid var(--rf-line); }
.mh-three { margin-top: 40px; gap: 48px; }
.mh-three article { border-top: 1px solid var(--rf-line); padding-top: 22px; }
.mh-number { color: var(--rf-accent); font-size: 11px; }
.music-home .mh-note { margin: 30px 0 0; color: var(--rf-muted); font-size: 12px; }
.mh-uses { border-top: 1px solid var(--rf-line); }
.mh-use-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 65px; margin-top: 30px; }
.mh-use-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--rf-line); }
.mh-use-links h3 { margin-top: 0; }
.mh-use-links a > span { color: var(--rf-accent); transition: transform .2s; }
.mh-use-links a:hover > span { transform: translate(3px,-3px); }
.mh-trends { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; padding-top: 20px; }
.mh-trends img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.mh-trends p:not(.mh-eyebrow) { margin: 20px 0 24px; color: var(--rf-muted); font-size: 14px; }
.music-home .mh-secondary { background: transparent; color: var(--rf-ink); border-color: var(--rf-line); }
.mh-faq { border-top: 1px solid var(--rf-line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.mh-faq > div > a { display: inline-block; padding: 20px 0 0; color: var(--rf-muted); font-size: 13px; }
.mh-faq details { border-bottom: 1px solid var(--rf-line); padding: 19px 0; }
.mh-faq details:first-child { padding-top: 0; }
.mh-faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary span { color: var(--rf-muted); }
.mh-faq details[open] summary span { transform: rotate(45deg); }
.mh-faq details p { color: var(--rf-muted); font-size: 13px; margin: 13px 20px 0 0; }
.mh-final { text-align: center; padding: 70px 24px; background: var(--rf-panel); border-top: 1px solid var(--rf-line); }
.mh-final h2 { margin: 0 auto 28px; }
.mh-final > p:last-child { margin: 18px 0 0; color: var(--rf-muted); font-size: 11px; }
.music-home .mh-footer { width: min(var(--mh-width), calc(100% - 80px)); min-height: 110px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 30px 0; margin: auto; font-size: 11px; color: var(--rf-muted); }
.mh-footer > a { font-size: 18px; font-weight: 650; color: var(--rf-ink); }
.mh-footer nav { display: flex; gap: 24px; margin-left: auto; }
.mh-footer > span:last-child { margin-left: 0; }
@media(prefers-reduced-motion:no-preference) { .mh-hero-copy { animation: mh-enter .6s both; } .music-home .home-create-area { animation: mh-enter .6s .12s both; } }
@keyframes mh-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:1100px) { .mh-header { padding-inline: 24px; gap: 18px; } .mh-header nav { gap: 16px; } .mh-header-cta { display: none !important; } .mh-trends { gap: 35px; } }
@media(max-width:760px) {
  .mh-header { min-height: 72px; padding: 14px 20px; gap: 15px; }
  .mh-brand { margin-right: auto; font-size: 20px; }
  .mh-header .mh-desktop-nav { display: none; }
  .mh-header-actions { gap: 12px; }
  .mh-mobile-menu { display: block; }
  .mh-mobile-menu > summary { cursor: pointer; list-style: none; font-size: 23px; padding: 5px; }
  .mh-mobile-menu > summary::-webkit-details-marker { display: none; }
  .mh-mobile-menu nav { position: absolute; top: 66px; right: 16px; display: grid; gap: 0; padding: 12px; background: var(--rf-panel); border: 1px solid var(--rf-line); border-radius: 8px; box-shadow: 0 12px 30px #0005; }
  .mh-mobile-menu nav a { padding: 12px 18px; }
  .mh-hero { padding: 42px 20px 25px; min-height: 530px; }
  .music-home h1 { font-size: clamp(40px,8.6vw,62px); }
  .music-home .mh-lead { margin-top: 20px; font-size: 17px; }
  .music-home .mh-sublead { font-size: 13px; }
  .music-home .mh-eyebrow { margin-bottom: 16px; }
  .music-home .home-create-area { margin-top: 25px; }
  .music-home .home-start-options { gap: 8px; }
  .mh-watch { margin-top: 15px; }
  .mh-section { width: calc(100% - 40px); padding: 54px 0; }
  .mh-section-title { display: grid; gap: 18px; }
  .mh-section-title > p { max-width: 100%; }
  .mh-demo-grid { grid-template-columns: 1fr; gap: 30px; }
  .mh-examples .mh-section-title h2 { font-size: 30px; }
  .mh-three { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
  .mh-use-links { grid-template-columns: 1fr; }
  .mh-trends { grid-template-columns: 1fr; gap: 30px; padding-top: 10px; }
  .mh-faq { grid-template-columns: 1fr; gap: 35px; }
  .mh-final { padding: 55px 20px; }
  .music-home .mh-footer { width: calc(100% - 40px); gap: 20px; }
  .mh-footer nav { margin-left: 0; width: 100%; }
  .mh-footer > span:last-child { width: 100%; }
}
@media(prefers-reduced-motion:reduce) { .music-home *, .music-home *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Keep translated account links and navigation inside narrow phone headers. */
@media (max-width: 380px) {
  .mh-header { padding-inline: 12px; gap: 8px; }
  .mh-brand { font-size: 17px; gap: 6px; }
  .mh-brand img { width: 26px; height: 26px; }
  .mh-header-actions { gap: 8px; }
  .mh-account { max-width: 85px; font-size: 12px; overflow-wrap: anywhere; }
  .mh-mobile-menu > summary { padding: 3px; }
}
