:root {
  --site-orange: #f97316;
  --site-amber: #f59e0b;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-border: #e5e7eb;
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--site-dark);
  background: var(--site-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-orange), var(--site-amber));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.24);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--site-orange);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link,
.mobile-nav-link {
  color: #fff7ed;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.header-search input,
.mobile-search input {
  width: 170px;
  padding: 10px 14px;
  color: #ffffff;
  background: transparent;
  outline: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #ffedd5;
}

.header-search button,
.mobile-search button {
  height: 100%;
  padding: 10px 16px;
  color: var(--site-orange);
  background: #ffffff;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.42), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 1050px;
  margin: 0 auto;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-kicker {
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.04;
  font-weight: 900;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.hero-content p {
  max-width: 780px;
  margin: 0 auto 24px;
  font-size: clamp(17px, 2.2vw, 26px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.48);
}

.hero-tags,
.movie-card-tags,
.detail-tags,
.channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags {
  justify-content: center;
  margin-bottom: 30px;
}

.hero-tags span,
.detail-tags span,
.channel-pills a,
.movie-card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 13px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.primary-button,
.ghost-button,
.section-more,
.detail-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 52px;
  padding: 0 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-orange), var(--site-amber));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.34);
}

.primary-button:hover,
.detail-link-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 54px rgba(249, 115, 22, 0.42);
}

.ghost-button {
  min-height: 52px;
  padding: 0 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: #ffffff;
}

.main-shell,
.content-section,
.page-hero,
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.section-heading,
.page-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: var(--site-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
}

.section-subtitle,
.page-hero p,
.movie-card-text,
.detail-lead,
.site-footer p {
  color: var(--site-muted);
  line-height: 1.7;
}

.section-more {
  padding: 10px 16px;
  color: var(--site-orange);
  background: #fff7ed;
}

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

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

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

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

.movie-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.movie-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.48));
}

.card-badge,
.card-rank {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--site-orange), var(--site-amber));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.34);
}

.card-rank {
  left: 12px;
}

.card-badge {
  right: 12px;
}

.movie-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--site-orange);
  background: rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.movie-card:hover .movie-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-body h3 a {
  color: var(--site-dark);
  text-decoration: none;
}

.movie-card-body h3 a:hover {
  color: var(--site-orange);
}

.movie-card-meta {
  margin: 0 0 10px;
  color: var(--site-muted);
  font-size: 14px;
}

.movie-card-text {
  margin: 0 0 12px;
  font-size: 14px;
}

.movie-card-tags span {
  padding: 5px 9px;
  color: #c2410c;
  background: #ffedd5;
}

.feature-strip {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.ranking-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
  font-weight: 900;
}

.ranking-thumb {
  width: 120px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
}

.ranking-info p,
.ranking-year {
  color: var(--site-muted);
}

.page-hero {
  padding-top: 58px;
  padding-bottom: 34px;
}

.page-hero-card {
  padding: 44px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--site-shadow);
}

.channel-pills {
  margin-top: 20px;
}

.channel-pills a {
  padding: 8px 13px;
  color: #c2410c;
  background: #ffedd5;
  text-decoration: none;
}

.channel-pills a:hover {
  color: #ffffff;
  background: var(--site-orange);
}

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

.category-tile {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--site-shadow);
}

.category-tile-title {
  font-size: 22px;
  font-weight: 900;
}

.category-tile-desc {
  color: var(--site-muted);
  line-height: 1.65;
}

.category-tile-action {
  color: var(--site-orange);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  margin: 24px 0 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select,
.local-filter {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  color: var(--site-dark);
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.local-filter:focus {
  border-color: var(--site-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.detail-player-wrap {
  background: #000000;
  padding: 34px 20px;
}

.detail-player {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.detail-player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--site-orange);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  transition: transform 0.2s ease;
}

.player-play-button:hover {
  transform: scale(1.08);
}

.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 70px;
}

.detail-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  padding: 28px;
  margin-bottom: 34px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #111827;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title h1 {
  margin-bottom: 14px;
}

.breadcrumb {
  margin-bottom: 14px;
  color: var(--site-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--site-orange);
  text-decoration: none;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--site-muted);
  font-weight: 700;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
}

.detail-tags {
  margin: 18px 0 22px;
}

.detail-tags span {
  padding: 7px 12px;
  color: #c2410c;
  background: #ffedd5;
}

.detail-lead {
  margin: 0 0 22px;
  font-size: 18px;
}

.detail-text-block {
  padding: 26px;
  margin-bottom: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.detail-text-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.detail-text-block p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.detail-link-button {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-orange), var(--site-amber));
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 34px auto 0;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--site-dark);
  background: #ffffff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.pagination span,
.pagination a:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-orange), var(--site-amber));
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: #ffedd5;
  text-decoration: none;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  border-radius: 24px;
  background: #ffffff;
  color: var(--site-muted);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

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

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .site-header-inner {
    justify-content: space-between;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

@media (max-width: 820px) {
  .hero-slider {
    min-height: 560px;
  }

  .section-heading,
  .page-title-row,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 320px;
  }

  .ranking-item {
    grid-template-columns: 48px 88px 1fr;
  }

  .ranking-year {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-logo {
    font-size: 18px;
  }

  .site-header-inner {
    height: 64px;
  }

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

  .hero-content {
    padding: 70px 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: min(100%, 320px);
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-cover {
    aspect-ratio: 16 / 9;
  }

  .page-hero-card {
    padding: 28px 20px;
  }

  .detail-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .detail-card,
  .detail-text-block {
    padding: 20px;
  }
}
