:root {
  --wine: #6b1418;
  --wine-dark: #4a0e12;
  --cream: #f3e9d2;
  --paper: #fffdf7;
  --paper-deep: #f1e4c8;
  --line: #e8d9b8;
  --ink: #2b2018;
  --muted: #8c8170;
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cream); font-family: Inter, system-ui, sans-serif; }
button, input { font: inherit; }
.header { padding: 24px 16px; }
.banner { position: relative; width: min(100%, 672px); margin: 0 auto; overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: 0 4px 14px rgba(74,14,18,.12); }
.slides { display: flex; transition: transform .7s ease-out; }
.slides img { width: 100%; aspect-ratio: 16 / 9; flex: 0 0 100%; object-fit: cover; object-position: center 32%; }
.dots { position: absolute; inset: auto 0 9px; display: flex; justify-content: center; gap: 6px; }
.dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,253,247,.8); box-shadow: 0 0 0 1px rgba(74,14,18,.3); cursor: pointer; transition: .25s; }
.dot.active { width: 24px; background: var(--wine); }
main { padding: 0 16px 64px; }
.prayer-list { width: min(100%, 672px); margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 12px; list-style: none; }
.prayer-card { width: 100%; height: 116px; min-height: 116px; display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: 0 2px 5px rgba(60,34,17,.08); transition: box-shadow .2s; }
.prayer-card:hover { box-shadow: 0 5px 14px rgba(60,34,17,.12); }
.cover { width: 116px; flex: 0 0 116px; background: var(--paper-deep); }
.cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.card-main { min-height: 82px; flex: 1; display: flex; align-items: center; gap: 14px; padding: 15px; }
.card-main h2 { min-width: 0; flex: 1; display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.play-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--paper); background: var(--wine); cursor: pointer; transition: .2s; }
.play-button:hover { background: var(--wine-dark); }
.play-button span { position: relative; display: block; width: 18px; height: 18px; margin-left: 2px; }
.play-button span::before { content: ""; position: absolute; top: 2px; left: 4px; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; }
.prayer-card.playing .play-button span { margin-left: 0; }
.prayer-card.playing .play-button span::before,
.prayer-card.playing .play-button span::after { content: ""; position: absolute; top: 2px; width: 5px; height: 14px; border: 0; border-radius: 1px; background: currentColor; }
.prayer-card.playing .play-button span::before { left: 3px; }
.prayer-card.playing .play-button span::after { right: 3px; }
.progress-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 9px 14px; }
.progress-row span { min-width: 35px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.duration { text-align: right; }
.progress { width: 100%; height: 4px; margin: 0; cursor: pointer; accent-color: var(--wine); }
.empty { width: min(100%, 672px); margin: 0 auto; border: 1px dashed var(--line); border-radius: 13px; padding: 32px; color: var(--muted); background: var(--paper); text-align: center; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; padding: 10px 17px; border-radius: 99px; color: white; background: var(--ink); opacity: 0; transform: translate(-50%, 12px); transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 640px) {
  .cover { width: 132px; flex-basis: 132px; }
  .prayer-card { height: 132px; min-height: 132px; }
  .card-main h2 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
