/* ==================================================================
   Player, tela de acesso negado e histórico de reprodução
   O palco de vídeo é sempre escuro (como em qualquer player); o resto
   da página usa as variáveis do tema claro/escuro.
   ================================================================== */
:root {
  --player-bar-h: 56px;
  --pl-stage: #000;
  --pl-ink: #fff;
  --pl-ink-soft: rgba(255, 255, 255, .78);
  --pl-ink-mute: rgba(255, 255, 255, .56);
  --pl-line: rgba(255, 255, 255, .2);
  --pl-panel: rgba(17, 14, 27, .94);
  --pl-hover: rgba(255, 255, 255, .12);
  --pl-accent: var(--accent);
}

/* ------------------------------ barra do topo ------------------------------ */
.player-page { display: block; padding-bottom: 0; }
.player-main { min-height: calc(100vh - var(--player-bar-h)); }
.player-bar { height: var(--player-bar-h); display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--border); }
.player-bar-back, .player-bar-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.player-bar-back:hover, .player-bar-link:hover { background: var(--hover); color: var(--text); }
.player-bar-brand { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .01em; }
.player-bar-brand .brand-mark { width: 28px; height: 28px; color: var(--accent); }
.player-bar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.player-bar-avatar { display: inline-flex; border-radius: 50%; }

/* ------------------------------ palco ------------------------------ */
.pl-stage { background: var(--pl-stage); }
.pl {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-width: calc((100vh - var(--player-bar-h)) * 16 / 9);
  max-width: calc((100dvh - var(--player-bar-h)) * 16 / 9);
  background: #000;
  color: var(--pl-ink);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  outline: none;
  font-family: var(--font);
}
.pl:fullscreen { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; }
.pl:-webkit-full-screen { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; }
.pl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pl.is-idle { cursor: none; }
.pl [hidden] { display: none !important; }

/* legendas desenhadas pelo player (o texto vem do <track>) */
.pl-captions { position: absolute; left: 6%; right: 6%; bottom: 6%; z-index: 2; text-align: center; pointer-events: none; font-size: clamp(13px, 2.1vw, 26px); line-height: 1.35; transition: bottom .2s ease; }
.pl:not(.is-idle) .pl-captions { bottom: 84px; }
.pl.is-fs .pl-captions { font-size: clamp(18px, 2.4vw, 40px); }
.pl-cue { display: block; }
.pl-cue > * , .pl-cue { white-space: pre-wrap; }
.pl-cue { padding: 2px 0; }
.pl-cue::before { content: none; }
.pl-captions .pl-cue { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .7); }
.pl-captions .pl-cue-inner { display: inline-block; padding: 2px 10px; border-radius: 4px; background: rgba(0, 0, 0, .66); }

/* topo com título */
.pl-top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 14px 28px; background: linear-gradient(rgba(0, 0, 0, .72), transparent); transition: opacity .25s ease; }
.pl-top-title { min-width: 0; display: grid; }
.pl-top-title strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-top-title span { font-size: .84rem; color: var(--pl-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl.is-idle .pl-top, .pl.is-idle .pl-controls { opacity: 0; pointer-events: none; }

/* botão central, carregando, avisos */
.pl-big { position: absolute; left: 50%; top: 50%; z-index: 3; width: 78px; height: 78px; transform: translate(-50%, -50%) scale(.9); display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pl-big .icon { width: 34px; height: 34px; margin-left: 4px; }
.pl.is-paused:not(.is-loading):not(.has-overlay) .pl-big { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.pl-big:hover { background: rgba(0, 0, 0, .75); }
.pl-spinner { position: absolute; left: 50%; top: 50%; z-index: 3; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--pl-accent); animation: pl-spin .85s linear infinite; display: none; pointer-events: none; }
.pl.is-loading .pl-spinner { display: block; }
.pl.has-overlay .pl-spinner { display: none; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-hint { position: absolute; left: 50%; top: 16%; z-index: 5; transform: translateX(-50%); padding: 8px 18px; border-radius: 999px; background: rgba(0, 0, 0, .74); color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.pl-hint.is-show { opacity: 1; }

/* erro de reprodução */
.pl-error { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; background: rgba(0, 0, 0, .82); }
.pl-error > .icon { width: 42px; height: 42px; color: var(--warning); }
.pl-error p { max-width: 42ch; color: var(--pl-ink-soft); }
.pl-error-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* retomar e fim do episódio */
.pl-resume, .pl-end { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 12px; background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); overflow: auto; }
.pl-card { width: min(440px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: 18px; border: 1px solid var(--pl-line); background: rgba(20, 16, 32, .86); text-align: center; }
.pl-card h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: .01em; }
.pl-card p { color: var(--pl-ink-soft); }
.pl-card strong { color: #fff; }
.pl-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pl-end-kicker { font-size: .8rem; text-transform: none; letter-spacing: 0; color: var(--pl-ink-mute) !important; font-weight: 700; }
.pl-end-next { display: flex; align-items: center; gap: 12px; text-align: left; }
.pl-end-thumb { flex: none; width: 128px; aspect-ratio: 16 / 9; border-radius: 8px; background: rgba(255, 255, 255, .1) center / cover no-repeat; }
.pl-end-next strong { display: block; }
.pl-end-next span { color: var(--pl-ink-soft); }
.pl-end-count { font-weight: 600; }
.pl-end-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.pl-end-bar i { display: block; height: 100%; width: 0; background: var(--pl-accent); }
.pl-end-auto { justify-content: center; color: #fff; text-align: left; }
.pl-end-auto .switch-text small { color: var(--pl-ink-mute); }

/* controles */
.pl-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 44px 12px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); transition: opacity .25s ease; }
.pl-seek { position: relative; height: 22px; margin: 0 6px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.pl-seek-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: height .12s ease; }
.pl-seek:hover .pl-seek-track, .pl-seek.is-drag .pl-seek-track, .pl-seek:focus-visible .pl-seek-track { height: 7px; }
.pl-seek-buffer, .pl-seek-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; }
.pl-seek-buffer { background: rgba(255, 255, 255, .38); }
.pl-seek-played { background: var(--pl-accent); }
.pl-seek-thumb { position: absolute; left: 0; top: 50%; width: 15px; height: 15px; margin-left: 0; border-radius: 50%; background: var(--pl-accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); transform: translate(-50%, -50%) scale(0); transition: transform .12s ease; pointer-events: none; }
.pl-seek:hover .pl-seek-thumb, .pl-seek.is-drag .pl-seek-thumb, .pl-seek:focus-visible .pl-seek-thumb { transform: translate(-50%, -50%) scale(1); }
.pl-seek-tip { position: absolute; bottom: 26px; left: 0; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .88); color: #fff; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; pointer-events: none; }
.pl-seek:hover .pl-seek-tip, .pl-seek.is-drag .pl-seek-tip { opacity: 1; }
.pl-bar { display: flex; align-items: center; gap: 2px; }
.pl-spacer { flex: 1; }
.pl-icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; flex: none; border: 0; border-radius: 10px; background: none; color: #fff; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pl-icon-btn:hover { background: var(--pl-hover); }
.pl-icon-btn:focus-visible, .pl-big:focus-visible { outline: 2px solid var(--pl-accent); outline-offset: -2px; }
.pl-icon-btn .icon { width: 24px; height: 24px; }
.pl-icon-btn[aria-expanded="true"] { background: var(--pl-hover); }
.pl-icon-btn.is-on { color: var(--pl-accent); }
.pl-ic-pause, .pl-ic-mute, .pl-ic-min { display: none; }
.pl:not(.is-paused) .pl-ic-play { display: none; }
.pl:not(.is-paused) .pl-ic-pause { display: inline-grid; }
.pl.is-muted .pl-ic-vol { display: none; }
.pl.is-muted .pl-ic-mute { display: inline-grid; }
.pl.is-fs .pl-ic-max { display: none; }
.pl.is-fs .pl-ic-min { display: inline-grid; }
.pl-volume { display: flex; align-items: center; }
.pl-vol-range { width: 0; margin: 0; opacity: 0; height: 4px; border-radius: 2px; -webkit-appearance: none; appearance: none; cursor: pointer; background: linear-gradient(to right, #fff var(--vol, 100%), rgba(255, 255, 255, .3) var(--vol, 100%)); transition: width .2s ease, opacity .2s ease, margin .2s ease; }
.pl-volume:hover .pl-vol-range, .pl-volume:focus-within .pl-vol-range { width: 84px; opacity: 1; margin: 0 8px 0 2px; }
.pl-vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.pl-vol-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.pl-time { padding: 0 10px; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.pl-time i { font-style: normal; opacity: .6; margin: 0 4px; }

/* menu de configurações */
.pl-menu { position: absolute; right: 12px; bottom: 76px; z-index: 8; width: 300px; max-height: calc(100% - 96px); overflow: auto; padding: 6px; border-radius: 14px; border: 1px solid var(--pl-line); background: var(--pl-panel); box-shadow: 0 22px 54px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.pl-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.pl-menu-item:hover, .pl-menu-item:focus-visible { background: var(--pl-hover); outline: none; }
.pl-menu-item .icon { width: 18px; height: 18px; }
.pl-menu-value { margin-left: auto; color: var(--pl-ink-soft); font-size: .86rem; display: inline-flex; align-items: center; gap: 4px; }
.pl-menu-check { width: 18px; flex: none; display: inline-grid; color: var(--pl-accent); }
.pl-menu-item.is-selected { font-weight: 700; }
.pl-menu-back { font-weight: 700; border-bottom: 1px solid var(--pl-line); border-radius: 10px 10px 0 0; margin-bottom: 4px; }
.pl-menu-note { padding: 10px 12px; font-size: .86rem; color: var(--pl-ink-mute); }

/* gaveta de episódios */
.pl-drawer { position: absolute; top: 0; right: 0; bottom: 0; z-index: 9; width: min(390px, 100%); display: flex; flex-direction: column; background: var(--pl-panel); border-left: 1px solid var(--pl-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateX(100%); transition: transform .25s ease; }
.pl-drawer.is-open { transform: none; }
.pl-drawer-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--pl-line); }
.pl-drawer-select { margin-left: auto; max-width: 55%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--pl-line); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-size: .88rem; }
.pl-drawer-select option { color: #1D1930; background: #fff; }
.pl-drawer-head .pl-icon-btn { width: 38px; height: 38px; }
.pl-drawer-list { flex: 1; overflow: auto; padding: 6px; }
.pl-drawer .pl-ep { color: #fff; }
.pl-drawer .pl-ep:hover { background: var(--pl-hover); }
.pl-drawer .pl-ep.is-current { background: rgba(255, 255, 255, .18); }
.pl-drawer .pl-ep-text span { color: var(--pl-ink-mute); }

/* sem fonte */
.pl-nosrc { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(120% 90% at 50% 0%, rgba(245, 185, 66, .14), transparent 60%), #0d0a14; }
.pl-nosrc > .icon { width: 46px; height: 46px; color: var(--pl-accent); }
.pl-nosrc h2 { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.pl-nosrc p { max-width: 46ch; color: var(--pl-ink-soft); }

/* ------------------------------ abaixo do player ------------------------------ */
.pl-below { padding-top: 26px; padding-bottom: 72px; }
.pl-below-grid { gap: 36px; }
.pl-info-col { min-width: 0; }
.pl-callout { margin-bottom: 18px; }
.pl-info-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: .98; letter-spacing: .005em; }
.pl-info-sub { margin-top: 6px; font-size: 1.1rem; color: var(--text-soft); }
.pl-info-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.pl-cert { border: 1px solid var(--border-strong); background: transparent; color: var(--text-soft); }
.pl-info-text { margin-top: 14px; max-width: 75ch; color: var(--text-soft); }
.pl-info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.pl-side { position: sticky; top: 16px; min-width: 0; }
.pl-side .panel-head { gap: 10px; }
.pl-side-select { width: auto; max-width: 52%; min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: .88rem; }
.pl-side-list { max-height: 72vh; overflow: auto; padding: 6px; }

.pl-ep { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.pl-ep:hover { background: var(--hover); }
.pl-ep.is-current { background: var(--accent-soft); }
.pl-ep-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-3) center / cover no-repeat; }
.pl-ep-now { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; }
.pl-ep-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .4); }
.pl-ep-bar i { display: block; height: 100%; background: var(--accent); }
.pl-ep-text { min-width: 0; display: grid; gap: 2px; }
.pl-ep-text strong { font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.pl-ep-text span { color: var(--muted); font-size: .82rem; }

/* ------------------------------ acesso negado ------------------------------ */
.denied { max-width: 1000px; }
.denied-card { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.denied-cover { position: relative; min-height: 340px; display: grid; place-items: center; background: var(--surface-3) center / cover no-repeat; }
.denied-cover::before { content: ""; position: absolute; inset: 0; background: rgba(15, 12, 24, .62); }
.denied-icon { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .4); color: #fff; }
.denied-icon .icon { width: 38px; height: 38px; }
.denied-body { display: grid; gap: 14px; align-content: center; padding: 34px; min-width: 0; }
.denied-kicker { font-size: .8rem; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.denied-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: .95; }
.denied-sub { color: var(--text-soft); font-size: 1.05rem; }
.denied-balance { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.denied-short { color: var(--danger); font-weight: 700; }
.denied-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ------------------------------ histórico ------------------------------ */
.history-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 8px; }
.history-search { width: min(100%, 340px); }
.history-day { margin-top: 26px; }
.history-day-title { margin-bottom: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; color: var(--text-soft); }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history-item { display: grid; grid-template-columns: 208px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.history-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-3); color: inherit; }
.history-thumb img { width: 100%; height: 100%; object-fit: cover; }
.history-thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.history-thumb-empty .icon { width: 30px; height: 30px; }
.history-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .42); color: #fff; opacity: 0; transition: opacity .15s ease; }
a.history-thumb:hover .history-play, a.history-thumb:focus-visible .history-play { opacity: 1; }
.history-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, .5); }
.history-bar i { display: block; height: 100%; background: var(--accent); }
.history-done { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: #fff; }
.history-done .icon { width: 14px; height: 14px; }
.history-text { min-width: 0; display: grid; gap: 4px; }
.history-title { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.history-title a { text-decoration: none; }
.history-title a:hover { text-decoration: underline; }
.history-sub { color: var(--text-soft); font-size: .92rem; overflow-wrap: anywhere; }
.history-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: .86rem; }
.history-time::before { content: "às "; }
.history-actions { display: flex; align-items: center; gap: 8px; }

/* ------------------------------ celular ------------------------------ */
@media (max-width: 900px) {
  .denied-card { grid-template-columns: minmax(0, 1fr); }
  .denied-cover { min-height: 190px; }
  .pl-side { position: static; }
  .pl-side-list { max-height: none; }
}

@media (max-width: 700px) {
  .history-item { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .history-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .history-title { font-size: 1rem; }
  .player-bar-brand span { display: none; }
  .player-bar-link span { display: none; }
}

@media (max-width: 560px) {
  .denied-body { padding: 22px; }
  .pl-hide-sm { display: none !important; }
  .pl-controls { padding: 34px 6px 4px; }
  .pl-icon-btn { width: 40px; height: 40px; }
  .pl-icon-btn .icon { width: 22px; height: 22px; }
  .pl-time { padding: 0 6px; font-size: .8rem; }
  .pl-vol-range { display: none; }
  .pl-top { padding: 6px 8px 22px; }
  .pl-top-title strong { font-size: .9rem; }
  .pl-top-title span { display: none; }
  .pl-big { width: 60px; height: 60px; }
  .pl-big .icon { width: 28px; height: 28px; }
  .pl:not(.is-idle) .pl-captions { bottom: 64px; }
  .pl-menu { left: 8px; right: 8px; bottom: 56px; width: auto; max-height: calc(100% - 64px); }
  .pl-card { padding: 14px; gap: 8px; }
  .pl-card h2 { font-size: 1.35rem; }
  .pl-end-thumb { width: 96px; }
  .pl-end-auto, .pl-end-kicker { display: none; }
  .pl-card-actions .btn { min-height: 38px; padding: 0 12px; font-size: .86rem; }
  .pl-drawer { width: 100%; }
  .pl-ep, .history-item .pl-ep { grid-template-columns: 112px minmax(0, 1fr); }
  .pl-nosrc { gap: 8px; padding: 12px; }
  .pl-nosrc h2 { font-size: 1.4rem; }
  .pl-nosrc > .icon { width: 32px; height: 32px; }
  .pl-nosrc p { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-spinner { animation-duration: 2s; }
  .pl-drawer, .pl-controls, .pl-top, .pl-big, .pl-captions { transition: none; }
}

/* Fontes incorporadas (YouTube e iframe) e links externos */
.pl-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; z-index: 1; }
.pl.is-frame .pl-controls,
.pl.is-frame .pl-big,
.pl.is-frame .pl-seek,
.pl.is-frame .pl-captions,
.pl.is-frame .pl-hint,
.pl.is-frame .pl-end,
.pl.is-frame .pl-resume { display: none !important; }
.pl-external-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* alpha.104: no celular a pergunta "Continuar de onde parou?" vira uma faixa no pé do vídeo
   (antes o cartão era maior que o próprio player e cobria a barra do topo). */
@media (max-width: 560px) {
  .pl-resume:not(.plx-still) { place-items: end stretch; padding: 8px; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0, rgba(0, 0, 0, .85) 70%); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pl-resume:not(.plx-still) .pl-card { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 12px; text-align: left; border-radius: 14px; }
  .pl-resume:not(.plx-still) .pl-card h2 { font-family: inherit; font-size: .95rem; font-weight: 800; line-height: 1.2; }
  .pl-resume:not(.plx-still) .pl-card p { font-size: .82rem; }
  .pl-resume:not(.plx-still) .pl-card-actions { flex: 1 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
  .pl-resume:not(.plx-still) .pl-card-actions .btn { min-height: 36px; padding: 0 10px; font-size: .84rem; white-space: nowrap; }
}

/* alpha.104: em telas estreitas a lista de episódios vem logo depois das informações, antes dos comentários */
@media (max-width: 1000px) {
  .pl-below-grid { display: flex; flex-direction: column; }
  .pl-below-grid > .pl-info-col { display: contents; }
  .pl-below-grid > .pl-side { order: 2; }
  .pl-below-grid > .pl-info-col > :last-child { order: 3; }
}

/* ---------- alpha.105: estilo da legenda, atalhos visíveis ---------- */
.pl-menu-label { margin: 10px 12px 2px; font-size: .78rem; font-weight: 700; color: var(--pl-ink-soft); }
.pl-cue-sample { margin: 6px 6px 4px; padding: 16px 10px; border-radius: 10px; text-align: center; line-height: 1.3; font-size: 1rem;
  background: linear-gradient(135deg, #2b3a4a, #4a3a2b); }
.pl-cue-sample span { display: inline-block; padding: 2px 8px; border-radius: 3px; max-width: 100%; }
.pl-menu-item[role="menuitemcheckbox"] .pl-menu-value { font-weight: 700; }
.pl-keys-btn .icon { width: 22px; height: 22px; }

/* Limite de telas do plano (alpha.109) */
.pl-screens { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 12px; background: rgba(0, 0, 0, .82); overflow: auto; }
.pl-screens[hidden] { display: none; }
.pl-screens-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; text-align: left; }
.pl-screens-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--pl-line); background: rgba(255, 255, 255, .04); }
.pl-screens-list li:only-child:has(> button:only-child) { justify-content: center; border: 0; background: none; }
.pl-screens-list span { display: grid; gap: 2px; min-width: 0; }
.pl-screens-list small { color: var(--pl-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .pl-screens-list li { flex-direction: column; align-items: stretch; } }
