/* 🌠 meteor-theme.css - 迪亚马特彗星全景 3D 动态背景与流体玻璃深度融合样式 */

:root {
  --meteor-tiamat-cyan: #4deeea;
  --meteor-tiamat-pink: #ff4081;
  --meteor-gold-sun: #ffeaa7;
  --meteor-night-bg: #050711;
  --meteor-spring-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. 3D WebGL 全景底层容器 */
.sakura-meteor-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* 兜底底色：与天空同色系（不再是近黑 #050711），
     即使 WebGL 画布某一帧未上屏，露出的也只是天色而不是"黑框一闪而过" */
  background: radial-gradient(circle at 50% 30%, #2d4a74 0%, #1a2d4e 60%, #0e1a33 100%);
}

[data-meteor-mode="NIGHT"] .sakura-meteor-container {
  background: radial-gradient(circle at 50% 30%, #24375c 0%, #131f3a 60%, #0b1428 100%);
}

.sakura-meteor-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* 允许鼠标移动触发 3D 纵深视差 */
}

/* 隐藏老旧静态底图与多余图层，使 3D 云海与彗星透出 */
#dynamic-bg-container,
.detail-background,
.garden-background {
  display: none !important;
}

/* 2. 网站容器与流体玻璃通透化 */
.site-wrapper {
  position: relative;
  z-index: 5;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* 开幕初始阶段：组件优雅隐藏，等待镜头俯冲进入交接点，避免文字与卡片重叠 */
.meteor-intro-active:not(.intro-skipped) .site-wrapper {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(24px) scale(0.98) !important;
  will-change: opacity, transform;
}

.meteor-intro-active:not(.intro-skipped) .site-header {
  opacity: 0 !important;
  transform: translateY(-24px) !important;
}

.meteor-intro-active:not(.intro-skipped) .main-grid,
.meteor-intro-active:not(.intro-skipped) .sidebar,
.meteor-intro-active:not(.intro-skipped) .main-column {
  opacity: 0 !important;
  transform: translateY(24px) !important;
}

/* 顺势入场阶段（is-entering）：由镜头 2.0s 处交叠启动，组件阶梯错峰升起 */
.site-wrapper.is-entering {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0px) !important;
  transition: opacity 0.8s var(--meteor-spring-ease), transform 0.8s var(--meteor-spring-ease), filter 0.8s var(--meteor-spring-ease);
}

.site-wrapper.is-entering .site-header {
  animation: meteorNavSlideDown 0.85s var(--meteor-spring-ease) forwards;
}

.site-wrapper.is-entering .sidebar {
  animation: meteorWidgetFloatIn 0.95s var(--meteor-spring-ease) 0.08s forwards;
}

.site-wrapper.is-entering .main-column {
  animation: meteorContentRise 1.05s var(--meteor-spring-ease) 0.16s forwards;
}

@keyframes meteorNavSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes meteorContentRise {
  0% {
    opacity: 0;
    transform: translateY(38px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes meteorWidgetFloatIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 彻底就位或跳过状态（is-entered / intro-skipped）：保证干净利落的默认显示状态 */
.intro-skipped .site-wrapper,
.intro-skipped .site-header,
.intro-skipped .main-grid,
.intro-skipped .sidebar,
.intro-skipped .main-column,
.site-wrapper.is-entered,
.site-wrapper.is-entered .site-header,
.site-wrapper.is-entered .main-grid,
.site-wrapper.is-entered .sidebar,
.site-wrapper.is-entered .main-column {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  pointer-events: auto !important;
}

.intro-skipped #splash-screen {
  display: none !important;
}

/* ==========================================================================
   全站紧凑化收敛与流体毛玻璃美术重构 (One-Screen Compact & Celestial Glass)
   ========================================================================== */

:root {
  --max-width: 1220px !important;
  --sidebar-width: 248px !important;
  --layout-gap: 16px !important;
}

/* 网站容器紧凑化：让 1080p 屏幕一屏纳全貌，留出充足的天幕留白给 3D 流星与彗星 */
.site-wrapper {
  max-width: var(--max-width) !important;
  padding: 12px 20px 20px !important;
  margin: 0 auto !important;
}

/* 顶部导航栏收敛 */
.site-header {
  top: 10px !important;
  margin-bottom: 14px !important;
}

.navbar {
  padding: 8px 18px !important;
  gap: 14px !important;
  border-radius: 20px !important;
}

.logo-area {
  font-size: 1.05rem !important;
  gap: 10px !important;
}

.logo-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.95rem !important;
}

.nav-links {
  gap: 8px !important;
}

.nav-btn {
  padding: 6px 14px !important;
  min-width: 82px !important;
  font-size: 0.82rem !important;
  border-radius: 18px !important;
}

/* 侧边栏紧凑精致化：头像、时钟、音乐播放器一屏完整呈现 */
.sidebar {
  top: 68px !important;
  gap: 12px !important;
}

.profile-widget,
.clock-weather-widget,
.music-player-widget {
  padding: 12px 14px !important;
  border-radius: 18px !important;
}

/* 头像与个人资料卡片 */
.profile-widget {
  gap: 8px !important;
}

.profile-avatar-container {
  width: 66px !important;
  height: 66px !important;
  padding: 3px !important;
}

.profile-name {
  font-size: 1.05rem !important;
  margin: 2px 0 0 !important;
}

.profile-motto {
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  padding: 0 4px !important;
}

.social-links {
  gap: 8px !important;
  margin-top: 2px !important;
}

.social-btn {
  width: 30px !important;
  height: 30px !important;
  font-size: 0.78rem !important;
}

/* 时钟天气小组件 */
.clock-weather-widget {
  gap: 10px !important;
}

.analog-clock {
  width: 86px !important;
  height: 86px !important;
}

.hand-hour {
  height: 22px !important;
  width: 3px !important;
}

.hand-minute {
  height: 34px !important;
  width: 2px !important;
}

.hand-second {
  height: 38px !important;
  width: 1.2px !important;
}

.weather-info {
  padding: 5px 12px !important;
  gap: 8px !important;
  border-radius: 14px !important;
}

.weather-icon {
  font-size: 0.92rem !important;
}

.weather-temp {
  font-size: 0.88rem !important;
}

.weather-desc {
  font-size: 0.72rem !important;
}

/* 音乐播放器小组件 */
.vinyl-disc-container {
  margin-bottom: 4px !important;
}

.vinyl-disc {
  width: 64px !important;
  height: 64px !important;
}

.player-needle {
  height: 46px !important;
}

.song-info {
  margin: 4px 0 !important;
}

.song-title {
  font-size: 0.82rem !important;
}

.song-artist {
  font-size: 0.7rem !important;
}

.progress-bar-container {
  margin: 4px 0 !important;
}

.progress-track {
  height: 4px !important;
}

.player-controls {
  gap: 8px !important;
  margin-top: 4px !important;
}

.player-btn {
  width: 30px !important;
  height: 30px !important;
  font-size: 0.75rem !important;
}

.player-btn.play-toggle {
  width: 34px !important;
  height: 34px !important;
  font-size: 0.82rem !important;
}

/* 主内容区紧凑化 */
.content-area {
  min-height: auto !important;
}

/* 首页欢迎面板 (Hero Panel) 紧凑艺术化 */
.hero-panel {
  padding: 16px 22px !important;
  margin-bottom: 12px !important;
  border-radius: 18px !important;
}

.hero-panel::after {
  width: 160px !important;
  height: 160px !important;
  right: -40px !important;
  bottom: -50px !important;
}

.hero-panel .section-eyebrow {
  font-size: 0.72rem !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.12em !important;
}

.hero-panel h2 {
  font-size: 1.35rem !important;
  margin-bottom: 6px !important;
}

.hero-panel p {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  margin-bottom: 6px !important;
}

.hero-panel blockquote {
  margin-top: 6px !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
}

/* 首页推荐卡片组 (Home Cards) */
.home-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

.home-card {
  padding: 12px 14px !important;
  min-height: 84px !important;
  border-radius: 16px !important;
}

.home-card i {
  font-size: 1.15rem !important;
  margin-bottom: 4px !important;
}

.home-card h2 {
  font-size: 0.95rem !important;
  margin-bottom: 3px !important;
}

.home-card p {
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
}

/* 各板块卡片紧凑化 (Logs, ACG, Notes, Guest) */
.timeline-container {
  padding: 6px 0 !important;
}

.timeline-item {
  margin-bottom: 12px !important;
}

.log-card {
  padding: 12px 16px !important;
  border-radius: 16px !important;
}

.log-header {
  margin-bottom: 6px !important;
  font-size: 0.74rem !important;
}

.log-title {
  font-size: 1.05rem !important;
  margin-bottom: 6px !important;
}

.log-content {
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
  margin-bottom: 8px !important;
}

.polaroid-frame {
  max-width: 200px !important;
  padding: 5px !important;
}

.acg-grid {
  gap: 12px !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
}

.acg-card {
  border-radius: 16px !important;
}

.acg-banner {
  height: 120px !important;
}

.acg-body {
  padding: 10px 12px !important;
}

.acg-title {
  font-size: 0.95rem !important;
  margin-bottom: 4px !important;
}

.acg-review {
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  margin-bottom: 6px !important;
}

.acg-score {
  font-size: 0.82rem !important;
}

.notes-grid {
  gap: 12px !important;
}

.note-empty,
.note-card {
  padding: 16px 20px !important;
  border-radius: 16px !important;
}

.guestbook-input-section {
  padding: 14px 18px !important;
  margin-bottom: 12px !important;
  border-radius: 16px !important;
}

.guestbook-input-section h2 {
  font-size: 1.05rem !important;
  margin-bottom: 8px !important;
}

.input-group {
  margin-bottom: 8px !important;
}

.input-label {
  font-size: 0.76rem !important;
  margin-bottom: 4px !important;
}

.neo-input {
  padding: 7px 12px !important;
  font-size: 0.82rem !important;
  border-radius: 12px !important;
}

.neo-textarea {
  min-height: 54px !important;
  padding: 7px 12px !important;
  font-size: 0.82rem !important;
  border-radius: 12px !important;
}

.form-submit {
  padding: 6px 16px !important;
  font-size: 0.82rem !important;
  border-radius: 16px !important;
}

/* 页脚紧凑化 */
footer {
  margin-top: 14px !important;
  padding: 10px 0 !important;
  font-size: 0.74rem !important;
  gap: 6px !important;
}

.footer-btn {
  padding: 5px 14px !important;
  font-size: 0.76rem !important;
  border-radius: 18px !important;
}

/* 高级感流体毛玻璃质感：半透明高透光冰晶玻璃，背景 3D 天幕与流星若隐若现 */
.glass-panel,
.neo-flat,
.log-card,
.acg-card,
.note-card,
.guest-card,
.navbar,
.home-card,
.profile-widget,
.clock-weather-widget,
.music-player-widget {
  background: rgba(255, 255, 255, 0.46) !important;
  backdrop-filter: blur(14px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 10px 28px rgba(10, 16, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s var(--meteor-spring-ease) !important;
}

/* 入场瞬间流体玻璃高光微扫动效 */
@keyframes glassAuraGleam {
  0% {
    box-shadow: 0 10px 28px rgba(10, 16, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }
  45% {
    box-shadow: 0 14px 36px rgba(77, 238, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
  }
  100% {
    box-shadow: 0 10px 28px rgba(10, 16, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }
}

.site-wrapper.is-entering .glass-panel {
  animation: glassAuraGleam 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* 夜空模式下的深海极光星空高透光幕玻璃 */
[data-meteor-mode="NIGHT"] .glass-panel,
[data-meteor-mode="NIGHT"] .neo-flat,
[data-meteor-mode="NIGHT"] .log-card,
[data-meteor-mode="NIGHT"] .acg-card,
[data-meteor-mode="NIGHT"] .note-card,
[data-meteor-mode="NIGHT"] .guest-card,
[data-meteor-mode="NIGHT"] .navbar,
[data-meteor-mode="NIGHT"] .home-card,
[data-meteor-mode="NIGHT"] .profile-widget,
[data-meteor-mode="NIGHT"] .clock-weather-widget,
[data-meteor-mode="NIGHT"] .music-player-widget {
  background: rgba(12, 18, 38, 0.42) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(77, 238, 234, 0.28) !important;
  box-shadow: 0 12px 34px rgba(4, 8, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  color: #eaf3ff !important;
}

[data-meteor-mode="NIGHT"] .profile-name,
[data-meteor-mode="NIGHT"] .hero-panel h2,
[data-meteor-mode="NIGHT"] .home-card h2,
[data-meteor-mode="NIGHT"] .log-title,
[data-meteor-mode="NIGHT"] .acg-title,
[data-meteor-mode="NIGHT"] .song-title {
  color: #ffffff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5) !important;
}

[data-meteor-mode="NIGHT"] .profile-motto,
[data-meteor-mode="NIGHT"] .hero-panel p,
[data-meteor-mode="NIGHT"] .home-card p,
[data-meteor-mode="NIGHT"] .log-content,
[data-meteor-mode="NIGHT"] .acg-review,
[data-meteor-mode="NIGHT"] .song-artist {
  color: rgba(215, 228, 248, 0.85) !important;
}

[data-meteor-mode="NIGHT"] .neo-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

[data-meteor-mode="NIGHT"] .neo-btn:hover {
  background: rgba(77, 238, 234, 0.25) !important;
  border-color: rgba(77, 238, 234, 0.6) !important;
  color: #ffffff !important;
}

/* 3. 网站开幕过渡动效 (Cinematic Opening Sequence) */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent !important; /* 彻底透出底层 3D 运镜 */
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.2, 0, 0.25, 1);
}

#splash-screen.is-leaving,
#splash-screen.is-passing-through {
  opacity: 0 !important;
  pointer-events: none !important;
}

#splash-screen.loaded {
  display: none !important;
}

/* 屏蔽旧版开场静态背景与平面元素 */
#splash-screen .splash-bg,
#splash-screen #intro-video,
#splash-screen #intro-canvas,
#splash-screen .intro-vignette {
  display: none !important;
}

/* 新海诚电影级开幕文案 */
.intro-content {
  position: relative;
  z-index: 10;
  display: grid;
  justify-items: center;
  width: min(880px, calc(100% - 40px));
  padding: 36px;
  color: #ffffff !important;
  text-align: center;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  will-change: opacity, transform;
  transition: opacity 0.8s var(--meteor-spring-ease), transform 0.8s var(--meteor-spring-ease);
}

.meteor-intro-active:not(.intro-skipped) #splash-screen {
  display: grid !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.meteor-intro-active .intro-content,
#splash-screen.is-title-visible .intro-content {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0px) !important;
  visibility: visible !important;
}

/* 穿透散焦消散阶段（由 3D 镜头俯冲交叠触发）：模拟镜头穿破文字云雾向上散去 */
#splash-screen.is-passing-through .intro-content,
#splash-screen.is-leaving .intro-content {
  opacity: 0 !important;
  transform: translateY(-56px) scale(1.12) !important;
  filter: blur(28px) !important;
  transition: opacity 0.38s cubic-bezier(0.32, 0, 0.2, 1), transform 0.38s cubic-bezier(0.32, 0, 0.2, 1), filter 0.38s cubic-bezier(0.32, 0, 0.2, 1) !important;
}

.intro-kicker {
  color: var(--meteor-tiamat-cyan) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.28em !important;
  text-shadow: 0 0 12px rgba(77, 238, 234, 0.75) !important;
}

.intro-content h1 {
  color: #ffffff !important;
  font-size: clamp(2.6rem, 6.5vw, 4.2rem) !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), 0 0 32px rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 16px !important;
}

#intro-daily-verse {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
  line-height: 1.7 !important;
  letter-spacing: 0.06em !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8) !important;
}

/* 开幕跳过按钮：流体玻璃胶囊 */
.intro-skip {
  margin-top: 24px !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.1em !important;
  cursor: pointer !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.3s var(--meteor-spring-ease) !important;
}

.intro-skip:hover {
  background: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 6px 26px rgba(77, 238, 234, 0.45) !important;
}

/* 4. 导航栏右上角时空与声学控制舱 (Time & Atmosphere Controls) */
.meteor-controls-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.meteor-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #3b2c34;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: all 0.3s var(--meteor-spring-ease);
}

.meteor-pill-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(77, 238, 234, 0.3);
  color: #121016;
}

.meteor-pill-btn.is-active {
  border-color: var(--meteor-tiamat-cyan);
  box-shadow: 0 0 16px rgba(77, 238, 234, 0.45);
  background: rgba(255, 255, 255, 0.88);
}

.meteor-pill-btn#meteor-btn-particles.is-active {
  border-color: #ff9ecd;
  box-shadow: 0 0 16px rgba(255, 110, 180, 0.4);
}

[data-meteor-mode="NIGHT"] .meteor-pill-btn {
  background: rgba(20, 28, 54, 0.65);
  border-color: rgba(255, 255, 255, 0.35);
  color: #eaf2fc;
}

[data-meteor-mode="NIGHT"] .meteor-pill-btn:hover {
  background: rgba(28, 40, 78, 0.88);
  border-color: rgba(77, 238, 234, 0.75);
  color: #ffffff;
}

.meteor-pill-btn .btn-icon {
  font-size: 0.95rem;
}

/* ==========================================================================
   5. 全局文章详情页 (yourname.html, 5cm.html, clannad.html, shigatsu.html, post.php)
   透亮 3D 天幕穿透与紧凑优雅阅读排版
   ========================================================================== */

html {
  background: transparent !important;
}

body[data-return-kind="post"],
body[data-scene="acg"],
body[data-scene="notes"],
body[data-target-id] {
  background: transparent !important;
}

body[data-return-kind="post"]::before,
body[data-scene="acg"]::before,
body[data-scene="notes"]::before,
body[data-target-id]::before {
  display: none !important;
}

.envelope-flap,
.envelope-front,
.wax-seal {
  display: none !important;
}

.scene {
  width: min(100%, 860px) !important;
  min-height: auto !important;
  padding: 16px 20px 48px !important;
}

.envelope-wrapper {
  max-width: 820px !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.letter-card {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  max-width: 820px !important;
  padding: 22px 28px !important;
  border-radius: 20px !important;
  background: rgba(255, 252, 250, 0.76) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 16px 48px rgba(10, 16, 32, 0.22) !important;
}

[data-meteor-mode="NIGHT"] .letter-card {
  background: rgba(16, 24, 48, 0.72) !important;
  border-color: rgba(77, 238, 234, 0.3) !important;
  color: #eaf2fc !important;
}

.detail-header {
  gap: 16px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
}

.title-section h1 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem) !important;
  margin-bottom: 6px !important;
}

[data-meteor-mode="NIGHT"] .title-section h1 {
  color: #ffffff !important;
}

.meta-info {
  font-size: 0.78rem !important;
  gap: 8px 14px !important;
}

[data-meteor-mode="NIGHT"] .meta-info {
  color: rgba(210, 225, 245, 0.8) !important;
}

.close-btn {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  font-size: 0.86rem !important;
}

.detail-banner {
  height: clamp(160px, 22vw, 240px) !important;
  margin-bottom: 16px !important;
  border-width: 6px !important;
  border-radius: 14px !important;
}

.quote-box {
  margin-bottom: 16px !important;
  padding: 12px 18px !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  border-radius: 12px !important;
  background: rgba(255, 245, 248, 0.65) !important;
}

[data-meteor-mode="NIGHT"] .quote-box {
  background: rgba(30, 42, 75, 0.5) !important;
  color: #f0f6ff !important;
  border-left-color: var(--meteor-tiamat-cyan) !important;
}

.detail-body {
  font-size: 0.88rem !important;
  line-height: 1.75 !important;
}

.detail-body p {
  margin-bottom: 14px !important;
}

[data-meteor-mode="NIGHT"] .detail-body p {
  color: rgba(225, 236, 252, 0.9) !important;
}

.detail-body h2 {
  font-size: 1.15rem !important;
  margin: 20px 0 10px !important;
}

[data-meteor-mode="NIGHT"] .detail-body h2 {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .meteor-controls-dock {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }
  .meteor-pill-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* 7. 电影级重放转场天幕 (Cinematic Replay Shutter Veil) */
.meteor-transition-veil {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 40%, rgba(20, 28, 52, 0.95) 0%, rgba(10, 16, 32, 0.98) 70%, #050711 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: opacity;
  transition: opacity 0.24s cubic-bezier(0.2, 0, 0.25, 1);
}

.meteor-transition-veil.is-active {
  opacity: 1;
  pointer-events: auto;
}
