:root {
  --primary: #0d47a1;
  --primary-dark: #0a3678;
  --accent: #ff6f00;
  --accent-dark: #e65100;
  --bg-light: #e3f2fd;
  --bg-white: #ffffff;
  --text-dark: #263238;
  --text-muted: #546e7a;
  --border: #bbdefb;
  --shadow: 0 4px 20px rgba(13, 71, 161, 0.15);
  --shadow-hover: 0 8px 30px rgba(13, 71, 161, 0.25);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.logo-icon::before {
  content: '⚡';
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text small {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
}

.main-nav {
  display: flex;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Banner / Hero */
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1565c0 50%, var(--accent) 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 111, 0, 0.2) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-banner h1 {
  color: white;
  font-size: 2.8rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-banner p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  opacity: 0.95;
}

.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-box input {
  flex: 1;
  padding: 16px 28px;
  border: none;
  font-size: 1rem;
  outline: none;
  color: var(--text-dark);
}

.search-box button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: var(--accent-dark);
}

/* Section */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  width: 5px;
  height: 28px;
  background: var(--accent);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-light) 0%, #bbdefb 100%);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-badge.hot {
  background: #e53935;
}

.card-badge.new {
  background: #43a047;
}

.card-badge.hd {
  background: var(--primary);
}

.card-quality {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-meta span {
  margin-right: 8px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: auto;
}

.btn-download:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  transform: scale(1.02);
}

.btn-download::before {
  content: '⬇';
}

/* Category Entries */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: var(--bg-light);
  border-radius: 50%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
}

.category-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-weight: 600;
  color: var(--primary);
  min-width: 60px;
}

.filter-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-option {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}

.filter-option:hover,
.filter-option.active {
  background: var(--primary);
  color: white;
}

/* Content Page */
.content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-wrap h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.content-wrap h3 {
  font-size: 1.3rem;
  margin: 30px 0 14px;
}

.content-wrap p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--text-dark);
}

.content-wrap ul,
.content-wrap ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content-wrap li {
  margin-bottom: 8px;
}

.info-box {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.info-box.warning {
  background: #fff3e0;
  border-left-color: var(--accent);
}

.info-box.success {
  background: #e8f5e9;
  border-left-color: #43a047;
}

/* Two Column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: white;
  padding: 60px 0 0;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

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

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

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.page-banner h1 {
  color: white;
  font-size: 2rem;
}

.page-banner p {
  margin-top: 8px;
  opacity: 0.9;
}

/* Variety Section Split */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.split-section .section-title {
  grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 20px;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
  }

  .hero-banner {
    padding: 40px 0;
  }

  .hero-banner h1 {
    font-size: 1.8rem;
  }

  .hero-banner p {
    font-size: 1rem;
  }

  .search-box {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .search-box input {
    padding: 14px 20px;
  }

  .search-box button {
    padding: 14px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-meta {
    font-size: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}