:root {
  --color-orange: #ea580c;
  --color-orange-light: #fb923c;
  --color-red: #dc2626;
  --color-yellow: #facc15;
  --color-dark: #111827;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-soft);
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  position: relative;
  font-weight: 700;
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fef3c7;
  opacity: 1;
}

.nav-link.is-active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  content: "";
}

.site-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(360px, 28vw);
  min-width: 230px;
}

.site-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 76px 10px 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-search input:focus,
.mobile-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.36);
}

.site-search button,
.mobile-search button {
  position: absolute;
  right: 4px;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  box-shadow: var(--shadow-card);
}

.search-suggestions.is-open {
  display: block;
}

.search-suggestions a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.search-suggestions a:hover {
  background: #fff7ed;
  color: var(--color-orange);
}

.search-suggestions strong {
  display: block;
  font-size: 14px;
}

.search-suggestions span {
  display: block;
  color: #6b7280;
  font-size: 12px;
}

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

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 0;
}

.mobile-search {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

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

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.2) 100%),
    radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.35), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  height: 100%;
  margin: 0 auto;
  padding: 72px 24px 96px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker {
  color: #ffffff;
  background: rgba(251, 146, 60, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-content h1,
.hero-content h2 {
  max-width: 720px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

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

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.detail-meta span,
.detail-tags span,
.tag-list span {
  background: #fff7ed;
  color: #9a3412;
}

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

.btn-primary,
.btn-ghost,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  padding: 12px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.26);
}

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

.btn-ghost {
  padding: 11px 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.text-link {
  color: var(--color-orange);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.section-block,
.page-main,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 10px 0 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-category-entry {
  margin-top: -20px;
}

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

.category-tile,
.category-card-large,
.movie-card,
.side-card,
.filter-bar,
.page-hero {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.category-tile::after {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
  content: "";
}

.category-tile span {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 900;
}

.category-tile em {
  position: relative;
  z-index: 2;
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-5px);
  border-color: #fb923c;
  box-shadow: var(--shadow-card);
}

.poster-link,
.related-cover,
.category-card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link {
  aspect-ratio: 2 / 3;
}

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

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

.poster-badge,
.poster-year {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 10px;
  background: rgba(234, 88, 12, 0.9);
}

.poster-year {
  right: 10px;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-card h3,
.related-card h3,
.category-card-body h2 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover,
.related-card h3 a:hover,
.category-card-body h2 a:hover {
  color: var(--color-orange);
}

.movie-meta,
.movie-desc,
.related-card p,
.category-card-body p,
.page-hero p,
.detail-info p,
.footer-inner p {
  color: #6b7280;
}

.movie-meta {
  margin: 8px 0 8px;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.8fr);
  gap: 28px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 66px 1fr 26px;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #fb923c;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  font-weight: 900;
}

.rank-row img {
  width: 66px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: #111827;
  font-size: 16px;
}

.rank-info em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

.rank-arrow {
  color: #f97316;
  font-size: 28px;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(254, 242, 242, 0.96)),
    radial-gradient(circle at 88% 20%, rgba(251, 146, 60, 0.26), transparent 34%);
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 17px;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
}

.category-card-cover {
  min-height: 230px;
}

.category-card-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 65%);
  content: "";
}

.category-card-cover span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.category-card-body {
  padding: 24px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
}

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

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffffff;
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

.detail-main {
  padding-top: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 700;
}

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

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

.player-panel video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-panel video {
  z-index: 1;
  background: #020617;
}

.player-cover {
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
  content: "";
}

.player-cover img {
  object-fit: cover;
}

.player-play-button {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
  cursor: pointer;
}

.player-play-button span {
  margin-left: 5px;
  font-size: 36px;
}

.detail-info {
  margin-top: 26px;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-info h2 {
  margin: 28px 0 10px;
  color: #111827;
  font-size: 24px;
}

.detail-one-line {
  color: #374151;
  font-size: 18px;
  font-weight: 700;
}

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

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.side-card {
  overflow: hidden;
  padding: 18px;
}

.poster-side img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 2 / 3;
}

.full-btn {
  width: 100%;
  margin-top: 14px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.related-cover {
  width: 72px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.related-card p {
  margin: 4px 0 0;
  font-size: 13px;
}

.site-footer {
  margin-top: 30px;
  background: #111827;
  color: #d1d5db;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px;
}

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

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 24px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

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

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

  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    gap: 12px;
    padding: 12px 18px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content {
    padding: 70px 18px 100px;
  }

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

  .section-block,
  .page-main,
  .detail-main {
    padding: 38px 18px;
  }

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

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

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

  .category-card-cover {
    min-height: 220px;
  }

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

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

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

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .hero-actions,
  .small-actions {
    flex-direction: column;
  }

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

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

  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }

  .rank-arrow {
    display: none;
  }

  .page-hero,
  .detail-info {
    padding: 24px;
  }

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