/* Shared custom YouTube facade (team + treatment detail) */

.ijc-video-player {
  --ijc-vp-blue: #2f6feb;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #0d1c40;
}

.ijc-video-player--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8fc4;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

.ijc-video-player iframe,
.ijc-video-player__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ijc-video-player__facade {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0d1c40;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.ijc-video-player__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ijc-video-player__facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 56, 0.72) 0%, rgba(11, 22, 56, 0.18) 42%, rgba(11, 22, 56, 0.5) 100%);
  pointer-events: none;
}

.ijc-video-player__topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.ijc-video-player__logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
}

.ijc-video-player__name {
  display: block;
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ijc-video-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3d7ef0 0%, var(--ijc-vp-blue) 55%, #2458c7 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 111, 235, 0.4), 0 0 0 5px rgba(47, 111, 235, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ijc-video-player__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.ijc-video-player__facade:hover .ijc-video-player__play,
.ijc-video-player__facade:focus-visible .ijc-video-player__play {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 10px 26px rgba(47, 111, 235, 0.48), 0 0 0 6px rgba(47, 111, 235, 0.18);
}

.ijc-video-player__facade:active .ijc-video-player__play {
  transform: translate(-50%, -50%) scale(0.96);
}

.ijc-video-player__duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(11, 22, 56, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.ijc-video-player.is-playing .ijc-video-player__facade {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden;
}

.ijc-video-player.is-playing .ijc-video-player__frame {
  z-index: 1;
  pointer-events: auto;
}

.ijc-video-player__ctrl {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(145deg, #3d7ef0 0%, var(--ijc-vp-blue) 55%, #2458c7 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 111, 235, 0.4), 0 0 0 5px rgba(47, 111, 235, 0.14);
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.ijc-video-player.is-playing .ijc-video-player__ctrl {
  display: grid;
}

.ijc-video-player.is-playing.is-paused .ijc-video-player__ctrl,
.ijc-video-player.is-playing.is-controls .ijc-video-player__ctrl {
  opacity: 1;
  pointer-events: auto;
}

.ijc-video-player__ctrl svg {
  width: 20px;
  height: 20px;
}

.ijc-video-player__ctrl.is-play svg {
  margin-left: 2px;
}

.ijc-video-player__hit {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ijc-video-player.is-playing .ijc-video-player__hit {
  display: block;
}

.ijc-video-player__fs {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(11, 22, 56, 0.82);
  color: #fff;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.15s ease;
}

.ijc-video-player.is-playing .ijc-video-player__fs {
  display: grid;
}

.ijc-video-player.is-playing.is-paused .ijc-video-player__fs,
.ijc-video-player.is-playing.is-controls .ijc-video-player__fs,
.ijc-video-player.is-playing.is-fs .ijc-video-player__fs {
  opacity: 1;
  pointer-events: auto;
}

.ijc-video-player__fs svg {
  width: 18px;
  height: 18px;
}

.ijc-video-player.is-fs {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

body.ijc-video-player-fs-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ijc-video-player__name {
    font-size: 13px;
  }

  .ijc-video-player__play,
  .ijc-video-player__ctrl {
    width: 44px;
    height: 44px;
    box-shadow: 0 8px 20px rgba(47, 111, 235, 0.4), 0 0 0 4px rgba(47, 111, 235, 0.14);
  }

  .ijc-video-player__play svg,
  .ijc-video-player__ctrl svg {
    width: 18px;
    height: 18px;
  }

  .ijc-video-player__fs {
    width: 38px;
    height: 38px;
    right: 8px;
    bottom: 8px;
  }
}
