* {
  box-sizing: border-box;
}

:root {
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.32);
}

.brand-name {
  font-size: 21px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ea580c;
  background: #fff7ed;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #111827;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.mobile-panel.open {
  display: grid;
  gap: 4px;
}

.hero-slider {
  position: relative;
  background: linear-gradient(135deg, #fff7ed, #fff1f2, #eff6ff);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.18)),
    linear-gradient(0deg, rgba(249, 250, 251, 0.95) 0%, rgba(249, 250, 251, 0) 26%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: min(640px, calc(100% - 48px));
  color: #fff;
}

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

.hero-content h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
}

.tag-row span {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.detail-meta span {
  color: #374151;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.32);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(10px);
  font-size: 30px;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

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

.hero-stats {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: -76px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-stats a {
  min-height: 112px;
  padding: 22px;
  border-radius: 22px;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 14px;
}

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

.content-section.tinted {
  width: 100%;
  max-width: none;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-head .eyebrow,
.page-hero .eyebrow,
.category-hero .eyebrow {
  color: #f97316;
}

.section-head h2,
.page-hero h1,
.category-hero h1 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.category-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.section-more,
.text-button {
  color: #ea580c;
  background: #fff7ed;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: #fed7aa;
  box-shadow: var(--shadow);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #111827, #374151);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.32);
}

.movie-info {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-line a {
  color: #ea580c;
}

.movie-info h3 {
  margin: 9px 0 8px;
  font-size: 19px;
  line-height: 1.28;
}

.movie-info h3 a:hover {
  color: #ea580c;
}

.movie-info p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.45s ease;
}

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

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  margin: 132px 20px 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 0 20px;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 92px max(16px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.ranking-hero {
  background: linear-gradient(135deg, #fff7ed, #fef2f2, #fdf2f8);
}

.search-hero {
  background: linear-gradient(135deg, #ecfeff, #eff6ff, #fff7ed);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.category-card-large h2 {
  margin: 4px 0 8px;
  font-size: 28px;
}

.category-card-large p {
  color: var(--muted);
}

.mini-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.mini-title-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #c2410c;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

.category-hero {
  min-height: 430px;
  color: #fff;
  background: #111827;
}

.category-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero-overlay,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.2));
}

.category-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.category-hero-content h1,
.category-hero-content p {
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fed7aa;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  outline: none;
  color: #111827;
  background: #f9fafb;
}

.search-box input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px #ffedd5;
}

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

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.empty-state {
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.detail-hero {
  min-height: 620px;
  padding-top: 76px;
  padding-bottom: 76px;
  color: #fff;
  background: #111827;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-copy .detail-meta {
  margin-bottom: 16px;
}

.detail-copy .primary-button {
  margin-top: 28px;
}

.player-section {
  padding-top: 64px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  width: 156px;
  height: 156px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.32);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.player-start.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-icon-large {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(17, 24, 39, 0.62);
  font-size: 13px;
}

.player-status.hidden {
  display: none;
}

.text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-card {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.text-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

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

.site-footer {
  margin-top: 48px;
  padding: 42px 0;
  color: #e5e7eb;
  background: #111827;
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 32px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.4);
}

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

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

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

  .menu-button {
    display: block;
  }

  .hero-stage,
  .hero-slide > img {
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 120px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .filter-panel,
  .footer-shell,
  .detail-layout,
  .text-grid,
  .category-card-large {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .featured-grid,
  .movie-grid,
  .rank-grid,
  .rank-list-grid,
  .related-grid,
  .category-large-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero-stage,
  .hero-slide > img {
    min-height: 620px;
  }

  .hero-content {
    top: 46%;
  }

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

  .hero-stats,
  .featured-grid,
  .movie-grid,
  .rank-grid,
  .rank-list-grid,
  .related-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .content-section,
  .content-section.tinted {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .poster-frame {
    aspect-ratio: 16 / 11;
  }

  .filter-panel {
    padding: 12px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .player-start {
    width: 118px;
    height: 118px;
  }
}
