@charset "UTF-8";

#input:checked ~ #content {
  transform: translateX(0px);
}

.headline {
  background: url(images/video.jpeg) no-repeat center center / cover;
  background-color: rgba(246, 248, 249, 0.8);
  background-blend-mode: lighten;
  font-size: 2.75rem;
  font-weight: bold;
  padding: 100px 20px 60px;
  text-align: center;
  margin-top: 0;
  animation: fadein 3s forwards;
}

.headlinesp {
  display: none;
}

@keyframes fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@media screen and (max-width: 768px) {
  .headline {
    display: none;
  }

  .headlinesp {
    display: block;
    background: url(images/video.jpeg) no-repeat center center / cover;
    background-color: rgba(246, 248, 249, 0.8);
    background-blend-mode: lighten;
    font-size: 1.75rem;
    font-weight: bold;
    padding: 80px 20px 60px;
    text-align: center;
    margin-top: 0;
  }
}

@media screen and (max-width: 480px) {
  .headlinesp {
    font-size: 1.25rem;
    padding: 60px 15px 40px;
  }
}

.video-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #222222;
  margin-bottom: 50px;
  letter-spacing: 0.08em;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #D34325;
  margin: 16px auto 0;
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 35px;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

@media screen and (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.video-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #D34325;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.video-card:hover::before {
  transform: scaleX(1);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  cursor: pointer;
}

.video-wrapper,
.video-wrapper * {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
  z-index: 3;
}

.play-button svg {
  margin-left: 3px;
  fill: #ffffff;
}

.video-card:not(.is-playing):hover .play-button {
  transform: translate(-50%, -50%) scale(1.05);
  background-color: #D34325;
  opacity: 0.9;
}

.video-card.is-playing .play-button {
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 480px) {
  .play-button {
    width: 52px;
    height: 52px;
  }
  .play-button svg {
    width: 22px;
    height: 22px;
  }
}

.speed-badge {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, background-color 0.2s;
  z-index: 10;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-card.is-speeding .speed-badge {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.video-card.is-locked .speed-badge {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  background-color: #D34325;
  pointer-events: auto !important;
  cursor: pointer;
}

.video-card.is-locked .speed-badge:active {
  transform: translateX(-50%) scale(0.95);
}

.video-info {
  padding: 22px 24px;
  background-color: #ffffff;
}

.video-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #222222;
  line-height: 1.5;
  letter-spacing: 0.03em;
  padding-left: 14px;
  border-left: 3px solid #D34325;
}

@media screen and (max-width: 480px) {
  .video-title {
    font-size: 1.1rem;
    padding-left: 10px;
  }
}