.video-feed-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  margin: 0;
  background: #101010;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}
.video-feed-page a { color: inherit; }
.video-feed-page [hidden] { display: none; }
.video-feed-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  padding: max(.6rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) .6rem max(1rem, env(safe-area-inset-left));
  background: #101010;
}
.video-feed-bar .brand { justify-self: start; --brand-size: clamp(1.35rem, 5vw, 1.65rem); }
.video-feed-bar h1 { margin: 0; font-size: .85rem; letter-spacing: 0; }
.video-feed-bar-links { display: grid; justify-items: end; gap: .15rem; font-size: .75rem; text-align: right; }
.video-feed-privacy { color: #ddd; }
.video-feed {
  width: min(100%, 42rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  margin-inline: auto;
  padding: 0;
}
.video-feed-clip {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
}
.video-feed-clip :is(video, .video-feed-poster) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: pan-y;
}
.video-feed-poster { pointer-events: none; }
.video-feed-clip:not([data-ready]) video { opacity: 0; }
.video-feed-clip[data-ready] .video-feed-poster { visibility: hidden; }
.video-feed-details {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1.65rem max(.7rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: linear-gradient(transparent, rgb(0 0 0 / .78));
}
.video-feed-details h2 { font-size: clamp(.92rem, 3.8vw, 1.1rem); line-height: 1.25; letter-spacing: 0; margin: 0; min-width: 0; text-shadow: 0 1px 5px #000; }
.video-feed-details h2 a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.video-feed-page button {
  color: #fff;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.video-feed-page button:focus-visible, .video-feed-page a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-feed-page button:disabled { opacity: .4; cursor: default; }
.video-feed-page .icon { width: 1.3rem; height: 1.3rem; filter: drop-shadow(0 1px 3px #000); }
.video-feed-play, .video-feed-sound, .video-feed-steps button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  place-content: center;
}
.video-feed-play { position: relative; }
.video-feed-play .icon { width: 2.25rem; height: 2.25rem; }
.video-feed-clip video, .video-feed-play, .video-feed-details, .video-feed-reactions { min-width: 0; }
.video-feed-clip[data-playing] .video-feed-play { opacity: 0; }
.video-feed-clip[data-playing] .video-feed-play:is(:hover, :focus-visible) { opacity: 1; }
.video-feed-clip[data-playing] .icon-play, .video-feed-clip:not([data-playing]) .icon-pause,
.video-feed-sound[aria-pressed="false"] .icon-volume, .video-feed-sound[aria-pressed="true"] .icon-mute { display: none; }
.video-feed-actions {
  position: absolute;
  inset-block-end: calc(4.5rem + env(safe-area-inset-bottom));
  inset-inline-end: max(.55rem, env(safe-area-inset-right));
  z-index: 2;
  display: grid;
  gap: .3rem;
}
.video-feed-reactions { display: grid; gap: inherit; }
.video-feed-actions button {
  display: grid;
  width: 2.85rem;
  min-height: 2.75rem;
  padding: .2rem .15rem;
  place-items: center;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px #000, 0 0 3px #000;
}
.video-feed-reactions button { line-height: 1.15; row-gap: .12rem; }
.video-feed-reactions [data-reaction-total] { font-size: .88rem; font-weight: 700; }
.video-feed-reactions [data-reaction-count] { font-size: .64rem; color: #ddd; white-space: nowrap; }
.video-feed-reactions [data-given] [data-reaction-count] { color: #fff; font-weight: 700; }
.video-feed-emoji { font-size: 1.6rem; line-height: 1.12; }
.video-feed-share .icon { width: 1.55rem; height: 1.55rem; }
.video-feed-share-panel {
  position: absolute;
  z-index: 4;
  inset-inline-end: 4rem;
  inset-block-end: 4.5rem;
  display: grid;
  width: min(13.5rem, calc(100% - 5rem));
  max-height: calc(100% - 5.5rem);
  overflow: auto;
  padding: .3rem .6rem;
  background: #171717;
}
.video-feed-share-panel :is(a, button, input) {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  text-align: start;
  color: inherit;
  padding: .35rem;
  text-decoration: none;
}
.video-feed-share-panel :is(a, button):hover { text-decoration: underline; }
.video-feed-share-panel input { width: 100%; background: #292929; border: 0; }
.video-feed-share-panel p { margin: .2rem .35rem .4rem; font-size: .8rem; }
.video-feed-effects { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.video-feed-particle { position: absolute; display: block; aspect-ratio: 1; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .45)); }
.video-feed-empty, .video-feed-more, .video-feed noscript { display: block; margin: 1rem auto; text-align: center; }
.video-feed-more { min-height: 2.75rem; padding: 0 .75rem; scroll-snap-align: end; }
.video-feed-steps { display: none; }
@media (max-height: 520px) {
  .video-feed-actions, .video-feed-reactions { grid-auto-flow: column; }
  .video-feed-actions { inset-block-end: calc(3.75rem + env(safe-area-inset-bottom)); }
  .video-feed-share-panel { inset-inline-end: max(.6rem, env(safe-area-inset-right)); }
}
@media (min-width: 51rem) {
  .video-feed-steps { display: grid; gap: .5rem; position: fixed; inset-inline-start: calc(50% + 22rem); inset-block-start: 50%; }
  .video-feed-steps [data-step="1"] svg { transform: rotate(180deg); }
}
@media (hover: none) {
  .video-feed-clip[data-playing] .video-feed-play:not(:focus-visible) { opacity: 0; }
}
.video-feed-page .mine-data { bottom: max(4.5rem, calc(env(safe-area-inset-bottom) + 4.5rem)); }
.video-feed-page .mine-data-toggle { padding-inline: .35rem; font-size: .75rem; text-decoration: underline; text-shadow: 0 1px 5px #000; }
.video-feed-page #mine-data-panel { background: #171717; border-color: #555; }
.video-feed-page .mine-data-actions button { min-height: 2.75rem; padding: 0 .45rem; border: 1px solid #737373; }
