/* TOC Media player controls (shared by the film page and the trailer embed) */
.pc { position: relative; outline: none; }
.pc:focus-visible { outline: 2px solid #E6C98F; outline-offset: 3px; }
.pc.pc-idle, .pc.pc-idle video { cursor: none; }

/* Control bar: hidden until playback starts, fades away while watching */
.pc-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 36px 16px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .8) 100%);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.pc.pc-active .pc-bar { opacity: 1; visibility: visible; }
.pc.pc-active.pc-idle .pc-bar { opacity: 0; visibility: hidden; }

.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-group { display: flex; align-items: center; gap: 2px; min-width: 0; }

.pc-btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 6px; padding: 0;
  background: transparent; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.pc-btn:hover { background: rgba(255, 255, 255, .12); color: #F1DAA8; }
.pc-btn:focus-visible { outline: 2px solid #E6C98F; outline-offset: 1px; }
.pc-btn svg { width: 24px; height: 24px; }
.pc-play svg { width: 28px; height: 28px; }
.pc-btn[aria-expanded="true"] { color: #E6C98F; }
.pc-btn[aria-expanded="true"] svg { transform: rotate(45deg); transition: transform .25s ease; }

.pc-time {
  margin-left: 10px; color: #E4E7EC; white-space: nowrap;
  font: 600 14px/1 "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Range inputs (seek + volume) */
.pc-range {
  --pct: 0%;
  -webkit-appearance: none; appearance: none; margin: 0; background: transparent; cursor: pointer;
}
.pc-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #E6C98F var(--pct), rgba(255, 255, 255, .28) var(--pct));
}
.pc-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.pc-range::-moz-range-progress { height: 4px; border-radius: 2px; background: #E6C98F; }
.pc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.pc-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.pc-range:focus-visible { outline: 2px solid #E6C98F; outline-offset: 4px; }

.pc-seek { position: relative; height: 18px; display: flex; align-items: center; margin: 0 6px 4px; }
.pc-seek-range { position: relative; z-index: 1; width: 100%; height: 18px; }
.pc-seek-range::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #E6C98F var(--pct), transparent var(--pct));
}
.pc-buffered {
  position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; width: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .45); pointer-events: none;
}
.pc-seek::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  border-radius: 2px; background: rgba(255, 255, 255, .22); pointer-events: none;
}
.pc-seek:hover .pc-seek-range::-webkit-slider-runnable-track { height: 6px; }
.pc-seek:hover .pc-seek-range::-webkit-slider-thumb { margin-top: -4px; }
.pc-tip {
  position: absolute; bottom: 24px; left: 0; transform: translateX(-50%);
  padding: 4px 8px; border-radius: 4px; background: rgba(11, 12, 15, .92); color: #fff;
  font: 600 13px/1 "Barlow", Arial, sans-serif; font-variant-numeric: tabular-nums;
  pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
.pc-seek.pc-hover .pc-tip { opacity: 1; }

.pc-volume { width: 84px; height: 18px; margin: 0 4px 0 2px; }

/* Settings menu */
.pc-menu {
  position: absolute; right: 16px; bottom: 76px; z-index: 3;
  display: flex; gap: 4px; padding: 10px; max-height: calc(100% - 96px); overflow-y: auto;
  background: rgba(11, 12, 15, .96); border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.pc-col { display: flex; flex-direction: column; min-width: 118px; }
.pc-head {
  margin: 4px 10px 6px; color: #E6C98F;
  font: 700 12px/1.2 "Barlow Condensed", "Arial Narrow", Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase;
}
.pc-item {
  position: relative; text-align: left; border: 0; border-radius: 4px; cursor: pointer;
  padding: 8px 10px 8px 30px; min-height: 36px; background: transparent; color: #E4E7EC;
  font: 500 14px/1.2 "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; white-space: nowrap;
}
.pc-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.pc-item:focus-visible { outline: 2px solid #E6C98F; outline-offset: -2px; }
.pc-item[aria-checked="true"] { color: #fff; font-weight: 600; }
.pc-item[aria-checked="true"]::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 5px; margin-top: -4px;
  border-left: 2px solid #E6C98F; border-bottom: 2px solid #E6C98F; transform: rotate(-45deg);
}

/* Buffering spinner */
.pc.pc-loading.pc-active::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #E6C98F;
  animation: pc-spin .9s linear infinite; pointer-events: none;
}
@keyframes pc-spin { to { transform: rotate(360deg); } }

/* Full screen: the frame fills the screen */
.pc:fullscreen { width: 100%; height: 100%; border-radius: 0; background: #000; }
.pc:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; background: #000; }

/* Small players and phones */
@media (max-width: 640px) {
  .pc-bar { padding: 28px 8px 6px; }
  .pc-btn { width: 40px; height: 40px; }
  .pc-volume, .pc-pip { display: none; }
  .pc-time { margin-left: 4px; font-size: 13px; }
  .pc-menu { right: 8px; bottom: 64px; }
  .pc-col { min-width: 100px; }
}
@media (max-width: 380px) {
  .pc-back, .pc-fwd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-bar, .pc-btn, .pc-tip { transition: none; }
  .pc.pc-loading.pc-active::after { animation-duration: 2.5s; }
}
