:root {
  --bg: #f7f7f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --accent: #ea580c;
  --accent-2: #f97316;
  --dark: #111827;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 22px rgba(17, 24, 39, 0.08);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
}

.nav-link {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--dark);
  border-radius: 999px;
}

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

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: #374151;
  font-weight: 700;
}

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

main {
  overflow: hidden;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.hero-stage {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 48%, rgba(17, 24, 39, 0.16)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent 44%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(34px, 8vw, 84px);
  width: min(620px, calc(100% - 44px));
  color: #fff;
}

.hero-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 5.6vw, 70px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0;
  max-width: 620px;
  color: #f3f4f6;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: var(--accent);
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.28);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn.ghost.light {
  color: var(--accent);
  background: #fff7ed;
  border-color: #fed7aa;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: 28px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 42px;
  background: #fff;
}

.hero-side {
  min-height: 580px;
  border-radius: 30px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-side h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: #fff7ed;
  transform: translateY(-2px);
}

.mini-card img {
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  background: #e5e7eb;
}

.mini-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.search-strip,
.feature-band {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 26px;
  padding: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #111827, #292524 58%, #9a3412);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.search-strip h2,
.feature-band h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.search-strip p,
.feature-band p {
  margin: 0;
  color: #e5e7eb;
}

.quick-search {
  display: flex;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.quick-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
}

.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
}

.page-section {
  width: min(1180px, calc(100% - 32px));
  margin: 52px auto 0;
}

.page-main .page-section,
.detail-main .page-section {
  width: 100%;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a {
  color: var(--accent);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e5e7eb;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: rgba(234, 88, 12, 0.9);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card h3 {
  margin: 0;
  min-height: 52px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

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

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

.movie-card p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 14px;
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.5;
}

.category-tile span {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  color: #fff;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.category-tile em {
  display: block;
  color: #e5e7eb;
  font-size: 14px;
  font-style: normal;
}

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

.rank-list.wide {
  max-width: 980px;
  margin: 0 auto;
}

.rank-row {
  display: grid;
  grid-template-columns: 52px 72px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(6px);
  background: #fff7ed;
}

.rank-row > strong {
  color: var(--accent);
  font-size: 24px;
}

.rank-row img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #e5e7eb;
}

.rank-row b {
  display: block;
  font-size: 18px;
}

.rank-row em,
.rank-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
}

.feature-band {
  margin-top: 56px;
  margin-bottom: 20px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(34px, 6vw, 72px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.35), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 50%, #7c2d12);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
}

.compact-hero {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 34px;
  align-items: center;
  border-radius: 30px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.34), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 58%, #7c2d12);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
  background: #e5e7eb;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-one {
  max-width: 760px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
}

.player-section {
  margin-top: 36px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #030712;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.main-video {
  width: 100%;
  height: 100%;
  background: #030712;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #030712;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  object-fit: cover;
  filter: blur(1px);
}

.play-button {
  position: relative;
  z-index: 4;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 22px 46px rgba(234, 88, 12, 0.38);
  cursor: pointer;
  font-size: 34px;
  transition: transform 0.2s ease;
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 22px;
  margin-top: 36px;
}

.content-card {
  border-radius: 24px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
}

.detail-meta-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-meta-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.detail-meta-card dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 70px;
  color: #fff;
  background: #111827;
}

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

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
}

.footer-inner h2 {
  color: #fb923c;
  font-size: 26px;
}

.footer-inner p,
.footer-inner a,
.footer-bottom {
  color: #d1d5db;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-inner a:hover {
  color: #fb923c;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.is-hidden-card {
  display: none;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    min-height: auto;
  }

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

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

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

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand {
    font-size: 21px;
  }

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

  .hero-side {
    display: none;
  }

  .search-strip,
  .feature-band {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-search {
    width: 100%;
  }

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

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

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

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

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

@media (max-width: 560px) {
  .nav-wrap,
  .mobile-menu,
  .hero,
  .page-section,
  .page-main,
  .detail-main,
  .search-strip,
  .feature-band,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-stage {
    min-height: 500px;
    border-radius: 22px;
  }

  .hero-content {
    left: 18px;
    bottom: 62px;
    width: calc(100% - 36px);
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-card h3 {
    min-height: auto;
  }

  .rank-row {
    grid-template-columns: 42px 62px 1fr;
    gap: 12px;
  }

  .rank-row img {
    width: 62px;
    height: 82px;
  }

  .page-hero {
    border-radius: 22px;
    padding: 28px 20px;
  }

  .player-box {
    border-radius: 18px;
  }

  .play-button {
    width: 72px;
    height: 72px;
  }
}
