:root {
  --primary-color: #e50914;
  --secondary-color: #141414;
  --accent-color: #ffc107;
  --text-color: #fff;
  --light-gray: #1f1f1f;
  --card-bg: #2d2d2d;
  --hover-color: #f40612;
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.9) 100%);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  font-size: 32px;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-color);
}

.logo span {
  color: var(--text-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 8px 20px;
}

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

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar button {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 16px;
}

.banner {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=cinema%20movie%20screen%20with%20dramatic%20lighting&image_size=landscape_16_9');
  background-size: cover;
  background-position: center;
  padding: 150px 0;
  text-align: center;
}

.banner h1 {
  font-size: 56px;
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
  font-size: 24px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 15px 45px;
  background: var(--primary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-left: 15px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.content-section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 35px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--primary-color);
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.movie-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.movie-card .poster {
  position: relative;
  overflow: hidden;
}

.movie-card .poster img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.1);
}

.movie-card .poster .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.movie-card:hover .poster .play-overlay {
  opacity: 1;
}

.movie-card .poster .play-btn {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster .play-btn {
  transform: scale(1.1);
}

.movie-card .poster .play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 14px solid var(--text-color);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.movie-card .poster .rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(229, 9, 20, 0.9);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
}

.movie-card .movie-info {
  padding: 15px;
}

.movie-card .movie-info h3 {
  font-size: 15px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card .movie-info .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.categories {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.category-tag {
  padding: 10px 25px;
  background: var(--card-bg);
  border-radius: 30px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-tag:hover,
.category-tag.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 50px 0;
  background: var(--light-gray);
  margin: 40px 0;
}

.stat-item {
  text-align: center;
}

.stat-item .number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-item .label {
  font-size: 14px;
  color: #999;
  margin-top: 5px;
}

.featured-section {
  background: var(--light-gray);
  padding: 60px 0;
}

.featured-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.featured-content .featured-poster {
  flex: 1;
}

.featured-content .featured-poster img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-content .featured-info {
  flex: 1;
}

.featured-content .featured-info h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.featured-content .featured-info p {
  font-size: 16px;
  line-height: 1.8;
  color: #999;
  margin-bottom: 30px;
}

.featured-content .featured-info .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.featured-content .featured-info .tag {
  padding: 5px 15px;
  background: rgba(229, 9, 20, 0.2);
  border-radius: 4px;
  font-size: 13px;
  color: var(--primary-color);
}

footer {
  background: var(--secondary-color);
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

footer .footer-content h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-color);
}

footer .footer-content ul {
  list-style: none;
}

footer .footer-content ul li {
  margin-bottom: 12px;
}

footer .footer-content ul li a {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

footer .footer-content ul li a:hover {
  color: var(--primary-color);
}

footer .copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 13px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin-bottom: 20px;
  color: #999;
  font-size: 16px;
  line-height: 1.8;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  background: var(--secondary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-color);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--hover-color);
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info p {
  margin-bottom: 10px;
  color: #999;
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .search-bar {
    order: 3;
    width: 100%;
  }
  
  .search-bar input {
    width: 100%;
  }
  
  .banner h1 {
    font-size: 36px;
  }
  
  .banner p {
    font-size: 18px;
  }
  
  .stats-row {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .featured-content {
    flex-direction: column;
  }
  
  .movie-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  
  .movie-card .poster img {
    height: 250px;
  }
}