:root {
  --shell-width: min(100%, 430px);
  --video-height: 300px;
  --accent: #ff3a55;
  --brand: #ff2442;
  --text-main: #222222;
  --text-sub: #8a8d96;
  --line: #eef0f4;
  --panel-radius: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

html.is-fullscreen-scroll-locked,
body.is-fullscreen-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.is-fullscreen-scroll-locked {
  background: #000;
}

body.is-fullscreen-scroll-locked::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #000;
  pointer-events: none;
}

body.is-locked {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus,
button:focus-visible,
input:focus,
input:focus-visible {
  outline: none;
}

.share-shell {
  width: var(--shell-width);
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  color: var(--text-main);
  position: relative;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
}

.video-stage {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: var(--shell-width);
  height: var(--video-height);
  transform: translate3d(-50%, 0, 0);
  transform-origin: top center;
  clip-path: inset(0 0 var(--stage-clip-bottom, 0px) 0);
  overflow: hidden;
  background: #000;
  touch-action: none;
  backface-visibility: hidden;
  contain: layout paint style;
  isolation: isolate;
  will-change: height, transform;
}

.video-stage.is-fullscreen {
  z-index: 80;
  height: 100svh;
}

.video-stage.is-fullscreen-transitioning {
  z-index: 80;
}

.video-stage.is-gesture-resizing {
  transition: none !important;
}

.video-stage.is-height-animating {
  transition: height 220ms ease;
}

.video-stage.is-fullscreen-transitioning.is-height-animating {
  transition: height 220ms ease;
}

.video-stage.is-fullscreen-exit-dragging {
  transition: none !important;
}

.video-stage.is-fullscreen-exit-dragging .video-controls,
.video-stage.is-fullscreen-transitioning .video-controls,
.video-stage.is-fullscreen-exit-returning .video-controls {
  pointer-events: none !important;
}

.video-stage.is-fullscreen-exit-returning {
  transition: height 220ms ease;
}

.fullscreen-video-layer {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  background: #000;
  overflow: hidden;
  pointer-events: none;
  touch-action: none;
  overscroll-behavior: none;
  backface-visibility: hidden;
  contain: layout paint style;
  isolation: isolate;
  transform: translateZ(0);
  will-change: transform;
}

.fullscreen-video-layer.is-visible {
  display: block;
  pointer-events: auto;
}

.fullscreen-video-layer .video-stage {
  z-index: 1;
  transform: translate3d(-50%, 0, 0);
}

.fullscreen-video-layer .video-stage.is-fullscreen,
.fullscreen-video-layer .video-stage.is-fullscreen-transitioning {
  z-index: 1;
}

.video-frame {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  backface-visibility: hidden;
  contain: layout paint style;
  transform: translateZ(0);
}

.style-swipe-track {
  width: 100%;
  height: 100%;
  display: flex;
  transform: translate3d(calc(-100% + var(--style-drag-offset, 0px)), 0, 0);
  transition: transform 220ms ease;
  backface-visibility: hidden;
  will-change: transform;
}

.style-swipe-track.is-dragging,
.style-swipe-track.is-resetting {
  transition: none;
}

.video-cover {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

.video-top-scrim,
.video-bottom-scrim {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.video-top-scrim {
  top: 0;
  height: 96px;
  background: linear-gradient(180deg, rgb(0 0 0 / 40%), rgb(0 0 0 / 0%));
}

.video-bottom-scrim {
  bottom: 0;
  height: 118px;
  background: linear-gradient(0deg, rgb(0 0 0 / 80%), rgb(0 0 0 / 0%));
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-stage.has-controls .video-bottom-scrim,
.video-stage.is-fullscreen .video-bottom-scrim {
  opacity: 1;
}

.round-icon {
  width: 34px;
  height: 34px;
  border-radius: 16px;
  background: rgb(0 0 0 / 40%);
  display: grid;
  place-items: center;
  padding: 0;
}

.round-icon img {
  width: 24px;
  height: 24px;
  display: block;
}

.video-back {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 5px);
  left: 16px;
  z-index: 5;
}

.plain-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.plain-icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.play-toggle img {
  width: 16px;
  height: 16px;
}

.style-mute-toggle {
  position: relative;
  margin-left: 4px;
}

.style-mute-toggle img {
  width: 22px;
  height: 22px;
}

.style-mute-toggle.is-muted::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 23px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 35%);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

.fullscreen-toggle {
  margin-left: 4px;
}

.video-title {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(var(--stage-clip-bottom, 0px) + 58px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-controls {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--stage-clip-bottom, 0px) + 12px);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.video-stage button,
.video-stage input,
.video-stage .video-controls,
.video-stage .video-controls * {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.video-stage.has-controls .video-controls,
.video-stage.is-fullscreen .video-controls,
.video-stage.has-controls .video-title,
.video-stage.is-fullscreen .video-title {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.video-stage.is-quiet .play-toggle,
.video-stage.is-quiet .time-text,
.video-stage.is-quiet .progress-input,
.video-stage.is-quiet .video-title {
  opacity: 0;
  pointer-events: none;
}

.video-stage.is-quiet .video-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.video-stage.is-quiet .fullscreen-toggle {
  margin-left: 4px;
}

.time-text {
  width: 40px;
  color: rgb(255 255 255 / 90%);
  font-size: 11px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
}

.progress-input {
  flex: 1;
  height: 24px;
  margin: 0 4px;
  accent-color: var(--accent);
}

.progress-input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--progress, 0%), rgb(255 255 255 / 40%) var(--progress, 0%));
}

.progress-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
}

.progress-input {
  appearance: none;
  background: transparent;
}

.style-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--stage-clip-bottom, 0px) + 2px);
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.style-dots i {
  width: 5px;
  height: 5px;
  border-radius: 5px;
  background: rgb(255 255 255 / 40%);
  transition: width 160ms ease, background-color 160ms ease;
}

.style-dots i.is-active {
  width: 18px;
  background: #fff;
}

.center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgb(0 0 0 / 40%);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.center-play img {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-stage:not(.is-playing) .center-play {
  opacity: 1;
  pointer-events: auto;
}

.video-stage:not(.is-playing) .video-bottom-scrim {
  opacity: 1;
}

.speed-hint {
  position: absolute;
  left: 50%;
  bottom: 15px;
  height: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.speed-hint.is-visible {
  opacity: 1;
}

.speed-hint span {
  width: 16px;
  height: 16px;
  display: block;
  background: url("./assets/icon-play.svg") center / 14px 14px no-repeat;
}

.pull-fullscreen-hint {
  position: absolute;
  left: 50%;
  bottom: 72px;
  z-index: 6;
  min-width: 86px;
  height: 30px;
  padding: 0 14px;
  border-radius: 16px;
  transform: translateX(-50%) translateY(14px) scale(.96);
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 46%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%);
  transition: opacity 120ms ease, transform 120ms ease;
}

.pull-fullscreen-hint.is-visible {
  opacity: var(--pull-hint-alpha, 1);
  transform: translateX(-50%) translateY(var(--pull-hint-y, 0)) scale(var(--pull-hint-scale, 1));
}

.content-flow {
  width: var(--shell-width);
  min-height: 100vh;
  padding-top: calc(var(--video-height) - var(--panel-radius));
  margin: 0 auto;
  position: relative;
  z-index: 25;
  pointer-events: none;
}

.content-flow.is-gesture-resizing {
  transition: none !important;
}

.content-flow.is-height-animating {
  transition: padding-top 220ms ease;
}

.content-flow.is-preview-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.content-flow.is-under-video {
  z-index: 25;
}

.content-flow.is-fullscreen-exit-content {
  z-index: 90;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}

.content-flow.is-fullscreen-exit-content .content-panel {
  pointer-events: none;
}

.content-panel {
  min-height: calc(100vh - 196px);
  background: #fff;
  border-radius: var(--panel-radius) var(--panel-radius) 0 0;
  overflow: hidden;
  pointer-events: auto;
}

.base-info {
  padding-top: 16px;
}

h1 {
  margin: 0;
  padding: 0 16px;
  color: var(--text-main);
  font-size: 21px;
  line-height: 25px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 0;
}

.author {
  min-width: 0;
  flex: 1;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  text-align: left;
}

.author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  flex: 0 0 auto;
}

.author span {
  min-width: 0;
  margin-left: 8px;
  display: flex;
  flex-direction: column;
}

.author strong {
  color: #333;
  font-size: 14px;
  line-height: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author em {
  margin-top: 4px;
  color: var(--text-sub);
  font-style: normal;
  font-size: 11px;
  line-height: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-button {
  min-width: 64px;
  height: 30px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.follow-button.is-followed {
  background: #f2f3f5;
  color: #6b6f7a;
}

.action-row {
  height: 42px;
  margin: 14px 16px 0;
  display: flex;
  align-items: center;
}

.action-row b {
  width: 1px;
  height: 28px;
  background: var(--line);
  flex: 0 0 auto;
}

.action-button {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2329;
  font-size: 14px;
  font-weight: 800;
  border-radius: 18px;
  line-height: 18px;
}

.action-button img {
  width: 21px;
  height: 21px;
  margin-right: 7px;
  object-fit: contain;
}

.action-button > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.action-label {
  color: #1f2329;
  font-weight: 800;
  white-space: nowrap;
}

.action-count {
  color: #1f2329;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.action-count.is-like {
  color: #ff2442;
}

.action-count.is-collection {
  color: #f5a524;
}

.action-count.is-share {
  color: #667085;
}

.action-button.is-pulsing img {
  animation: iconPulse 310ms ease;
}

.action-button.is-pulsing span {
  animation: textPulse 260ms ease 40ms;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  36% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes textPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.divider {
  height: 1px;
  margin: 18px 16px 0;
  background: var(--line);
}

.inline-tabs,
.sticky-tabs {
  height: 44px;
  display: flex;
  align-items: center;
  background: #fff;
}

.inline-tabs {
  padding: 0 16px;
}

.sticky-tabs {
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 30;
  width: var(--shell-width);
  height: 42px;
  padding: 0 16px;
  transform: translateX(-50%);
  border-bottom: 1px solid var(--line);
  display: none;
}

.sticky-tabs.is-visible {
  display: flex;
}

.tab {
  height: 100%;
  padding: 0 20px 0 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}

.tab + .tab {
  padding: 0 8px;
}

.tab span {
  flex: 1;
  display: grid;
  place-items: center;
}

.tab i {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
}

.tab.is-active {
  color: var(--text-main);
  font-weight: 800;
}

.tab.is-active i {
  background: var(--accent);
}

.tab-page {
  display: none;
}

.tab-page.is-active {
  display: block;
}

.section-title {
  height: 50px;
  padding: 12px 16px 6px;
  display: flex;
  align-items: center;
}

.section-title strong {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 800;
}

.section-title span {
  margin-left: 6px;
  color: #999;
  font-size: 12px;
}

.storyboard-item {
  min-height: 140px;
  padding: 14px 16px 0;
  background: #fff;
}

.storyboard-empty {
  padding: 28px 16px 34px;
  color: #999;
  font-size: 14px;
  text-align: center;
  background: #fff;
}

.storyboard-body {
  min-height: 112px;
  display: flex;
  gap: 12px;
}

.story-cover {
  width: 40%;
  min-width: 132px;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  position: relative;
  flex: 0 0 40%;
  background: #000;
  display: block;
  padding: 0;
  appearance: none;
}

.story-cover > img,
.story-cover > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1.025);
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.cover-play img {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  object-fit: contain;
}

.duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 40px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgb(0 0 0 / 50%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.story-info {
  flex: 1;
  min-width: 0;
  min-height: 112px;
  display: flex;
  flex-direction: column;
}

.story-header {
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.story-index {
  width: 28px;
  height: 24px;
  border-radius: 5px;
  background: #2f3033;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.story-title {
  flex: 1;
  min-width: 0;
  height: 24px;
  display: flex;
  align-items: center;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shoot-button {
  width: 80px;
  height: 28px;
  border-radius: 15px;
  background: #ff2f5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 11px;
  font-weight: 800;
  line-height: 28px;
  flex: 0 0 auto;
  padding: 0 6px;
  text-align: center;
  white-space: nowrap;
}

.shoot-button img {
  width: 18px;
  height: 18px;
  margin-right: 2px;
  object-fit: contain;
  flex: 0 0 auto;
  transform: translateY(-0.5px);
}

.location-card {
  margin-top: 8px;
  min-height: 56px;
  border-radius: 8px;
  background: #f7f8fa;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-card.has-route {
  min-height: 70px;
}

.location-row,
.route-row {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.location-row img {
  width: 12px;
  height: 12px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.location-row span {
  min-width: 0;
  margin-left: 5px;
  color: #6f7683;
  font-size: 11px;
  line-height: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-row {
  margin-top: 5px;
  align-items: center;
  padding-left: 0;
}

.route-button {
  min-width: 64px;
  height: 24px;
  margin-left: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.route-button img {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  object-fit: contain;
  flex: 0 0 auto;
}

.story-line {
  height: 1px;
  margin-top: 14px;
  background: var(--line);
}

.storyboard-item:last-child {
  padding-bottom: 32px;
}

.comment-page {
  position: relative;
  padding-top: 10px;
  min-height: 420px;
  overflow: hidden;
}

.comment-blur-content {
  min-height: 420px;
  filter: blur(8px);
  transform: scale(1.012);
  transform-origin: top center;
  pointer-events: none;
  user-select: none;
}

.comment-input {
  width: calc(100% - 32px);
  height: 40px;
  margin: 0 16px;
  padding: 0 14px;
  border-radius: 20px;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  text-align: left;
}

.comment-input span {
  flex: 1;
  color: #9a9ca3;
  font-size: 13px;
}

.comment-input strong {
  color: var(--accent);
  font-size: 13px;
}

.comment-prompt {
  margin: 8px 16px 0;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 17px;
}

.comment-list {
  min-height: 360px;
  padding-top: 8px;
  padding-bottom: 40px;
}

.comment-item {
  padding: 12px 16px 10px;
  display: flex;
  gap: 10px;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.comment-content {
  min-width: 0;
  flex: 1;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-head strong {
  min-width: 0;
  color: #5f6570;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-head span {
  color: #b1b5bd;
  font-size: 11px;
  flex: 0 0 auto;
}

.comment-content p {
  margin: 5px 0 0;
  color: #222;
  font-size: 14px;
  line-height: 20px;
}

.comment-like {
  min-width: 42px;
  height: 30px;
  align-self: flex-start;
  background: transparent;
  color: #8a8d96;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  font-size: 11px;
}

.comment-like img {
  width: 15px;
  height: 15px;
}

.comment-download-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 420px;
  padding: 106px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 92%) 38%, #fff 100%);
}

.comment-download-mask strong {
  color: #222;
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
}

.comment-download-mask span {
  margin-top: 8px;
  color: #8a8d96;
  font-size: 13px;
  line-height: 18px;
}

.comment-download-mask button {
  width: 176px;
  height: 42px;
  margin-top: 22px;
  border-radius: 22px;
  background: #ff2442;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.bottom-sheet,
.story-player {
  position: fixed;
  inset: 0;
  display: none;
}

.bottom-sheet {
  z-index: 140;
}

.story-player {
  z-index: 100;
}

.bottom-sheet.is-visible,
.story-player.is-visible {
  display: block;
}

.sheet-mask {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 48%);
}

.sheet-panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: var(--shell-width);
  transform: translateX(-50%);
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 32px rgb(0 0 0 / 14%);
}

.download-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-brand img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 18px rgb(0 0 0 / 12%);
  flex: 0 0 auto;
}

.download-brand div {
  min-width: 0;
}

.sheet-panel strong {
  display: block;
  color: var(--text-main);
  font-size: 19px;
  line-height: 24px;
  font-weight: 800;
}

.download-brand span {
  display: block;
  margin-top: 4px;
  color: #8a8d96;
  font-size: 12px;
  line-height: 18px;
}

.sheet-panel p {
  margin: 16px 0 4px;
  color: #8a8d96;
  font-size: 13px;
  line-height: 19px;
}

.sheet-panel button {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border-radius: 24px;
  background: #f5f6f8;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 800;
}

.download-panel #sheetDownloadButton {
  margin-top: 22px;
}

.sheet-panel button:first-of-type {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgb(255 36 66 / 22%);
}

.sheet-panel .sheet-cancel {
  height: 42px;
  margin-top: 8px;
  background: transparent;
  color: #8a8d96;
  font-size: 14px;
}

.story-player {
  background: #000;
  overflow: hidden;
  color: #fff;
  touch-action: none;
  overscroll-behavior: none;
}

.player-pages {
  width: 100%;
  height: 100%;
  transform: translateY(calc((var(--player-page-index, 0) * -100svh) + var(--player-drag-offset, 0px)));
  transition: transform 220ms ease;
  touch-action: none;
  overscroll-behavior: none;
}

.player-pages.is-dragging {
  transition: none;
}

.player-page {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #000;
  touch-action: none;
  overscroll-behavior: none;
}

.player-page-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.player-page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 218px;
  background: linear-gradient(0deg, rgb(0 0 0 / 84%), rgb(0 0 0 / 0%));
  pointer-events: none;
}

.player-page-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
}

.player-page-info strong {
  display: block;
  max-width: calc(100% - 92px);
  font-size: 18px;
  line-height: 22px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%);
}

.player-page-info span {
  display: block;
  max-width: calc(100% - 82px);
  margin-top: 8px;
  color: rgb(255 255 255 / 90%);
  font-size: 13px;
  line-height: 19px;
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%);
}

.player-nav-action {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 36px;
  padding: 0 16px 0 14px;
  border-radius: 18px;
  background: rgb(255 255 255 / 95%);
  color: #1e2329;
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
}

.player-nav-action img {
  width: 14px;
  height: 14px;
}

.player-page.is-route .player-nav-action {
  display: flex;
}

.player-top-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 6;
  height: 80px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 12px 0 8px;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(180deg, rgb(0 0 0 / 80%), rgb(0 0 0 / 0%));
}

.player-back {
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.player-back img {
  width: 24px;
  height: 24px;
}

.player-top-bar strong {
  min-width: 0;
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  margin-left: 8px;
  margin-right: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-top-bar span {
  min-width: 42px;
  height: 28px;
  margin-top: 6px;
  padding: 0 8px;
  border-radius: 16px;
  background: rgb(0 0 0 / 40%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  display: none;
}

.player-rail {
  position: absolute;
  right: 12px;
  top: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 7;
  width: 50px;
  padding: 4px 4px 6px;
  border-radius: 12px;
  background: rgb(0 0 0 / 20%);
  border: .5px solid rgb(255 255 255 / 7%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 316px;
  overflow: hidden;
}

.player-rail button {
  width: 42px;
  height: 56px;
  padding: 2px;
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  border: .5px solid rgb(255 255 255 / 11%);
  overflow: hidden;
  opacity: .72;
  position: relative;
}

.player-rail button.is-active {
  background: rgb(255 255 255 / 18%);
  border: 1px solid rgb(255 255 255 / 95%);
  opacity: 1;
}

.player-rail button img,
.player-rail button video {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.player-rail button b {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 14px;
  border-radius: 0 0 8px 8px;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
}

.player-bottom-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 126px;
  background: linear-gradient(0deg, rgb(0 0 0 / 80%), rgb(0 0 0 / 0%));
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 16px;
  right: 54px;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  height: 38px;
  display: flex;
  align-items: center;
}

.player-volume {
  position: absolute;
  right: 14px;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: transparent;
}

.player-volume.is-muted::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 25px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 35%);
  transform: translate(-50%, -50%) rotate(-45deg);
  pointer-events: none;
}

.player-volume span {
  display: block;
  width: 24px;
  height: 24px;
  background: url("./assets/icon-volume.svg") center / 24px 24px no-repeat;
}

.player-volume-panel {
  position: absolute;
  right: 10px;
  bottom: calc(126px + env(safe-area-inset-bottom, 0px));
  z-index: 9;
  width: 40px;
  height: 128px;
  border-radius: 20px;
  background: rgb(10 10 12 / 82%);
  border: 1px solid rgb(255 255 255 / 15%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0 12px;
}

.player-volume-panel.is-visible {
  display: flex;
}

.player-volume-panel span {
  width: 16px;
  height: 16px;
  display: block;
  background: url("./assets/icon-volume.svg") center / 16px 16px no-repeat;
  opacity: .92;
}

.player-volume-panel input {
  width: 22px;
  height: 88px;
  margin-top: 6px;
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--accent);
}

.player-study-action {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 9;
  height: 48px;
  border-radius: 24px;
  background: #ff2f5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  box-shadow: 0 8px 22px rgb(255 47 95 / 24%);
}

.player-study-action img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.player-study-action strong,
.player-study-action em,
.player-study-action span {
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

.player-study-action strong {
  margin-left: 7px;
  font-size: 16px;
  font-weight: 800;
}

.player-study-action span {
  margin: 0 8px;
  color: rgb(255 255 255 / 60%);
  font-size: 15px;
  font-weight: 800;
}

.player-study-action em {
  color: rgb(255 255 255 / 90%);
  font-size: 15px;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 140;
  max-width: calc(var(--shell-width) - 48px);
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 18px;
  transform: translateX(-50%) translateY(12px);
  background: rgb(0 0 0 / 78%);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 360px) {
  .story-cover {
    min-width: 118px;
  }

  .action-button {
    font-size: 13px;
  }

  .action-button img {
    margin-right: 5px;
  }
}
