/* 奇优影院 - 淡黑金奢华视觉系统 (Pale Black Gold) */
:root {
  --bg-primary: #0b0c10;
  --bg-secondary: #13151b;
  --bg-card: #181a22;
  --bg-card-hover: #1f222d;
  --gold-primary: #dfb260;
  --gold-light: #f3cf7a;
  --gold-dark: #b88e38;
  --gold-muted: rgba(223, 178, 96, 0.15);
  --gold-border: rgba(223, 178, 96, 0.28);
  --gold-glow: rgba(223, 178, 96, 0.35);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold-subtle: rgba(223, 178, 96, 0.2);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0c10;
}
::-webkit-scrollbar-thumb {
  background: #252834;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Gold Gradient Text & Effects */
.text-gold-gradient {
  background: linear-gradient(135deg, #fff2cc 0%, #dfb260 50%, #b88e38 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gold-light {
  color: var(--gold-light);
}

.bg-gold-primary {
  background-color: var(--gold-primary);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #dfb260 0%, #f3cf7a 50%, #b88e38 100%);
}

.bg-gold-gradient-hover:hover {
  background: linear-gradient(135deg, #f3cf7a 0%, #ffe299 50%, #dfb260 100%);
}

.border-gold {
  border-color: var(--gold-border);
}

.border-gold-hover:hover {
  border-color: var(--gold-primary);
}

/* Glassmorphism & Gold Card Styles */
.gold-card {
  background: linear-gradient(180deg, rgba(26, 29, 39, 0.85) 0%, rgba(17, 19, 26, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(12px);
}

.gold-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px -5px rgba(223, 178, 96, 0.2);
  transform: translateY(-4px);
}

.gold-card-active {
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px -5px rgba(223, 178, 96, 0.3);
}

/* Movie Poster Image Hover Scale */
.poster-wrapper {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  background-color: #12141c;
}

.poster-img {
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1), filter 0.4s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.gold-card:hover .poster-img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

/* Badge Styles */
.badge-gold {
  background: linear-gradient(135deg, rgba(223, 178, 96, 0.25) 0%, rgba(184, 142, 56, 0.35) 100%);
  border: 1px solid rgba(223, 178, 96, 0.5);
  color: #f3cf7a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.02em;
}

.badge-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.35) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.badge-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(29, 78, 216, 0.35) 100%);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

/* Navigation Links */
.nav-link {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-radius: 2px;
}

/* Gold Buttons */
.btn-gold {
  background: linear-gradient(135deg, #dfb260 0%, #f3cf7a 50%, #b88e38 100%);
  color: #0b0c10;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(223, 178, 96, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f3cf7a 0%, #ffe299 50%, #dfb260 100%);
  box-shadow: 0 6px 20px rgba(223, 178, 96, 0.45);
  transform: translateY(-2px);
}

.btn-gold-outline {
  background: rgba(223, 178, 96, 0.08);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-gold-outline:hover {
  background: rgba(223, 178, 96, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Floating Actions */
.floating-widget {
  position: fixed;
  z-index: 90;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-app-btn {
  bottom: 95px;
  right: 24px;
  background: linear-gradient(135deg, #1e212b 0%, #11131a 100%);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(223, 178, 96, 0.35);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-weight: 700;
  cursor: pointer;
  animation: pulse-glow 3s infinite;
  text-decoration: none;
}

.floating-app-btn:hover {
  transform: scale(1.05) translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(223, 178, 96, 0.6);
}

.floating-service-btn {
  bottom: 30px;
  right: 24px;
  background: linear-gradient(135deg, #dfb260 0%, #b88e38 100%);
  color: #0b0c10;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(223, 178, 96, 0.4);
  border: none;
}

.floating-service-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(223, 178, 96, 0.6);
}

.back-to-top {
  bottom: 30px;
  right: 86px;
  background: #1a1d26;
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold-primary);
  color: #0b0c10;
  border-color: var(--gold-primary);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(223, 178, 96, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 25px rgba(223, 178, 96, 0.6);
  }
}

/* Modal Backdrops */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: #13151e;
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(223, 178, 96, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Filter Tag Buttons */
.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--gold-light);
  background: rgba(223, 178, 96, 0.08);
}

.filter-btn.active {
  color: #0b0c10;
  background: linear-gradient(135deg, #dfb260 0%, #f3cf7a 100%);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(223, 178, 96, 0.3);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background: #181b26;
  border-left: 4px solid var(--gold-primary);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  color: #f1f5f9;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Simulated Video Player */
.player-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold-primary);
  border-radius: 3px;
  width: 35%;
}

/* Ranking Number in Hot Section */
.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  z-index: 10;
}

.rank-top1 {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
}

.rank-top2 {
  background: linear-gradient(135deg, #f97316, #c2410c);
  color: #fff;
}

.rank-top3 {
  background: linear-gradient(135deg, #eab308, #a16207);
  color: #0b0c10;
}

.rank-normal {
  background: rgba(0, 0, 0, 0.7);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
