/* CAM's shared phone-first finish. Game canvases and their sizing stay local. */
:root {
  --cam-phone-gold: #ecd9ad;
  --cam-phone-pink: #efb5cc;
  --cam-phone-mint: #a6e7df;
  --cam-phone-muted: #b9b8c0;
  --cam-safe-bottom: env(safe-area-inset-bottom, 0px);
  --cam-tab-height: calc(66px + var(--cam-safe-bottom));
  --cam-player-height: 74px;
}
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
body { -webkit-font-smoothing: antialiased; }
:where(button, input, select, textarea, a, summary) { -webkit-tap-highlight-color: transparent; }
:where(button, a, summary) { touch-action: manipulation; }
:where(button, input, select, textarea, a, summary):focus-visible { outline: 2px solid var(--cam-phone-mint); outline-offset: 4px; }
:where(input, textarea, select) { max-width: 100%; }
:where(dialog) { box-sizing: border-box; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
:where(dialog)::backdrop { background-color: #080a10bd; }
:where(.library-header, .site-header, .storm-nav, .arcade-header, .watch-header, .cam-score-header, .hub-header-inner) { min-width: 0; }
:where(.library-header, .site-header, .storm-nav, .arcade-header, .watch-header, .cam-score-header, .hub-header-inner) nav { min-width: 0; }
:where(.listener-panel, .record-setup, .recorder-panel, .listener-table-wrap, .legal-main, .experience-main, .faith-main, .church-main) { min-width: 0; }
:where(.legal-main, .experience-main, .faith-main, .church-main) p { text-wrap: pretty; }
:where(.listener-panel, .record-setup, .recorder-panel) { border-radius: 18px; }
:where(.listener-panel h2, .listener-heading h1, .legal-main h1, .experience-main h1) { text-wrap: balance; }
:where(.site-header, .library-header, .watch-header, .hub-header-inner, .cam-score-header) a { text-underline-offset: 4px; }

/* A clear invitation to play, with the existing music player underneath. */
.cam-discover { background: radial-gradient(ellipse at 10% 0, #efb5cc07, transparent 30%), #101113; }
.cam-discover .library-header { border-bottom-color: #ffffff16; }
.cam-discover .wordmark span { background: var(--cam-phone-mint); box-shadow: 0 0 14px #a6e7df40; }
.cam-discover main > section { scroll-margin-top: 20px; }
.cam-discover .cam-welcome { background: radial-gradient(ellipse at 85% 0, #a6e7df10, transparent 64%), radial-gradient(ellipse at 0 50%, #efb5cc0c, transparent 60%), #191b21; border-color: #ffffff23; }
.cam-discover .welcome-eyebrow { font-size: 10px; letter-spacing: .12em; line-height: 1.6; }
.cam-discover .welcome-intro { color: #c2bdc9; font-size: 15px; line-height: 1.65; max-width: 360px; }
.welcome-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.welcome-listen { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 21px; border: 1px solid var(--cam-phone-gold); border-radius: 999px; background: var(--cam-phone-gold); color: #282219; font: 650 15px/1.4 Inter, Arial, sans-serif; box-shadow: 0 6px 26px #ecd9ad0c; }
.welcome-listen svg { width: 19px; height: 19px; fill: currentColor; }
.welcome-browse { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: #e9e1ed; font-size: 13px; font-weight: 550; }
.welcome-browse > span { color: var(--cam-phone-gold); }
.welcome-listen-note { margin: 10px 0 0; color: #b9b3bf; font-size: 11px; line-height: 1.65; }
.welcome-listen-note > span { margin-inline: 3px; }
.cam-share-header, .cam-share-page { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid #ffffff26; border-radius: 999px; background: #ffffff04; color: #e1d8e5; font: 550 12px/1.4 Inter, Arial, sans-serif; cursor: pointer; }
.cam-share-header svg, .cam-share-page svg { height: 17px; width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cam-share-page { margin-top: 12px; align-self: start; }
.cam-discover .welcome-spotlight { display: none; }
.cam-discover .release-card { background: linear-gradient(145deg, #25242b, #1a1c22); border-color: #ffffff20; }
.cam-discover .release-card h2 { color: #f6f1eb; }
.cam-discover .catalog-heading h2 { letter-spacing: -.04em; }
.cam-discover .search-wrap > input { border-color: #ffffff27; background: #1b1e24; }
.cam-discover .release-chips button { color: #c7c1cd; background: #ffffff03; }
.cam-discover .release-chips button[aria-pressed=true] { color: #252017; background: var(--cam-phone-gold); }
.cam-discover .library-row { transition: background-color .16s; }
.cam-discover .library-row.is-current { background: #ecd9ad08; }
.cam-discover .song-byline { color: #b9b5bf; }
.cam-discover .song-play .play-overlay { background: #100d153d; }
.cam-discover .song-name { font-size: 15px; line-height: 1.4; }
.cam-discover .catalog-note { line-height: 1.65; }
.cam-discover .library-player { border-color: #ffffff35; background: #25272ff7; }
.cam-discover .player-song #player-title { font-size: 13px; }
.cam-discover .player-song small { font-size: 11px; color: #bdb7c6; }
.cam-discover .library-footer { gap: 20px; }
.cam-discover .music-sheet { background: linear-gradient(160deg, #24252d, #191b20); }
.cam-discover .sheet-list > a, .cam-discover .sheet-list > button { min-height: 52px; }
.cam-discover .sheet-list > .sheet-primary { background: var(--cam-phone-gold); }

/* Optional support is shown only inside Instagram; the site is always usable. */
.cam-inapp-help { box-sizing: border-box; max-width: 1180px; margin: 10px auto; padding: 11px 15px; border: 1px solid #a6e7df33; border-radius: 14px; background: #1a292d; color: #d8e9e5; font: 13px/1.6 Inter, Arial, sans-serif; }
.cam-inapp-help-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.cam-inapp-help-head > p { flex: 1; min-width: 170px; margin: 0; }
.cam-inapp-help button { min-height: 44px; padding: 8px 10px; border: 1px solid #ffffff25; border-radius: 9px; background: transparent; color: #e5f2ec; font: 550 12px/1.4 Inter, Arial, sans-serif; cursor: pointer; }
.cam-inapp-help .cam-help-close { width: 44px; padding: 8px; border: 0; font-size: 22px; }
.cam-inapp-help-details { margin-top: 10px; padding-top: 10px; border-top: 1px solid #a6e7df25; }
.cam-inapp-help-details > p { margin: 0 0 9px; }
.cam-ui-status { position: fixed; z-index: 90; inset: auto 16px calc(18px + var(--cam-safe-bottom)); max-width: 430px; margin: 0 auto; padding: 13px 17px; border: 1px solid #ffffff35; border-radius: 13px; background: #30323b; color: #f7f2e9; box-shadow: 0 10px 30px #0008; font: 14px/1.5 Inter, Arial, sans-serif; }
.cam-ui-status:empty { display: none; }
.cam-tabs .cam-ui-status { bottom: calc(var(--cam-tab-height) + 15px); }
body:has(.library-player) .cam-ui-status { bottom: calc(var(--cam-tab-height) + var(--cam-player-height) + 24px); }
.cam-copy-dialog { width: 430px; padding: 24px; border: 1px solid #ffffff35; border-radius: 22px; background: #202229; color: #f6f3eb; font: 15px/1.6 Inter, Arial, sans-serif; }
.cam-copy-dialog h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.03em; }
.cam-copy-dialog p { margin: 0 0 18px; color: #c1bac8; }
.cam-copy-dialog label { display: grid; gap: 8px; color: #d3c4df; font-size: 13px; }
.cam-copy-dialog input { box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px; border: 1px solid #ffffff36; border-radius: 10px; background: #14161c; color: #f7f0e6; font: 16px/1.5 Inter, Arial, sans-serif; }
.cam-copy-dialog button { display: block; width: 100%; min-height: 48px; margin-top: 20px; border: 0; border-radius: 12px; background: var(--cam-phone-gold); color: #282219; font: 600 15px/1.4 Inter, Arial, sans-serif; }

@media (min-width: 761px) {
  .cam-discover .cam-welcome h1 { font-size: clamp(40px, 4.7vw, 64px); }
  .cam-discover .welcome-copy { padding-bottom: 5px; }
  .cam-discover .welcome-listen-note { max-width: 350px; }
  .cam-discover .welcome-actions { gap: 12px 22px; }
  .cam-discover .welcome-listen { padding-inline: 25px; }
  .cam-ui-status, body:has(.library-player) .cam-ui-status { bottom: 118px; }
}
@media (max-width: 760px) {
  :where(input:not([type=range]):not([type=checkbox]):not([type=radio]), textarea, select) { font-size: 16px !important; }
  :where(input:not([type=range]):not([type=checkbox]):not([type=radio]), select) { min-height: 46px; }
  :where(textarea) { min-height: 100px; }
  :where(.library-header, .site-header, .storm-nav, .arcade-header, .watch-header, .cam-score-header, .hub-header-inner) { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  :where(.site-header, .storm-nav, .arcade-header, .cam-score-header, .hub-header-inner) nav { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; flex-wrap: nowrap !important; max-width: 100%; }
  :where(.site-header, .storm-nav, .arcade-header, .cam-score-header, .hub-header-inner) nav::-webkit-scrollbar { display: none; }
  :where(.site-header, .storm-nav, .arcade-header, .cam-score-header, .hub-header-inner) nav > a { min-height: 44px; flex-shrink: 0; white-space: nowrap; }
  :where(.site-header, .release-header, .storm-nav, .arcade-header, .cam-score-header, .hub-header-inner) { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  :where(.listener-page .site-header, .sessions-page .site-header, .bible-page .site-header) { gap: 10px; }
  :where(.site-header nav, .storm-nav nav, .arcade-header nav) a::after { bottom: 0; }
  :where(.legal-topics, .faith-topics, .gallery-nav, .release-nav) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  :where(.legal-topics a, .faith-topics a) { border-radius: 999px; }
  :where(.listener-footer, .storm-footer, .cam-score-footer) { flex-wrap: wrap; gap: 8px 18px; }
  :where(.listener-footer, .storm-footer, .cam-score-footer) a { display: inline-flex; align-items: center; min-height: 44px; }
  :where(.listener-panel, .recorder-panel, .record-setup) { border-color: #ffffff24; }
  :where(.listener-page .listener-primary, .record-start .primary) { border-radius: 12px; }
  :where(.listener-page .forum-post-actions button, .type-controls button) { min-height: 44px; }
  .type-controls button { min-width: 40px; }
  .reader-selectors { flex-wrap: wrap; }
  .reader-selectors label { min-width: 0; }
  .reader-selectors label select { max-width: 100%; }
  .listener-table-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .listener-table-wrap table { min-width: 310px; }
  :where(.analytics-grid, .profile-stats) > div { min-width: 0; }
  :where(.music-bar) { padding-bottom: max(10px, var(--cam-safe-bottom)); }
  body.cam-tabs { padding-bottom: calc(var(--cam-tab-height) + 12px); }
  .cam-tabbar { box-sizing: border-box; padding-bottom: max(6px, var(--cam-safe-bottom)); min-height: calc(66px + var(--cam-safe-bottom)); }
  .cam-tabbar a { min-height: 54px; font-size: 11px; }
  .cam-tabbar a[aria-current] { color: var(--cam-phone-gold); }
  .cam-discover .library-header { height: calc(64px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); gap: 12px; }
  .cam-discover .library-header nav { gap: 6px; }
  .cam-discover .library-header .account-link { padding-inline: 12px; font-size: 12px; }
  .cam-discover .cam-share-header { padding-inline: 10px; }
  .cam-discover main { padding-top: 19px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: calc(var(--cam-player-height) + 42px); }
  .cam-discover .cam-welcome { padding: 24px 20px 14px; gap: 20px; margin-top: 0; border-radius: 24px; }
  .cam-discover .cam-welcome h1 { font-size: clamp(36px, 9.3vw, 48px); line-height: 1.06; }
  .cam-discover .welcome-eyebrow { font-size: 9px; }
  .cam-discover .welcome-intro { margin-top: 15px; font-size: 14px; line-height: 1.65; }
  .cam-discover .welcome-actions { margin-top: 19px; gap: 8px 16px; }
  .cam-discover .welcome-listen { min-height: 49px; padding-inline: 19px; }
  .cam-discover .welcome-listen-note { max-width: 260px; font-size: 11px; }
  .cam-discover .welcome-scene { height: 208px; max-width: 350px; }
  .cam-discover .welcome-record { max-width: 165px; top: 7px; }
  .cam-discover .welcome-game { height: 103px; }
  .cam-discover .welcome-flight { height: 117px; width: 117px; top: -12px; }
  .cam-discover .welcome-video { height: 99px; }
  .cam-discover .welcome-routes { gap: 8px; }
  .cam-discover .welcome-route { min-height: 91px; border-radius: 14px; background: #ffffff04; }
  .cam-discover .welcome-route-copy > small { font-size: 10px; line-height: 1.4; }
  .cam-discover .welcome-library { gap: 0 10px; margin-top: -6px; }
  .cam-discover .welcome-library > a, .cam-discover .welcome-library .pill-button { font-size: 11px; }
  .cam-discover .catalog-heading { margin-bottom: 15px; }
  .cam-discover .catalog-heading h2 { margin-bottom: 16px; font-size: 27px; }
  .cam-discover .catalog-tools { gap: 12px; }
  .cam-discover .release-chips { padding-bottom: 7px; gap: 8px; scroll-snap-type: x proximity; }
  .cam-discover .release-chips button { font-size: 13px; min-height: 44px; scroll-snap-align: start; }
  .cam-discover .library-row { padding: 13px 3px; gap: 9px; min-height: 83px; }
  .cam-discover .song-cell { gap: 13px; }
  .cam-discover .song-play, .cam-discover .song-image { width: 54px; height: 54px; }
  .cam-discover .song-play { flex-basis: 54px; }
  .cam-discover .song-image img, .cam-discover .play-overlay { border-radius: 12px; }
  .cam-discover .song-options { color: #d3cad9; }
  .cam-discover .library-player { bottom: calc(var(--cam-tab-height) + 8px); left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); min-height: 73px; padding: 10px 12px; border-radius: 17px; box-shadow: 0 8px 30px #0007; }
  .cam-discover .player-song { gap: 10px; }
  .cam-discover .player-song img { width: 44px; height: 44px; }
  .cam-discover .player-transport { gap: 3px; }
  .cam-discover .music-sheet { max-width: 100%; max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px))); padding: 19px 22px max(24px, var(--cam-safe-bottom)); border-radius: 24px 24px 0 0; }
  .cam-discover .music-sheet::before { content: ''; display: block; width: 36px; height: 4px; margin: -7px auto 12px; background: #ffffff36; border-radius: 9px; }
  .cam-discover .catalog-note { gap: 10px; font-size: 12px; }
  .cam-discover .library-footer { padding-top: 22px; }
  .cam-discover .library-footer nav { gap: 2px 17px; }
  .cam-discover .knights-teasers { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: 2px 20px 16px; scrollbar-width: thin; scrollbar-color: #ecd9ad55 transparent; }
  .cam-discover .knights-track { box-sizing: border-box; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-content: start; flex: 0 0 min(88%, 340px); gap: 12px; min-width: 0; min-height: 198px; padding: 15px; border: 1px solid #ffffff23; border-radius: 15px; background: #ffffff03; scroll-snap-align: start; }
  .cam-discover .knights-track-art { width: 52px; height: 52px; }
  .cam-discover .knights-track-art img { width: 52px; height: 52px; border-radius: 10px; }
  .cam-discover .knights-track-copy { min-width: 0; }
  .cam-discover .knights-track-copy p { font-size: 9px; line-height: 1.5; }
  .cam-discover .knights-track-copy h3 { font-size: 15px; line-height: 1.35; }
  .cam-discover .knights-track-copy > span { font-size: 11px; line-height: 1.5; }
  .cam-discover .knights-track-buttons { grid-column: 1 / -1; display: flex; align-self: end; gap: 8px; padding: 0; margin-top: auto; }
  .cam-discover .knights-track-buttons > * { flex: 1; min-height: 44px; justify-content: center; padding-inline: 8px; font-size: 11px; white-space: nowrap; }
  .cam-discover .teasers-heading { gap: 10px; }
  .cam-discover .teasers-heading > span { font-size: 11px; }

  /* Legacy album pages use the same comfortable two-row phone player. */
  body.streaming-page { padding-bottom: calc(155px + var(--cam-safe-bottom)); }
  body.streaming-page .site-header { min-height: 64px; height: auto; flex-wrap: wrap; gap: 5px; padding: 10px 16px; }
  body.streaming-page .site-header .brand { width: auto; min-height: 44px; }
  body.streaming-page .site-header nav { order: 2; flex-basis: 100%; width: 100%; margin: 0; justify-content: flex-start; gap: 5px; padding-block: 1px; }
  body.streaming-page .site-header nav > a { padding-inline: 10px; }
  body.streaming-page .site-header nav > .more-menu { flex-shrink: 0; }
  body.streaming-page .site-header .more-menu[open] > div { position: fixed; top: calc(120px + env(safe-area-inset-top, 0px)); left: auto; right: 16px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 155px); }
  body.streaming-page .release-nav { display: flex; flex-wrap: nowrap; gap: 10px; padding: 12px; scroll-snap-type: x proximity; }
  body.streaming-page .release-nav > a { display: flex; flex: 0 0 174px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; min-width: 0; min-height: 84px; padding: 14px; border-radius: 13px; scroll-snap-align: start; }
  body.streaming-page .release-nav > a > strong, body.streaming-page .release-nav > a > span { flex: none; width: 100%; min-width: 0; max-width: 100%; overflow-wrap: normal; }
  body.streaming-page .release-nav strong { font-size: 14px; line-height: 1.4; }
  body.streaming-page .release-nav span { font-size: 11px; line-height: 1.5; }
  body.streaming-page .music-bar { box-sizing: border-box; position: fixed; z-index: 40; inset: auto 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; width: auto; min-width: 0; max-height: 50dvh; overflow: visible; margin: 0 !important; padding: 11px 16px max(11px, var(--cam-safe-bottom)); border: 1px solid #ffffff2b; border-width: 1px 0 0; border-radius: 0; background: #1c1f27f7; backdrop-filter: blur(20px); }
  body.streaming-page .music-bar .music-cover { display: none; }
  body.streaming-page .music-bar .music-label { grid-row: 1; grid-column: 1; display: block; width: auto; min-width: 0; max-width: 100%; }
  body.streaming-page .music-bar .music-label strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 13px/1.5 Inter, Arial, sans-serif; }
  body.streaming-page .music-bar .music-label > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 11px/1.6 Inter, Arial, sans-serif; color: #bdb7c6; }
  body.streaming-page .music-bar .music-quick { grid-row: 1; grid-column: 2; width: auto; min-width: 0; flex: none; justify-content: flex-end; gap: 5px; }
  body.streaming-page .music-quick > :not(#music-toggle):not(#music-next) { display: none; }
  body.streaming-page .music-bar .music-quick #music-toggle { width: auto; min-width: 86px; min-height: 44px; padding: 10px 13px; white-space: nowrap; overflow-wrap: normal; border-radius: 999px; font-size: 12px; }
  body.streaming-page .music-bar #music-next { width: 44px; min-width: 44px; min-height: 44px; }
  body.streaming-page .music-bar > audio { grid-row: 2; grid-column: 1; width: 100%; height: 38px; min-width: 0; max-width: none; margin: 0; }
  body.streaming-page .music-bar .music-settings { position: relative; grid-row: 2; grid-column: 2; width: auto; min-width: 0; justify-self: end; }
  body.streaming-page .music-bar .music-settings > summary { min-height: 44px; padding: 10px 0; font-size: 12px; }
  body.streaming-page .music-bar .music-controls { box-sizing: border-box; position: absolute; bottom: calc(100% + 18px); right: 0; display: flex; flex-direction: column; align-items: stretch; width: min(280px, 88vw); max-height: calc(100dvh - 180px); overflow-y: auto; padding: 18px; border: 1px solid #ffffff35; border-radius: 15px; background: #20222a; box-shadow: 0 10px 40px #0008; }
  body.streaming-page .music-bar .music-captions { grid-column: 1 / -1; font-size: 13px; max-height: 60px; overflow-y: auto; }
  body.streaming-page .music-bar .sound-visualizer { display: none; }
  .cam-inapp-help { margin: 10px 12px; }
  .cam-keyboard-open .cam-tabbar, .cam-keyboard-open .library-player { visibility: hidden; pointer-events: none; }
}
@media (max-width: 360px) {
  .cam-discover .cam-welcome { padding-inline: 16px; }
  .cam-discover .welcome-actions { gap: 8px 12px; }
  .cam-discover .welcome-listen { padding-inline: 16px; font-size: 14px; }
  .cam-discover .welcome-browse { font-size: 12px; }
  .cam-discover .welcome-scene { height: 187px; }
  .cam-discover .welcome-game { height: 90px; }
  .cam-discover .welcome-video { height: 91px; }
  .cam-discover .welcome-route { padding-inline: 8px; }
  .cam-discover .welcome-route-copy > small { font-size: 9px; }
  .cam-discover .song-name { font-size: 14px; }
  .cam-discover .catalog-note { flex-wrap: wrap; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .cam-tabbar { display: none; }
  .cam-discover .library-player { bottom: max(8px, var(--cam-safe-bottom)); }
  .cam-tabs .cam-ui-status, body:has(.library-player) .cam-ui-status { bottom: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .cam-discover *, .cam-inapp-help *, .cam-copy-dialog * { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .welcome-listen, .cam-share-header, .cam-share-page, .cam-inapp-help, .cam-copy-dialog { border: 1px solid ButtonText; }
}

/* Editorial focus: the creator’s featured releases, without popularity claims. */
.cam-discover .release-card-featured{background:linear-gradient(135deg,#332d25,#232329);border-color:#ecd9ad77}.cam-discover .release-card-featured .section-kicker{color:#ecd9ad}.cam-discover .release-card-featured .release-arrow{color:#ecd9ad}
