/* Local Be Vietnam Pro includes both Vietnamese accents and Latin base glyphs. */
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/be-vietnam-pro-vietnamese-700.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Be Vietnam Pro'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/be-vietnam-pro-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  color-scheme: dark;
  --bg: #091126; --ink: #f4eedf; --muted: #aeb8d2; --surface: #172340;
  --line: #33456f; --accent: #f2c46d; --button-ink: #171b2b;
  --cover: linear-gradient(155deg, #344c80, #182241 45%, #19142a 62%, #bd7547);
  --radius: 20px; --shadow: 0 22px 55px #02050d99;
  --font: "Segoe UI", "Noto Sans", Arial, sans-serif;
  --display: 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
body { margin: 0; padding-bottom: calc(300px + env(safe-area-inset-bottom, 0px)); font: 15px/1.65 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
main { width: min(calc(100% - 32px), 1080px); margin: auto; padding: 24px 0 48px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 46px; }
.brand { font: 800 24px/1.3 var(--display); color: var(--accent); white-space: nowrap; }
.brand, footer a { display: inline-flex; align-items: center; min-height: 44px; }
.nav { display: flex; gap: 8px; }
.nav a { color: var(--muted); padding: 10px; min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: center; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--button-ink); font-weight: 750; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .06em; font-weight: 700; }
.muted, .meta { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 60px); margin: 10px 0 18px; }
h2 { font-size: 27px; margin: 32px 0 16px; }
.home-hero { position: relative; padding: 28px 0 14px; max-width: 760px; }
/* Keep the glow's layout box inside its hero; the blur still supplies the soft bleed. */
.home-hero::before, .hero::before { content: ""; position: absolute; z-index: -1; inset: -90px 0 -35px; background: radial-gradient(circle at 20% 30%, #f2c46d3d, transparent 30%), radial-gradient(circle at 78% 5%, #344c8066, transparent 60%); filter: blur(16px); pointer-events: none; }
.search-form { display: flex; gap: 8px; margin: 26px 0; }
.affiliate-pill { border: 1px solid var(--accent); border-radius: 999px; padding: 2px 8px; color: var(--accent); font-size: 12px; }
.affiliate-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 700; }
.affiliate-buttons { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.support-tiktok { color: #fff; background: #181818; border-color: #69c9d0; }
.support-lazada { color: #fff; background: #8a268e; border-color: #f6a36b; }
.support-shopee { color: #fff; background: #b7361b; border-color: #ee4d2d; }
.sticky-player { position: fixed; bottom: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); z-index: 5; max-height: 50dvh; overflow-y: auto; }
.sticky-player svg { width: 28px; height: 28px; fill: currentColor; }
@media (max-width: 639px) { .sticky-player .affiliate-buttons { flex-basis: 100%; } }
.search { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.search::placeholder { color: var(--muted); }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story-card { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.story-card:hover { border-color: var(--accent); }
.story-card b { display: block; font: 750 21px/1.4 var(--display); margin: 7px 0 12px; overflow-wrap: anywhere; }
.story-card .muted { font-size: 13px; }
.mini-cover { aspect-ratio: 16/10; border-radius: 12px; background: var(--cover); margin-bottom: 14px; overflow: hidden; position: relative; }
.mini-cover span { position: absolute; inset: auto 16px 16px; font: 700 23px/1.2 var(--display); }
.mini-cover img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.hero { position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: center; margin: 32px 0; }
.cover { position: relative; overflow: hidden; aspect-ratio: 4/5; border-radius: var(--radius); background: var(--cover); box-shadow: var(--shadow); }
.cover::before { content: ""; position: absolute; inset: 12%; border: 1px solid #f4d99599; border-radius: 50%; transform: rotate(-12deg); }
.cover:has(img)::before { display: none; }
.cover::after { content: "✦"; position: absolute; right: 14%; top: 8%; color: #ffe4a2; font-size: 46px; }
.cover:has(img)::after { display: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover span { position: absolute; left: 12%; right: 12%; bottom: 12%; font: 800 25px/1.3 var(--display); overflow-wrap: anywhere; }
.description { max-width: 740px; margin: 32px 0; color: var(--muted); white-space: pre-line; }
.episodes { border-top: 1px solid var(--line); }
.episode { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.episode:hover { background: #f2c46d0a; }
.episode > span:last-child { white-space: nowrap; }
.episode-play { margin-left: 16px; color: var(--accent); }
.credit { margin-top: 30px; font-size: 13px; color: var(--muted); }
.listening .hero { display: flex; flex-direction: column; text-align: center; gap: 18px; }
.listening .hero h1 { max-width: 780px; }
.listening .cover { width: min(72vw, 270px); box-shadow: 0 0 0 1px #f2c46d33, 0 0 80px #f2c46d55, 0 24px 60px #02050dcc; }
.player { position: relative; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.player-top, .times, .episode-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.resume { color: var(--accent); font-size: 13px; margin-top: 0; }
.times { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.progress { display: block; width: 100%; height: 26px; accent-color: var(--accent); margin: 14px 0 0; cursor: pointer; }
.controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 26px; }
.controls .btn { height: 46px; }
.controls [data-speed] { min-width: 80px; flex-shrink: 0; }
.player-icon { display: block; width: 28px; height: 28px; fill: currentColor; margin: auto; }
.play { width: 70px; height: 70px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--button-ink); font-size: 25px; }
.episode-nav > .muted { font-size: 12px; }
.listen-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(245px, .85fr); gap: 30px; margin-top: 34px; }
.listen-grid > article { padding: 20px; border-radius: var(--radius); background: #121c35cc; }
.listen-grid h2 { margin-top: 0; }
.products { display: grid; gap: 12px; }
.product { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product b { overflow-wrap: anywhere; }
.badge { width: fit-content; max-width: 100%; border: 1px solid var(--accent); border-radius: 999px; padding: 3px 8px; font-size: 11px; color: var(--accent); }
.invite { width: min(calc(100% - 24px), 560px); max-height: calc(100dvh - 24px); border: 1px solid var(--accent); border-radius: var(--radius); padding: 0; color: var(--ink); background: linear-gradient(145deg, #312817, #211c17); box-shadow: var(--shadow); }
.invite::backdrop { background: #050811bb; backdrop-filter: blur(6px); }
.modal-card { padding: 22px; }
.modal-card h2 { font-size: 28px; margin: 0 0 12px; }
.close { display: block; margin-left: auto; min-height: 44px; background: none; color: var(--muted); border: 0; padding: 4px 0 8px 12px; }
.invite-hint { color: var(--ink); font-weight: 600; margin: 20px 0 12px; }
.modal-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.modal-actions .shopee-support, .modal-actions .affiliate-buttons { grid-column: 1 / -1; }
.modal-actions .affiliate-buttons { display: flex; flex-wrap: nowrap; justify-content: center; }
.modal-actions .btn { width: 100%; }
/* White on #EE4D2D is 3.67:1: AA for bold text >= 18.67px. Keep 19px on mobile too. */
.modal-actions .btn.shopee-support { gap: 10px; padding: 14px 16px; background: #EE4D2D; border-color: #EE4D2D; color: #fff; font-size: 19px; font-weight: 700; line-height: 1.4; }
.shopping-bag { width: 22px; height: 22px; flex-shrink: 0; }
.modal-actions .btn.play-direct { background: transparent; border-color: var(--muted); color: var(--muted); font-weight: 600; }
.prose { max-width: 740px; }
.prose p { color: var(--muted); }
.empty { padding: 60px 0; max-width: 700px; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 70px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.sr-only, .skip { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip:focus { z-index: 10; width: auto; height: auto; clip: auto; background: var(--accent); color: var(--button-ink); padding: 12px; }
@media (max-width: 700px) {
  main { width: calc(100% - 28px); padding-top: 20px; }
  .top { margin-bottom: 26px; gap: 6px; }
  .brand { font-size: 17px; flex-shrink: 0; }
  .nav { gap: 0; flex-shrink: 0; white-space: nowrap; } .nav a { font-size: 12px; padding: 10px 6px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .story-card b { font-size: 19px; }
  .hero { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; }
  .hero h1 { font-size: 32px; }
  .listening .hero h1 { font-size: 34px; }
  .hero .meta { font-size: 13px; }
  .listen-grid { grid-template-columns: 1fr; }
  .player { padding: 18px 14px; }
  .controls { gap: 8px; } .controls .btn { padding-inline: 11px; }
  .episode-nav { flex-wrap: wrap; }
  .episode-nav > .muted { order: -1; width: 100%; text-align: center; }
  .episode-nav > .btn { flex: 1; }
  .invite { margin: auto auto 12px; }
  .modal-actions .btn { padding: 10px 8px; font-size: 14px; }
  .description { font-size: 15px; }
}
@media (max-width: 639px) { .top { flex-wrap: wrap; } .top .search-form { order: 2; width: 100%; margin: 8px 0 0; } }
@media (max-width: 380px) {
  .brand { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media (min-width: 640px) and (max-width: 1023px) { main { width: min(calc(100% - 48px), 920px); } .shelf { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { main { width: min(calc(100% - 64px), 1180px); } .top { align-items: center; } .shelf { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; } .story-card { transition: transform .2s ease, border-color .2s ease; } .story-card:hover { transform: translateY(-4px); } .story-card .mini-cover { aspect-ratio: 4/5; } .story-hero { grid-template-columns: 360px minmax(0,1fr); } .invite { width: 480px; } .modal-actions { grid-template-columns: 1fr 1fr; } }

/* Shared public surfaces: contained covers, quiet backdrop, predictable controls. */
body { padding-bottom: 0; }
body:has(.sticky-player:not([hidden])) { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.home-hero::before, .hero::before { display: none; }
.brand { gap: 8px; font-weight: 700; }
.brand-mark { width: 25px; height: 25px; flex: none; }
.top .search-form { width: 360px; flex-shrink: 0; margin-block: 0; }
.search { flex: 1; width: 0; }
.cover, .mini-cover, .story-card .mini-cover { aspect-ratio: 9 / 16; }
.cover img, .mini-cover img { display: block; object-fit: contain; }
.hero p { overflow-wrap: anywhere; }
.story-card { display: block; }
.story-card:only-child { grid-column: 1 / -1; width: 100%; max-width: 580px; margin-inline: auto; display: grid; grid-template-columns: 120px 1fr; column-gap: 20px; align-items: start; }
.story-card:only-child .mini-cover { grid-row: 1 / 4; margin: 0; }
.story-card:only-child b { margin-block: 4px; }
.story-card:only-child .eyebrow { align-self: end; }
.sticky-player { display: block; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; max-height: 70dvh; }
.player-bar { max-width: 1320px; margin-inline: auto; display: grid; grid-template-columns: minmax(90px, 1fr) auto auto minmax(180px, 1.4fr) 76px; gap: 12px; align-items: center; }
[data-player-title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-player .affiliate-buttons { display: flex; flex-wrap: nowrap; gap: 8px; }
.affiliate-button { justify-content: center; padding-inline: 12px; font-size: 13px; }
.transport { display: flex; align-items: center; justify-content: center; gap: 8px; }
.play { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; }
.play svg { display: block; width: 28px; height: 28px; }
.play-icon { transform: translateX(2px); }
.skip-control { display: grid; place-items: center; position: relative; width: 44px; height: 48px; padding: 0; border: 0; background: transparent; }
.skip-control svg { width: 30px; height: 30px; fill: none; }
.skip-control span { position: absolute; font-size: 10px; font-weight: 700; top: 19px; line-height: 1; }
.seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
[data-progress] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--accent); cursor: pointer; }
[data-speed] { width: 76px; min-height: 44px; padding: 8px; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.invite { margin: auto; width: min(calc(100% - 24px), 560px); }
.modal-card { position: relative; padding: 24px; text-align: left; }
.close { position: absolute; top: 12px; right: 16px; margin: 0; padding: 8px; min-width: 64px; }
.modal-card > .eyebrow { margin: 0 80px 18px 0; min-height: 20px; }
.modal-card h2 { font-size: clamp(23px, 4vw, 28px); margin: 0 0 16px; }
.modal-actions { grid-template-columns: minmax(0, 1fr); }
.modal-actions .btn { width: 100%; }
.modal-actions .btn.shopee-support { font-size: 19px; }
@media (max-width: 1023px) {
  .player-bar { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  [data-player-title] { grid-column: 1 / -1; }
  .seek { grid-column: 1 / -1; grid-row: 2; }
  .transport { grid-column: 2; grid-row: 3; }
  [data-speed] { grid-column: 3; grid-row: 3; justify-self: end; }
  .sticky-player .affiliate-buttons { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sticky-player { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  body:has(.sticky-player:not([hidden])) { padding-bottom: calc(260px + env(safe-area-inset-bottom, 0px)); }
  .top { flex-wrap: wrap; }
  .top .search-form { width: min(100%, 360px); }
}
@media (max-width: 639px) {
  .top .search-form { width: 100%; margin-top: 8px; }
  .brand { font-size: 19px; }
  .story-card:only-child { grid-template-columns: 96px 1fr; gap: 0 14px; }
  .story-card b { font-size: 17px; }
  .story-card .muted { overflow-wrap: anywhere; }
  .story-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .story-hero .cover { width: min(65%, 240px); margin-inline: auto; }
  .hero h1 { font-size: 32px; }
  .modal-card { padding: 20px; }
  .modal-actions .btn.shopee-support { padding: 14px 12px; }
}

/* Audiobook dock: identity, transport, timeline, speed, then support links. */
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); }
.pagination > span { white-space: nowrap; }
.pagination { position: relative; z-index: 1; gap: 8px; margin: 32px 0 12px; padding: 10px 0; }
.pagination-nav { min-width: 100px; min-height: 46px; font-weight: 700; }
.pagination-nav[aria-disabled="true"] { opacity: .45; cursor: default; pointer-events: none; }
.pagination-pages { display: inline-flex; align-items: center; gap: 4px; }
.pagination-page { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 6px 9px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); }
.pagination-page:hover, .pagination-page[aria-current="page"] { border-color: var(--accent); color: var(--ink); background: #f2c46d18; }
.pagination-status { font-weight: 700; color: var(--ink); }
.pagination-ellipsis { padding: 0 4px; }
.shelf { gap: 10px; }
.story-card { padding: 8px; border-radius: 12px; }
.story-card b { margin: 5px 0 6px; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.story-card .eyebrow { font-size: 11px; }
.story-card .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cover { margin-bottom: 8px; border-radius: 9px; }
@media (min-width: 360px) { .shelf { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 480px) { .shelf { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 768px) { .shelf { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (min-width: 1024px) { main { width: min(calc(100% - 64px), 1280px); } .shelf { grid-template-columns: repeat(7, minmax(0,1fr)); gap: 12px; } }
@media (max-width: 639px) { .pagination-pages { display: none; } .pagination-status { order: 0; } .pagination-nav { min-width: 88px; } }
.invite-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.invite-header .eyebrow { margin: 0; }
.invite-header .close { position: static; margin: 0; padding: 8px 0 8px 8px; flex: none; }
.sticky-player { background: #111d35; box-shadow: 0 -12px 40px #02050d66; border-color: #344561; }
.player-bar { grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1.2fr) 76px auto; gap: 12px; }
.player-identity { display: flex; align-items: center; gap: 12px; padding: 0; min-height: 56px; border: 0; background: none; color: var(--ink); text-align: left; border-radius: 12px; }
.player-art { position: relative; display: grid; place-items: center; width: 44px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; background: #2b3c5f; color: var(--accent); }
.player-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #182340; z-index: 1; }
.player-art .art-fallback { width: 20px; height: 20px; }
.player-copy { display: grid; gap: 2px; }
[data-player-title] { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.5; }
[data-player-number] { color: var(--muted); font-size: 12px; }
.transport .play { width: 56px; height: 56px; box-shadow: 0 3px 14px #02050d55; }
.transport .play:hover { background: #ffda93; }
.skip-control:hover { background: #ffffff0b; }
.sticky-player .affiliate-buttons { grid-column: auto; grid-row: auto; }
.sticky-player .affiliate-button { height: 44px; padding-inline: 10px; font-size: 12px; }
.support-shopee { background: #522b29; border-color: #e97a63; color: #ffbaaa; }
.support-tiktok { background: #172f3a; border-color: #67b8be; color: #c0f1f4; }
.support-lazada { background: #382347; border-color: #bb86d0; color: #eed2fa; }
.seek { grid-column: auto; grid-row: auto; }
.seek-track { display: grid; align-items: center; position: relative; min-height: 44px; }
.seek-track progress { position: absolute; width: 100%; height: 4px; border: 0; border-radius: 999px; overflow: hidden; appearance: none; background: #3b4c68; pointer-events: none; }
.seek-track progress::-webkit-progress-bar { background: #3b4c68; }
.seek-track progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.seek-track progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
[data-progress] { position: relative; appearance: none; background: transparent; z-index: 1; padding: 0; }
[data-progress]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
[data-progress]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; border: 0; background: var(--accent); transition: transform 150ms ease; }
[data-progress]::-moz-range-track { height: 4px; background: transparent; }
[data-progress]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); transition: transform 150ms ease; }
[data-progress]:hover::-webkit-slider-thumb, [data-progress]:active::-webkit-slider-thumb { transform: scale(1.35); }
[data-progress]:hover::-moz-range-thumb, [data-progress]:active::-moz-range-thumb { transform: scale(1.35); }
[data-speed] { grid-column: auto; grid-row: auto; background: #1c2c46; cursor: pointer; font-variant-numeric: tabular-nums; }
.collapse-player, .mini-progress { display: none; }
.player-feedback { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; justify-content: center; color: #ffcabd; font-size: 13px; }
.player-feedback:has([data-player-error][hidden]) { display: none; }
.sticky-player button, .sticky-player a, .sticky-player select { transition: background-color 150ms ease, border-color 150ms ease; }
@media (max-width: 1023px) {
  .sticky-player { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .player-bar { grid-template-columns: minmax(0, 1fr) 56px; gap: 8px 12px; }
  .player-identity { grid-column: 1; grid-row: 1; }
  .transport { grid-column: 2; grid-row: 1; }
  .transport [data-back], .transport [data-forward], .sticky-player .seek, .sticky-player [data-speed], .sticky-player .affiliate-buttons { display: none; }
  .mini-progress { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 3px; appearance: none; border: 0; background: #344561; }
  .mini-progress::-webkit-progress-bar { background: #344561; }
  .mini-progress::-webkit-progress-value { background: var(--accent); }
  .mini-progress::-moz-progress-bar { background: var(--accent); }
  body:has(.sticky-player:not([hidden])) { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  body:has(.sticky-player[data-expanded="true"]:not([hidden])) { padding-bottom: calc(450px + env(safe-area-inset-bottom, 0px)); }
  .sticky-player[data-expanded="true"] { max-height: calc(100dvh - 24px); border-radius: 24px 24px 0 0; padding: 0 24px calc(24px + env(safe-area-inset-bottom, 0px)); }
  [data-expanded="true"] .player-bar { grid-template-columns: 1fr auto 1fr; gap: 12px; }
  [data-expanded="true"] .collapse-player { display: grid; place-items: center; grid-column: 1 / -1; grid-row: 1; min-width: 80px; min-height: 44px; justify-self: center; border: 0; background: none; color: var(--muted); border-radius: 999px; }
  [data-expanded="true"] .collapse-player svg { width: 24px; height: 24px; fill: none; }
  [data-expanded="true"] .player-identity { grid-column: 1 / -1; grid-row: 2; }
  [data-expanded="true"] .player-art { width: 56px; height: 74px; }
  [data-expanded="true"] .seek { display: grid; grid-column: 1 / -1; grid-row: 3; }
  [data-expanded="true"] .transport { grid-column: 2; grid-row: 4; }
  [data-expanded="true"] .transport [data-back], [data-expanded="true"] .transport [data-forward] { display: grid; }
  [data-expanded="true"] [data-speed] { display: block; grid-column: 3; grid-row: 4; justify-self: end; width: 76px; font-size: 13px; }
  [data-expanded="true"] .affiliate-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; grid-row: 5; }
  [data-expanded="true"] .mini-progress { display: none; }
  .player-feedback { grid-row: 2; flex-wrap: wrap; }
  [data-expanded="true"] .player-feedback { grid-row: 6; }
}
@media (max-width: 380px) {
  .sticky-player[data-expanded="true"] { padding-inline: 14px; }
  [data-expanded="true"] .player-bar { column-gap: 6px; }
  .transport { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-player * { transition: none !important; }
  [data-progress]::-webkit-slider-thumb { transition: none !important; }
  [data-progress]::-moz-range-thumb { transition: none !important; }
}
