:root {
  --bg: #f7f7f7;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0, #f8fafc 340px, #f3f4f6 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 600;
  color: #374151;
}

.site-nav a {
  padding: 22px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--amber);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 62px;
  left: 50%;
  width: 180px;
  transform: translateX(-50%) translateY(8px);
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #4b5563;
}

.nav-dropdown-menu a:hover {
  background: #fff7ed;
}

.header-search {
  position: relative;
  width: 270px;
}

.header-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 44px 0 18px;
  outline: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.header-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 600;
  border-top: 1px solid #f3f4f6;
}

.mobile-category-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 8px;
}

.mobile-category-links a {
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: #fff7ed;
  color: var(--amber);
}

.main-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.hero-slider {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
  color: #ffffff;
}

.hero-track {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: 42px;
  padding: 66px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fed7aa;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 780px;
  margin: 22px 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.32);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 22px;
  color: #111827;
  font-size: 16px;
  outline: none;
}

.hero-search button {
  border: 0;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.hero-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(17, 24, 39, 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

.hero-panel h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.hero-panel p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #f59e0b;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  color: #111827;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--amber);
  font-weight: 800;
  white-space: nowrap;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.movie-grid.is-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.movie-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  aspect-ratio: 3 / 4;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.07);
}

.movie-badge,
.movie-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.movie-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.movie-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(17, 24, 39, 0.78);
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--amber);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card-desc {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.movie-card-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber-dark);
  font-size: 12px;
  font-weight: 700;
}

.home-section {
  margin: 56px 0;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fffbeb, #f0fdfa 55%, #eff6ff);
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-item a {
  display: grid;
  grid-template-columns: 52px 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 120px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-item h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 17px;
}

.rank-item p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-tile {
  min-height: 190px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #111827;
}

.category-tile p {
  margin: 0;
  color: #4b5563;
  line-height: 1.75;
}

.page-hero {
  margin: 36px 0 32px;
  padding: clamp(28px, 6vw, 54px);
  border-radius: 30px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(234, 88, 12, 0.24);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.control-bar input,
.control-bar select {
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 16px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.control-bar input {
  width: min(360px, 100%);
}

.search-empty {
  display: none;
  padding: 56px 24px;
  border-radius: 24px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.search-empty.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.36);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  border: 0;
  background: radial-gradient(circle at center, rgba(251, 146, 60, 0.24), rgba(2, 6, 23, 0.72)), rgba(2, 6, 23, 0.52);
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.38);
  font-size: 30px;
  padding-left: 4px;
}

.detail-card,
.sidebar-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.detail-card {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.detail-title-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.detail-title-row h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.detail-section {
  padding-top: 22px;
}

.detail-section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
}

.detail-tags a,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-card {
  position: sticky;
  top: 94px;
  padding: 20px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.sidebar-list {
  display: grid;
  gap: 14px;
}

.sidebar-item a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
}

.sidebar-item img {
  width: 112px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.sidebar-item h3 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-item span {
  color: #6b7280;
  font-size: 12px;
}

.related-section {
  margin-top: 28px;
}

.site-footer {
  background: linear-gradient(180deg, #1f2937, #111827);
  color: #ffffff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: #d1d5db;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 16px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1024px) {
  .header-search {
    display: none;
  }

  .hero-inner,
  .feature-strip,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  .movie-grid,
  .movie-grid.is-compact,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    height: 62px;
  }

  .site-logo {
    font-size: 20px;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-slider,
  .hero-track,
  .hero-inner {
    min-height: 520px;
  }

  .hero-inner {
    display: flex;
    align-items: center;
    padding: 48px 0 74px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search input {
    min-height: 52px;
  }

  .movie-grid,
  .movie-grid.is-compact,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .rank-item a {
    grid-template-columns: 42px 88px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-item img {
    width: 88px;
    height: 64px;
  }

  .detail-title-row {
    display: block;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.is-compact,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
}
