#view-video {
  background: linear-gradient(180deg, #1e2836 0%, #2c3440 45%, #0b0d11 100%);
  color: #ffffff;
}

.video-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: linear-gradient(180deg, #1e2836 0%, #2c3440 45%, #0b0d11 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-topbar {
  position: relative;
  z-index: 5;
  height: 40px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
}

.video-back-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.video-back-icon {
  width: 20px;
  height: 20px;
}

.video-nav-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.96);
}

.video-stage {
  position: relative;
  width: 100%;
  margin-top: 156px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: opacity 0.18s ease;
}

.video-center-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-center-play-icon {
  width: 48px;
  height: 48px;
}

.video-fullscreen-btn {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.video-fullscreen-icon {
  width: 12px;
  height: 12px;
}

/* Right rail */
.video-right-rail {
  position: absolute;
  right: 14px;
  bottom: 92px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.video-author-wrap {
  position: relative;
  width: 44px;
  height: 52px;
  cursor: default;
}

.video-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  object-fit: cover;
  margin: 0 auto;
}

.video-author-plus {
  position: absolute;
  left: 50%;
  top: 33px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #ff3b30;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-author-plus-icon {
  width: 10px;
  height: 10px;
}

.video-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  line-height: 14px;
}

.video-rail-item--static {
  cursor: default;
}

.video-rail-icon {
  width: 24px;
  height: 24px;
}

/* Bottom-left book card */
.video-book-card {
  position: absolute;
  left: 14px;
  bottom: 78px;
  z-index: 6;
  width: 204px;
  height: 56px;
  background: rgba(15, 23, 41, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 8px 10px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.video-book-cover {
  width: 30px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.video-book-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-book-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 15px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-book-press {
  font-size: 9.5px;
  line-height: 13px;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-book-cta {
  height: 26px;
  padding: 0 9px;
  border-radius: 13px;
  background: #ff5936;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.video-book-cta-arrow {
  width: 10px;
  height: 10px;
}

/* Bottom progress bar */
.video-bottom-area {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 11px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.video-progress-row {
  width: 100%;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-time-text {
  font-size: 10px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.video-track {
  position: relative;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.video-track-bg {
  position: relative;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.video-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.95);
}

.video-track-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-rate-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.video-ai-note {
  font-size: 10px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

/* End-of-video modal (3086:272) */
.video-end-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(8, 13, 23, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.video-end-overlay.is-hidden {
  display: none;
}

.video-end-card {
  width: 290px;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(38, 44, 61, 0.98) 0%, rgba(26, 30, 43, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.video-end-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.video-end-badge {
  background: rgba(242, 82, 61, 0.18);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 500;
  color: #ff7a66;
}

.video-end-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  color: #ffffff;
  text-align: center;
}

.video-end-desc {
  font-size: 12px;
  line-height: 19px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.video-end-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.video-end-btn-row {
  width: 100%;
  height: 42px;
  display: flex;
  gap: 10px;
}

.video-end-btn {
  flex: 1;
  min-width: 0;
  height: 100%;
  border-radius: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}

.video-end-btn--primary {
  background: linear-gradient(90deg, #f2523d 0%, #d63426 100%);
  box-shadow: 0 5px 14px rgba(217, 56, 41, 0.3);
  color: #ffffff;
}

.video-end-btn--secondary {
  background: #ffffff;
  color: #14171f;
}

.video-end-btn-icon {
  width: 14px;
  height: 14px;
}

.video-replay-btn {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  padding: 2px 8px;
}
