:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --amber: #f59e0b;
  --coral: #fb7185;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon,
.footer-logo span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-text {
  font-size: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  color: #fff;
  background: linear-gradient(120deg, #ea580c 0%, #f97316 42%, #f59e0b 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 590px;
  display: grid;
  align-items: center;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.28;
  background: #fff;
}

.orb-one {
  width: 320px;
  height: 320px;
  top: 52px;
  right: 7%;
}

.orb-two {
  width: 220px;
  height: 220px;
  left: 8%;
  bottom: 58px;
  background: #fed7aa;
}

.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--orange);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-light {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(90deg, var(--orange) 0%, var(--amber) 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.26);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.btn.full,
.section-more.full {
  width: 100%;
}

.hero-art {
  position: relative;
  display: block;
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(124, 45, 18, 0.35);
  transform: rotate(1.5deg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.38) 100%);
}

.hero-art-glow {
  position: absolute;
  inset: auto 32px -42px;
  height: 88px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(35px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 56px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #f9fafb 0%, rgba(249, 250, 251, 0) 100%);
}

.quick-search-panel {
  position: relative;
  z-index: 3;
  margin-top: -52px;
}

.quick-search,
.filter-panel,
.search-panel,
.detail-card,
.player-card,
.side-card,
.ranking-card,
.ranking-page-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.quick-search {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.quick-search label {
  color: var(--text);
  font-weight: 900;
}

.quick-search div,
.search-box {
  display: flex;
  gap: 12px;
}

.quick-search input,
.search-box input,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  outline: none;
}

.quick-search input:focus,
.search-box input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

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

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  display: inline-flex;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #ffedd5;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.compact-card img,
.movie-poster img,
.poster-card img,
.category-thumbs img,
.rank-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-poster img {
  transition: transform 0.3s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

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

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

.duration-badge {
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  background: var(--orange);
}

.play-badge {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--orange-dark);
}

.movie-desc {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta span,
.movie-stats span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.movie-tags {
  margin-top: 10px;
}

.movie-tags span,
.detail-tags span {
  background: #fff7ed;
  color: #c2410c;
}

.movie-stats {
  justify-content: space-between;
  margin-top: 12px;
  font-weight: 800;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

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

.compact-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 18px;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.compact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.78) 100%);
}

.compact-card img {
  min-height: 210px;
  transition: transform 0.3s ease;
}

.compact-card:hover img {
  transform: scale(1.06);
}

.compact-title,
.compact-meta {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  color: #fff;
}

.compact-title {
  bottom: 38px;
  font-weight: 900;
}

.compact-meta {
  bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.ranking-card,
.ranking-page-card {
  padding: 22px;
}

.ranking-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ranking-title span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 900;
}

.ranking-title h2,
.ranking-page-card h2 {
  margin: 0;
}

.rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-item a:hover {
  background: #fff7ed;
}

.rank-no {
  color: var(--orange-dark);
  font-size: 18px;
  font-weight: 900;
}

.rank-item img {
  width: 58px;
  height: 42px;
  border-radius: 10px;
}

.rank-text {
  min-width: 0;
}

.rank-text strong,
.rank-text small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-text small {
  color: var(--muted);
}

.rank-heat {
  color: var(--muted);
  font-size: 13px;
}

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

.category-tile,
.category-card {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: hidden;
  min-height: 132px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span,
.category-kind {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
}

.category-tile strong,
.category-card strong {
  font-size: 22px;
}

.category-tile em,
.category-card em {
  color: var(--muted);
  font-style: normal;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.category-thumbs img {
  height: 56px;
  border-radius: 10px;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--orange-dark) 0%, var(--orange) 50%, var(--amber) 100%);
}

.page-hero .eyebrow {
  color: #fff7ed;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.filter-panel,
.search-panel {
  margin-top: -32px;
  padding: 22px;
  position: relative;
  z-index: 3;
}

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

.filter-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

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

.search-box {
  margin-bottom: 16px;
}

.ranking-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 56px 0;
  align-items: start;
}

.rank-list.large {
  max-height: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 40px 0 70px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.42));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 50px rgba(249, 115, 22, 0.35);
  font-size: 34px;
  line-height: 1;
  padding-left: 5px;
}

.play-overlay strong {
  font-size: 18px;
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-card {
  padding: 28px;
}

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

.breadcrumb a {
  color: var(--orange-dark);
  font-weight: 800;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.detail-one-line {
  color: var(--muted);
  font-size: 18px;
}

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

.detail-tags .main-tag {
  background: linear-gradient(90deg, var(--orange), var(--amber));
  color: #fff;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
}

.info-list dt {
  color: var(--muted);
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-card h2 {
  margin: 28px 0 12px;
}

.review-box {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  color: #4b5563;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  margin-bottom: 14px;
  background: #fed7aa;
}

.side-card h2 {
  margin: 0 0 16px;
}

.side-related {
  display: grid;
  gap: 12px;
}

.side-related .compact-card {
  min-height: 126px;
}

.side-related .compact-card img {
  min-height: 126px;
}

.site-footer {
  margin-top: 70px;
  padding: 54px 0;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

.footer-links.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.is-hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .movie-grid,
  .featured-grid,
  .all-movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-section,
  .detail-layout,
  .ranking-page-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(234, 88, 12, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 54px 0 110px;
  }

  .hero-art {
    min-height: 310px;
  }

  .hero-art img {
    min-height: 310px;
  }

  .hero-dots {
    bottom: 44px;
  }

  .movie-grid,
  .featured-grid,
  .all-movie-grid,
  .compact-grid,
  .category-grid,
  .category-card-grid,
  .filter-row,
  .footer-grid,
  .info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .quick-search div,
  .search-box,
  .hero-actions {
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .all-movie-grid,
  .compact-grid,
  .category-grid,
  .category-card-grid,
  .filter-row,
  .footer-grid,
  .info-list {
    grid-template-columns: 1fr;
  }

  .rank-item a {
    grid-template-columns: 34px 52px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }

  .detail-card {
    padding: 20px;
  }
}
