:root {
  --bg-color: #0f0f0f;
  --surface-color: #1a1a1a;
  --primary-gold: #c5a059;
  --secondary-gold: #e5c185;
  --accent-gold: #ffd700;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 4px;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-gold);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary-gold);
  margin: 15px auto 0;
}

/* Header */
header {
  height: 80px;
  background: rgba(15, 15, 15, 0.95);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-gold);
  letter-spacing: 2px;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav ul li a:hover {
  color: var(--primary-gold);
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-color);
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 5px;
  outline: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-gold {
  background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
  color: var(--black);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* Float Buttons */
.float-btn {
  position: fixed;
  right: 30px;
  bottom: 100px;
  z-index: 999;
  background: var(--primary-gold);
  color: var(--black);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* Footer */
footer {
  background: var(--surface-color);
  padding: 60px 0 30px;
  border-top: 2px solid var(--primary-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cards */
.movie-card {
  background: var(--surface-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.movie-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.movie-info {
  padding: 15px;
}

.movie-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.rating {
  color: var(--accent-gold);
  font-weight: bold;
}

/* Dynamic List */
.dynamic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dynamic-item {
  padding: 15px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Grid helper */
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .header-container { flex-direction: column; height: auto; padding: 15px 0; }
  header { height: auto; position: relative; }
  nav ul { margin-top: 15px; gap: 15px; flex-wrap: wrap; justify-content: center; }
  .section-title { font-size: 2rem; }
}
