.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 25px;
}
.video-card__media {
  position: relative;
}
.video-card__media img,
.video-card__noposter {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1a1a2e;
  border-radius: 10px;
}
.video-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8rem;
}
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: rgba(102, 52, 121, 0.9);
  cursor: pointer;
}
.video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.video-card__caption {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}
.video-card__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 10px;
}
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.yc-player {
  position: relative;
}
.yc-player .video-card__player {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background: #000;
}

.yc-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.yc-toggle::after {
  /* play */
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.yc-player.is-playing .yc-toggle::after {
  /* pause */
  transform: translate(-50%, -50%);
  border: 0;
  width: 20px;
  height: 22px;
  background: linear-gradient(
    90deg,
    #fff 0 8px,
    transparent 8px 12px,
    #fff 12px 20px
  );
}

.yc-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: height 0.1s;
}
.yc-bar:hover {
  height: 8px;
}
.yc-progress {
  height: 100%;
  width: 0;
  background: #f00;
}

.yc-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.yc-volume-box {
  display: flex;
  align-items: center;
  gap: 6px;
}
.yc-btn {
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  opacity: 0.9;
}
.yc-btn:hover {
  opacity: 1;
}
.yc-mute svg + svg {
  display: none;
}
.yc-player.is-muted .yc-mute svg:first-child {
  display: none;
}
.yc-player.is-muted .yc-mute svg + svg {
  display: inline;
}
.yc-volume {
  width: 70px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.yc-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.yc-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.yc-fs {
  margin-left: auto;
}
.yc-player:fullscreen .video-card__player {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
