:root { color-scheme: dark; --ink: #fff; --muted: #d4d8df; --highlight: #a78bfa; --panel: #12171a; }
* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-snap-type: y mandatory; }
body { margin: 0; background: var(--panel); color: var(--ink); font-family: "Avenir Next", "Trebuchet MS", sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
button, select, input { font: inherit; }
button, select { min-height: 44px; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.listen-nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 24px 12px; background: linear-gradient(#0009, transparent); pointer-events: none; }
.listen-nav > * { pointer-events: auto; }
.listen-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; text-decoration: none; text-shadow: 0 1px 6px #000; }
.listen-brand img { border-radius: 8px; }
.story-filter select { max-width: 170px; padding: 8px 12px; border: 1px solid #ffffff55; border-radius: 6px; background: #12171ac9; font-size: .8rem; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; background: #000; }
.story-feed-column { min-width: 0; overflow-anchor: none; background: #000; }
.story-entry { position: relative; isolation: isolate; height: 100dvh; min-height: 420px; max-width: min(100%, 56.25dvh); margin-inline: auto; overflow: hidden; overflow-wrap: anywhere; scroll-snap-align: start; scroll-snap-stop: always; background: #191f22; }
.story-entry::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #0006, transparent 30%, transparent 50%, #0008); }
.story-entry header { position: relative; width: fit-content; max-width: 90%; margin: 0 auto 8px; padding: 4px 18px; border: 1px solid #ffffff30; border-radius: 24px; background: #62586580; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); text-align: center; }
.story-rank { display: none; }
.story-entry h2 { margin: 0; font-size: .85rem; line-height: 1.35; font-weight: 600; max-height: 3.6em; overflow-y: auto; }
.story-cover { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; cursor: pointer; transition: opacity .45s ease; animation: story-zoom 12s ease-in-out infinite alternate; animation-play-state: paused; }
.story-cover-entering { opacity: 0; }
.story-active .story-cover { animation-play-state: running; }
@keyframes story-zoom { from { transform: scale(1); } to { transform: scale(1.15); } }
.story-reader { position: absolute; z-index: 2; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; right: 10px; max-width: 760px; margin-inline: auto; }
.story-sheet { padding: 28px 22px 12px; border: 1px solid #ffffff40; border-radius: 30px; background: #655f6e99; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.story-text { position: relative; max-height: min(36svh, 340px); overflow-y: auto; white-space: pre-wrap; color: #fff; font-family: inherit; font-weight: 500; font-size: 20px; line-height: 1.55; text-shadow: 0 1px 2px #0005; padding-block: 4px 8px; scrollbar-width: none; }
.uppercase-text .story-text, .uppercase-text h2 { text-transform: uppercase; }
.story-text::-webkit-scrollbar { display: none; }
.story-text .read-word, .story-entry h2 .read-word { color: #ffffffb3; }
.story-text .current-word, .story-entry h2 .current-word { color: var(--highlight); font-weight: 700; }
.story-entry audio { display: block; width: 100%; height: 54px; margin-block: 16px; }
.paragraph-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding: 0; }
.paragraph-dot { display: grid; place-items: center; border: 0; background: transparent; width: 32px; height: 44px; padding: 0; }
.paragraph-dot::after { content: ""; width: 8px; height: 8px; border-radius: 8px; background: #ffffff4d; transition: width .3s ease, background .3s ease; }
.paragraph-dot[aria-current="true"]::after { width: 24px; background: #fff; }
.reader-controls { position: relative; z-index: 1; display: flex; justify-content: center; gap: 10px; margin-bottom: -12px; }
.player-button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff55; border-radius: 50%; background: #827887b3; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 16px; font-weight: 600; }
.player-button:hover { background: #9a8b9bd9; }
.text-hidden .reader-controls { margin-bottom: 0; }
.story-status { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.story-reader .story-status { margin: 4px 0; }
.feed-end { min-height: 180px; padding: 28px; text-align: center; }
.story-feed-column:not(:has(.story-entry)) .feed-end { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; }
.feed-end a { display: block; margin-top: 24px; color: var(--muted); font-size: .8rem; }
#story-more { padding: 10px 22px; border: 1px solid #ffffff55; border-radius: 6px; background: transparent; }
.story-ad { width: 300px; max-width: 100%; text-align: center; padding-block: 16px; margin: 20px auto; scroll-snap-align: center; }
.story-ad > span { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 12px; }
#story-ad-slot { min-height: 250px; }
@media (min-width: 901px) {
  .story-layout:has(> .story-ad:not([hidden])) { grid-template-columns: minmax(0, 1fr) 340px; }
  .story-ad { position: sticky; top: 90px; }
}
@media (max-width: 520px) {
  .listen-nav { padding-inline: 16px; }
  .listen-brand { gap: 8px; font-size: .9rem; }
  .story-filter select { max-width: 145px; }
}
@media (max-height: 550px) {
  .story-entry { min-height: 320px; }
  .story-text { max-height: 24svh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-cover { animation: none; transition: none; }
  .paragraph-dot::after { transition: none; }
}
.listen-actions { display: flex; align-items: center; gap: 14px; }
.listen-links { display: flex; align-items: center; gap: 14px; font-size: .85rem; font-weight: 600; text-shadow: 0 1px 6px #000; }
.listen-links a { color: inherit; text-decoration: none; }
.listen-app-link { padding: 7px 10px; border: 1px solid #ffffff66; border-radius: 999px; background: #12171ac9; }
@media (max-width: 700px) {
  .listen-links a:not(.listen-app-link) { display: none; }
  .listen-actions { gap: 8px; }
}
