/* Desktop layout. Loaded only at 900px and wider; mobile styles stay separate. */
:root { --sidebar-width: 210px; --desktop-gutter: clamp(28px, 3vw, 64px); }
body { padding: 0; background: var(--cream); }
.app-shell { max-width: none; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
#app, .screen { min-height: 100dvh; }
.home-screen { padding: 32px var(--desktop-gutter) 36px calc(var(--sidebar-width) + var(--desktop-gutter)); }

/* Permanent desktop navigation uses the same buttons as mobile. */
.bottom-nav {
  top: 0; bottom: 0; left: 0; transform: none;
  width: var(--sidebar-width); max-width: none; height: 100dvh;
  padding: 28px 18px; border: 0; border-right: 1px solid var(--line);
  border-radius: 0; box-shadow: none; background: #fffbf2;
  flex-direction: column; justify-content: flex-start; gap: 8px;
}
.desktop-brand { display: flex; justify-content: center; padding: 0 12px; margin-bottom: 38px; }
.desktop-brand img { width: 140px; height: auto; }
.nav-item { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 15px 18px; border-radius: 13px; font-size: 14px; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item.active { background: #e5eee4; color: #286f60; }
.nav-item:hover { background: #f1eddf; }
.nav-item.active:hover { background: #dce8d9; }

/* Home dashboard: feature, continue watching and traditions share the width. */
#app[data-screen="home"] .home-screen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-content: start; }
.home-header { padding: 0 0 4px; }
#app[data-screen="home"] .home-header { grid-column: 1 / -1; }
.home-header h1 { font-size: 30px; letter-spacing: -1px; }
.home-header h1 span { font-size: 27px; margin-left: 8px; }
.header-actions { gap: 16px; }
.header-actions .icon-button, .header-actions .avatar { width: 43px; height: 43px; }
.hero-card { margin: 0; height: 380px; border-radius: 24px; grid-column: 1 / -1; grid-row: 2; }
.hero-card > img { object-position: center 35%; }
.hero-card:after { background: linear-gradient(90deg, transparent 15%, #1630199c), linear-gradient(0deg, #142c1680, transparent 65%); }
.hero-content { width: 46%; right: 32px; bottom: 38px; }
.hero-content h2 { font-size: clamp(34px, 3.2vw, 56px); line-height: 1.05; margin: 16px 0 24px; }
.story-of-day { font-size: 12px; padding: 7px 12px; }
.watch-now { font-size: 14px; padding: 12px 23px; gap: 15px; }
.hero-meta { bottom: 28px; left: 25px; font-size: 11px; }
.hero-dots { display: none; }
.home-section { padding: 0; min-width: 0; }
.continue-section { grid-column: 1; grid-row: 3; }
.traditions-section { grid-column: 2; grid-row: 3; }
.home-section.discover-section { padding-top: 0; grid-column: 1 / -1; grid-row: 4; }
.section-heading { margin-bottom: 17px; }
.section-heading h2 { font-size: 21px; }
.text-button { font-size: 12px; gap: 4px; }
.continue-card { padding: 12px; gap: 15px; min-height: 104px; border-radius: 17px; }
.continue-card > img { width: 100px; height: 76px; }
.continue-info { min-width: 0; }
.continue-info h3 { font-size: 15px; }
.continue-info p { font-size: 11px; }
.small-play { width: 30px; height: 30px; flex: none; }
.traditions { gap: 10px; }
.tradition { min-height: 104px; padding: 15px 4px; gap: 8px; font-size: 12px; }
.tradition .symbol { font-size: 36px; }
.story-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.story-card .cover { height: auto; aspect-ratio: 4 / 3; border-radius: 17px; }
.story-card h3 { font-size: 15px; margin-top: 11px; }
.story-card p { font-size: 12px; }
.story-card .cover .duration { font-size: 11px; padding: 4px 7px; }
.little-note { padding: 0; grid-column: 1 / -1; grid-row: 5; font-size: 12px; }

/* Catalogs expand into as many comfortable columns as the viewport allows. */
.page-header { padding: 0 0 14px; }
.page-header h1 { font-size: 34px; }
.page-subtitle { margin: 0 0 26px; font-size: 14px; }
.search-box { margin: 0 0 20px; padding: 15px 18px; max-width: 740px; }
.search-box input { min-width: 0; font-size: 14px; }
.filters { padding: 0 0 26px; gap: 10px; }
.filter { padding: 10px 20px; font-size: 13px; }
.catalog { padding: 0; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 22px; align-items: start; }
.catalog .cover { height: auto; aspect-ratio: 4 / 5; }
.empty { padding: 70px 25px; font-size: 15px; }

/* Profile and quiz retain readable controls inside the wider page. */
#app[data-screen="profile"] .home-screen { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr); gap: 28px 36px; align-content: start; }
#app[data-screen="profile"] .page-header { grid-column: 1 / -1; }
.profile-card { margin: 0; padding: 26px; align-self: start; }
.profile-card .avatar { width: 72px; height: 72px; flex: none; }
.profile-card h2 { font-size: 24px; }
.settings-list { margin: 0; grid-column: 2; grid-row: 2 / span 2; align-self: start; }
.setting-row { padding: 21px; font-size: 15px; }
.setting-value { font-size: 13px; }
.profile-brand { margin: 4px 0 0; grid-column: 1; }
.profile-brand img { width: 140px; }
.profile-brand p { font-size: 12px; text-align: center; }
#app[data-screen="play"] .home-screen { display: grid; grid-template-columns: minmax(290px, 1fr) minmax(0, 1fr); gap: 24px 32px; align-content: start; }
#app[data-screen="play"] .page-header, #app[data-screen="play"] .page-subtitle { grid-column: 1 / -1; margin: 0; }
.game-banner { margin: 0; padding: 32px; }
.game-banner h2 { font-size: 27px; }
.game-banner p { font-size: 14px; }
.game-banner .primary { max-width: 360px; margin: 24px auto 0; }
#app[data-screen="play"] .story-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-option { font-size: 14px; padding: 17px; }

/* Welcome screens have their own spacious desktop compositions. */
.splash { height: 100dvh; background: #fbf5e8; }
.splash:before { content: ''; position: absolute; inset: 0 0 0 50%; background: url('../images/splash.png') center 80% / cover no-repeat; }
.splash .splash-logo { top: 46%; left: 25%; width: 290px; max-width: 36vw; transform: translate(-50%, -50%); }
.splash-bottom { right: 50%; bottom: 48px; font-size: 12px; }
.intro-screen { height: 100dvh; min-height: 660px; }
.intro-screen:not(.faith-screen) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr) auto; gap: 24px 5vw; padding: 0 7vw 36px; }
.intro-top { grid-column: 1 / -1; grid-row: 1; padding: 0; height: 64px; }
.skip, .back { font-size: 15px; }
.intro-heading, .onboarding .intro-heading { grid-column: 1; grid-row: 2; padding: 0; text-align: left; align-self: center; }
.intro-heading h1 { font-size: clamp(38px, 4.2vw, 64px); letter-spacing: -1.7px; }
.intro-heading p { font-size: 16px; line-height: 1.7; }
.onboarding-art, .language-art { grid-column: 2; grid-row: 2 / 4; margin: 0; padding: 0; min-height: 0; }
.onboarding-art img, .language-art img { width: 100%; height: 100%; max-height: 650px; object-fit: contain; }
.intro-footer { grid-column: 1; grid-row: 3; padding: 0; width: 100%; max-width: 400px; }
.intro-footer .dots { justify-content: flex-start; margin-bottom: 20px; }
.primary { min-height: 52px; font-size: 15px; }
.language-screen { background: linear-gradient(100deg, #fcf6e9 48%, #ffe4a2); }
.intro-screen.language-screen { grid-template-rows: 64px auto minmax(0, 1fr) auto; gap: 18px 5vw; }
.language-screen .intro-heading { align-self: end; }
.language-screen .intro-heading h1 { font-size: clamp(36px, 3.7vw, 52px); }
.language-screen .language-art { grid-row: 2 / 5; }
.language-list { grid-column: 1; grid-row: 3; align-self: center; max-width: 400px; width: 100%; margin: 0; padding: 16px; gap: 9px; }
.language-option { min-height: 43px; font-size: 14px; padding: 8px 16px; }
.native-label { font-size: 14px; }
.language-screen .intro-footer { grid-row: 4; }
.faith-screen { height: auto; min-height: 100dvh; padding-bottom: 26px; }
.faith-screen .intro-top { top: 0; padding: 0 40px; }
.faith-hero { flex: none; height: clamp(220px, 30dvh, 300px); min-height: 0; background: #a6ddf8; }
.faith-hero > img { left: auto; width: 58%; object-position: center 76%; mask-image: linear-gradient(to right, transparent, #000 22%); }
.faith-hero .intro-heading { max-width: 48%; text-align: left; padding: 58px 40px 0; }
.faith-hero .intro-heading h1 { font-size: 42px; }
.faith-hero .intro-heading p { font-size: 15px; }
.faith-grid { flex: none; width: 100%; max-width: 1200px; align-self: center; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 24px 40px; }
.faith-card { height: clamp(110px, 18dvh, 165px); }
.faith-card-label { padding: 8px 13px; font-size: 13px; }
.faith-card .radio { width: 16px; height: 16px; }
.faith-screen .intro-footer { align-self: center; max-width: 360px; }
.faith-screen .dots { justify-content: center; margin-bottom: 15px; }

/* The desktop video fills the screen while keeping its original proportions. */
.player-screen { height: 100dvh; min-height: 620px; background: #102015; }
.player-background { object-fit: contain; }
.player-screen:after { background: linear-gradient(#10201566, transparent 24%, transparent 43%, #0c190fe8 84%); }
.player-top { padding: 25px 36px; }
.player-top > span { font-size: 12px; letter-spacing: 3px; }
.player-top .icon-button { width: 43px; height: 43px; }
.player-details { left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 160px); max-width: 1200px; bottom: 24px; }
.player-details h1 { font-size: 34px; }
.player-details > p { font-size: 14px; }
.player-label { font-size: 12px; }
.player-actions { right: 30px; bottom: 270px; gap: 24px; }
.player-action { font-size: 11px; }
.player-times { font-size: 11px; }
.playback-controls { max-width: 450px; margin: 18px auto 0; }
.playback-controls button { font-size: 14px; }
.audio-note { margin-top: 10px !important; }
.sheet-backdrop { position: fixed; align-items: center; justify-content: center; }
.sheet { max-width: 560px; border-radius: 24px; padding: 30px; }
.toast { bottom: 32px; font-size: 14px; max-width: 460px; }

@media (min-width: 1200px) {
  #app[data-screen="home"] .home-screen { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
  .hero-card { grid-column: 1; grid-row: 2 / 4; height: 440px; }
  .hero-content { right: 28px; width: 48%; }
  .hero-content h2 { font-size: clamp(34px, 3vw, 52px); }
  .continue-section { grid-column: 2; grid-row: 2; align-self: start; }
  .traditions-section { grid-column: 2; grid-row: 3; align-self: end; }
}

.splash:before{background-image:var(--splash-image,url('../images/splash.png'))}
.catalog-tools{margin:0 0 20px;max-width:none;gap:14px}
.catalog-tools .search-box{flex:1 1 400px;margin:0}
.catalog-language{flex:0 1 230px;padding:12px 16px}
.catalog-language select{font-size:13px}
.catalog-count{margin:0 0 20px;font-size:12px}

.faith-grid{overflow-y:visible}
.language-list{max-height:100%}
