.video-shell {
  border: 4px solid #ed1b34;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #ed1b3440, 0 8px 26px #0008;
}

.video-shell video {
  border-radius: 9px;
}

.video-player-share {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #ffffff52;
  border-radius: 999px;
  background: #080808d9;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.video-player-share:hover {
  background: #ed1b34;
}

.video-player-share:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.video-player-share:disabled {
  opacity: 0.7;
  cursor: wait;
}

.video-player-share-status:not(:empty) {
  position: absolute;
  z-index: 2;
  top: 66px;
  left: 12px;
  right: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 6px;
  background: #080808eF;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}

.video-quality {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 24px);
  padding: 4px;
  border: 1px solid #ffffff36;
  border-radius: 999px;
  background: #080808d9;
  box-shadow: 0 2px 12px #0008;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.video-quality button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 11px;
  background: transparent;
  color: #eee;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.video-quality button:hover:not(:disabled) {
  background: #ffffff20;
}

.video-quality button[aria-pressed='true'] {
  border-color: #ffffff52;
  background: #ed1b34;
  color: #fff;
  box-shadow: 0 1px 5px #0006;
}

.video-quality button:focus-visible,
.video-error button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.video-quality button:disabled {
  cursor: wait;
}

.video-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: #261c13;
}

.video-error p {
  margin: 0;
}

.video-error button {
  min-height: 44px;
  border: 1px solid #555;
  border-radius: 2px;
  padding: 7px 12px;
  background: #141414;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

.video-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  align-items: center;
  gap: 24px;
  margin: 20px 0;
  padding: 26px;
  border: 1px solid #ed1b3466;
  border-left: 4px solid #ed1b34;
  border-radius: 12px;
  background: linear-gradient(120deg, #261015, #141414 75%);
}

.video-share h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 12px;
}

.video-share p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.video-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid #ff5367;
  border-radius: 6px;
  background: #ed1b34;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.video-share-button:hover {
  background: #c71329;
}

.video-share-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.video-share-button:focus-visible,
.video-share-link input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.video-share .video-share-status:not(:empty),
.video-share-link {
  margin-top: 12px;
  font-size: 16px;
}

.video-share-link label {
  display: block;
}

.video-share-link input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #080808;
  color: #fff;
  font: inherit;
}

@media print {
  .video-share {
    display: none;
  }
}

@media (max-width: 640px) {
  .video-player-share {
    top: 8px;
    left: 8px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .video-share {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 16px;
  }

  .video-shell {
    border-width: 3px;
    border-radius: 11px;
  }

  .video-shell video {
    border-radius: 7px;
  }

  .video-quality {
    top: 8px;
    right: 8px;
    gap: 1px;
    padding: 3px;
  }

  .video-quality button {
    min-width: 40px;
    min-height: 34px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .video-error {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .video-player-share {
    width: 44px;
    font-size: 0;
    gap: 0;
  }
}
