/* ==========================================================================
   IPTV「我的AI节目流」高保真交互样式表
   严格匹配 Figma Context 2862-43, 2874-64, 2874-269, 2874-220, 2874-419, 2874-496
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #05070c;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Inter", sans-serif;
  user-select: none;
}

/* 视口与等比居中自适应容器 */
#viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #0a0d17 0%, #030408 100%);
}

/* 1920x1080 固定设计稿画布 */
#stage {
  position: absolute;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background-color: #000000;
  transform-origin: 0 0;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
}

/* 图层通用 */
.layer {
  position: absolute;
  pointer-events: none;
}

.img-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 1. 背景层 d6050.png */
.layer-bg {
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  z-index: 1;
}

/* 2. 椅子环境光效 517c5.png (inset-[53.24%_69.95%_-15.83%_-17.81%]) */
.layer-glow {
  left: -342px;
  top: 575px;
  width: 919px;
  height: 676px;
  z-index: 2;
}

.layer-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. AI 虚拟人物层 f891c.png (在 581x1024 容器内横向裁剪，原图宽 264.37%, left -164.37%) */
.character-crop-box {
  left: 39px;
  top: 262px;
  width: 581px;
  height: 1024px;
  overflow: hidden;
  z-index: 3;
}

.character-img {
  position: absolute;
  top: 0;
  left: -164.37%;
  width: 264.37%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  display: block;
}

/* 4. 左侧固定 AI 气泡对话框 (77835.svg, x135 y544 w502 h210, 文字 x181 y590 字号46 行高60) */
.ai-bubble-box {
  left: 135px;
  top: 544px;
  width: 502px;
  height: 210px;
  z-index: 20;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.bubble-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bubble-content {
  position: absolute;
  left: 46px; /* 181 - 135 = 46px */
  top: 46px;  /* 590 - 544 = 46px */
  width: 410px;
  pointer-events: none;
}

.bubble-text-line {
  font-size: 46px;
  line-height: 60px;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.5px;
}

/* 5. 左侧固定语音胶囊按钮 (6af87.svg, x171 y908 w324 h98) */
.voice-btn-box {
  left: 171px;
  top: 908px;
  width: 324px;
  height: 98px;
  z-index: 25;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  outline: none;
}

.voice-btn-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 32px;
}

.voice-icon-wrapper {
  width: 30px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-icon-wrapper img {
  width: 30px;
  height: 40.23px;
  display: block;
}

.voice-btn-text {
  margin-left: 15px;
  font-size: 32px;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
}

.voice-btn-box:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: scale(1.02);
}

.voice-btn-box.focused {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 5.25px #ffffff, 0 8px 30px rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}

/* 6. 顶部全局导航栏 Overlay (9ef1c.png, 不可落焦, 滚动状态 top: -75px) */
.top-nav-overlay {
  left: 0;
  top: 0;
  width: 1920px;
  height: 1170px;
  z-index: 40;
  pointer-events: none;
  transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.top-nav-overlay.scrolled {
  top: -75px;
}

.nav-img {
  width: 1920px;
  height: 1170px;
  object-fit: cover;
  display: block;
}

.top-nav-blur {
  position: absolute;
  top: 0;
  left: 662px;
  width: 1057px;
  height: 92px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.top-nav-overlay.scrolled .top-nav-blur {
  opacity: 1;
}

/* 7. 右侧纵向流式节目容器 (流式纵向平滑位移) */
.stream-viewport {
  position: absolute;
  left: 662px;
  top: 0;
  width: 1150px;
  height: 1080px;
  z-index: 10;
  overflow: visible;
}

.stream-container {
  position: absolute;
  left: 12px;
  top: 253px; /* 初始直播基准位置对应 253px */
  width: 1080px;
  height: 3300px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* 通用节目卡片及标题排版 */
.stream-item {
  position: absolute;
  width: 1060px;
  cursor: pointer;
  outline: none;
}

.item-header {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 5;
}

.time-capsule {
  width: 116px;
  height: 50px;
  border-radius: 50px;
  background: rgba(217, 217, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
}

.item-title-text {
  margin-left: 14px;
  font-size: 32px;
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}

.card-body {
  position: absolute;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* [A] 预约/追剧提示胶囊 (未激活时隐藏，激活未选时暗灰，落焦时白胶囊) */
.reservation-pill {
  position: absolute;
  left: 323px; /* 相对于 674px 时，绝对 X 为 997px */
  top: -105px; /* 相对于向下 79px 后的 332px 时，绝对 Y 为 227px */
  width: 391px;
  height: 77px;
  border-radius: 50px;
  background: rgba(217, 217, 217, 0.1);
  display: none; /* 默认未开启预约状态时不显示 */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  outline: none;
}

.reservation-pill.visible {
  display: flex;
}

/* 预约提示未落焦状态 */
.pill-normal-view {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.pill-calendar-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.pill-calendar-icon img {
  width: 329px;
  height: 57.7px;
  max-width: none;
  transform: scale(0.65) translate(-100px, 0);
  pointer-events: none;
}

.pill-text {
  font-size: 24px;
  color: #f7f7f8;
  font-weight: 400;
  white-space: nowrap;
}

/* 预约提示落焦高亮白胶囊状态 (2874-269: left 1040px, top 227px, w 413px, h 77px, 白底黑字) */
.pill-focused-view {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.reservation-pill.focused {
  left: 366px; /* 绝对坐标 1040px */
  width: 413px;
  height: 77px;
  background: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  transform: scale(1.02);
}

.reservation-pill.focused .pill-normal-view {
  display: none;
}

.reservation-pill.focused .pill-focused-view {
  display: flex;
}

.pill-focus-text {
  font-size: 24px;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
}

/* [B] 节目项 1：CCTV-1 直播 */
.item-live {
  left: 0;
  top: 0;
  height: 685px;
}

.header-live {
  left: 0;
  top: 0;
}

.header-live .time-capsule {
  height: 61px;
}

.header-live .item-title-text {
  font-size: 32px;
}

.card-live {
  left: 16px;
  top: 87px;
  width: 1057.78px;
  height: 595px;
}

.bottom-gradient-mask {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 390px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.live-info-panel {
  position: absolute;
  left: 62.8px;
  bottom: 40px;
  z-index: 6;
}

.channel-num-name {
  font-size: 26.4px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.3px;
  margin-bottom: 8px;
}

.channel-now {
  font-size: 16.5px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.channel-next {
  font-size: 16.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.1px;
  margin-top: 6px;
}

.live-progress-bar {
  position: relative;
  width: 231.4px;
  height: 2.2px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 101.9px;
  height: 100%;
  background: #0084ff;
}

.live-ok-tip {
  position: absolute;
  right: 48px;
  bottom: 38px;
  display: flex;
  align-items: center;
  z-index: 6;
}

.ok-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.55px solid rgba(255, 255, 255, 0.5);
  border-radius: 157px;
  padding: 1px 7px;
  font-size: 10px;
  color: #ffffff;
  margin-right: 6px;
}

.ok-text {
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* 直播红标 */
.live-badge {
  position: absolute;
  right: 25px;
  top: 23px;
  width: 110px;
  height: 52px;
  border-radius: 5px;
  background: radial-gradient(circle at 35% 40%, rgba(191, 22, 0, 1) 0%, rgba(140, 16, 0, 1) 50%, rgba(89, 10, 0, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(140, 16, 0, 0.4);
}

.live-badge-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.live-badge-text {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
}

/* [C] 节目项 2：新木乃伊 */
.item-movie-1 {
  left: 0;
  top: 702px;
  height: 660px;
}

.header-movie-1 {
  left: 6px;
  top: 0;
}

.card-movie-1 {
  left: 27px;
  top: 56px;
  width: 1057.78px;
  height: 595px;
}

/* FAST频道黄色角标 */
.fast-badge {
  position: absolute;
  right: 25px;
  top: 23px;
  width: 139px;
  height: 52px;
  border-radius: 5px;
  background: radial-gradient(circle at 33% 38%, rgba(222, 212, 62, 1) 0%, rgba(213, 171, 37, 1) 50%, rgba(203, 130, 12, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(203, 130, 12, 0.4);
}

.badge-text {
  font-size: 24px;
  font-weight: 500;
  color: #000000;
}

/* [D] 节目项 3：经典科幻大赏 地心历险记2 */
.item-movie-2 {
  left: 0;
  top: 1376px;
  height: 680px;
}

.header-movie-2 {
  left: 6px;
  top: 0;
}

.card-movie-2 {
  left: 10px;
  top: 65px;
  width: 1057.78px;
  height: 601px;
}

/* 1ffb9.png 覆盖在 386f2.png 之上 */
.card-movie-2 .base-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.card-movie-2 .overlay-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* 经典科幻大赏角标 */
.scifi-badge {
  position: absolute;
  right: 25px;
  top: 23px;
  width: 167px;
  height: 52px;
  border-radius: 5px;
  background: radial-gradient(circle at 33% 38%, rgba(222, 212, 62, 1) 0%, rgba(213, 171, 37, 1) 50%, rgba(203, 130, 12, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(203, 130, 12, 0.4);
}

/* [E] 节目项 4：点播竖图推荐行 (灰色占位，左右可选 4 个竖图) */
.item-posters-row {
  left: 0;
  top: 2078px;
  height: 1150px;
}

.posters-section-title {
  position: absolute;
  left: 35px;
  top: 0;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.posters-flex-track {
  position: absolute;
  left: 25px;
  top: 60px;
  display: flex;
  align-items: center;
  gap: 50px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.poster-card-item {
  width: 307px;
  height: 454px;
  border-radius: 5px;
  background: #d9d9d9; /* 忠实原稿灰色占位，不编造虚假海报 */
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  outline: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.poster-card-item.active {
  width: 322px;
  height: 480px;
  background: #d9d9d9;
  transform: translateY(-8px);
}

/* 下方 24:00 预告节目 */
.next-program-teaser {
  position: absolute;
  left: 0;
  top: 598px;
  width: 1060px;
}

.header-teaser {
  left: 6px;
  top: 0;
}

.card-teaser {
  left: 10px;
  top: 65px;
  width: 1057.78px;
  height: 400px;
}

/* 8. 白色高亮活动焦点外框 (精准平滑动画贴合) */
.focus-indicator {
  position: absolute;
  border: 5.25px solid #ffffff;
  border-radius: 10.5px;
  pointer-events: none;
  z-index: 35;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.45), inset 0 0 10px rgba(255, 255, 255, 0.2);
  /* 初始直播焦点外框 x684.35 y333.575 w1069.65 h605.85 */
  left: 684.35px;
  top: 333.575px;
  width: 1069.65px;
  height: 605.85px;
  opacity: 1;
}

/* 9. 全屏演示播放浮层 */
.modal-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.full-screen-modal {
  background: #000000;
}

.modal-bg-cover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal-bg-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-hud {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-hud-top {
  top: 0;
}

.player-hud-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  gap: 30px;
}

.player-title-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.badge-live-tag {
  background: #d32f2f;
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 20px;
  font-weight: bold;
}

.player-channel-title {
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
}

.player-resolution {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 18px;
  color: #ffeb3b;
}

.player-clock {
  font-size: 32px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.85);
}

.player-center-tips {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.tip-capsule {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 24px;
  color: #ffffff;
}

.tip-capsule.sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.kbd-key {
  background: #ffffff;
  color: #000000;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: bold;
}

.player-time-display {
  font-size: 22px;
  font-family: monospace;
  color: #ffffff;
}

.player-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.player-bar-fill {
  height: 100%;
  background: #0084ff;
}

.player-status-tag {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
}

/* 全屏下的 EPG 节目单抽屉 */
.epg-drawer {
  position: absolute;
  right: 0;
  top: 0;
  width: 520px;
  height: 1080px;
  background: rgba(12, 16, 26, 0.94);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 30;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
}

.epg-drawer.open {
  transform: translateX(0);
}

.epg-header {
  margin-bottom: 30px;
}

.epg-header h3 {
  font-size: 32px;
  color: #ffffff;
}

.epg-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  display: block;
}

.epg-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.epg-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.epg-item:hover, .epg-item.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: scale(1.02);
}

.epg-num {
  font-size: 22px;
  font-weight: bold;
  color: #ff9800;
}

.epg-name {
  font-size: 22px;
  color: #ffffff;
}

.epg-curr {
  margin-left: auto;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* 10. 预约详情列表模态层 */
.reservation-modal, .voice-modal {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background: #151a28;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
  width: 900px;
  max-width: 90vw;
  padding: 40px;
  animation: dialogPop 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes dialogPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dialog-icon-pill {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dialog-icon-pill img {
  width: 280px;
  height: 48px;
  max-width: none;
  transform: translate(-90px, 0);
}

.dialog-title-group h2 {
  font-size: 32px;
  color: #ffffff;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.dialog-close-btn:hover {
  color: #ffffff;
}

.res-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.res-card-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  outline: none;
}

.res-card-item:hover, .res-card-item:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateX(6px);
}

.res-card-item.highlight {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 215, 0, 0.5);
}

.res-tag {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

.res-tag.new {
  background: #e53935;
  color: #ffffff;
}

.res-tag.update {
  background: #ffb300;
  color: #000000;
}

.res-tag.reminder {
  background: #1e88e5;
  color: #ffffff;
}

.res-info {
  flex: 1;
}

.res-info h4 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 6px;
}

.res-info p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
}

.res-action-btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.res-action-btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.dialog-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

/* 11. AI 语音助手演示面板 */
.voice-dialog {
  width: 760px;
}

.voice-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.voice-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
}

.voice-logo img {
  width: 28px;
  height: 38px;
  filter: brightness(0) invert(1);
}

.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  margin: 20px 0 30px;
}

.wave-bar {
  width: 8px;
  height: 20px;
  background: #00e5ff;
  border-radius: 4px;
  animation: waveAnim 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.15s; height: 35px; background: #00b0ff; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; height: 50px; background: #2979ff; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; height: 35px; background: #00b0ff; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; height: 20px; background: #00e5ff; }

@keyframes waveAnim {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

.voice-status-prompt {
  text-align: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.voice-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-suggest-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 16px 24px;
  color: #ffffff;
  font-size: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.voice-suggest-btn:hover, .voice-suggest-btn:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #00e5ff;
  transform: translateX(8px);
}

.voice-dialog-footer {
  margin-top: 25px;
  text-align: center;
}

.voice-note {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
}

/* 画布内水印/说明 */
.demo-watermark {
  position: absolute;
  left: 684px;
  bottom: 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 35;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   演示辅助控制条 (在 1920x1080 画布外，底部居中浮动)
   ========================================================================== */
.demo-toolbar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(15, 20, 32, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
}

.demo-toolbar.hidden {
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 12px;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #00e5ff;
  white-space: nowrap;
}

.toolbar-states-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.state-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.state-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.state-btn.active {
  background: #0084ff;
  border-color: #64b5f6;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 132, 255, 0.5);
}

.toolbar-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0 12px;
}

/* 预约开关 */
.toggle-switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch-label input {
  display: none;
}

.toggle-slider {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch-label input:checked + .toggle-slider {
  background: #4caf50;
}

.toggle-switch-label input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.toggle-label-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.toolbar-help {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.toolbar-help kbd {
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
}

.toolbar-collapse-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.toolbar-collapse-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* 控制条还原浮标 */
.toolbar-reveal-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  background: rgba(15, 20, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: none;
  transition: all 0.2s;
}

.toolbar-reveal-btn.visible {
  display: block;
}

.toolbar-reveal-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* 保留Figma原始图标比例与定位 */
.pill-calendar-icon { position:absolute; left:23px; top:7px; width:329.013px; height:57.7086px; margin:0; }
.pill-calendar-icon img { width:329.013px; height:57.7086px; transform:none; }
.pill-text { position:absolute; left:102px; top:22px; line-height:33px; }
.reservation-pill.focused { transform:none; box-shadow:none; }
.player-close { position:absolute; right:30px; top:95px; z-index:120; padding:12px 24px; border:1px solid #aaa; background:#111a; color:white; border-radius:30px; font-size:24px; cursor:pointer; }

.res-action-btn:focus-visible,.voice-suggest-btn:focus-visible { outline:4px solid white; outline-offset:4px; }
.modal-bg-cover { background:#24252c; }

/* 浏览器预览布局：电视画布与演示控件分区 */
.demo-toolbar { width:calc(100% - 32px); max-width:1280px; flex-wrap:wrap; justify-content:center; gap:10px; padding:12px 16px; }
.toolbar-states-group,.toolbar-actions-group,.toolbar-help { flex-wrap:wrap; justify-content:center; }
.toolbar-help { gap:10px; }
.toolbar-collapse-btn { white-space:nowrap; }
.poster-card-item.active { width:307px; height:454px; transform-origin:top left; transform:translate(-2px,-11px) scale(1.04886,1.05727); }
@media(max-width:800px) { .toolbar-brand,.toolbar-help { display:none; } .toolbar-actions-group { border:0; padding:0; gap:8px; } .state-btn,.action-btn { font-size:12px; padding:6px 8px; } }

/* 流式话术与受限海报轨道 */
.bubble-content { font-size:44px; line-height:60px; color:white; white-space:pre-line; width:460px; }
.bubble-text-line { font-size:44px; }
.voice-btn-box { transition:width .45s ease,background .25s,box-shadow .25s; }
.voice-btn-text { margin-left:8px; }
.stream-viewport { overflow:hidden; width:1258px; }
.posters-mask { position:absolute; left:12px; top:40px; width:1234px; height:522px; overflow:hidden; mask-image:linear-gradient(to right,transparent 0,#000 12px,#000 calc(100% - 34px),transparent 100%); }
.posters-flex-track { left:13px; top:20px; }
.poster-card-item { border:0; padding:0; position:relative; overflow:hidden; background:#171b29; }
.poster-card-item img { display:block; width:100%; height:100%; object-fit:cover; }
.poster-title { position:absolute; inset:auto 0 0; padding:44px 12px 14px; color:white; background:linear-gradient(transparent,rgba(0,0,0,.9)); font-size:26px; text-align:center; }
@media(prefers-reduced-motion:reduce) { .posters-flex-track,.focus-indicator,.stream-container { transition:none; } }

.header-live .time-capsule { width:214px; }

/* 使用 Figma 2846:218 中的原始浅色背景，与黑夜背景交叉淡入。 */
.layer-bg img { position:absolute; inset:0; transition:opacity 650ms ease; }
.background-day { opacity:0; }
#stage[data-theme="day"] .background-day { opacity:1; }
#stage[data-theme="day"] .background-night { opacity:0; }
.theme-switch { display:flex; gap:4px; }
.theme-switch [aria-pressed="true"] { background:#0084ff; border-color:#64b5f6; color:white; }
#stage[data-theme="day"] .item-header > .item-title-text,
#stage[data-theme="day"] .time-capsule,
#stage[data-theme="day"] .posters-section-title { color:#172643; }
#stage[data-theme="day"] .time-capsule { background:rgba(30,49,86,.12); }
#stage[data-theme="day"] .top-nav-overlay::before { content:""; position:absolute; inset:0 0 auto; height:190px; background:linear-gradient(rgba(14,27,52,.75),rgba(14,27,52,.6) 70%,transparent); }
#stage[data-theme="day"] .nav-img { position:relative; }
#stage[data-theme="day"] .reservation-pill:not(.focused) { background:rgba(24,43,75,.85); }
@media(prefers-reduced-motion:reduce) { .layer-bg img { transition:none; } }

/* 机顶盒友好的纯色半透明气泡：无背景模糊、折射或玻璃高光。 */
.ai-bubble-box { left:135px; top:auto; bottom:204px; width:502px; height:160px; background:rgba(20,30,54,.30); border:1px solid rgba(255,255,255,.16); border-radius:24px; box-shadow:none; transition:none; }
.bubble-svg { display:none; }
.ai-bubble-box::before { content:""; position:absolute; left:29px; top:-11px; width:0; height:0; border-left:11px solid transparent; border-right:11px solid transparent; border-bottom:11px solid rgba(20,30,54,.30); }
.bubble-content { position:absolute; left:32px; top:24px; width:438px; font-size:42px; line-height:56px; font-weight:400; white-space:pre; overflow:hidden; max-height:168px; text-shadow:0 1px 3px rgba(0,0,0,.5); }
.bubble-text-line { font-size:42px; line-height:56px; }
#stage[data-theme="day"] .ai-bubble-box { background:rgba(20,30,54,.38); }
#stage[data-theme="day"] .ai-bubble-box::before { border-bottom-color:rgba(20,30,54,.38); }

/* 同步 Figma 2883:2 用户调整：间距、配色与焦点比例。 */
.ai-bubble-box { top:auto; bottom:238px; width:456px; height:162px; background:rgba(255,255,255,.88); border:1px solid rgba(255,255,255,.65); }
.ai-bubble-box::before { display:none; }
.bubble-tail { position:absolute; left:29px; top:-11px; width:22px; height:11px; }
.bubble-content { width:392px; color:#172033; font-size:40px; line-height:56px; text-shadow:none; font-family:'Noto Sans SC','PingFang SC',sans-serif; }
#stage[data-theme="day"] .ai-bubble-box { background:rgba(255,255,255,.88); }
.voice-btn-box { left:135px; top:896px; width:345px; height:68px; border-radius:34px; background:rgba(20,30,54,.50); border:1px solid rgba(255,255,255,.16); box-shadow:none; }
.voice-btn-inner { padding-left:24px; gap:10px; }
.voice-icon-wrapper { width:24px; height:33.097px; opacity:1; }
.voice-icon-wrapper img { width:26.667px; height:35.764px; max-width:none; }
.voice-btn-text { font-size:28px; color:rgba(255,255,255,.88); margin-left:0; font-family:'Noto Sans SC','PingFang SC',sans-serif; }
.voice-btn-box.focused { background:rgba(20,30,54,.65); transform:none; box-shadow:none; }
.header-live { top:-40px; }
.card-live { top:68px; }
.card-movie-1,.card-movie-2 { left:16px; }
.card-body.is-focused { transform:scale(1.08); transform-origin:center center; }
.focus-indicator { box-shadow:none; }
.poster-card-item.active { transform:scale(1.08); transform-origin:center center; }
/* 为 1.08 倍卡片保留向左展开空间，海报仍由独立遮罩限制。 */
.stream-viewport { left:620px; width:1300px; }
.stream-container { left:54px; }

/* 标题与相邻行均为 1.08 放大边界预留空间。 */
.item-movie-1 { top:717px; }
.card-movie-1,.card-movie-2 { top:94px; }
.item-movie-2 { top:1459px; }
.item-posters-row { top:2232px; }
.posters-section-title { top:-24px; }

/* toast保持227px顶边，直播内容单独让出标题与32px间距。 */
.reservation-pill { top:-149px; }
/* 让句末标点留在本行，避免预约话术出现单独一行的逗号。 */
.bubble-content { width:400px; }
