.music-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 10vw, 120px) 0;
  color: #fff9ea;
  background: #0d2b24;
  overflow: hidden;
}
.music-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../assets/hear-album-map-realistic.png") center / cover no-repeat;
  opacity: 0.42;
}
.music-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 25, 20, 0.98), rgba(7, 25, 20, 0.82) 56%, rgba(7, 25, 20, 0.55));
}
.music-hero-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.music-hero-copy { max-width: 690px; }
.music-hero .eyebrow { color: var(--gold-light); }
.music-hero h1 { margin-top: 12px; font-size: clamp(2.8rem, 6vw, 5.7rem); letter-spacing: -0.035em; }
.music-hero p:not(.eyebrow) { max-width: 710px; margin-top: 19px; color: rgba(255, 249, 234, 0.86); font-size: clamp(1.06rem, 2vw, 1.25rem); }
.plain-note { margin-top: 18px !important; color: rgba(255, 249, 234, 0.67) !important; font-size: 0.94rem !important; }
.map-frame { position: relative; margin: 0; padding: 10px; border: 1px solid rgba(228, 189, 117, 0.52); border-radius: 24px; background: rgba(9, 24, 20, 0.58); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.36); transform: rotate(1deg); }
.map-frame::before { content: ""; position: absolute; inset: -9px; z-index: -1; border: 1px solid rgba(228, 189, 117, 0.2); border-radius: 29px; }
.map-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; filter: saturate(0.82) sepia(0.08); }
.map-frame figcaption { padding: 11px 7px 3px; color: rgba(255, 249, 234, 0.7); font-family: "Lora", Georgia, serif; font-size: 0.86rem; text-align: center; }

.guide-intro { max-width: 760px; margin-bottom: 30px; }
.guide-intro h2 { margin-top: 9px; color: var(--forest-deep); font-size: clamp(2rem, 4vw, 3.7rem); }
.guide-intro p { margin-top: 13px; color: var(--muted); font-size: 1.06rem; }
.path-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.path-choice {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(29, 32, 27, 0.06);
}
.path-choice::after { content: ""; position: absolute; inset: auto -25% -48% 25%; z-index: -1; height: 100px; border-radius: 50%; background: radial-gradient(circle, rgba(182, 122, 47, 0.18), transparent 70%); }
.path-choice:hover, .path-choice:focus-visible { border-color: rgba(182, 122, 47, 0.75); transform: translateY(-2px); outline: none; }
.path-choice[aria-pressed="true"] { color: #fff9ea; background: var(--forest); border-color: var(--forest); box-shadow: var(--shadow); }
.path-name { display: block; color: var(--gold); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.path-choice[aria-pressed="true"] .path-name { color: var(--gold-light); }
.path-question { display: block; margin-top: 12px; font-family: "Lora", Georgia, serif; font-size: 1.13rem; line-height: 1.25; }
.path-count { display: block; margin-top: 18px; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.path-choice[aria-pressed="true"] .path-count { color: rgba(255, 249, 234, 0.68); }

.listening-panel { position: relative; margin-top: 30px; padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(228, 189, 117, 0.28); border-radius: 24px; color: #fff9ea; background: linear-gradient(145deg, #0b2922, #153c32 56%, #0c3028); box-shadow: 0 28px 70px rgba(15, 33, 27, 0.24); overflow: hidden; }
.listening-panel::after { content: ""; position: absolute; right: -130px; top: -160px; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 169, 84, 0.13), transparent 68%); pointer-events: none; }
.listening-empty { padding: 35px 0; color: var(--muted); text-align: center; }
.listening-panel .listening-empty { color: rgba(255, 249, 234, 0.72); }
.listening-room { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; grid-template-areas: "main" "songs"; gap: 25px; align-items: start; }
.listening-main { grid-area: main; }
.listening-copy { max-width: 760px; }
.room-label { color: var(--gold-light) !important; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.listening-copy h2 { margin-top: 7px; color: #fff9ea; font-size: clamp(1.8rem, 4vw, 3rem); }
.listening-copy p { margin-top: 11px; color: rgba(255, 249, 234, 0.72); }
.player-box { margin-top: 25px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; color: #fff9ea; background: rgba(4, 19, 15, 0.64); }
.player-home { min-height: 0; }
.now-playing { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); }
.current-song { margin-top: 5px; font-family: "Lora", Georgia, serif; font-size: 1.25rem; }
.player-box audio { width: 100%; margin-top: 13px; }
.path-songs { grid-area: songs; display: grid; gap: 10px; }
.song-button {
  min-height: 58px;
  width: 100%;
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.song-button:hover, .song-button:focus-visible { border-color: rgba(23, 63, 52, 0.58); background: #f8f3e9; outline: none; }
.listening-panel .song-button { border-color: rgba(255, 255, 255, 0.13); color: #fff9ea; background: rgba(255, 255, 255, 0.07); }
.listening-panel .song-button:hover, .listening-panel .song-button:focus-visible { border-color: rgba(228, 189, 117, 0.62); background: rgba(255, 255, 255, 0.12); }
.song-button.playing, .listening-panel .song-button.playing { color: #18231f; background: #f3e6c9; border-color: #f3e6c9; }
.song-number { color: var(--gold); font-size: 0.82rem; font-weight: 800; }
.song-title { font-weight: 800; }
.play-label { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.listening-panel .play-label { color: rgba(255, 249, 234, 0.65); }
.song-button.playing .play-label { color: rgba(255, 249, 234, 0.75); }
.song-button.playing .play-label, .listening-panel .song-button.playing .play-label { color: #52605a; }

.song-notes { margin-top: 18px; border: 1px solid rgba(228, 189, 117, 0.42); border-radius: 15px; color: #26332e; background: #fbf1db; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.19); overflow: hidden; animation: notes-pop 220ms ease-out; }
.song-notes summary { min-height: 52px; display: flex; align-items: center; padding: 13px 17px; color: var(--blue); font-weight: 800; cursor: pointer; }
.song-notes summary:hover, .song-notes summary:focus-visible { background: rgba(182, 122, 47, 0.1); outline: none; }
.song-notes-body { padding: 4px 20px 20px; }
.note-kind { color: #946026; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.song-notes h3 { margin-top: 8px; color: var(--blue); font-size: 1.65rem; }
.note-summary { margin-top: 12px; color: #56625d; }
.note-section { margin-top: 21px; padding-top: 18px; border-top: 1px solid rgba(23, 35, 31, 0.14); }
.note-section h4 { margin: 0; color: #26332e; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.note-section p { margin-top: 7px; color: #5d6762; font-size: 0.94rem; }
.note-section.scripture { padding: 16px; border: 0; border-radius: 12px; background: rgba(182, 122, 47, 0.1); }
@keyframes notes-pop { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

.song-scene {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff9ea;
  background:
    linear-gradient(180deg, rgba(4, 18, 15, 0.42), rgba(4, 18, 15, 0.8)),
    url("../assets/forest-appalachia-lightpath.jpg") center / cover no-repeat;
  overflow: auto;
}
.song-scene::backdrop { background: #07120f; }
.song-scene[data-path="connection"] { background-position: 46% center; }
.song-scene[data-path="release"] { background-image: linear-gradient(180deg, rgba(35, 20, 8, 0.36), rgba(20, 12, 7, 0.82)), url("../assets/forest-appalachia-lightpath.jpg"); }
.song-scene[data-path="direction"] { background-image: linear-gradient(180deg, rgba(5, 22, 18, 0.3), rgba(5, 22, 18, 0.82)), url("../assets/forest-bg-hero.jpg"); }
.song-scene[data-path="wonder"] { background-image: linear-gradient(180deg, rgba(37, 29, 8, 0.2), rgba(21, 29, 14, 0.76)), url("../assets/forest-bg-hero.jpg"); }
.song-scene[data-path="stillness"] { background-image: linear-gradient(180deg, rgba(5, 18, 25, 0.5), rgba(4, 13, 18, 0.88)), url("../assets/forest-appalachia-lightpath.jpg"); filter: saturate(0.82); }
.scene-close {
  position: fixed;
  top: max(15px, env(safe-area-inset-top));
  right: max(15px, env(safe-area-inset-right));
  z-index: 4;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #fffdf5;
  background: rgba(5, 20, 16, 0.7);
  backdrop-filter: blur(12px);
  font: 700 0.86rem "DM Sans", sans-serif;
  cursor: pointer;
}
.scene-close:hover, .scene-close:focus-visible { background: #fff8e9; color: #173f34; outline: 3px solid rgba(255, 248, 233, 0.32); }
.scene-stage {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(78px, calc(env(safe-area-inset-top) + 64px)) 0 max(40px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scene-path { margin: 0 0 11px; color: #f4d79a; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.scene-player-slot .player-box {
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  background: rgba(4, 17, 14, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}
.scene-player-slot .current-song { margin-top: 8px; font-size: clamp(1.65rem, 5vw, 2.65rem); line-height: 1.14; }
.scene-player-slot .song-notes { margin-top: 20px; box-shadow: none; }
.scene-reflection {
  display: none;
  margin-top: 16px;
  padding: 20px clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(5, 20, 16, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}
.scene-player-slot .scene-reflection { display: block; }
.reflection-label { color: #f4d79a; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.reflection-question { margin-top: 8px; font-family: "Lora", Georgia, serif; font-size: clamp(1.12rem, 3vw, 1.45rem); line-height: 1.45; }
.reflection-permission { margin-top: 9px; color: rgba(255, 249, 234, 0.67); font-size: 0.88rem; }
body.scene-open { overflow: hidden; }

.library-details { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.library-details summary { min-height: 66px; display: flex; align-items: center; padding: 17px 21px; color: var(--forest-deep); font-weight: 800; cursor: pointer; }
.library-details summary:hover, .library-details summary:focus-visible { background: #f7f0e4; outline: none; }
.library-body { padding: 0 21px 24px; }
.library-body > p { color: var(--muted); }
.song-search { width: 100%; min-height: 50px; margin-top: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; font: inherit; }
.song-search:focus { border-color: var(--forest); outline: 2px solid rgba(23, 63, 52, 0.15); }
.library-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.library-list .song-button { grid-template-columns: 1fr auto; }
.library-status { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.song-index { margin-top: 18px; border-top: 1px solid var(--line); }
.song-index > summary { min-height: 58px; display: block; padding: 17px 0; color: var(--forest-deep); font-weight: 800; cursor: pointer; }
.song-index > summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.song-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 4px; }
.song-index-entry { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #faf6ee; }
.song-index-entry h3 { color: var(--blue); font-size: 1rem; }
.song-index-entry p { margin-top: 7px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.scripture-note { margin-top: 22px; padding: 20px; border-left: 4px solid var(--gold); background: #f7f0e4; color: var(--muted); }
.scripture-note strong { color: var(--ink); }

@media (max-width: 1020px) {
  .path-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .music-hero-grid { grid-template-columns: 1fr; }
  .map-frame { max-width: 720px; transform: none; }
}
@media (max-width: 760px) {
  .music-hero { padding: 68px 0 72px; }
  .music-hero::after { background: linear-gradient(180deg, rgba(7, 25, 20, 0.78), rgba(7, 25, 20, 0.96)); }
  .music-hero h1 { font-size: clamp(2.6rem, 13vw, 4.4rem); }
  .path-choices, .library-list, .song-index-grid { grid-template-columns: 1fr; }
  .path-choice { min-height: 148px; }
  .song-button { grid-template-columns: 2rem 1fr auto; padding-inline: 11px; }
  .listening-panel { padding: 20px; }
  .map-frame { padding: 7px; border-radius: 18px; }
  .map-frame img { border-radius: 12px; }
  .scene-stage { width: min(100% - 20px, 780px); padding-top: max(76px, calc(env(safe-area-inset-top) + 62px)); justify-content: flex-start; }
  .scene-player-slot .player-box { padding: 17px; border-radius: 19px; }
  .scene-player-slot .current-song { font-size: 1.55rem; }
  .scene-player-slot .song-notes-body { padding-inline: 16px; }
  .scene-reflection { padding: 17px; }
}
