*,
*::before,
*::after {
  box-sizing: border-box;
}

button {
  outline: none;
  border: 0;
}

html,
body {
  background-color: #f5f8ff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.video-wrapper {
  width: 100%;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  background-color: #000;
  position: relative;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.overlay {
  display: flex;
  align-items: center;
  justify-self: center;
  position: absolute;
  background-color: #000000;
  z-index: 1;
  inset: 0;
  height: 100%;
  width: 100%;
  opacity: 0.64;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.container {
  max-width: 1050px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 32px;
  height: 100vh;
  height: 100dvh;
  padding: 14px 16px 80px;
}

.buttons {
  width: 100%;
  display: flex;
  gap: 12px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  background: #ffffff40;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #ffffff26;
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(160, 173, 205, 0.24),
    inset 0 0 12px rgba(255, 255, 255, 0.15);
}

.btn span {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.btn {
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px 14px 10px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0px 4px 6px rgba(160, 173, 205, 0.24);
  flex: 1;
  position: relative;
  transition: filter 0.3s ease-out;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: linear-gradient(#4591fc 16.5%, #6dadf8 101.15%);
  transition: filter 0.3s ease-out;
  box-shadow: 0 6px 12px -5px #3a89fdbf;
}

.btn-primary {
  background: linear-gradient(#25d357 16.5%, #75ff9d 101.15%);
  transition: filter 0.3s ease-out;
  box-shadow: 0 6px 12px -5px #6fdd8e;
}

.btn-secondary::before {
  content: "";
  pointer-events: none;
  inset: 3px;
  background: linear-gradient(89.3deg, #4e97fb 32.5%, #6bacf9 90%);
  border-radius: 10px;
  position: absolute;
}

.btn-primary::before {
  content: "";
  pointer-events: none;
  inset: 3px;
  background: linear-gradient(89.3deg, #25d357 32.5%, #75ff9d 90%);
  border-radius: 10px;
  position: absolute;
}

.play-btn {
  margin: auto;
  cursor: pointer;
  background-color: #fff;
  outline: none;
  border: 0;
  box-shadow: none;
  height: 80px;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: all 0.3s ease-out;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 10;
  margin: auto;
}

.play-btn img {
  position: relative;
  left: 1px;
}

.play-btn:hover {
  scale: 1.1;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 32px 24px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.controls-btn {
  margin: 0;
  background: none;
  height: auto;
  width: auto;
  border-radius: 0;
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.controls-btn img {
  left: 0;
  display: block;
}

.controls-btn:hover {
  scale: 1;
  opacity: 0.8;
}

.progress {
  flex: 1;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: #fff;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

.time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

svg {
  position: absolute;
  top: -40px;
  left: 12px;
  overflow: visible;
}

/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 0;
    gap: 16px;
  }

  .video-wrapper video {
    position: relative;
    bottom: 80px;
  }

  .video-wrapper .play-btn {
    bottom: 160px;
  }

  .buttons {
    flex-direction: column;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background-color: #ffffff60;
  }
  /*
  .video-wrapper {
    margin-bottom: -44px;
  } */
}
