/* ==============================================================================
   沉浸式大屏电视主页 - 视觉与动效样式表 (tv-home.css)
   100% 像素级对齐设计效果图：
   - 顶部居中胶囊：发现 / 看电视(发光药丸) / 精选
   - 第一行：3D Cover Flow 轮播展台 (默认 CCTV-1 新闻联播直播) + 地面镜面反射倒影
   - 第二行：5大晶体功能入口卡片 (搜索、频道、回看、免费、历史记录) + 地面倒影
   ============================================================================== */

:root {
  --bg-space: #030814;
  --primary-blue: #1e70ff;
  --card-radius: 18px;
  --trailer-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-space);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #ffffff;
}

/* 1920×1080 大屏自适应舞台 */
.screen-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-space);
}

.tv-stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  flex-shrink: 0;
  transform-origin: center center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 64px 28px 64px;
  background: #030814 url('../images/tv-home/stage_ambient_glow.jpg') no-repeat center center;
  background-size: cover;
}

/* 顶部与环境漫反射光晕 */
.ambient-glow-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(30, 115, 255, 0.42) 0%, rgba(16, 68, 180, 0.18) 48%, transparent 75%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
}

.ambient-glow-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 360px;
  background: radial-gradient(ellipse at 50% 100%, rgba(20, 75, 170, 0.25) 0%, rgba(8, 25, 65, 0.1) 55%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* ==============================================================================
   顶部导航条 (Top Nav)
   位置下移 20px，落焦时整体放大 (scale 1.08)，离焦时整体缩小 (scale 0.9)
   ============================================================================== */
.top-nav-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 58px;
  margin-top: 20px;
  /* 离焦默认状态：整体微缩、弱化背景争夺 */
  transform: scale(0.9);
  transform-origin: center center;
  opacity: 0.82;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.3s ease, filter 0.3s ease;
}

/* 导航栏整体落焦：整体平滑放大展开并高亮 */
.top-nav-bar.is-focused {
  transform: scale(1.08);
  opacity: 1;
  filter: drop-shadow(0 6px 24px rgba(28, 117, 255, 0.45));
}

.nav-container {
  display: inline-flex;
  align-items: center;
  gap: 42px;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 58px;
  padding: 0 34px;
  border-radius: 29px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
  outline: none;
}

.nav-tab svg {
  width: 33px;
  height: 33px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* 1. 离焦选中态 (当前在看电视页面，但光标在下方第一/二行)
   - 纯净底色，绝对无描边
   - 背后有向外扩散的圆形渐变高亮发光光晕 */
.nav-tab.active {
  background: linear-gradient(180deg, #1d78ff 0%, #0d54cc 100%);
  color: #ffffff;
  border: 2px solid transparent;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(10, 40, 110, 0.4);
}

/* 在【看电视】背后增加圆形渐变高亮发光效果 */
.nav-tab.active::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 290px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(50, 155, 255, 0.95) 0%, rgba(26, 115, 255, 0.55) 38%, rgba(12, 70, 210, 0.18) 65%, transparent 78%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 3.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.92; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* 2. 落焦状态：当移动到上面导航项时，必须展现非常明显的落焦框！
   - 白亮双层外发光边框，微缩放，立体高光！
   - 无论落焦在精选、看电视、还是发现，都能清晰展现明显的落焦边框！ */
.top-nav-bar.is-focused .nav-tab.focused {
  border: 2.2px solid #ffffff;
  background: linear-gradient(180deg, #227eff 0%, #1059d6 100%);
  color: #ffffff;
  box-shadow: 0 0 36px rgba(80, 175, 255, 0.95), 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 3px rgba(255, 255, 255, 0.7);
  transform: scale(1.05);
  font-weight: 600;
}

/* 如果落焦在非 active 的项（如精选或发现） */
.top-nav-bar.is-focused .nav-tab.focused:not(.active) {
  border: 2.2px solid #ffffff;
  background: rgba(28, 115, 255, 0.4);
  box-shadow: 0 0 28px rgba(65, 160, 255, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ==============================================================================
   第一行：3D Trailer 轮播展台 (Multi-Trailer Cover Flow)
   ============================================================================== */
.trailer-stage-row {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 685px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

/* 地表大景身高斯模糊漫反射光晕层 (电影级柔化光晕，彻底杜绝生硬清晰文字倒影) */
.trailer-stage-row::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 1260px;
  height: 90px;
  background: radial-gradient(ellipse at 50% 0%, rgba(35, 115, 250, 0.38) 0%, rgba(20, 80, 190, 0.16) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 5;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* 固定中央焦点视窗 (Fixed Center Focus Viewport - 严格 16:9 比例 1200×675，放大 10%)
   当焦点在第一行时始终固定在屏幕中央，卡片在视窗下方左右流动滑动 */
.fixed-center-focus-frame {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 675px;
  border-radius: var(--trailer-radius);
  border: 3.5px solid transparent;
  pointer-events: none;
  z-index: 22;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
  box-sizing: border-box;
}

.fixed-center-focus-frame.active {
  border-color: #6bb5ff;
  box-shadow: 0 0 52px rgba(50, 150, 255, 0.75), 0 25px 85px rgba(0, 0, 0, 0.85), inset 0 0 24px rgba(115, 200, 255, 0.45);
}

.fixed-center-focus-frame.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--trailer-radius) + 4px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  opacity: 0.55;
  filter: drop-shadow(0 0 8px rgba(100, 190, 255, 0.9));
  pointer-events: none;
}

/* ==============================================================================
   Trailer 15s 自动进入大屏倒计时徽标 (Television Countdown Badge)
   ============================================================================== */
.trailer-countdown-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 12px;
  background: rgba(9, 17, 34, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.2px solid rgba(135, 195, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 24px rgba(45, 130, 255, 0.4);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.4px;
  z-index: 30;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.25, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1), background-color 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.fixed-center-focus-frame.active .trailer-countdown-badge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trailer-countdown-badge:hover {
  background: rgba(15, 30, 60, 0.95);
  border-color: rgba(175, 220, 255, 0.7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 30px rgba(56, 189, 248, 0.6);
}

.countdown-svg-ring {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

.countdown-ring-bg {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 3.6;
  fill: none;
}

.countdown-ring-bar {
  stroke: #38bdf8;
  stroke-width: 3.6;
  stroke-linecap: round;
  fill: none;
  transition: stroke-dasharray 0.95s linear;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.85));
}

.countdown-time-sec {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  min-width: 28px;
  text-align: right;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.countdown-divider {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.countdown-action-text {
  font-size: 15px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.95);
  white-space: nowrap;
}

/* 单个 Trailer 卡片 (严格 16:9 比例：1200px × 675px) */
.trailer-card {
  position: absolute;
  top: 5px;
  width: 1200px;
  height: 675px;
  border-radius: var(--trailer-radius);
  cursor: pointer;
  outline: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.3, 1), opacity 0.4s ease, filter 0.4s ease;
  transform-style: preserve-3d;
  /* 电影级柔化微光倒影 (仅保留贴边微光，20%迅速衰减至0，彻底杜绝文字倒映) */
  -webkit-box-reflect: below 5px linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.04) 10%, transparent 20%, transparent 100%);
}

.trailer-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--trailer-radius);
  overflow: hidden;
  background-color: #0b152d;
  border: 2px solid rgba(135, 185, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(22, 80, 190, 0.35);
}

.trailer-media-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #0b152d;
}

.trailer-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.trailer-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.25, 1);
  z-index: 1;
}

/* 延时 2 秒起播状态：视频淡入，海报优雅退场 */
.trailer-card.is-video-playing .trailer-video-el {
  opacity: 1;
}

.trailer-card.is-video-playing .trailer-poster-img {
  opacity: 0;
}

/* 景深遮罩层：从底部向上的暗调渐变，衬托博主头像与标题文字 */
.trailer-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 20, 0) 35%, rgba(3, 8, 20, 0.45) 62%, rgba(2, 6, 16, 0.94) 100%),
              linear-gradient(90deg, rgba(2, 6, 16, 0.85) 0%, rgba(2, 6, 16, 0.4) 45%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}

/* 前景博主信息与标题层 (左下角叠放，无点赞) */
.trailer-info-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 30px 38px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  transform: translateZ(25px);
}

.trailer-title-line {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.trailer-main-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  line-height: 1.25;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95);
}

.trailer-author-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trailer-avatar-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.trailer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.trailer-cert-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.trailer-cert-badge svg {
  width: 100%;
  height: 100%;
}

.trailer-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trailer-author-name {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.trailer-author-stats {
  font-size: 14px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.88);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==============================================================================
   电视直播专属左下角标识 (卡片0 综合频道 · 绝无博主信息)
   仅显示：【直播中】 CCTV-1 HD / 正在播放 新闻联播
   ============================================================================== */
.trailer-live-stream-overlay .live-status-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.trailer-live-stream-overlay .live-indicator-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.trailer-live-stream-overlay .live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseLiveDot 1.4s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.trailer-live-stream-overlay .live-channel-code {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.trailer-live-stream-overlay .trailer-main-title {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95);
}

/* ==============================================================================
   3D Cover Flow 透视分布 (对齐设计图露出的左右两翼宽度与角度)
   ============================================================================== */

/* 中央主卡 (当前 Active) */
.trailer-card.pos-center {
  z-index: 15;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: brightness(1);
}

.trailer-card.pos-center .trailer-inner {
  border-color: rgba(130, 205, 255, 0.75);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.8), 0 0 55px rgba(35, 125, 255, 0.55);
}

.trailer-card.pos-center.focused .trailer-inner {
  border: 3.5px solid #66b5ff;
  box-shadow: 0 32px 95px rgba(0, 0, 0, 0.9), 0 0 75px rgba(50, 145, 255, 0.85), inset 0 0 24px rgba(120, 205, 255, 0.45);
  transform: scale(1.018);
}

/* 左侧副卡 (向右倾斜) */
.trailer-card.pos-left {
  z-index: 8;
  transform: translate3d(-690px, 0, -150px) rotateY(20deg) scale(0.88);
  opacity: 0.85;
  filter: brightness(0.85);
}

/* 右侧副卡 (向左倾斜) */
.trailer-card.pos-right {
  z-index: 8;
  transform: translate3d(690px, 0, -150px) rotateY(-20deg) scale(0.88);
  opacity: 0.85;
  filter: brightness(0.85);
}

/* 远端卡片 */
.trailer-card.pos-far-left {
  z-index: 2;
  transform: translate3d(-1220px, 0, -340px) rotateY(32deg) scale(0.72);
  opacity: 0;
  pointer-events: none;
}

.trailer-card.pos-far-right {
  z-index: 2;
  transform: translate3d(1220px, 0, -340px) rotateY(-32deg) scale(0.72);
  opacity: 0;
  pointer-events: none;
}

/* ==============================================================================
   第二行：5个精致晶体功能入口卡片 (Quick Entry Cards)
   ============================================================================== */
.entry-bar-row {
  position: relative;
  z-index: 25;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  height: 122px;
  margin-top: 4px;
}

.entry-card {
  position: relative;
  height: 122px;
  border-radius: var(--card-radius);
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  border: 1.8px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
  -webkit-box-reflect: below 4px linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.03) 12%, transparent 22%, transparent 100%);
}

.entry-icon-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1.4px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.25);
}

.entry-icon-wrap svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  stroke-width: 2.2;
}

.entry-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
}

.entry-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-main-title {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.2;
}

.entry-sub-title {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 1. 搜索卡片 */
.entry-card.type-search {
  background: linear-gradient(135deg, rgba(18, 34, 65, 0.88) 0%, rgba(8, 18, 38, 0.92) 100%);
  border-color: rgba(100, 155, 230, 0.28);
}

/* 2. 频道卡片：高亮科技蓝 */
.entry-card.type-channel {
  background: linear-gradient(135deg, #185ecc 0%, #0d449e 100%);
  border-color: rgba(140, 200, 255, 0.7);
  box-shadow: 0 10px 35px rgba(24, 94, 204, 0.5);
}
.entry-card.type-channel .entry-icon-wrap {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

/* 3. 回看卡片 */
.entry-card.type-replay {
  background: linear-gradient(135deg, rgba(38, 40, 102, 0.88) 0%, rgba(20, 22, 65, 0.92) 100%);
  border-color: rgba(145, 135, 245, 0.3);
}
.entry-card.type-replay .entry-icon-wrap {
  background: rgba(115, 100, 235, 0.22);
  border-color: rgba(185, 175, 255, 0.38);
}

/* 4. 免费卡片 */
.entry-card.type-free {
  background: linear-gradient(135deg, rgba(135, 78, 22, 0.92) 0%, rgba(72, 38, 12, 0.96) 100%);
  border-color: rgba(255, 190, 80, 0.45);
  box-shadow: 0 10px 32px rgba(135, 78, 22, 0.35);
}
.entry-card.type-free .entry-icon-wrap {
  background: rgba(255, 180, 50, 0.22);
  border-color: rgba(255, 215, 105, 0.5);
}
.crown-badge {
  color: #ffb834;
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 2px 6px rgba(255, 184, 52, 0.6));
}

/* 5. 历史记录卡片 */
.entry-card.type-history {
  background: linear-gradient(135deg, rgba(16, 68, 66, 0.9) 0%, rgba(8, 38, 36, 0.95) 100%);
  border-color: rgba(65, 195, 175, 0.35);
}
.entry-card.type-history .entry-icon-wrap {
  background: rgba(45, 175, 155, 0.22);
  border-color: rgba(105, 235, 210, 0.45);
}

/* 焦点高亮 */
.entry-card.focused,
.entry-card:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 36px rgba(95, 175, 255, 0.75);
  z-index: 30;
}

.entry-card.type-free.focused,
.entry-card.type-free:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 38px rgba(255, 190, 55, 0.75);
}

.entry-card.type-history.focused,
.entry-card.type-history:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 38px rgba(55, 225, 195, 0.75);
}

/* 全屏与 Toast */
/* ==============================================================================
   全屏电视直播流播放器 (CCTV-1 专属 · 上下键切台)
   ============================================================================== */
.fullscreen-player-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background-color: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

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

.fullscreen-video-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #020611;
}

.fullscreen-video-host video,
.fullscreen-video-host img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

/* 换台瞬态切屏微遮罩 */
.fullscreen-video-host.switching video,
.fullscreen-video-host.switching img {
  opacity: 0.15;
}

/* 换台切台 OSD 悬浮信息条 (顶部居中大胶囊) */
.live-channel-osd {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 20;
  width: 1120px;
  height: 98px;
  border-radius: 24px;
  background: rgba(8, 16, 36, 0.88);
  border: 1.8px solid rgba(130, 195, 255, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(28, 117, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.85, 0.3, 1);
  pointer-events: none;
}

.live-channel-osd.hidden {
  opacity: 0;
  transform: translate(-50%, -24px);
}

.osd-left-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osd-cctv-text {
  font-family: "Impact", "Arial Black", sans-serif;
  font-size: 34px;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.osd-cctv-num {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-weight: 900;
  font-size: 26px;
  background: #ffffff;
  color: #0b1f48;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.osd-center-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 0 36px;
}

.osd-title-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.osd-channel-name {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.osd-program-name {
  font-size: 22px;
  font-weight: 600;
  color: #82bcff;
}

.osd-quality-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(30, 120, 255, 0.3);
  border: 1px solid rgba(130, 195, 255, 0.5);
  color: #cbe3ff;
}

.osd-progress-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.osd-progress-track {
  width: 280px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.osd-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e70ff, #00d2ff);
  border-radius: 3px;
}

.osd-schedule-time {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.osd-right-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.osd-channel-idx {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
}

/* 右上角返回按钮 */
.fs-exit-pill {
  position: absolute;
  top: 42px;
  right: 48px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 20px;
  background: rgba(15, 25, 50, 0.75);
  border: 1.2px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  outline: none;
}

.fs-exit-pill:hover {
  background: rgba(30, 80, 180, 0.9);
  border-color: #ffffff;
  transform: scale(1.05);
}

.pure-toast {
  position: absolute;
  top: 48px;
  right: 64px;
  padding: 12px 24px;
  background: rgba(15, 30, 60, 0.85);
  border: 1px solid rgba(120, 180, 255, 0.35);
  border-radius: 24px;
  font-size: 16px;
  color: #ffffff;
  backdrop-filter: blur(12px);
  z-index: 80;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.pure-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================================================
   双视图系统架构 (看电视 tvHomeView vs 发现流 discoverFeedView)
   ============================================================================== */
.tv-home-view {
  position: absolute;
  top: 132px; /* Trailer 行整体下移，与顶部导航保持 54px 开阔舒适呼吸间距 */
  left: 64px;
  right: 64px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition: opacity 0.38s cubic-bezier(0.2, 0.8, 0.25, 1), transform 0.38s cubic-bezier(0.2, 0.8, 0.25, 1);
  z-index: 10;
}

.tv-home-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.discover-feed-view {
  position: absolute;
  top: 105px;
  left: 64px;
  right: 64px;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(28px);
  transition: opacity 0.38s cubic-bezier(0.2, 0.8, 0.25, 1), transform 0.38s cubic-bezier(0.2, 0.8, 0.25, 1);
  overflow: hidden;
  z-index: 10;
}

.discover-feed-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.discover-feed-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-right: 8px;
  padding-bottom: 90px;
}

/* 隐藏原生滚动条 */
.discover-feed-scroll::-webkit-scrollbar {
  display: none;
}
.discover-feed-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 楼层标题行样式 */
.stream-floor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 16px 0;
}

.floor-title-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.floor-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(30, 112, 255, 0.15);
  color: #38bdf8;
}

.floor-badge-icon svg {
  width: 22px;
  height: 22px;
}

.floor-title-text {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.floor-pill-tag {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.floor-pill-tag.tag-blue {
  background: rgba(30, 112, 255, 0.25);
  color: #70b4ff;
  border: 1px solid rgba(80, 160, 255, 0.35);
}

.floor-pill-tag.tag-orange {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* 关注博主横滑货架 (卡片缩小，间距翻倍为 44px) */
.elder-update-shelf {
  width: 100%;
  margin-bottom: 36px;
}

.elder-shelf-track {
  display: flex;
  gap: 44px; /* 现有间距 22px 的 2 倍 */
  overflow-x: auto;
  padding: 8px 6px 18px 6px;
  scrollbar-width: none;
}

.elder-shelf-track::-webkit-scrollbar {
  display: none;
}

.elder-update-card {
  flex: 0 0 310px; /* 卡片精致缩小，留出大屏呼吸感 */
  background: rgba(16, 26, 48, 0.85);
  border: 1.8px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.elder-card-cover {
  position: relative;
  width: 100%;
  height: 180px; /* 纯正 16:9 比例 (320 × 180)，由 238px 缩小 */
  background-size: cover;
  background-position: center;
}

.elder-card-creator-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.elder-card-creator-pill img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.elder-card-play-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 112, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.elder-card-play-btn svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
}

.elder-card-body {
  padding: 12px 16px;
}

.elder-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.elder-card-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* 种草流网格横排容器 (卡片缩小，间距翻倍为 48px) */
.feed-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px; /* 现有间距 24px 的 2 倍 */
  margin-bottom: 50px; /* 行间距大幅放宽，透气舒展 */
}

.feed-note-card {
  position: relative;
  background: rgba(16, 26, 48, 0.85);
  border: 1.8px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.feed-note-card .note-cover {
  position: relative;
  width: 100%;
  height: 195px; /* 卡片封面大幅缩小：由 295px 缩小为 195px 黄金大屏比例 */
  background-size: cover;
  background-position: center;
}

.feed-note-card .note-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
  pointer-events: none;
}

.live-stream-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.note-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.note-badge.badge-film { color: #60a5fa; }
.note-badge.badge-shortplay { color: #f472b6; }
.note-badge.badge-life { color: #34d399; }
.note-badge.badge-kids { color: #4ade80; }
.note-badge.badge-doc { color: #fbbf24; }

.note-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.note-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 2;
}

.note-play-icon svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.feed-note-card .note-body {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.note-author-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1.2px solid rgba(255, 255, 255, 0.4);
}

.note-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.note-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.note-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

/* 发现流卡片落焦状态 */
.elder-update-card.focused,
.feed-note-card.focused {
  border-color: #60a5fa !important;
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.75), 0 16px 36px rgba(0, 0, 0, 0.65) !important;
  transform: scale(1.04) !important;
  z-index: 10;
}

/* 发现流卡片 2s 落焦即播视频体系 */
.card-inline-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.25, 1);
  z-index: 1;
  pointer-events: none;
}

.elder-update-card.is-video-playing .card-inline-video,
.feed-note-card.is-video-playing .card-inline-video {
  opacity: 1;
}

.elder-update-card.is-video-playing .elder-card-play-btn {
  transform: scale(0.85);
  opacity: 0.7;
  background: rgba(37, 99, 235, 0.85);
}

.feed-note-card.is-video-playing .note-play-icon {
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0.7;
  background: rgba(37, 99, 235, 0.85);
}

