:root {
  --terra: #c0442b;
  --terra2: #d9583d;
  --gold: #c9922a;
  --gold2: #e8b84b;
  --m2: #4a1c1c;
}

/* ── Shell ── */
.pcp-shell {
  width: 100%;
  max-width: 100%;
  background: #000;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  font-family: 'Crimson Pro', serif;
}

/* ── Video.js ── */
.pcp-shell .video-js {
  width: 100% !important;
  background: #000;
}

.pcp-shell .video-js .vjs-control-bar {
  display: none !important;
}

.pcp-shell .video-js .vjs-big-play-button {
  width: 68px;
  height: 48px;
  line-height: 48px;
  border-radius: 10px;
  border: none;
  font-size: 1.6rem;
  background: rgba(192, 68, 43, .9);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background .15s, transform .12s;
}

.pcp-shell .video-js:hover .vjs-big-play-button {
  background: var(--terra2);
  transform: translate(-50%, -50%) scale(1.07);
}

.pcp-shell .video-js .vjs-big-play-button .vjs-icon-placeholder::before {
  line-height: 48px;
}

.pcp-shell .video-js .vjs-loading-spinner {
  border-color: var(--terra);
}

.pcp-shell .video-js .vjs-loading-spinner::before,
.pcp-shell .video-js .vjs-loading-spinner::after {
  border-top-color: var(--terra);
}

/* ── Overlay "Start Learning" ── */
.pcp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: pointer;
  transition: opacity 0.3s;
}

.pcp-overlay-play-svg {
  width: 90px;
  height: 90px;
  cursor: pointer;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcp-overlay-play-svg:hover {
  transform: scale(1.15);
}

.pcp-shell.pcp-playing .pcp-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ── Gradient fades ── */
.pcp-fade-top,
.pcp-fade-bot {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity .22s;
}

.pcp-fade-top {
  top: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent);
}

.pcp-fade-bot {
  bottom: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent);
}

.pcp-shell:hover .pcp-fade-top,
.pcp-shell:hover .pcp-fade-bot,
.pcp-shell.pcp-paused .pcp-fade-top,
.pcp-shell.pcp-paused .pcp-fade-bot {
  opacity: 1;
}

/* ── Control bar ── */
.pcp-ctrl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 10px 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s, transform .22s;
}

.pcp-shell:hover .pcp-ctrl,
.pcp-shell.pcp-paused .pcp-ctrl {
  opacity: 1;
  transform: translateY(0);
}

/* Seek bar */
.pcp-seek {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 2px;
}

.pcp-seek-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, .2);
  border-radius: 2px;
  overflow: hidden;
  transition: height .1s;
}

.pcp-seek:hover .pcp-seek-track {
  height: 5px;
}

.pcp-seek-buf {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .3);
  width: 0%;
}

.pcp-seek-prog {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--terra);
  width: 0%;
}

.pcp-seek-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--terra);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .1s;
  pointer-events: none;
}

.pcp-seek:hover .pcp-seek-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.pcp-seek-tip {
  position: absolute;
  bottom: 20px;
  left: 0%;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  font-size: .65rem;
  padding: 2px 6px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pcp-seek:hover .pcp-seek-tip {
  opacity: 1;
}

/* Buttons */
.pcp-btns {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pcp-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  height: 36px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background .14s, color .14s;
  flex-shrink: 0;
}

.pcp-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--gold2);
}

.pcp-btn svg {
  display: block;
}

.pcp-skip {
  width: 38px;
  padding: 0;
}

.pcp-vol {
  display: flex;
  align-items: center;
  height: 36px;
}

.pcp-vol-track {
  width: 0;
  overflow: hidden;
  transition: width .2s;
  display: flex;
  align-items: center;
}

.pcp-vol:hover .pcp-vol-track,
.pcp-vol:focus-within .pcp-vol-track {
  width: 62px;
}

.pcp-vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .28);
  outline: none;
  cursor: pointer;
  accent-color: var(--terra);
  margin: 0 4px;
}

.pcp-vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.pcp-time {
  font-size: .75rem;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .03em;
  padding: 0 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pcp-spacer {
  flex: 1;
}

/* Toast */
.pcp-toast {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(46, 17, 17, .96);
  color: #ecdcca;
  font-size: .75rem;
  padding: 7px 18px;
  border-radius: 18px;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity .22s, transform .22s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}

.pcp-toast.pcp-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}