:root {
  --bg-soft: #fff7fb;
  --bg-soft-2: #f3f8ff;
  --card: #ffffff;
  --pink: #ff8fbf;
  --pink-soft: #ffd6ea;
  --pink-deep: #ff6b9d;
  --blue: #6ec1ff;
  --blue-soft: #d6ecff;
  --blue-deep: #4aa8f0;
  --yellow: #ffd666;
  --yellow-soft: #fff0c2;
  --text: #6a5562;
  --text-strong: #4d3b46;
  --muted: #a78d9a;
  --line: #ffe3f0;
  --shadow: 0 18px 50px rgba(255, 143, 191, 0.18);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(160deg, var(--bg-soft) 0%, #ffffff 42%, var(--bg-soft-2) 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Malgun Gothic", "Apple SD Gothic Neo", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.player-page {
  position: relative;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: hidden;
}

.bg-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  opacity: 0.9;
  filter: blur(2px);
  animation: floaty 12s ease-in-out infinite;
}

.blob-a {
  width: min(58vw, 460px);
  top: -8%;
  left: -10%;
}

.blob-b {
  width: min(52vw, 420px);
  right: -8%;
  bottom: -12%;
  animation-delay: -4s;
}

.blob-c {
  width: min(28vw, 220px);
  right: 18%;
  top: 12%;
  opacity: 0.65;
  animation-delay: -7s;
}

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(255, 214, 102, 0.25);
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark-1 { top: 18%; left: 22%; }
.spark-2 { top: 62%; left: 12%; background: var(--pink); box-shadow: 0 0 0 6px rgba(255, 143, 191, 0.22); animation-delay: .6s; }
.spark-3 { top: 28%; right: 16%; background: var(--blue); box-shadow: 0 0 0 6px rgba(110, 193, 255, 0.22); animation-delay: 1.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(18px) rotate(4deg); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}

.room-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  overflow: hidden;
}

.room-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--pink-soft), var(--blue-soft), var(--yellow-soft), var(--pink-soft));
  background-size: 200% 100%;
  animation: ribbon 8s linear infinite;
}

@keyframes ribbon {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

.room-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-top: 4px;
}

.avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(255, 143, 191, 0.28);
  border: 3px solid #fff;
  background: var(--pink-soft);
}

.avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.room-meta {
  min-width: 0;
  flex: 1;
}

.room-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-strong);
  background: #fff;
  border: 1px solid var(--line);
}

.pill-live {
  color: #fff;
  background: linear-gradient(90deg, var(--pink-deep), #ff9ec8);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(255, 107, 157, 0.28);
}

.pill-blue {
  background: var(--blue-soft);
  border-color: #c5e5ff;
  color: #2f6f9e;
}

.pill-yellow {
  background: var(--yellow-soft);
  border-color: #ffe29a;
  color: #9a7418;
}

.pill-pink {
  background: var(--pink-soft);
  border-color: #ffcfe3;
  color: #b34f7d;
}

.room-heat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, var(--pink-soft));
  border: 1px solid #ffd3e7;
  color: var(--pink-deep);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.player-shell {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: visible;
  border: 1px solid #ffe7f2;
  box-shadow: 0 10px 28px rgba(126, 200, 255, 0.12);
}

.stage-frame {
  position: relative;
  padding: 8px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 214, 234, 0.65), rgba(214, 236, 255, 0.65) 50%, rgba(255, 240, 194, 0.65));
}

.video-wrap {
  position: relative;
  width: 100%;
  background: #1b1520;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 62dvh);
  border-radius: 14px;
  overflow: hidden;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1b1520;
}

.loading-cover,
.stop-cover {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff8fc;
  z-index: 3;
}

.loading-cover.is-visible,
.stop-cover.is-visible {
  display: flex;
}

.stop-cover {
  z-index: 5;
}

.loading-cover img,
.stop-cover img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-fail-msg {
  max-width: 86%;
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #ffd0e2;
  box-shadow: 0 12px 28px rgba(255, 143, 191, 0.22);
  text-align: center;
}

.auth-fail-ko {
  color: #4d3b46;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-fail-zh {
  margin-top: 10px;
  color: #a78d9a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.limit-fail-msg {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(86%, 340px);
}

.limit-fail-msg.is-visible {
  display: block;
}

.watermark {
  --wm-size: clamp(12px, 2.8vw, 22px);
  --wm-stroke: max(0.8px, calc(var(--wm-size) * 0.07));
  --wm-gap: max(8px, calc(var(--wm-size) * 0.55));
  position: absolute;
  z-index: 6;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: var(--wm-size);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-stroke: var(--wm-stroke) #000;
  paint-order: stroke fill;
  text-shadow:
    calc(var(--wm-stroke) * -1.4) calc(var(--wm-stroke) * -1.4) 0 #000,
    calc(var(--wm-stroke) * 1.4) calc(var(--wm-stroke) * -1.4) 0 #000,
    calc(var(--wm-stroke) * -1.4) calc(var(--wm-stroke) * 1.4) 0 #000,
    calc(var(--wm-stroke) * 1.4) calc(var(--wm-stroke) * 1.4) 0 #000,
    calc(var(--wm-stroke) * -1.4) 0 0 #000,
    calc(var(--wm-stroke) * 1.4) 0 0 #000,
    0 calc(var(--wm-stroke) * -1.4) 0 #000,
    0 calc(var(--wm-stroke) * 1.4) 0 #000;
}

/* 默认右上；position 参数覆盖 */
.watermark,
.watermark.wm-pos-ur,
.watermark.wm-pos-ru {
  top: var(--wm-gap);
  right: var(--wm-gap);
  bottom: auto;
  left: auto;
  transform: none;
  text-align: right;
}

.watermark.wm-pos-ul,
.watermark.wm-pos-lu {
  top: var(--wm-gap);
  left: var(--wm-gap);
  right: auto;
  bottom: auto;
  transform: none;
  text-align: left;
}

.watermark.wm-pos-dr,
.watermark.wm-pos-rd {
  bottom: var(--wm-gap);
  right: var(--wm-gap);
  top: auto;
  left: auto;
  transform: none;
  text-align: right;
}

.watermark.wm-pos-dl,
.watermark.wm-pos-ld {
  bottom: var(--wm-gap);
  left: var(--wm-gap);
  top: auto;
  right: auto;
  transform: none;
  text-align: left;
}

.watermark.wm-pos-u {
  top: var(--wm-gap);
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  text-align: center;
}

.watermark.wm-pos-d {
  bottom: var(--wm-gap);
  left: 50%;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  text-align: center;
}

.watermark.wm-pos-l {
  left: var(--wm-gap);
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  text-align: left;
}

.watermark.wm-pos-r {
  right: var(--wm-gap);
  top: 50%;
  left: auto;
  bottom: auto;
  transform: translateY(-50%);
  text-align: right;
}

.float-gifts {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 54px;
  height: 160px;
  z-index: 4;
  pointer-events: none;
}

.gift {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  animation: rise 4.8s ease-in infinite;
}

.gift.g1 { right: 4px; animation-delay: 0s; }
.gift.g2 { right: 18px; width: 22px; height: 22px; animation-delay: 1.2s; }
.gift.g3 { right: 8px; width: 24px; height: 24px; animation-delay: 2.4s; }
.gift.g4 { right: 22px; width: 20px; height: 20px; animation-delay: 3.4s; }

@keyframes rise {
  0% { transform: translateY(20px) scale(0.7); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-150px) scale(1.1); opacity: 0; }
}

.controls {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  overflow: visible;
}

.controls.hidden {
  display: none;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(255, 143, 191, 0.28);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-icon {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(110, 193, 255, 0.3);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn .ico {
  display: block;
  flex-shrink: 0;
}

.btn-play.is-playing .ico-play,
.btn-play:not(.is-playing) .ico-pause {
  display: none;
}

.btn-volume {
  background: linear-gradient(90deg, #ffe58f, #ffd0e8);
  color: var(--text-strong);
  box-shadow: 0 8px 18px rgba(255, 214, 102, 0.28);
}

.btn-volume.is-muted .ico-vol-on,
.btn-volume:not(.is-muted) .ico-vol-off {
  display: none;
}

.btn-rotate {
  background: linear-gradient(90deg, #ffe58f, #9ad0ff);
  color: var(--text-strong);
}

.btn-rotate.is-rotated {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: #fff;
}

.btn-fs {
  background: linear-gradient(90deg, var(--blue), #9ad0ff);
  color: #fff;
  margin-left: 0;
}

.btn-fs.is-fullscreen .ico-fs-enter,
.btn-fs:not(.is-fullscreen) .ico-fs-exit {
  display: none;
}

.progress-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-soft), var(--blue-soft));
  outline: none;
  cursor: pointer;
  touch-action: none;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--pink) 45%, var(--blue) 100%);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 157, 0.35);
  cursor: pointer;
}

.progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
  cursor: pointer;
}

.progress:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.time-label {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
  flex-shrink: 0;
}

.volume-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.volume-hud {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ffe0ef;
  box-shadow: 0 12px 28px rgba(255, 143, 191, 0.28);
  z-index: 20;
}

.volume-hud[hidden] {
  display: none !important;
}

.volume-label {
  font-size: 11px;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  min-width: 2.5em;
  text-align: center;
}

.volume {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: bt-lr;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 28px;
  height: 110px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow-soft), var(--pink-soft));
  outline: none;
  cursor: pointer;
  touch-action: none;
}

.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, var(--pink) 45%, var(--yellow) 100%);
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(255, 107, 157, 0.35);
  cursor: pointer;
}

.volume::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
  cursor: pointer;
}

.volume:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 独立全屏层：盖住整屏，避免被 room-card 裁剪 */
#hls-fs-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #000;
  overflow: hidden;
}

#hls-fs-root.is-active {
  display: block;
}

body.hls-fs-active {
  overflow: hidden !important;
  background: #000;
}

#hls-fs-root .player-shell,
.player-shell:fullscreen,
.player-shell:-webkit-full-screen,
.player-shell.is-pseudo-fs,
.player-shell.is-manual-rotate {
  background: #000 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 !important;
}

#hls-fs-root .stage-frame,
.player-shell.is-pseudo-fs .stage-frame,
.player-shell.is-manual-rotate .stage-frame,
.player-shell:fullscreen .stage-frame {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #000 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

#hls-fs-root .video-wrap,
.player-shell.is-pseudo-fs .video-wrap,
.player-shell.is-manual-rotate .video-wrap,
.player-shell:fullscreen .video-wrap {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

#hls-fs-root .controls,
.player-shell.is-pseudo-fs .controls,
.player-shell.is-manual-rotate .controls,
.player-shell:fullscreen .controls {
  border-radius: 0 !important;
  flex-shrink: 0 !important;
}

#hls-fs-root video,
.player-shell.is-pseudo-fs video,
.player-shell.is-manual-rotate video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

/* 全屏点击视频：隐藏操作条 */
.player-shell.is-chrome-hidden .controls {
  display: none !important;
}

.player-shell.is-chrome-hidden .volume-hud {
  display: none !important;
}

.meta-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.now-playing .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-deep);
  box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.18);
  animation: twinkle 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

.now-playing .title {
  color: var(--text-strong);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--blue-soft);
  color: #4d7ea8;
  font-size: 12px;
  font-weight: 700;
}

.chip:empty {
  display: none;
}

.playlist-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fff7fb);
  border: 1px solid #ffe3f0;
  box-shadow: 0 8px 22px rgba(255, 143, 191, 0.12);
}

.playlist-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.playlist-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-strong);
}

.playlist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: #b34f7d;
  font-size: 12px;
  font-weight: 800;
}

.playlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.playlist-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.playlist-item:hover {
  background: #fff5fa;
  border-color: #ffd6ea;
}

.playlist-item.is-active {
  background: linear-gradient(90deg, #ffe6f2, #eaf5ff);
  border-color: #ffc2de;
  box-shadow: 0 4px 14px rgba(255, 143, 191, 0.16);
}

.playlist-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.playlist-idx {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: #2f6f9e;
  font-size: 12px;
  font-weight: 800;
}

.playlist-item.is-active .playlist-idx {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  color: #fff;
}

.playlist-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-dur {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.error-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff0f5;
  border: 1px solid #ffd0e2;
  color: #c44f7c;
  font-size: 13px;
  font-weight: 700;
  display: none;
}

.error-box.is-visible {
  display: block;
}

@media (max-width: 768px) {
  .player-page {
    align-items: flex-start;
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .room-card {
    border-radius: 18px;
    padding: 12px;
  }

  .room-title {
    font-size: 17px;
  }

  .avatar {
    width: 46px;
    height: 46px;
  }

  .room-heat {
    padding: 6px 10px;
    font-size: 12px;
  }

  .video-wrap {
    max-height: none;
  }

  /* 水印字号由 JS 按视频区宽度写入 --wm-size，此处不再写死 */

  .controls {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .btn-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .time-label {
    font-size: 11px;
  }

  .float-gifts {
    display: none;
  }
}

@media (max-width: 420px) {
  .room-heat span {
    display: none;
  }

  .pill-pink {
    display: none;
  }

  .time-label {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .bg-art,
  .room-header,
  .meta-bar,
  .error-box {
    display: none;
  }

  .room-card {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    width: 100%;
  }

  .room-card::before {
    display: none;
  }

  .player-shell,
  .stage-frame,
  .video-wrap {
    border-radius: 0;
  }

  .stage-frame {
    padding: 0;
  }

  .video-wrap {
    max-height: calc(100dvh - 64px);
    aspect-ratio: auto;
    height: calc(100dvh - 64px);
  }
}
