/* Cloud V5 / family listening room. Real controls come from genre-world CORE.
   Artwork is raster, never CSS drawing; player geometry belongs to PLAYER-V5. */
:root {
  --bg: #fffaf0; --surface: #fffdf7; --surface-2: #edf5ed;
  --text: #203b3b; --muted: #4e6260; --accent: #255b4d;
  --on-accent: #ffffff; --link: #255b4d; --line: #cbd6c8;
  --cloud-butter: #f9e7ad; --cloud-sky: #e8f2f8; --cloud-wood: #e5c49d;
  --cloud-focus: #6a440f; --hero-text: #203b3b; --hero-muted: #4e6260; --hero-shade: none;
  --max: 1280px; --radius: 28px; --button-radius: 999px;
  --display: Manrope, sans-serif; --body: Manrope, sans-serif;
  --brand-logo-size: 48px; --player-bg: #fffdf7; --player-text: #203b3b;
  --player-motion-color: #255b4d; --player-error: #903f35;
  --player-disc-duration: 18s; --player-wave-duration: 1.8s;
  --shadow: 0 12px 36px rgb(74 66 37 / 9%); color-scheme: light;
}
body { font-size: 17px; line-height: 1.75; }
h1,h2,h3 { font-weight: 760; letter-spacing: -.045em; }
h1 { font-size: clamp(2.625rem, 5vw, 4.75rem); line-height: 1.07; }
h2 { font-size: clamp(1.875rem, 3.3vw, 3rem); line-height: 1.18; }
h3 { font-size: 1.375rem; line-height: 1.35; }
a { text-underline-offset: .22em; }
button:focus-visible,a:focus-visible,input:focus-visible { outline: 3px solid var(--cloud-focus); outline-offset: 4px; box-shadow: 0 0 0 4px #fffdf7; }
.skip-link:focus { z-index: 80; }
.site-header { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; padding: 22px 0; min-height: 96px; gap: 24px; border-bottom: 1px solid #e4e5d6; }
.brand { gap: 12px; }
.brand-mark { color: var(--accent); }
.brand-mark img { object-fit: contain; }
.brand strong { font-size: 1.875rem; font-weight: 800; letter-spacing: -.06em; }
.brand small { margin-top: 4px; font-size: .875rem; letter-spacing: 0; }
.site-nav { gap: 16px; }
.site-nav a { font-size: .875rem; min-width: 44px; min-height: 44px; }
.header-listen { border-radius: 999px; min-height: 48px; padding: 10px 20px; font-size: .875rem; box-shadow: 0 3px 0 #d2ddc9; }
.menu-toggle { min-height: 48px; border-radius: 999px; font-size: .875rem; }
.site-nav .language-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; }
.section { width: min(var(--max), calc(100% - 64px)); padding-block: 64px; }
.section + .section { border-top: 0; }
.section-head { grid-template-columns: 1fr minmax(240px, .85fr); gap: 18px 48px; margin-bottom: 32px; align-items: start; }
.section-head h2 { max-width: 18ch; }
.section-head p { font-size: 1rem; max-width: 48ch; line-height: 1.8; }
.section-head > a { grid-column: 2; justify-self: start; }
.button { min-height: 54px; padding: 12px 24px; font-size: 1rem; }
.button.primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 #d2ddc9; }
.button.secondary { background: #fffdf7; color: var(--text); border-color: #809a88; }
.button:hover { transform: none; }
.text-link { min-height: 44px; font-size: .9375rem; }
/* Real wooden/ceramic artwork has its own grid cell: no image behind copy. */
.cloud-room { width: min(var(--max), calc(100% - 64px)); margin: 20px auto 0; }
.cloud-room .hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: minmax(620px, auto) auto; min-height: 0; background: none; overflow: visible; }
.cloud-room .hero-layout { position: relative; z-index: 1; grid-column: 1; grid-row: 1; width: 100%; margin: 0; padding: 64px 44px 76px 20px; display: flex; align-items: center; background: var(--bg); }
.cloud-room .hero-copy { width: 100%; max-width: 500px; }
.cloud-room .pulse-eyebrow { margin: 0 0 22px; color: var(--muted); font-size: .875rem; font-weight: 700; letter-spacing: .04em; }
.cloud-room .hero h1 { font-size: clamp(2.625rem, 4.8vw, 4.5rem); max-width: 13ch; line-height: 1.09; }
.cloud-room .hero .lead { margin-top: 26px; font-size: 1.0625rem; line-height: 1.8; max-width: 42ch; }
.cloud-room .hero-actions { margin-top: 28px; gap: 14px 24px; align-items: center; }
.cloud-room .pulse-current-name { display: inline-block; color: var(--muted); margin-top: 22px; font-size: .875rem; }
.cloud-room .hero-media { position: relative; z-index: 0; grid-column: 2; grid-row: 1; inset: auto; min-block-size: 620px; overflow: hidden; border-radius: 44px 44px 104px 20px; background: #faf0d9; }
.cloud-room .genre-hero { width: 100%; height: 100%; object-fit: cover; object-position: right center; transform: translate3d(var(--pulse-shift-x, 0px), var(--pulse-shift-y, 0px), 0) scale(1.025); }
/* A gathered foreground shelf with honest select-only station choices. */
.cloud-room .pulse-channel-rail { position: relative; z-index: 2; grid-column: 1 / -1; grid-row: 2; width: calc(100% - 32px); margin: -28px auto 0; padding: 10px; background: #fffdf7; border: 1px solid #d6dac9; border-radius: 28px; box-shadow: 0 16px 40px rgb(74 66 37 / 12%); }
.cloud-room .pulse-channel-list { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 8px; scrollbar-width: thin; scrollbar-color: #8fa58b #f3f0df; }
.cloud-room .pulse-channel { display: flex; flex-direction: column; align-items: stretch; flex: 0 0 min(300px, 80vw); min-width: 0; min-height: 160px; padding: 16px; border: 1px solid #e3e4d7; border-radius: 20px; background: #f7f4e8; scroll-snap-align: start; }
.cloud-room .pulse-channel:nth-child(3n + 2) { background: var(--cloud-sky); }
.cloud-room .pulse-channel:nth-child(3n) { background: #edf5ed; }
.cloud-room .pulse-channel.is-current { background: #e7f1e6; border: 2px solid var(--accent); padding: 15px; }
.cloud-room .pulse-channel-select { display: flex; flex: 1; align-items: flex-start; width: 100%; min-height: 72px; border: 0; padding: 0; background: none; color: var(--text); text-align: start; }
.cloud-room .pulse-channel-art { display: none; }
.cloud-room .pulse-channel-meta { display: grid; gap: 4px; min-width: 0; }
.cloud-room .pulse-channel-meta strong { font-size: 1.125rem; line-height: 1.4; font-weight: 760; }
.cloud-room .pulse-channel-meta > span { font-size: .875rem; color: var(--muted); }
.cloud-room .pulse-channel-status { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.cloud-room .pulse-channel-request { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 12px; padding: 8px 14px; background: var(--accent); color: #fff; border: 0; border-radius: 999px; font-size: .875rem; font-weight: 760; }
.cloud-room .pulse-channel-select:disabled { opacity: .72; }
/* A shared editorial table rather than another poster image. */
.cloud-family-table { width: min(var(--max), calc(100% - 64px)); display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin: 64px auto 0; }
.cloud-family-table > .section { width: 100%; margin: 0; padding: 0; min-width: 0; }
.cloud-family-table .editorial-feature { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: 26px; align-items: center; background: #fffdf7; padding: 24px; border: 1px solid #dedfcd; border-radius: 32px; box-shadow: 0 6px 18px rgb(74 66 37 / 5%); }
.cloud-family-table .editorial-media { aspect-ratio: 1; min-block-size: 220px; overflow: hidden; border-radius: 22px; background: #faf3e7; }
.cloud-family-table .genre-detail { width: 100%; height: 100%; object-fit: contain; }
.cloud-family-table .editorial-copy h2 { max-width: 18ch; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.25; }
.cloud-family-table .editorial-copy p { font-size: .9375rem; line-height: 1.8; margin-block: 20px; }
.cloud-family-table .editorial-copy a { color: var(--link); }
.cloud-family-table .discover-section { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px; background: var(--surface-2); border-radius: 32px 56px 32px 32px; }
.cloud-family-table .discover-section::before { content: ''; display: block; width: 48px; height: 48px; background: url('/assets/brand-logo.svg') center / contain no-repeat; }
.cloud-family-table .discover-section h2 { font-size: 2rem; }
.cloud-family-table .discover-section p { font-size: 1.0625rem; line-height: 1.8; margin: 0; }
.cloud-family-table .discover-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; }
/* Filters are the actual source facets, not invented listening moods. */
.cloud-browse { margin-top: 16px; }
.pulse-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px; border: 1px solid #dddcc7; border-radius: 24px; background: #faf3dc; }
.pulse-filter { min-width: 44px; min-height: 44px; padding: 9px 16px; border: 1px solid #b9c9b9; border-radius: 999px; background: #fffdf7; color: var(--text); font-size: .875rem; line-height: 1.5; }
.pulse-filter[aria-pressed='true'] { background: var(--accent); color: #fff; border-color: var(--accent); }
.pulse-filter-status { font-size: .875rem; color: var(--muted); margin: 18px 0 24px; }
.station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border: 0; }
.station-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 20px; padding: 28px; border: 1px solid #d5ddce; border-radius: 24px; background: var(--surface); min-width: 0; }
.station-card:nth-child(2n) { background: #f1f6f7; }
.station-card.is-current { border: 2px solid var(--accent); padding: 27px; background: #eef5e9; }
.station-identity { grid-column: 1; grid-row: 1 / 4; width: 52px; height: 58px; border-radius: 18px; background: var(--cloud-butter); color: var(--text); }
.station-identity .icon { display: none; }
.station-initials { font-size: 1rem; font-weight: 800; }
.station-content { grid-column: 2; min-width: 0; }
.station-card h2,.station-card h3 { font-size: 1.25rem; font-weight: 760; line-height: 1.4; }
.station-card p { font-size: .9375rem; line-height: 1.8; margin-top: 12px; }
.station-meta { grid-column: 2; gap: 4px 12px; margin-top: 20px; font-size: .875rem; line-height: 1.7; }
.station-quality { font-size: .875rem; }
.station-actions { grid-column: 2; gap: 10px 18px; margin-top: 18px; align-items: center; }
.station-action { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--accent); color: #fff; font-size: .9375rem; font-weight: 760; }
.station-detail { min-height: 44px; font-size: .875rem; color: var(--link); }
.station-card.is-current .station-identity { background: var(--accent); color: #fff; }
/* Three short editorial books follow the interactive catalogue. */
.cloud-pages { background: #edf4f6; border-radius: 56px 56px 0 0; margin-top: 16px; }
.cloud-pages .journal-section { padding-block: 56px 64px; }
.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.journal-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 28px; border: 1px solid #d2dddc; border-radius: 28px; background: #fffdf7; box-shadow: 0 5px 0 #d9e4e4; }
.journal-card h2,.journal-card h3 { font-size: 1.375rem; line-height: 1.4; }
.article-category { margin-top: 18px; font-size: .875rem; font-weight: 760; }
.journal-card p { font-size: .9375rem; line-height: 1.8; margin: 16px 0 20px; }
.journal-card > a { margin-top: auto; min-height: 44px; font-size: .9375rem; }
.journal-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.prose { max-width: 68ch; }
.prose h1 { max-width: 20ch; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.16; overflow-wrap: anywhere; }
.prose .lead { font-size: 1.125rem; line-height: 1.8; }
.prose p,.prose li { font-size: 1.0625rem; line-height: 1.9; }
.prose h2 { margin-top: 40px; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.prose h3 { font-size: 1.375rem; }
.prose dd { overflow-wrap: anywhere; }
.prose .station-action { display: inline-flex; }
.breadcrumbs { flex-wrap: wrap; gap: 6px 14px; font-size: .875rem; }
.notice { padding: 24px; border-radius: 24px; background: var(--surface-2); }
.contact-email { font-size: clamp(1.125rem, 4vw, 2rem); overflow-wrap: anywhere; }
.site-footer { width: min(var(--max), calc(100% - 64px)); margin-top: 0; padding-top: 44px; padding-inline: 0; gap: 24px 48px; }
.site-footer > div { position: relative; padding-left: 60px; }
.site-footer > div::before { content: ''; position: absolute; top: 0; left: 0; width: 44px; height: 44px; background: url('/assets/brand-logo.svg') center / contain no-repeat; }
.site-footer strong { font-size: 2rem; font-weight: 800; letter-spacing: -.055em; }
.site-footer p { font-size: 1rem; }
.site-footer nav { gap: 6px; font-size: .9375rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { font-size: .875rem !important; }
/* Paint/decor only: no player width/grid/padding/Stop/mini/reserve geometry. */
.player-shell { background: var(--player-bg); color: var(--player-text); border-color: #ccd8c9; box-shadow: 0 -4px 24px rgb(74 66 37 / 8%); }
.play-button { background: var(--accent); color: #fff; box-shadow: 0 3px 0 #d2ddc9; }
html[data-site='kids'] .player-shell .player-disc { background: #fffaf0 url('/assets/brand-favicon.svg') center / 72% auto no-repeat; border-color: #ddc27a; border-radius: 50%; }
html[data-site='kids'] .player-shell .player-disc::after { opacity: 0; }
html[data-site='kids'] .player-shell .player-wave { opacity: 0; }
.player-shell[data-player-state='error'] { border-color: var(--player-error); }
.player-shell[data-player-state='error'] #player-status { color: var(--player-error); }
.external-dialog { border-radius: 28px; border-color: #cbd6c8; }
.external-dialog form { padding: 28px; }
.external-dialog h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.external-dialog p { font-size: 1rem; line-height: 1.8; }
.dialog-actions { gap: 12px; }
.no-script { background: #edf5ed; border-radius: 20px; }
@media (hover: hover) and (pointer: fine) {
  .cloud-room .pulse-channel,.station-card,.journal-card { transition: transform .18s ease, box-shadow .18s ease; }
  .cloud-room .pulse-channel:hover,.station-card:hover,.journal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .button.primary:hover,.station-action:hover,.pulse-channel-request:hover { background: #194338; }
}
@media (max-width: 1100px) {
  .site-header { gap: 16px; }
  .site-nav { gap: 12px; }
  .cloud-room .hero-layout { padding: 44px 28px 64px 12px; }
  .cloud-room .hero h1 { font-size: clamp(2.625rem, 5.3vw, 3.75rem); }
  .cloud-family-table { grid-template-columns: minmax(0, 1fr); }
  .cloud-family-table .discover-section { border-radius: 28px; }
}
@media (max-width: 1000px) {
  .cloud-room .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .cloud-room .hero-layout { grid-column: 1; grid-row: 1; padding: 40px 24px 28px; }
  .cloud-room .hero-copy { max-width: 640px; }
  .cloud-room .hero h1 { max-width: 16ch; }
  .cloud-room .hero-media { grid-column: 1; grid-row: 2; width: min(100%, 420px); min-block-size: 0; aspect-ratio: 1; justify-self: center; border-radius: 36px 36px 72px 36px; }
  .cloud-room .pulse-channel-rail { grid-column: 1; grid-row: 3; width: 100%; margin-top: 20px; }
}
@media (max-width: 900px) {
  .site-header { min-height: 88px; padding-block: 16px; }
  .site-nav { padding: 16px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .site-nav.is-open { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
  .site-nav a { width: 100%; padding: 8px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --brand-logo-size: 44px; }
  .site-header,.section,.cloud-room,.cloud-family-table,.site-footer { width: calc(100% - 32px); }
  .site-header { gap: 12px; flex-wrap: wrap; }
  .brand strong { font-size: 1.75rem; }
  .menu-toggle { margin-left: auto; padding: 8px 12px; }
  .section { padding-block: 44px; }
  .cloud-room { margin-top: 0; }
  .cloud-room .hero-layout { padding: 32px 8px 24px; }
  .cloud-room .hero h1 { font-size: clamp(2.375rem, 10.8vw, 3.125rem); max-width: 14ch; }
  .cloud-room .hero .lead { margin-top: 22px; font-size: 1rem; }
  .cloud-room .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .cloud-room .hero-actions .text-link { justify-content: center; }
  .cloud-room .hero-media { width: 100%; }
  .cloud-room .pulse-channel-rail { padding: 4px; border-radius: 24px; }
  .cloud-room .pulse-channel { flex-basis: min(280px, 78vw); }
  .cloud-room .pulse-channel-meta strong { font-size: 1rem; }
  .cloud-family-table { margin-top: 40px; gap: 20px; }
  .cloud-family-table .editorial-feature { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 24px; border-radius: 28px; }
  .cloud-family-table .editorial-media { min-block-size: 220px; }
  .cloud-family-table .editorial-copy h2 { font-size: 1.875rem; }
  .cloud-family-table .discover-section { padding: 24px; }
  .section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .section-head p { font-size: 1rem; }
  .pulse-filterbar { padding: 12px; gap: 8px; }
  .pulse-filter { padding: 8px 12px; }
  .station-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .station-card { grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; padding: 24px 20px; }
  .station-card.is-current { padding: 23px 19px; }
  .station-identity { width: 44px; height: 50px; border-radius: 16px; }
  .station-card h2,.station-card h3 { font-size: 1.125rem; }
  .station-actions { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px 16px; }
  .station-action { flex: 1 1 auto; }
  .station-detail { flex: 1 1 auto; justify-content: center; }
  .journal-card { padding: 24px; }
  .journal-index { grid-template-columns: minmax(0, 1fr); }
  .cloud-pages { border-radius: 36px 36px 0 0; }
  .cloud-pages .journal-section { padding-block: 44px 48px; }
  .prose h1 { font-size: clamp(2.125rem, 9vw, 3rem); }
  .prose .lead { font-size: 1.0625rem; }
  .prose p,.prose li { font-size: 1rem; }
  .prose dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .site-footer nav { align-items: flex-start; }
  .external-dialog form { padding: 24px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .cloud-room .genre-hero { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
