/* InterFilm — Lecteur premium orange / noir */

.player-bg:not(.open){pointer-events:none!important}
.player-bg:not(.open) *{pointer-events:none!important}

.player-bg {
  background: #050505 !important;
  z-index: 100000010 !important;
}

body.player-cursor-hidden,
body.player-cursor-hidden .player-bg.open,
body.player-cursor-hidden .player-bg.open * {
  cursor: none !important;
}

.player-bg:fullscreen,
.player-bg:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
}

.player-bg:fullscreen .player-video-wrap,
.player-bg:-webkit-full-screen .player-video-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
}

.player-bg:fullscreen #playerVideo,
.player-bg:fullscreen #playerIframe,
.player-bg:-webkit-full-screen #playerVideo,
.player-bg:-webkit-full-screen #playerIframe {
  width: 100%;
  height: 100%;
}

.player-premium-row-main {
  flex-wrap: nowrap;
  gap: 8px;
}

.player-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: .2s;
}
.player-icon-btn:hover {
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .4);
  color: #fbbf24;
}

.player-ep-picker {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: min(420px, 92vw);
  max-height: 420px;
  overflow: hidden;
  background: rgba(8, 8, 12, .98);
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.85);
  z-index: 40;
  flex-direction: column;
}
.player-ep-picker.open { display: flex; }

.player-ep-picker-head {
  padding: 14px 16px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.player-ep-season-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.player-ep-season-tab {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.player-ep-season-tab.active,
.player-ep-season-tab:hover {
  background: rgba(245, 158, 11, .15);
  border-color: rgba(245, 158, 11, .4);
  color: #fbbf24;
}

.player-ep-list {
  overflow-y: auto;
  max-height: 280px;
  padding: 6px;
}

.player-ep-item {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: .15s;
}
.player-ep-item:hover { background: rgba(255,255,255,.06); }
.player-ep-item.active {
  background: rgba(245, 158, 11, .12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .35);
}
.player-ep-num {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  min-width: 28px;
}
.player-ep-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.player-ep-info strong {
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.player-ep-info small {
  font-size: 10px;
  color: rgba(255,255,255,.45);
}

.player-ep-loading {
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

.player-premium-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(0,0,0,.92) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}
.player-bg.player-ui-visible .player-premium-top {
  opacity: 1;
}
.player-bg.player-ui-visible .player-premium-bar.player-bar-visible {
  opacity: 1;
  pointer-events: auto;
}
.player-bg:not(.player-ui-visible) .player-premium-top,
.player-bg:not(.player-ui-visible) .player-premium-top > *,
.player-bg:not(.player-ui-visible) .player-premium-bar {
  opacity: 0;
  pointer-events: none;
}
.player-premium-top > * { pointer-events: auto; }

.player-premium-back {
  height: 42px;
  min-width: auto;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: 'Bebas Neue', var(--ff-head);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.player-back-arrow {
  font-size: 18px;
  line-height: 1;
  font-family: var(--ff-body);
  font-weight: 700;
}
.player-premium-back:hover {
  color: #f77f00;
  background: rgba(247, 127, 0, .12);
  border-color: rgba(247, 127, 0, .45);
}

.player-premium-meta { flex: 1; min-width: 0; }
.player-premium-meta .player-title {
  font-family: var(--ff-head);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-premium-meta .player-sub {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

.player-premium-fs {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-premium-fs:hover {
  background: rgba(245, 166, 35, .15);
  border-color: rgba(245, 166, 35, .4);
}

.player-fs-btn:hover {
  background: rgba(247, 127, 0, 0.18);
  border-color: rgba(247, 127, 0, 0.45);
}

.player-pop-btn.active-sub,
.player-pop-btn.active {
  background: rgba(247, 127, 0, 0.18);
  border-color: rgba(247, 127, 0, 0.45);
  color: #ff9500;
}

.player-bg.player-in-fs .player-premium-top,
.player-bg.player-in-fs .player-premium-bar.player-bar-visible {
  transition: opacity .35s ease;
}

#playerVideo::cue {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: clamp(14px, 2.5vw, 20px);
  line-height: 1.35;
}

.player-video-wrap { background: #000 !important; position: relative; }
.player-smart-actions {
  position: absolute;
  right: 24px;
  bottom: 130px;
  z-index: 24;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
  max-width: min(92vw, 520px);
  isolation: isolate;
}

.player-smart-btn {
  pointer-events: auto;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.player-smart-btn:hover {
  transform: scale(1.03);
  background: #fff;
}

.player-smart-btn--credits {
  background: rgba(20, 20, 20, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-smart-btn--credits:hover {
  background: rgba(30, 30, 30, 0.95);
}

.player-smart-btn--next {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
}

.player-smart-btn--next:hover {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

@media (max-width: 768px) {
  .player-smart-actions {
    right: 14px;
    bottom: 110px;
    flex-direction: column;
    align-items: stretch;
  }
  .player-smart-btn {
    font-size: 12px;
    padding: 9px 14px;
    text-align: center;
  }
}

#playerVideo { cursor: pointer; }

/* Barre contrôles intégrée */
.player-premium-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 12px 18px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}
.player-bg.player-ui-visible .player-premium-bar.player-bar-visible {
  opacity: 1;
  pointer-events: auto;
}
.player-premium-bar:not(.player-has-video) .player-progress-section,
.player-premium-bar:not(.player-has-video) .player-controls-left,
.player-premium-bar:not(.player-has-video) .player-transport-section,
.player-premium-bar:not(.player-has-video) .player-volume-wrap {
  display: none;
}
.player-premium-bar:not(.player-has-video) .player-controls-row {
  display: flex;
  justify-content: flex-end;
  padding-right: 8px;
}

.player-controls-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
}
.player-controls-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}
.player-controls-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  padding-right: 10px;
}
.player-controls-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.player-progress-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-progress-times {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.player-transport-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.player-video-wrap.player-loading::after {
  content: 'Chargement du flux…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 8;
  pointer-events: none;
}


.player-premium-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(234, 88, 12, .45);
  transition: transform .2s;
}
.player-premium-play:hover { transform: scale(1.06); }

.player-premium-time {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  min-width: 88px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-progress-wrap {
  flex: 1;
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  min-width: 80px;
}
.player-progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,.18);
  border-radius: 99px;
  overflow: hidden;
  pointer-events: none;
}
.player-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ea580c, #f59e0b);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(234, 88, 12, .5);
  transition: width .08s linear;
}
.player-progress-input {
  position: relative;
  width: 100%;
  height: 22px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.player-progress-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
.player-progress-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, .75);
}
.player-progress-input::-moz-range-track {
  height: 4px;
  background: transparent;
}
.player-progress-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, .75);
}

.player-volume-wrap {
  position: relative;
  flex-shrink: 0;
}
.player-volume-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 10px;
  background: rgba(0, 0, 0, .96);
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 108px;
}
.player-volume-pop.open {
  opacity: 1;
  pointer-events: auto;
}
#playerVolume {
  width: 88px;
  height: 4px;
  margin: 0;
  transform: rotate(-90deg);
  transform-origin: center center;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  cursor: pointer;
}
#playerVolume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
}
#playerVolume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
  border: none;
}

.player-premium-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.player-pop-wrap { position: relative; }

.player-pop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: .2s;
  font-family: var(--ff-head);
}
.player-pop-btn:hover,
.player-pop-btn.active {
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .45);
  color: #fbbf24;
}

.player-pop-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 240px;
  overflow-y: auto;
  background: rgba(12, 12, 16, .98);
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.8);
  padding: 6px;
  z-index: 30;
}
.player-pop-menu.open { display: block; }

.player-pop-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.player-pop-item:hover { background: rgba(255,255,255,.06); }
.player-pop-item.active {
  background: rgba(245, 158, 11, .15);
  color: #fbbf24;
}

.player-ep-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.player-ep-btn:hover {
  background: rgba(245, 158, 11, .15);
  border-color: rgba(245, 158, 11, .35);
}

.player-report-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .1);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.player-report-btn:hover { background: rgba(239, 68, 68, .2); }

.player-report-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 4, 12, .88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.player-report-modal.open {
  opacity: 1;
  pointer-events: all;
}
.player-report-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(247, 127, 0, .22);
  background: linear-gradient(165deg, rgba(18, 18, 32, .98), rgba(10, 10, 20, .99));
  box-shadow: 0 32px 80px rgba(0, 0, 0, .85), 0 0 60px rgba(247, 127, 0, .07), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.player-report-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  transition: .2s;
}
.player-report-close:hover {
  background: rgba(232, 48, 74, .18);
  border-color: rgba(232, 48, 74, .35);
  color: #fff;
}
.player-report-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, .35);
  background: rgba(239, 68, 68, .12);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.player-report-title {
  margin: 0 0 8px;
  font-family: var(--ff-head);
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}
.player-report-media {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f77f00;
  line-height: 1.45;
}
.player-report-sub {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}
.player-report-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.player-report-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.player-report-textarea::placeholder { color: rgba(255, 255, 255, .28); }
.player-report-textarea:focus {
  outline: none;
  border-color: rgba(247, 127, 0, .45);
  box-shadow: 0 0 0 3px rgba(247, 127, 0, .12);
}
.player-report-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}
.player-report-source { color: rgba(255, 255, 255, .5); }
.player-report-count { font-variant-numeric: tabular-nums; }
.player-report-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.player-report-cancel,
.player-report-submit {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s;
}
.player-report-cancel {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .75);
}
.player-report-cancel:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.player-report-submit {
  border: 1px solid rgba(247, 127, 0, .45);
  background: linear-gradient(135deg, #f77f00, #e8304a);
  color: #fff;
  box-shadow: 0 8px 24px rgba(247, 127, 0, .22);
}
.player-report-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.player-report-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#playerControls { display: none !important; }
.player-topbar { display: none !important; }
.src-bar { display: none !important; }

.quality-bar { display: none !important; }

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .player-premium-bar {
    gap: 14px;
    padding: 14px 14px max(20px, env(safe-area-inset-bottom));
  }
  .player-progress-section {
    gap: 10px;
  }
  .player-progress-times {
    padding: 0 2px;
  }
  .player-progress-wrap {
    height: 36px;
    min-width: 0;
    width: 100%;
    flex: unset;
  }
  .player-progress-rail {
    height: 8px;
  }
  .player-progress-input {
    height: 36px;
  }
  .player-progress-input::-webkit-slider-thumb {
    width: 22px;
    height: 22px;
    margin-top: -7px;
  }
  .player-progress-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }
  .player-controls-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 6px;
    width: 100%;
    align-items: center;
  }
  .player-controls-left {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .player-transport-section {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    gap: 6px;
  }
  .player-controls-right {
    display: contents;
  }
  .player-controls-tools {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 4px;
    padding-right: 0;
  }
  .player-premium-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 0 2px;
  }
  .player-premium-play {
    width: 52px;
    height: 52px;
  }
  .player-icon-btn {
    width: 40px;
    height: 40px;
  }
  .player-pop-btn {
    padding: 7px 10px;
    font-size: 10px;
  }
  .player-report-btn {
    padding: 7px 10px;
    font-size: 10px;
  }

  /* Menus ST / source / audio / épisodes — panneau centré, jamais coupé */
  .player-bg.open .player-pop-menu.open,
  .player-bg.open .player-ep-picker.open {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(168px + env(safe-area-inset-bottom));
    width: auto;
    min-width: 0;
    max-width: none;
    z-index: 100000020;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(247, 127, 0, 0.2);
  }

  .player-bg.open .player-pop-menu.open {
    max-height: min(42vh, 280px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .player-bg.open .player-ep-picker.open {
    top: max(64px, 10vh);
    bottom: calc(168px + env(safe-area-inset-bottom));
    max-height: none;
    height: auto;
    display: flex;
  }

  .player-bg.open .player-ep-list {
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .player-pop-item {
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.35;
  }

  .player-ep-item {
    padding: 12px 14px;
  }

  .player-ep-info strong {
    font-size: 14px;
    line-height: 1.35;
  }

  .player-volume-pop.open {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(168px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 100000020;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .player-bg.open .player-pop-menu.open,
  .player-bg.open .player-ep-picker.open {
    bottom: calc(120px + env(safe-area-inset-bottom));
    max-height: min(50vh, 220px);
  }

  .player-bg.open .player-ep-picker.open {
    top: max(48px, 6vh);
    bottom: calc(120px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 769px) and (hover: hover) {
  .player-progress-section {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .player-progress-times {
    display: contents;
  }
  #playerTimeCur { grid-column: 1; }
  .player-progress-wrap { grid-column: 2; }
  #playerTimeDur { grid-column: 3; text-align: right; }
}
