/* ==========================================================================
   极速影院 (Speed Cinema) - 淡黑金官方品牌企业站样式表
   100% 独立纯静态 CSS，无需 Node/NPM 编译，解压即用
   ========================================================================== */

:root {
  --gold-primary: #D4AF37;
  --gold-light: #F5E6AB;
  --gold-dark: #9A7B1C;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --bg-deep: #08090C;
  --bg-surface: #10121A;
  --bg-card: #151824;
  --bg-card-hover: #1A1E2D;
  --border-subtle: rgba(212, 175, 55, 0.18);
  --border-hover: rgba(212, 175, 55, 0.45);
  --text-main: #E2E4EC;
  --text-muted: #8E94A7;
  --text-dim: #646A7E;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #08090C;
  color: #E2E4EC;
  overflow-x: hidden;
  line-height: 1.6;
}

/* 字体与字体族 */
.font-cinzel {
  font-family: 'Cinzel', 'Noto Sans SC', serif;
}

/* 自定义暗金滚动条 */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #0A0C11;
}
::-webkit-scrollbar-thumb {
  background: #252938;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;
}

/* 文本选择颜色 */
::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #FFF4D0;
}

/* 金色渐变类 */
.text-gold-gradient {
  background: linear-gradient(135deg, #FFF4D0 0%, #D4AF37 50%, #AA820A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gold-subtle {
  background: linear-gradient(180deg, #FFFFFF 20%, #D8C390 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #E6C25B 0%, #D4AF37 50%, #B89222 100%);
}

.bg-gold-glow {
  box-shadow: 0 0 25px -5px rgba(212, 175, 55, 0.25);
}

.card-gold-surface {
  background: linear-gradient(180deg, rgba(20, 23, 34, 0.85) 0%, rgba(13, 15, 23, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
}
.card-gold-surface:hover {
  border-color: rgba(212, 175, 55, 0.42);
}

/* 常用版心宽度约束 */
.sc-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .sc-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .sc-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* 基础交互动效 */
a, button {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* 影片卡片 hover 状态 */
.movie-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.8), 0 0 15px -3px rgba(212, 175, 55, 0.2);
}

/* 弹幕浮动动画 */
@keyframes danmakuRoll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* 呼吸光动画 */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
  }
}
.animate-gold-pulse {
  animation: goldPulse 3s infinite ease-in-out;
}

/* 弹窗遮罩 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #0C0E16;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}
