body.shorts-watch {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  margin: 0;
  background: #101012;
}

.shorts-watch-header {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: env(safe-area-inset-top, 0) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid #ffffff14;
  background: #101012;
}

.shorts-watch-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #f5f5f7;
  font-weight: 600;
}

.shorts-watch-back svg {
  width: 18px;
  height: 18px;
}

[dir="rtl"] .shorts-watch-back svg {
  transform: scaleX(-1);
}

.shorts-watch-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.shorts-watch-empty {
  margin: auto;
  padding: 20px;
  text-align: center;
}

.shorts-watch-local {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  position: relative;
  background: #101012;
}

.shorts-watch-local video {
  width: 100%;
  height: 100%;
}

.shorts-watch-local label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
}

.shorts-watch-local select {
  min-height: 36px;
  min-width: 60px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
}

.shorts-watch-local p {
  position: absolute;
  inset-inline: 16px;
  top: 40%;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.shorts-watch-header {
  justify-content: space-between;
  gap: 16px;
}

.shorts-watch-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}
