/* ============================================================
   La Biblia por todos — Stylesheet
   Organizzazione: Variables → Reset → Layout → Components
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --navy:          #B3262E;
  --navy-light:    rgba(179,38,46,0.09);
  --navy-mid:      rgba(179,38,46,0.18);
  --cream:         #FDFAF5;
  --cream-dark:    #F0EDE8;
  --parchment:     #FAF0DC;
  --parchment-mid: #F2E4C0;
  --border:        #EBE5DC;
  --text:          #1A1816;
  --text-soft:     #3A3530;
  --text-muted:    #7A7060;
  --text-faint:    #9A9088;
  --text-pale:     #B8AFA5;
  --white:         #FFFFFF;
  --shadow-card:   0 2px 14px rgba(0,0,0,0.07);
  --shadow-fab:    0 4px 20px rgba(179,38,46,0.24);
  --radius-card:   18px;
  --radius-sm:     14px;
  --radius-btn:    12px;
  --font-serif:    'Instrument Serif', serif;
  --font-sans:     'Inter', -apple-system, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); color: var(--text); background: #E8E3DB; }
button { font-family: var(--font-sans); cursor: pointer; }
a { text-decoration: none; }
input { font-family: var(--font-sans); }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* ── Animations ── */
@keyframes fadeUp {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-up   { animation: fadeUp  0.3s cubic-bezier(0.22,1,0.36,1) both; }
.anim-in   { animation: fadeIn  0.22s ease both; }
.anim-up2  { animation: fadeUp  0.3s 0.06s cubic-bezier(0.22,1,0.36,1) both; }
.anim-up3  { animation: fadeUp  0.3s 0.12s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Page wrapper ── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ── Phone shell ── */
.shell {
  position: relative;
  width: 393px;
  height: 852px;
  border-radius: 52px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #2C2926, 0 0 0 4px #1C1917, 0 50px 100px rgba(0,0,0,0.45);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

/* ── Status bar ── */
.status-bar {
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
.status-bar .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 34px;
  background: #1C1917;
  border-radius: 22px;
  z-index: 6;
}
.status-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-family: -apple-system, sans-serif;
  line-height: 1;
  position: relative;
  z-index: 7;
}
.status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 7;
}

/* ── Screens container ── */
.screens {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Individual screen ── */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  position: absolute;
}

/* ── Scroll area ── */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  overscroll-behavior: contain;
}
.scroll-area.padded { padding: 0 16px 100px; }

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    background: var(--white);
  }

  .page-wrapper {
    min-height: 100dvh;
    padding: 0;
    display: block;
  }

  .shell {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .status-bar {
    display: none;
  }

  .topbar,
  .screen-header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .fab-container {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}
.scroll-area.padded-lg { padding: 16px 16px 100px; }

/* ── Top bar ── */
.topbar {
  padding: 12px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(235,229,220,0.55);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}
.app-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.app-name img {
  display: block;
  width: auto;
  height: 28px;
  max-width: 178px;
}

/* ── Book pill ── */
.book-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F5F2EC;
  padding: 6px 10px 6px 9px;
  border-radius: 12px;
  border: 1px solid rgba(179,38,46,0.1);
  cursor: pointer;
  color: var(--navy);
  max-width: 154px;
  min-height: 32px;
  box-shadow: 0 1px 6px rgba(179,38,46,0.06);
}
.book-pill.has-selection {
  background: var(--navy-light);
  border-color: rgba(179,38,46,0.18);
}
.book-pill svg {
  width: 14px;
  height: 14px;
  flex: none;
}
.book-pill-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.book-pill-kicker {
  font-size: 8px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.book-pill-label {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

/* ── Screen header ── */
.screen-header {
  padding: 14px 20px 12px;
  flex-shrink: 0;
}
.screen-header.sticky {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(235,229,220,0.55);
  z-index: 10;
}
.screen-header h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text);
  font-weight: 400;
}
.screen-header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* ── Context label ── */
.ctx-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}

/* ── Section title ── */
.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  padding: 14px 16px 12px;
}

/* ── Video card ── */
.video-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  margin-bottom: 16px;
}
.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}
.video-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.play-btn-lg {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.play-btn-lg span { color: rgba(255,255,255,0.95); font-size: 18px; padding-left: 3px; }
.video-dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.44);
  color: #FFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
}
.video-info {
  padding: 11px 14px 14px;
}
.video-ref {
  font-size: 10px;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.video-series {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-bottom: 3px;
}
.video-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  text-wrap: pretty;
}

/* ── Approfondimento card ── */
.appr-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  margin-bottom: 12px;
}
.appr-header {
  padding: 13px 16px 12px;
  background: linear-gradient(135deg, var(--parchment), var(--parchment-mid));
  border-bottom: 1px solid rgba(210,185,140,0.45);
  display: flex;
  align-items: center;
  gap: 11px;
}
.appr-icon {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.appr-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.appr-ref {
  font-size: 11px;
  color: #7A6A50;
  font-weight: 600;
  margin-top: 2px;
}
.appr-body {
  padding: 14px 16px 15px;
}
.appr-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
  text-wrap: pretty;
}
.appr-preview {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 12px;
  text-wrap: pretty;
}
.appr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.appr-author {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.appr-read-btn {
  font-size: 12px;
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── Quote / Meditation card ── */
.quote-card {
  border-radius: var(--radius-card);
  padding: 22px 20px;
  margin-bottom: 12px;
}
.quote-theme {
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 12px;
  font-style: italic;
  text-wrap: pretty;
}
.quote-ref {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
}

/* ── Readings separator ── */
.readings-sep {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-pale);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 0 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

/* ── Shorts carousel ── */
.shorts-section { padding: 24px 0 4px; }
.shorts-header {
  padding: 0 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.shorts-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
}
.shorts-see-all {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.shorts-track {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 2px 16px 6px;
  -webkit-overflow-scrolling: touch;
}
.short-card {
  width: 114px;
  height: 192px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0,0,0,0.13);
}
.short-card-bg {
  position: absolute;
  inset: 0;
}
.play-btn-sm {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.play-btn-sm span { color: rgba(255,255,255,0.92); font-size: 11px; padding-left: 2px; }
.short-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 9px 11px;
  background: linear-gradient(transparent, rgba(0,0,0,0.62));
}
.short-dur  { font-size: 9px;  color: rgba(255,255,255,0.7); margin-bottom: 3px; font-weight: 600; }
.short-title { font-size: 10px; font-weight: 600; color: #FFF; line-height: 1.3; text-wrap: pretty; }

/* ── Shorts stories ── */
.stories-shell {
  position: relative;
  height: 100%;
  background: #0A0D12;
  color: #FFF;
  overflow: hidden;
}
.stories-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
}
.stories-progress {
  display: flex;
  gap: 4px;
}
.stories-progress span {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}
.stories-progress span.active {
  background: rgba(255,255,255,0.9);
}
.stories-count {
  min-width: 34px;
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.86);
}
.stories-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,10,15,0.38);
  color: #FFF;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.stories-close svg {
  display: block;
  flex: none;
}
.stories-track {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }
.story-slide {
  position: relative;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.story-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(255,255,255,0.25), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,0.34), transparent 28%, rgba(0,0,0,0.64));
}
.story-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-play {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 50px rgba(0,0,0,0.24);
}
.story-play span {
  padding-left: 5px;
  font-size: 28px;
}
.story-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 42px;
  z-index: 2;
}
.story-meta {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
}
.story-title {
  max-width: 280px;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 750;
  text-wrap: pretty;
}

/* ── Browse (book selection) ── */
.browse-progress {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #DDD8D0;
  transition: background 0.2s;
}
.progress-dot.active { background: var(--navy); }

.testament-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.07);
  width: 100%;
  margin-bottom: 12px;
}
.testament-icon {
  width: 46px;
  height: 46px;
  background: var(--navy-light);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.testament-name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 4px;
}
.testament-sub { font-size: 11px; color: var(--text-faint); line-height: 1.5; }

.back-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.browse-subtitle {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  margin: 0 0 16px;
}
.book-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 13px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}
.book-item:hover { background: var(--cream-dark); }
.book-item .chevron { color: #C8C0B8; font-size: 18px; }

/* ── Chapter stepper ── */
.chapter-step-label { font-family: var(--font-serif); font-size: 22px; color: var(--text); margin: 0 0 4px; }
.chapter-book-name  { font-size: 14px; color: var(--text-faint); font-style: italic; margin: 0 0 30px; }
.chapter-stepper {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-bottom: 34px;
}
.step-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-input {
  width: 84px; height: 84px;
  border: 2px solid var(--navy);
  border-radius: 16px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
}
.step-input::-webkit-inner-spin-button,
.step-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.confirm-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

/* ── Search ── */
.search-input-wrap {
  position: relative;
  margin-top: 12px;
}
.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--cream-dark);
  border: none;
  border-radius: 14px;
  padding: 12px 16px 12px 42px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.search-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Search result: video row ── */
.result-video {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  height: 68px;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.result-video-thumb {
  width: 104px;
  flex: none;
  position: relative;
  overflow: hidden;
}
.result-video-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.play-btn-xs {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn-xs span { color: #FFF; font-size: 10px; padding-left: 2px; }
.result-video-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

/* ── Search result: book row ── */
.result-book {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.result-book-icon {
  width: 36px; height: 36px;
  background: var(--navy-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Language picker ── */
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #FAFAF8;
  border: 1.5px solid #EEE9E2;
  transition: background 0.15s;
}
.lang-item.selected {
  background: var(--navy-light);
  border-color: var(--navy-mid);
}
.lang-left { display: flex; align-items: center; gap: 12px; }
.lang-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  background: var(--navy-light);
  border-radius: 8px;
  padding: 4px 8px;
  min-width: 36px;
  text-align: center;
  letter-spacing: 0.5px;
}
.lang-name { font-size: 15px; color: var(--text); font-weight: 500; }
.lang-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFF;
  font-size: 13px;
  font-weight: 600;
}

/* ── Player ── */
.player-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  flex-shrink: 0;
}
.player-thumb-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}
.player-back {
  position: absolute;
  top: 14px; left: 14px;
  width: 38px; height: 38px;
  background: rgba(0,0,0,0.28);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  font-size: 18px;
  z-index: 2;
}
.player-play-btn {
  width: 66px; height: 66px;
  background: rgba(255,255,255,0.16);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.player-play-btn span { color: #FFF; font-size: 26px; padding-left: 5px; }
.player-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.18);
}
.player-progress-fill { width: 32%; height: 100%; background: rgba(255,255,255,0.85); }
.player-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 100px;
}
.player-ref {
  font-size: 10px;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}
.player-series {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.player-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.player-desc {
  font-size: 14px;
  color: #6A6158;
  line-height: 1.75;
  margin-bottom: 26px;
  text-wrap: pretty;
}
.related-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}

/* ── Reader (approfondimento detail) ── */
.reader-header {
  padding: 14px 20px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(235,229,220,0.6);
  z-index: 10;
  flex-shrink: 0;
}
.reader-back { margin-bottom: 12px; }
.reader-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.reader-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  background: var(--navy-light);
  padding: 3px 8px;
  border-radius: 6px;
}
.reader-ref  { font-size: 11px; color: #7A6A50; font-weight: 600; }
.reader-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--text);
  line-height: 1.25;
  text-wrap: pretty;
}
.reader-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 18px 20px 120px;
}
.reader-author {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
  font-style: italic;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.reader-para {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 16px;
  text-wrap: pretty;
}

/* ── FAB navigation ── */
.fab-container {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.fab-container.hidden {
  display: none;
}
.fab-backdrop {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: rgba(24,20,18,0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.fab-backdrop.open {
  pointer-events: all;
  opacity: 1;
}
.fab-speed-dial {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  margin-bottom: 11px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s cubic-bezier(0.22,1,0.36,1), opacity 0.2s;
}
.fab-speed-dial.open {
  max-height: 400px;
  opacity: 1;
}
.fab-item {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
}
.fab-item-label {
  background: rgba(255,255,255,0.97);
  border-radius: 12px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.fab-item-icon {
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}
.fab-btn {
  width: 50px; height: 50px;
  background: var(--navy);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  border: none;
  position: relative;
  z-index: 21;
  transition: transform 0.2s;
}
.fab-btn:active { transform: scale(0.94); }
.fab-btn svg { transition: opacity 0.15s, transform 0.2s; }
.fab-btn .icon-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.fab-btn.open .icon-open  { opacity: 0; transform: rotate(90deg); }
.fab-btn.open .icon-close { opacity: 1; transform: rotate(0deg); }

/* ── Home indicator ── */
.home-indicator {
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-indicator::after {
  content: '';
  width: 134px;
  height: 5px;
  background: #1C1917;
  border-radius: 3px;
  opacity: 0.14;
}

/* ── Utility classes ── */
.hidden { display: none !important; }
.serif  { font-family: var(--font-serif); }
.text-navy { color: var(--navy); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.text-title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; text-wrap: pretty; }
.text-series { font-size: 9px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; line-height: 1.2; }
.text-faint { font-size: 11px; color: var(--text-faint); font-weight: 500; }
.chevron-r  { color: #C8C0B8; font-size: 18px; }
.tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

@media (max-width: 640px) {
  .topbar,
  .screen-header {
    padding-top: max(16px, env(safe-area-inset-top));
  }
}
