/* =========================================================
   Profils, nouveautés, filtres, calendrier, activité, lecteur
   ========================================================= */

/* ---------- Avatars de profil ---------- */
.pavatar {
  --pc: var(--accent);
  display: inline-grid; place-items: center; flex: none; border-radius: 8px; font-weight: 800; color: #111;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pc) 100%, #fff 18%), var(--pc) 55%, color-mix(in srgb, var(--pc) 70%, #000));
  text-transform: uppercase; user-select: none;
}
.pavatar.sm { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }
.pavatar.md { width: 40px; height: 40px; font-size: 17px; }
.pavatar.xl { width: 124px; height: 124px; font-size: 52px; border-radius: 16px; }
.pavatar.add { background: var(--bg-3); color: var(--text-3); border: 2px dashed var(--bg-4); }
.pavatar.add .ic { width: 44px; height: 44px; }
.user-btn .chev { width: 14px; height: 14px; transform: rotate(-90deg); opacity: .6; }
.user-btn .pavatar { margin-right: 2px; }

/* ---------- Écran « Qui regarde ? » ---------- */
.profiles-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  padding: 40px 16px; background: radial-gradient(1200px 600px at 50% -10%, rgba(229,160,13,.08), transparent 60%), var(--bg);
  animation: rise .35s var(--ease-out, ease) both;
}
.profiles-page .brand { position: absolute; top: 24px; left: 28px; display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--text); }
.profiles-page .brand img { width: 30px; height: 30px; }
.profiles-page h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -.01em; margin: 0; }
.ptiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 920px; }
.ptile { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 140px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text-2); }
.ptile-av { position: relative; border-radius: 18px; padding: 3px; border: 3px solid transparent; transition: border-color .18s, transform .25s var(--ease-spring, ease); }
.ptile:hover .ptile-av, .ptile:focus-visible .ptile-av { border-color: var(--text); transform: translateY(-4px); }
.ptile:hover, .ptile:focus-visible { color: var(--text); outline: none; }
.ptile.current .ptile-av { border-color: rgba(229,160,13,.6); }
.ptile-name { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; max-width: 140px; }
.ptile-name .ic { width: 15px; height: 15px; opacity: .7; }
.ptile-edit { position: absolute; inset: 3px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.ptile-edit .ic { width: 36px; height: 36px; }
.managing .ptile-av .pavatar:not(.add) { filter: saturate(.7) brightness(.9); }
.profiles-actions { display: flex; gap: 12px; }
.link-btn { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
@media (max-width: 600px) {
  .pavatar.xl { width: 92px; height: 92px; font-size: 38px; }
  .ptile { width: 104px; }
  .ptiles { gap: 18px; }
  .profiles-page .brand { position: static; }
}

/* Pavé du code PIN */
.pin-box { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 4px 0 6px; }
.pin-sub { margin: 0; color: var(--text-2); }
.pin-dots { display: flex; gap: 14px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-3); transition: background .15s, border-color .15s, transform .2s var(--ease-spring, ease); }
.pin-dots i.on { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.pin-err { min-height: 18px; margin: 0; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 68px); gap: 10px; }
.pin-key { height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); font-size: 22px; font-weight: 600; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .1s; }
.pin-key:hover { background: var(--bg-4); }
.pin-key:active { transform: scale(.94); }
.pin-key.del .ic { width: 22px; height: 22px; }

/* Éditeur de profil */
.prof-edit { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 6px; }
.prof-edit .grow { flex: 1; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; background: var(--sc); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); transition: transform .15s; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: var(--text); }
.pin-state { color: var(--text-3); margin-bottom: 10px; }
@media (max-width: 520px) { .prof-edit { flex-direction: column; align-items: center; } .prof-edit .grow { width: 100%; } }

/* Menu du profil */
.dropdown { min-width: 230px; }
.dd-profiles:empty { display: none; }
.dd-profiles { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.dd-profile .ic { width: 14px; height: 14px; margin-left: auto; opacity: .6; }
.dd-sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ---------- Nouveautés ---------- */
.new-ribbon {
  position: absolute; top: 8px; left: 0; z-index: 2; padding: 3px 9px 3px 8px; border-radius: 0 5px 5px 0;
  background: var(--accent); color: #141414; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.new-tag { margin-left: 8px; padding: 1px 7px; border-radius: 4px; background: rgba(229,160,13,.15); color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card .y.rem.accent { color: var(--accent); font-weight: 600; }
.date-chip { position: absolute; left: 8px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.date-chip .ic { width: 13px; height: 13px; color: var(--accent); }
.ccard.upcoming .thumb img { filter: saturate(.75) brightness(.8); }

/* ---------- Filtres de bibliothèque ---------- */
.btn .fcount { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #141414; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.btn.pressed { background: var(--bg-4); }
.filter-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out, ease), margin .3s; margin: 0; }
.filter-panel.open { grid-template-rows: 1fr; margin: -6px 0 22px; }
.fp-inner { overflow: hidden; min-height: 0; }
.filter-panel.open .fp-inner { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 6px; }
.fp-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.fp-row > label { width: 120px; flex: none; padding-top: 7px; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 24px; }
.fp-grid .fp-row > label { width: auto; min-width: 90px; }
.fp-row .chips { margin: 0; gap: 6px; }
.fp-row .chip { cursor: pointer; padding: 5px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.fp-row .chip:hover { transform: none; }
.fp-row .chip.on { background: var(--accent); border-color: var(--accent); color: #141414; }
.fp-row .chip .rating .ic { width: 12px; height: 12px; }
.fp-row .chip.on .rating, .fp-row .chip.on .rating .ic { color: #141414; }
.chip-n { font-size: 11px; opacity: .55; }
.fp-row select.input { height: 34px; width: 110px; }
.fp-reset { margin: 0 0 10px auto; display: flex; }
.filter-count { color: var(--text-3); font-size: 13px; margin: -10px 0 14px; }
.filter-count:empty { display: none; }
.grid-empty { grid-column: 1 / -1; padding: 50px 20px; }
@media (max-width: 700px) {
  .fp-row { flex-direction: column; gap: 6px; }
  .fp-row > label { width: auto; padding: 0; }
}

/* Tirage « Au hasard » */
.rnd-modal .modal { max-width: 760px; }
.rnd { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
.rnd-poster { aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-3); box-shadow: 0 14px 40px rgba(0,0,0,.5); position: relative; }
.rnd-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rnd-poster .placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; color: var(--text-3); font-weight: 600; }
.rnd-poster.land { animation: rndLand .45s var(--ease-spring, ease) both; }
@keyframes rndLand { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.rnd-side { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.rnd-info h2 { font-size: 26px; margin: 4px 0 8px; }
.rnd-info .meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--text-2); }
.rnd-info .rating { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.rnd-info .rating .ic { width: 14px; height: 14px; }
.rnd-overview { color: var(--text-2); margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rnd-rolling { color: var(--text-3); padding-top: 8px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.rnd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
@media (max-width: 640px) { .rnd { grid-template-columns: 1fr; } .rnd-poster { width: 160px; margin: 0 auto; } }

/* ---------- Calendrier ---------- */
.cal-days { display: flex; flex-direction: column; gap: 26px; }
.cal-day { display: grid; grid-template-columns: 190px 1fr; gap: 20px; animation: pop-in .4s var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.cal-date { position: sticky; top: calc(var(--topbar) + 14px); align-self: start; display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 3px solid var(--bg-4); }
.cal-date b { font-size: 18px; }
.cal-date span:not(.shelf-count) { color: var(--text-3); font-size: 13px; }
.cal-date .shelf-count { align-self: flex-start; margin-top: 6px; }
.cal-day.today .cal-date { border-left-color: var(--accent); }
.cal-day.today .cal-date b { color: var(--accent); }
.cal-eps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-ep { display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; padding: 10px; border-radius: 10px; color: inherit; align-items: center; transition: background .15s; }
.cal-ep:hover { background: var(--bg-2); }
.cal-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cal-thumb img.dim { filter: brightness(.6); }
.cal-thumb .hover-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .15s; }
.cal-ep:hover .cal-thumb .hover-play { opacity: 1; }
.cal-thumb .hover-play .ic { width: 40px; height: 40px; padding: 10px; }
.cal-info { min-width: 0; }
.cal-show { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.cal-show .tag { display: inline-flex; align-items: center; gap: 4px; }
.cal-show .tag .ic { width: 11px; height: 11px; }
.cal-code { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.cal-code span { color: var(--text-3); }
.cal-info p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.cal-status { padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg-3); color: var(--text-2); }
.cal-status.ready { background: rgba(70,167,88,.15); color: #6fd384; }
.cal-status.seen { color: var(--text-3); }
.cal-status.today { background: rgba(229,160,13,.15); color: var(--accent); }
.cal-status.missing { background: rgba(229,72,77,.12); color: #f2777b; }
.cal-ep.seen { opacity: .65; }
.small { font-size: 12px; }
.muted { color: var(--text-3); }
@media (max-width: 900px) {
  .cal-day { grid-template-columns: 1fr; gap: 8px; }
  .cal-date { position: static; flex-direction: row; align-items: baseline; gap: 10px; }
  .cal-ep { grid-template-columns: 120px 1fr; }
  .cal-side { grid-column: 2; flex-direction: row; align-items: center; }
}

/* ---------- Tableau de bord (Activité) ---------- */
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(70,167,88,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(70,167,88,.6); } 70% { box-shadow: 0 0 0 8px rgba(70,167,88,0); } 100% { box-shadow: 0 0 0 0 rgba(70,167,88,0); } }
.act-list { display: flex; flex-direction: column; gap: 12px; }
.act-card { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 12px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.act-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-4); align-self: start; }
.act-thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-state { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; font-weight: 600; }
.act-state .ic { width: 12px; height: 12px; color: var(--ok); }
.act-state.paused .ic { color: var(--accent); }
.act-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.act-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.act-who .pavatar { width: 24px; height: 24px; font-size: 12px; border-radius: 6px; }
.act-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-title span { color: var(--text-2); font-weight: 400; }
.act-progress { height: 4px; border-radius: 2px; background: var(--bg-4); overflow: hidden; }
.act-progress i { display: block; height: 100%; background: var(--accent); transition: width .6s; }
.act-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.act-detail { font-size: 12px; color: var(--text-3); }
.mode-pill { padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--bg-4); color: var(--text-2); }
.mode-pill.ok { background: rgba(70,167,88,.15); color: #6fd384; }
.mode-pill.mid { background: rgba(229,160,13,.15); color: var(--accent); }
.mode-pill.hot { background: rgba(229,72,77,.14); color: #f2777b; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 12px; }
.meter { padding: 14px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.meter-head { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.meter-head .ic { width: 16px; height: 16px; color: var(--text-3); }
.meter-head b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.meter-bar { height: 6px; border-radius: 3px; background: var(--bg-4); margin: 10px 0 8px; overflow: hidden; }
.meter-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .6s var(--ease-out, ease); }
.meter.mid .meter-bar i { background: var(--accent); }
.meter.hot .meter-bar i { background: var(--danger); }
.meter-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.big-check { align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line); }
.big-check input { margin-top: 3px; }
.big-check > span { display: flex; flex-direction: column; gap: 3px; }
.big-check .hint { color: var(--text-3); font-size: 13px; }
@media (max-width: 700px) { .act-card { grid-template-columns: 1fr; } }

/* ---------- Lecteur : passer l'intro, miniatures, options ---------- */
.player .skip-btn {
  position: absolute; right: 30px; bottom: 120px; z-index: 6; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: rgba(20,22,24,.82); color: #fff;
  font-size: 15px; font-weight: 600; cursor: pointer; pointer-events: auto; backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .25s var(--ease-out, ease), visibility 0s linear .2s, background .15s, border-color .15s;
}
.player .skip-btn.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.player .skip-btn:hover { background: #fff; color: #111; border-color: #fff; }
.player .skip-btn .ic { width: 18px; height: 18px; }
/* Reste visible même quand les commandes se masquent */
.player.hide-ui .skip-btn { bottom: 48px; }

.seekbar .tip { padding: 0; background: none; text-align: center; }
.seekbar .tip-thumb { border-radius: 6px; border: 2px solid rgba(255,255,255,.85); background-color: #000; background-repeat: no-repeat; box-shadow: 0 8px 26px rgba(0,0,0,.6); margin: 0 auto 6px; }
.seekbar .tip-time { display: inline-block; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.85); }

.player .popup button.trk-switch { justify-content: space-between; gap: 12px; padding: 9px 10px; }
.player .popup button.trk-switch .sw-txt { font-size: 13px; color: var(--text-2); }
.player .popup button.trk-switch .sw { position: relative; flex: none; width: 34px; height: 20px; border-radius: 10px; background: var(--bg-4); transition: background .2s; }
.player .popup button.trk-switch .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease-spring, ease); }
.player .popup button.trk-switch.on .sw { background: var(--accent); }
.player .popup button.trk-switch.on .sw::after { transform: translateX(14px); }

/* ---------- Calendrier : grille de la semaine ---------- */
.cal-nav { display: flex; align-items: center; gap: 10px; margin: -6px 0 18px; flex-wrap: wrap; }
.cal-nav .btn.icon.next .ic { transform: rotate(180deg); }
.cal-nav-label { display: flex; flex-direction: column; min-width: 190px; text-align: center; }
.cal-nav-label b { font-size: 16px; }
.cal-nav-label span { color: var(--text-3); font-size: 12px; }
.cal-board { overflow-x: auto; margin: 0 -4px; padding: 0 4px 10px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; align-items: start; }
.cal-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 160px; animation: pop-in .4s var(--ease-out, ease) both; }
.cal-col.today { border-color: rgba(229,160,13,.55); background: linear-gradient(180deg, rgba(229,160,13,.08), var(--bg-2) 140px); }
.cal-col-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; padding: 2px 2px 10px; min-width: 0; }
.cal-wd { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--text-3); font-weight: 700; }
.cal-dn { font-size: 20px; font-weight: 700; }
.cal-col.today .cal-wd, .cal-col.today .cal-dn { color: var(--accent); }
.cal-today { margin-left: auto; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 6px; white-space: nowrap; border-radius: 9px; background: var(--accent); color: #141414; }
.cal-n { margin-left: auto; font-size: 11px; color: var(--text-3); background: var(--bg-3); border-radius: 9px; padding: 1px 7px; }
.cal-none { color: var(--bg-4); text-align: center; padding: 30px 0; font-size: 18px; }
.cal-col-list { display: flex; flex-direction: column; gap: 12px; }
.cal-card { display: block; color: inherit; min-width: 0; animation: pop-in .35s var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.cal-card-img { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-3); transition: transform .25s var(--ease-out, ease), box-shadow .25s; }
.cal-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-card-img img.dim { filter: brightness(.65); }
.cal-card:hover .cal-card-img { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent), 0 8px 20px rgba(0,0,0,.45); }
.cal-card.src-library .cal-card-img { box-shadow: 0 0 0 2px rgba(229,160,13,.55); }
.cal-card .hover-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .15s; }
.cal-card:hover .hover-play { opacity: 1; }
.cal-card .hover-play .ic { width: 34px; height: 34px; padding: 8px; }
.cal-ep-num { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.78); color: #fff; font-size: 11px; font-weight: 700; }
.cal-badge { position: absolute; right: 6px; top: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.cal-badge.ready { background: #46a758; color: #fff; }
.cal-badge.seen { background: rgba(0,0,0,.7); color: var(--text-2); }
.cal-badge.missing { background: var(--danger); color: #fff; }
.cal-mine { position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #141414; }
.cal-mine .ic { width: 12px; height: 12px; }
.cal-card-t { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-card-s { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-col.past .cal-card:not(.src-library) .cal-card-img img { filter: saturate(.6) brightness(.8); }
@media (max-width: 760px) {
  .cal-week { grid-template-columns: 1fr; }
  .cal-col.empty-day:not(.today) { display: none; }
  .cal-col-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* Téléchargements : mêmes panneaux, listes et couleurs que la bibliothèque. */
.dl-results {
  max-height: 48vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-3);
  scrollbar-gutter: stable;
  padding-right: 10px;
}
.dl-results::-webkit-scrollbar { display: block; width: 8px; }
.dl-results::-webkit-scrollbar-track { background: var(--bg-3); border-radius: var(--radius); }
.dl-results::-webkit-scrollbar-thumb { background: var(--accent); border-radius: var(--radius); }
.dl-results::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
.dl-title { overflow-wrap: anywhere; }
/* Groupes de résultats : saisons complètes, autres versions, épisodes */
.dl-group { position: sticky; top: 0; z-index: 1; padding: 10px 2px 6px; background: var(--bg-2); color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dl-match-good { --dl-match-color: var(--ok); }
.dl-match-lower { --dl-match-color: #e5a00d; }
.dl-match-other { --dl-match-color: var(--danger); }
.dl-results .list-row .name, .dl-match-label { color: var(--dl-match-color, var(--text)); }
.dl-match-label { font-size: 12px; margin-top: 4px; }
.dl-progress { display: block; width: 100%; height: 5px; margin-top: 10px; accent-color: var(--accent); border: 0; border-radius: var(--radius); overflow: hidden; }
.dl-progress::-webkit-progress-bar { background: var(--bg-3); }
.dl-progress::-webkit-progress-value { background: var(--accent); }
.dl-progress::-moz-progress-bar { background: var(--accent); }
@media (max-width: 600px) {
  .dl-results .list-row, .dl-job { flex-wrap: wrap; }
  .dl-job .info, .dl-results .list-row .info { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .episode .side.episode-sub-actions { display: flex; grid-column: 2; flex-wrap: wrap; }
}
.sub-results .list-row .info .small { white-space: normal; }

/* ---------- Watch party ---------- */
.player .party-btn { position: relative; color: var(--accent); }
.party-count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--accent); color: #141414; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.party-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: min(360px, 100vw); display: flex; flex-direction: column;
  background: rgba(20, 22, 24, .97); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0,0,0,.5);
  animation: slide-left .3s var(--ease-out, ease) both; cursor: default; }
.party-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 18px 6px; }
.party-panel h3 { font-size: 17px; }
.party-panel section { padding: 6px 18px 10px; display: flex; flex-direction: column; gap: 8px; }
.party-panel section.grow { flex: 1; min-height: 160px; }
.party-panel h4 { margin-top: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.party-panel footer { padding: 10px 18px 16px; border-top: 1px solid var(--line); }
.party-panel .input { width: 100%; }
.party-muted { color: var(--text-3); font-size: 12px; }
.party-row { display: flex; gap: 8px; flex-wrap: wrap; }
.party-code { font-size: 13px; color: var(--text-2); }
.party-code b { font-family: ui-monospace, Consolas, monospace; font-size: 18px; letter-spacing: .18em; color: #fff; margin-left: 4px; }
.party-users { display: flex; flex-direction: column; gap: 4px; max-height: 150px; overflow-y: auto; }
.party-user, .party-member { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.party-user > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.sm { height: 28px; padding: 0 12px; font-size: 12px; }
.party-chat { flex: 1; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.party-msg { overflow-wrap: anywhere; line-height: 1.4; }
.party-msg.sys { color: var(--text-3); font-size: 12px; font-style: italic; }
.party-say { display: flex; gap: 6px; }
.party-bubbles { position: absolute; left: 26px; bottom: 120px; z-index: 3; display: flex; flex-direction: column; gap: 6px;
  max-width: min(420px, calc(100vw - 52px)); pointer-events: none; }
.party-bubbles .party-msg { background: rgba(20, 22, 24, .85); padding: 8px 12px; border-radius: 8px; font-size: 14px;
  animation: fade .25s ease both; transition: opacity .4s; }
.party-bubbles .party-msg.leaving { opacity: 0; }
.player.hide-ui .party-bubbles { bottom: 40px; }
.party-join { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(0,0,0,.45); }
.party-invites { position: fixed; top: 16px; right: 16px; z-index: 250; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.party-invite { display: flex; gap: 12px; padding: 12px; background: var(--bg-3); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 8px; box-shadow: 0 12px 34px rgba(0,0,0,.5); animation: toast-in .35s var(--ease-spring, ease) both; }
.party-invite img { width: 92px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; }
.party-invite .pi-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.party-invite .pi-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-invite .party-row { margin-top: 6px; }
@media (max-width: 640px) {
  .party-panel { width: 100vw; }
  .party-bubbles { left: 16px; }
}
/* Page Watch party (barre latérale) */
.wp-page { padding: 0 0 120px; }
.wp-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  margin: 0 0 30px; padding: 40px 40px 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(229,160,13,.22), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(120,90,255,.14), transparent 60%), var(--bg-2); }
.wp-hero-txt { max-width: 620px; }
.wp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 99px; background: rgba(229,160,13,.14);
  color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wp-kicker .ic { width: 18px; height: 18px; }
.wp-hero h1 { margin: 14px 0 10px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
.wp-hero p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.wp-join { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line);
  backdrop-filter: blur(8px); width: min(360px, 100%); }
.wp-join label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.wp-join-row { display: flex; gap: 8px; }
.wp-code { flex: 1; min-width: 0; height: 44px; font-family: ui-monospace, Consolas, monospace; font-size: 20px; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.wp-join .btn { height: 44px; }
.wp-h2 { font-size: 19px; margin-bottom: 14px; }

.wp-live:empty { display: none; }
.wp-live { margin-bottom: 30px; }
.wp-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.wp-session { display: flex; gap: 14px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, transform .2s var(--ease-out, ease); }
.wp-session:hover { border-color: rgba(229,160,13,.5); transform: translateY(-2px); }
.wp-session.invite { border-color: rgba(229,160,13,.45); background: linear-gradient(90deg, rgba(229,160,13,.09), var(--bg-2) 70%); }
.wp-session-art { position: relative; width: 132px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--bg-3); flex: none; }
.wp-session-art img { width: 100%; height: 100%; object-fit: cover; }
.wp-pill { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px;
  background: var(--accent); color: #141414; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.wp-pill.live { background: rgba(0,0,0,.7); color: #fff; }
.wp-pill.live i { width: 6px; height: 6px; border-radius: 50%; background: #46a758; animation: livePulse 1.6s infinite; }
.wp-session-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.wp-session-txt > b, .wp-session-txt .party-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-session-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wp-avatars { display: flex; }
.wp-avatars .pavatar { margin-right: -6px; box-shadow: 0 0 0 2px var(--bg-2); }
.wp-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.wp-pick-head .wp-h2 { margin: 0; }
.wp-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; width: min(340px, 100%); border-radius: 99px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text-3); }
.wp-search:focus-within { border-color: var(--accent); }
.wp-search .ic { width: 18px; height: 18px; flex: none; }
.wp-search .input { border: 0; background: none; padding: 0; height: 100%; flex: 1; min-width: 0; }
.wp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.wp-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text-2); cursor: pointer; font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.wp-chip .ic { width: 16px; height: 16px; }
.wp-chip:hover { color: var(--text); background: var(--bg-3); }
.wp-chip.on { background: var(--accent); border-color: var(--accent); color: #141414; font-weight: 600; }
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 16px; }
.wp-grid.wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.wp-grid > .center { grid-column: 1 / -1; padding: 40px; }
.wp-tile { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; min-width: 0;
  animation: rise .4s var(--ease-out, ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
.wp-art { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-3);
  transition: transform .25s var(--ease-out, ease), box-shadow .25s; }
.wp-tile.wide .wp-art { aspect-ratio: 16 / 9; }
.wp-art img { width: 100%; height: 100%; object-fit: cover; }
.wp-art .placeholder { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; color: var(--text-3); font-size: 13px; }
.wp-hover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.wp-hover .ic { width: 28px; height: 28px; color: var(--accent); }
.wp-tile:hover .wp-art, .wp-tile:focus-visible .wp-art { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.wp-tile:hover .wp-hover, .wp-tile:focus-visible .wp-hover { opacity: 1; }
.wp-tile.on .wp-art { box-shadow: 0 0 0 3px var(--accent), 0 12px 28px rgba(0,0,0,.45); }
.wp-tile .t { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.wp-tile .y { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-art .bar, .wp-ep-art .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.wp-art .bar i, .wp-ep-art .bar i { display: block; height: 100%; background: var(--accent); }
.wp-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--text-3); border: 1px dashed var(--line); border-radius: 12px; }
/* Fenêtre de choix de l'épisode */
.wp-modal .modal { max-height: min(720px, 90vh); display: flex; flex-direction: column; }
.wp-modal .body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.wp-modal .wp-chips { margin-bottom: 12px; }
.wp-eps { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; margin: 0 -8px; padding: 0 8px; }
.wp-ep { display: flex; align-items: center; gap: 14px; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.wp-ep:hover { background: var(--bg-3); }
.wp-ep.next { background: rgba(229,160,13,.08); box-shadow: inset 0 0 0 1px rgba(229,160,13,.35); }
.wp-ep.seen .wp-ep-txt b { color: var(--text-2); }
.wp-ep-art { position: relative; width: 132px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--bg-4); flex: none;
  display: grid; place-items: center; color: var(--text-3); font-weight: 700; }
.wp-ep-art img { width: 100%; height: 100%; object-fit: cover; }
.wp-ep-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wp-ep-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-ep-txt span { font-size: 12px; color: var(--text-3); }
@media (max-width: 760px) {
  .wp-hero { padding: 24px 18px 20px; border-radius: 14px; }

  .wp-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px 12px; }
  .wp-grid.wide { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .wp-ep-art { width: 96px; }
}
/* Changer le titre d'un salon */
.wp-change { margin-bottom: 22px; }
.wp-change .btn { margin-left: -10px; margin-bottom: 8px; }
.wp-change h1 { font-size: 26px; margin-bottom: 4px; }
/* Salon d'attente */
.lb-page { padding-bottom: 40px; }
.lb-hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 22px; }
.lb-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .55; transform: scale(1.04);
  animation: backdrop-in 1.2s var(--ease-out, ease) both; }
.lb-hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,22,24,.97) 0%, rgba(20,22,24,.85) 45%, rgba(20,22,24,.35) 100%), linear-gradient(0deg, rgba(20,22,24,.9), transparent 55%); }
.lb-hero-in { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 28px; padding: 40px; min-height: 340px; }
.lb-poster { width: 170px; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 20px 50px rgba(0,0,0,.6);
  animation: poster-in .6s var(--ease-out, ease) both; }
.lb-poster img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 680px; }
.lb-chips { align-items: center; }
.lb-info .wp-pill { position: static; font-size: 11px; padding: 4px 10px; }
.lb-code { font-size: 13px; color: var(--text-2); }
.lb-code b { font-family: ui-monospace, Consolas, monospace; letter-spacing: .18em; color: #fff; margin-left: 4px; font-size: 15px; }
.lb-info h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -.01em; }
.lb-sub { font-size: 16px; color: var(--text-2); }
.lb-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 14px; }
.lb-actions .lb-go { padding: 0 26px; }
.lb-wait { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; background: rgba(0,0,0,.35);
  border: 1px solid var(--line); color: var(--text-2); }
.lb-dots { display: inline-flex; gap: 4px; }
.lb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
.lb-dots i:nth-child(2) { animation-delay: .2s; }
.lb-dots i:nth-child(3) { animation-delay: .4s; }
.lb-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1fr) minmax(300px, 1.2fr); gap: 18px; align-items: stretch; }
.lb-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); min-width: 0; }
.lb-card h2 { font-size: 16px; }
.lb-card h4 { margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.lb-card .input { width: 100%; }
.lb-members { display: flex; flex-direction: column; gap: 8px; }
.lb-members .party-member { gap: 12px; font-weight: 600; }
.lb-chat .party-chat { min-height: 220px; max-height: 320px; }
.lb-foot { margin-top: 18px; }
@media (max-width: 1200px) {
  .lb-grid { grid-template-columns: 1fr 1fr; }
  .lb-chat { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lb-hero-in { flex-direction: column; align-items: flex-start; padding: 22px 18px; min-height: 0; }
  .lb-poster { width: 110px; }
  .lb-grid { grid-template-columns: 1fr; }
  .lb-actions, .lb-actions .party-row { width: 100%; }
  .lb-actions .seg { display: flex; width: 100%; }
  .lb-actions .seg button { flex: 1; }
  .lb-actions .party-row .btn { flex: 1; justify-content: center; }
}

/* Police des sous-titres (lecteur) : appliquée aux répliques et à l'aperçu des boutons */
[data-sub-font="arial"] { --sub-font: Arial, Helvetica, sans-serif; }
[data-sub-font="verdana"] { --sub-font: Verdana, Tahoma, sans-serif; }
[data-sub-font="trebuchet"] { --sub-font: "Trebuchet MS", "Segoe UI", sans-serif; }
[data-sub-font="georgia"] { --sub-font: Georgia, "Times New Roman", serif; }
[data-sub-font="times"] { --sub-font: "Times New Roman", Times, serif; }
[data-sub-font="mono"] { --sub-font: "Courier New", Consolas, monospace; }
[data-sub-font="comic"] { --sub-font: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive; }
.player[data-sub-font] video::cue { font-family: var(--sub-font); }
.player .popup .sub-h { display: flex; align-items: center; gap: 6px; }
.player .popup button.sub-h-btn { width: 34px; height: 30px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: 6px; font-size: 18px; line-height: 1; color: #fff; }
.player .popup .sub-h-val { min-width: 64px; text-align: center; font-size: 13px; font-weight: 600; color: #fff; }
.player .popup button.sub-h-reset { width: auto; margin-left: auto; padding: 6px 8px; font-size: 12px; color: var(--text-3); }
/* Réglages du lecteur : menu compact + sous-menu à côté */
.player .popup.pmenu { width: 290px; min-width: 0; padding: 6px; overflow: visible; max-height: none; }
.player .popup .pm-list { display: flex; flex-direction: column; gap: 2px; }
.player .popup button.pm-row { gap: 10px; padding: 10px 8px 10px 12px; color: #fff; }
.player .popup button.pm-row.open { background: rgba(255,255,255,.08); }
.pm-label { flex: none; font-weight: 600; }
.pm-val { flex: 1; min-width: 0; text-align: right; color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .popup button.pm-row .pm-chev { visibility: visible; color: var(--text-3); transform: rotate(180deg); width: 14px; height: 14px; flex: none; }
.player .popup button.pm-switch { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; padding: 11px 8px 10px 12px; }
.player .popup button.pm-switch .sw-txt { font-weight: 600; color: #fff; font-size: 14px; }
.pm-sub { position: absolute; right: calc(100% + 8px); top: 0; width: 290px; max-height: min(60vh, 460px); overflow-y: auto;
  background: rgba(20,22,24,.97); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.5);
  animation: popup-in .18s var(--ease-out, ease) both; transform-origin: right top; }
.pm-sub-in { display: flex; flex-direction: column; gap: 2px; }
.player .popup button.sub-font .trk-name { font-family: var(--sub-font, inherit); font-weight: 500; font-size: 15px; }
.pm-note { padding: 8px 10px 4px; font-size: 11px; color: var(--text-3); }
.player .popup .sub-h { display: flex; align-items: center; gap: 6px; padding: 6px 4px; }
.player .popup button.pm-back { gap: 6px; padding: 8px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; color: #fff; font-weight: 600; }
.player .popup button.pm-back .ic { visibility: visible; color: var(--text-2); }
/* Petit écran : le sous-menu remplace la liste (retour en haut) */
.pmenu.drilled .pm-list { display: none; }
.pmenu.drilled .pm-sub { position: static; width: auto; border: 0; box-shadow: none; padding: 0; background: none; max-height: 60vh; }
@media (max-width: 640px) {
  .player .popup.pmenu { right: 12px; left: 12px; width: auto; bottom: 80px; }
}
