:root {
  --pl-bg: #F8FAFC;
  --pl-surface: #FFFFFF;
  --pl-text: #111827;
  --pl-text-secondary: #6B7280;
  --pl-text-muted: #9CA3AF;
  --pl-border: #E5E7EB;
  --pl-border-light: #F3F4F6;
  --pl-primary: #4F46E5;
  --pl-primary-hover: #4338CA;
  --pl-primary-light: rgba(79, 70, 229, 0.06);
  --pl-success: #10B981;
  --pl-warning: #F59E0B;
  --pl-danger: #EF4444;
  --pl-radius: 20px;
  --pl-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --pl-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --pl-shadow-lg: 0 12px 40px -12px rgba(0, 0, 0, 0.12);
  --pl-max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--pl-bg);
  color: var(--pl-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: plFade .4s ease;
}

@keyframes plFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Sticky Header ── */
.pl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 72px;
  padding: 0 1.5rem;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pl-header.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.pl-header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: transparent;
  padding: 10px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--pl-text);
  text-decoration: none;
  flex-shrink: 0;
}

.pl-header-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pl-header-back:active {
  transform: scale(0.94);
}

.pl-header-back svg {
  transition: transform 0.25s ease;
}

.pl-header-back:hover svg {
  transform: translateX(-2px);
}

.pl-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pl-header-title {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pl-text);
  letter-spacing: -0.01em;
}

.pl-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.pl-badge-free {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.18);
}

.pl-badge-enrolled {
  background: var(--pl-primary-light);
  color: var(--pl-primary);
  border-color: rgba(79, 70, 229, 0.18);
}

.pl-header-limit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.08);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.18);
  flex-shrink: 0;
}

/* ── Main ── */
.pl-main {
  flex: 1;
  padding: 24px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--pl-max-width);
}

/* ── Player Card ── */
.pl-player-card {
  background: var(--pl-surface);
  border-radius: var(--pl-radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  animation: plFadeUp 0.35s ease both;
}

/* Player wrap maintains crisp 16:9 ratio */
.pl-player-wrap {
  position: relative;
  background: #000;
  width: 100%;
  max-height: 85vh;
  aspect-ratio: 16 / 9;
}

/* Fullscreen & Landscape container override */
.pl-player-wrap:fullscreen,
.pl-player-wrap:-webkit-full-screen,
.pl-player-wrap:-moz-full-screen,
.pl-player-wrap:-ms-fullscreen,
.pl-player-wrap.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  z-index: 99999 !important;
  background: #000 !important;
}

.pl-player-wrap:fullscreen .pl-video-box,
.pl-player-wrap:-webkit-full-screen .pl-video-box,
.pl-player-wrap:-moz-full-screen .pl-video-box,
.pl-player-wrap:-ms-fullscreen .pl-video-box,
.pl-player-wrap.is-fullscreen .pl-video-box {
  width: 100% !important;
  height: 100% !important;
}

.pl-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  /* No GPU-compositing hacks here (translateZ/backface/image-rendering) —
     they force the video layer onto a separate compositor surface that can
     render blurry, especially on Windows. Keep the iframe a plain element so
     the video renders at native sharpness. */
}

/* ── Video Layer (rotatable) ── */
.pl-video-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

/* ── Placeholder ── */
.pl-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0f1117 0%, #161922 100%);
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.35s ease;
}

.pl-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.pl-placeholder-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 65%);
  animation: plGlowPulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes plGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.pl-placeholder > *:not(.pl-placeholder-glow) {
  position: relative;
  z-index: 1;
}

.pl-play-btn {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: var(--pl-primary);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.pl-play-btn:hover {
  transform: scale(1.08);
  background: var(--pl-primary-hover);
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.35);
}

.pl-play-btn:active {
  transform: scale(0.92);
}

.pl-play-btn i {
  margin-left: 4px;
}

.pl-play-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(79, 70, 229, 0.12);
  animation: plRipple 3s ease-out infinite;
  pointer-events: none;
}

@keyframes plRipple {
  0% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.pl-play-btn:hover::after {
  opacity: 0;
}

.pl-placeholder-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.pl-placeholder-sub {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Loading ── */
.pl-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 17, 23, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pl-loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pl-loading-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top-color: var(--pl-primary);
  animation: plSpin 0.5s linear infinite;
}

@keyframes plSpin {
  to { transform: rotate(360deg); }
}

/* ── Error ── */
.pl-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f1117;
  z-index: 2;
  padding: 2rem;
  text-align: center;
}

.pl-error-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(239, 68, 68, 0.08);
  color: var(--pl-danger);
  margin-bottom: 0.65rem;
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.pl-error h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.pl-error p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
  max-width: 320px;
  line-height: 1.5;
}

/* ── Custom Controls ── */
.pl-custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.85) 100%);
  padding: 1.5rem 1rem 0.7rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.pl-custom-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.pl-cc-progress {
  width: 100%;
  margin-bottom: 0.6rem;
  cursor: pointer;
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.pl-cc-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: visible;
  transition: height 0.12s ease;
}

.pl-cc-progress:hover .pl-cc-progress-track {
  height: 7px;
}

.pl-cc-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--pl-primary);
  transition: width 0.1s linear;
  position: relative;
}

/* While the student is scrubbing, update the bar instantly (no transition lag) */
.pl-cc-progress.scrubbing .pl-cc-progress-fill {
  transition: none;
}

.pl-cc-progress-thumb {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.12s ease;
}

.pl-cc-progress:hover .pl-cc-progress-thumb,
.pl-cc-progress.scrubbing .pl-cc-progress-thumb,
.pl-cc-progress:active .pl-cc-progress-thumb {
  opacity: 1;
}

.pl-cc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.pl-cc-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pl-cc-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pl-cc-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  font-size: 0.92rem;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.pl-cc-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.pl-cc-btn:active {
  transform: scale(0.95);
}

.pl-cc-time {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  min-width: 72px;
}

.pl-cc-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pl-cc-volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.18s ease, opacity 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
  touch-action: none;
}

.pl-cc-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.pl-cc-volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

.pl-cc-volume-wrap:hover .pl-cc-volume-slider,
.pl-cc-volume-slider:focus {
  width: 50px;
  opacity: 1;
}

.pl-cc-quality-wrap {
  position: relative;
}

.pl-cc-quality-label {
  display: block;
  font-size: 0.52rem;
  font-weight: 700;
  text-align: center;
  line-height: 1;
  margin-top: 1px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* Stack quality icon and label vertically */
#vpQualityBtn {
  flex-direction: column;
  gap: 1px;
  font-size: 0.8rem;
}

#vpQualityBtn i {
  font-size: 0.82rem;
}

.pl-cc-quality-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.25rem;
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.2rem;
  min-width: 110px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pl-cc-quality-menu-item {
  display: block;
  width: 100%;
  padding: 0.35rem 0.65rem;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.12s ease, color 0.12s ease;
}

.pl-cc-quality-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.pl-cc-quality-menu-item.active {
  color: #818CF8;
  background: rgba(79, 70, 229, 0.08);
}

.pl-cc-quality-menu-item.recommended {
  color: rgba(255, 255, 255, 0.85);
}

.pl-wm-default-star {
  color: #fbbf24;
  font-size: 0.65rem;
  margin-left: 2px;
  vertical-align: middle;
}

.pl-cc-quality-menu-item.recommended.active {
  color: #818CF8;
}

/* ── Top Mask Overlay (Disables YouTube Share/Watch Later/Title buttons) ── */
.pl-top-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 12;
  pointer-events: auto;
  cursor: default;
  background: transparent;
}

/* ── Click Overlay ── */
.pl-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  background: transparent;
  pointer-events: auto;
  display: none;
}

.pl-click-overlay.active {
  display: block;
}

/* ── End Screen Overlay ── */
.pl-end-screen {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: linear-gradient(160deg, #0d0f14 0%, #111520 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pl-end-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.pl-end-screen-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 2rem;
}

.pl-end-icon {
  font-size: 2.8rem;
  color: #10B981;
  animation: plFadeUp 0.5s ease both;
}

.pl-end-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  animation: plFadeUp 0.5s ease 0.1s both;
}

.pl-end-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  max-width: 320px;
  animation: plFadeUp 0.5s ease 0.15s both;
}

.pl-end-replay {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pl-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(79,70,229,0.3);
  animation: plFadeUp 0.5s ease 0.2s both;
}

.pl-end-replay:hover {
  background: var(--pl-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(79,70,229,0.4);
}

.pl-end-replay:active {
  transform: scale(0.96);
}

/* ── Watermark ── */
.pl-watermark {
  display: none !important;
  position: absolute;
  z-index: 15;
  pointer-events: none;
  top: 12%;
  right: 4%;
  animation: wmDrift 30s ease-in-out infinite alternate;
}

@keyframes wmDrift {
  0%   { top: 10%; right: 4%;  }
  25%  { top: 60%; right: 55%; }
  50%  { top: 15%; right: 10%; }
  75%  { top: 70%; right: 4%;  }
  100% { top: 10%; right: 50%; }
}

.pl-watermark-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.pl-watermark-inner:hover {
  opacity: 0.75;
}

.pl-wm-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.pl-wm-email {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.pl-wm-time {
  font-size: 0.65rem;
  font-weight: 700;
  color: #a5b4fc;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

@media (max-width: 640px) {
  .pl-watermark-inner {
    padding: 4px 8px;
    gap: 1px;
  }
  .pl-wm-name  { font-size: 0.65rem; }
  .pl-wm-email { font-size: 0.58rem; }
  .pl-wm-time  { font-size: 0.55rem; }
}

/* ── Content Below Video ── */
.pl-content {
  padding: 28px;
  border-radius: 0 0 var(--pl-radius) var(--pl-radius);
  background: var(--pl-surface);
  animation: plFadeUp 0.35s ease both;
  animation-delay: 0.08s;
}

.pl-video-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--pl-text);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

.pl-course-name {
  font-size: 16px;
  color: var(--pl-text-secondary);
  margin-top: 6px;
  font-weight: 400;
}

.pl-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--pl-border-light);
}

.pl-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: #FFFFFF;
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pl-text-secondary);
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: default;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.pl-info-badge:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.12);
}

.pl-info-badge .pl-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  font-size: 0.95rem;
  background: #EEF2FF;
  color: #4F46E5;
}

.pl-info-badge.badge-duration .pl-badge-icon {
  background: #FEF3C7;
  color: #D97706;
}

.pl-info-badge.badge-date .pl-badge-icon {
  background: #D1FAE5;
  color: #059669;
}

/* Views badge has no icon — even out its padding */
.pl-info-badge.badge-views {
  padding-left: 16px;
}

.pl-info-badge .pl-badge-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.pl-info-badge .pl-badge-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--pl-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.pl-info-badge .pl-badge-label {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pl-text-muted);
}

.pl-info-badge.danger .pl-badge-value {
  color: #B91C1C;
}

/* ── Hidden Data Containers ── */
.pl-hidden {
  display: none;
}

/* ── Animations ── */
@keyframes plFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes plFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pl-player-wrap {
  animation: plFadeIn 0.4s ease both;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .pl-header {
    padding: 0 1rem;
    height: 62px;
  }

  .pl-main {
    padding: 16px;
  }

  .pl-player-card {
    border-radius: 14px;
  }

  .pl-content {
    padding: 22px 20px;
  }

  .pl-video-title {
    font-size: 26px;
  }

  .pl-course-name {
    font-size: 14px;
  }

  .pl-info-badge {
    font-size: 13px;
    padding: 8px 12px 8px 8px;
  }

  .pl-info-badge .pl-badge-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .pl-play-btn {
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
  }

  .pl-placeholder-glow {
    width: 300px;
    height: 300px;
  }

  .pl-header-title {
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .pl-header {
    padding: 0 0.65rem;
    height: 56px;
  }

  .pl-header-title {
    font-size: 0.82rem;
  }

  .pl-header-back {
    padding: 8px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .pl-header-back svg {
    width: 14px;
    height: 14px;
  }

  .pl-main {
    padding: 12px;
  }

  .pl-player-card {
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
  }

  .pl-content {
    padding: 18px 16px;
    border-radius: 0 0 16px 16px;
  }

  .pl-video-title {
    font-size: 20px;
  }

  .pl-course-name {
    font-size: 13px;
    margin-top: 4px;
  }

  .pl-info-row {
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
  }

  .pl-info-badge {
    font-size: 12px;
    gap: 10px;
    padding: 8px 12px 8px 8px;
  }

  .pl-info-badge .pl-badge-icon {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .pl-info-badge .pl-badge-value {
    font-size: 13px;
  }

  .pl-info-badge .pl-badge-label {
    font-size: 10px;
  }

  .pl-play-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .pl-placeholder-glow {
    width: 220px;
    height: 220px;
  }

  .pl-placeholder-text {
    font-size: 0.85rem;
  }

  .pl-cc-volume-slider {
    display: none;
  }

  .pl-cc-time {
    font-size: 0.78rem;
    min-width: 64px;
  }

  .pl-cc-btn {
    width: 40px;
    height: 40px;
    font-size: 0.98rem;
  }

  /* Bigger scrub target on phones — easy to drag forward/backward */
  .pl-cc-progress {
    height: 26px;
    margin-bottom: 0.4rem;
  }

  .pl-cc-progress-track {
    height: 6px;
  }

  .pl-cc-progress:hover .pl-cc-progress-track {
    height: 7px;
  }

  .pl-cc-progress-thumb {
    width: 16px;
    height: 16px;
  }
}