* {
  box-sizing: border-box;
}

:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --slate: #0f172a;
  --gray: #4b5563;
  --light: #f8fafc;
  --card: #ffffff;
  --radius-lg: 24px;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(135deg, #f8fafc 0%, #f9fafb 50%, #f1f5f9 100%);
  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 {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

.site-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.35);
  font-size: 18px;
}

.logo-text {
  display: grid;
  gap: 1px;
}

.logo-text strong {
  font-size: 20px;
  line-height: 1.1;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text small {
  color: #6b7280;
  font-size: 12px;
}

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

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

.nav-link:hover,
.mobile-link:hover {
  color: #111827;
  background: #f3f4f6;
}

.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

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

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

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #111827 45%, #1f2937 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.28), transparent 28%), radial-gradient(circle at 78% 20%, rgba(249, 115, 22, 0.2), transparent 26%), linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.06) 75%);
  background-size: auto, auto, 60px 60px;
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.hero-heading {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 36px;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, #fcd34d, #fb923c, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-heading p {
  margin: 0 auto;
  max-width: 760px;
  color: #d1d5db;
  font-size: clamp(16px, 2.2vw, 22px);
}

.hero-stage {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  overflow: hidden;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  transform: translateY(0);
}

.hero-slide.active {
  display: grid;
}

.hero-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-image span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.05) 40%, rgba(15, 23, 42, 0.86) 100%);
}

.hero-slide:hover .hero-image img {
  transform: scale(1.04);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 38px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

.hero-summary {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.category-overview-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  font-weight: 800;
  transition: 0.2s ease;
}

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

.primary-btn:hover,
.section-more:hover,
.category-overview-head a:hover {
  transform: translateY(-2px);
}

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

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 0;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.55;
}

.hero-dot.active {
  width: 28px;
  opacity: 1;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

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

.hero-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.category-pill {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fde68a;
  border: 1px solid rgba(252, 211, 77, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.category-pill:hover {
  color: #111827;
  background: #fbbf24;
}

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

.no-padding {
  padding: 0;
}

.soft-section {
  padding: 72px 0;
  background: linear-gradient(90deg, #f9fafb, #f1f5f9);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
}

.section-title.small {
  align-items: start;
}

.section-title h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
}

.section-title p {
  margin: 0;
  color: #6b7280;
}

.section-more,
.category-overview-head a {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-panel label {
  display: grid;
  flex: 1 1 280px;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

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

.site-search:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  font-weight: 700;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  color: #111827;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card.compact .poster-wrap img,
.movie-card.mini .poster-wrap img {
  aspect-ratio: 4 / 3;
}

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

.poster-wrap em {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #5f6775;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-top: auto;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.story-list {
  display: grid;
  gap: 24px;
}

.movie-card.horizontal {
  flex-direction: row;
}

.movie-card.horizontal .poster-wrap {
  width: min(360px, 36%);
  flex: 0 0 min(360px, 36%);
}

.movie-card.horizontal .poster-wrap img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  aspect-ratio: auto;
}

.movie-card.horizontal .card-body {
  padding: 28px;
}

.movie-card.horizontal .card-desc {
  -webkit-line-clamp: 3;
  font-size: 15px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row i,
.tag-row span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.large span {
  padding: 9px 14px;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
}

.rank-panel,
.latest-panel,
.content-card,
.category-overview-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-panel,
.latest-panel {
  padding: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 76px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 15px;
  background: #f9fafb;
  transition: 0.2s ease;
}

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

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

.rank-item img {
  width: 76px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-item strong,
.rank-item em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.rank-item strong {
  color: #111827;
  -webkit-line-clamp: 1;
}

.rank-item em {
  color: #6b7280;
  font-style: normal;
  font-size: 12px;
  -webkit-line-clamp: 1;
}

.page-hero {
  position: relative;
  color: #fff;
  background: radial-gradient(circle at 15% 25%, rgba(245, 158, 11, 0.35), transparent 28%), linear-gradient(135deg, #0f172a, #1f2937);
}

.page-hero.slim > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.crumbs a:hover {
  color: #f59e0b;
}

.crumbs.light {
  color: #e5e7eb;
  margin-bottom: 28px;
}

.category-overview-list {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  padding: 26px;
}

.category-overview-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 28px;
}

.category-overview-head p {
  margin: 0;
  color: #5f6775;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 60px 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

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

.ranking-card img {
  width: 150px;
  height: 94px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-body {
  display: grid;
  gap: 7px;
}

.ranking-body strong {
  font-size: 20px;
}

.ranking-body em {
  display: -webkit-box;
  overflow: hidden;
  color: #5f6775;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-body span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.detail-page {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px);
  transform: scale(1.12);
  opacity: 0.25;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(17, 24, 39, 0.88));
}

.detail-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 68px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
}

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

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}

.detail-copy p:not(.eyebrow) {
  max-width: 780px;
  margin: 0 0 20px;
  color: #d1d5db;
  font-size: 19px;
}

.player-section {
  padding-bottom: 38px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.7));
  cursor: pointer;
}

.play-cover span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 22px 45px rgba(249, 115, 22, 0.38);
  font-size: 34px;
  padding-left: 6px;
}

.play-cover strong {
  font-size: 20px;
}

.player-wrap.is-playing .play-cover {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  gap: 22px;
  padding-top: 0;
  padding-bottom: 36px;
}

.content-card {
  padding: 28px;
}

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

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.empty-result {
  display: none;
  padding: 42px 16px;
  text-align: center;
  color: #6b7280;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.empty-result.show {
  display: block;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

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

.footer-grid a:hover {
  color: #fbbf24;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
  font-size: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide,
  .detail-layout,
  .split-section,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
  }

  .hero-image span {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 70%);
  }

  .featured-grid,
  .compact-grid,
  .category-grid,
  .related-grid,
  .latest-grid,
  .category-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-nav {
    height: 66px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .logo-text small {
    display: none;
  }

  .hero-inner {
    padding: 58px 0 44px;
  }

  .hero-heading {
    margin-bottom: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

  .hero-image {
    min-height: 240px;
  }

  .hero-controls {
    gap: 10px;
  }

  .section-wrap,
  .page-hero.slim > div,
  .detail-inner,
  .footer-inner,
  .site-nav,
  .mobile-panel {
    width: min(100% - 22px, 1180px);
  }

  .section-wrap {
    padding: 46px 0;
  }

  .soft-section {
    padding: 46px 0;
  }

  .section-title,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-grid,
  .compact-grid,
  .category-grid,
  .related-grid,
  .latest-grid,
  .category-preview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .movie-card.horizontal .poster-wrap {
    width: 100%;
    flex-basis: auto;
  }

  .ranking-card {
    grid-template-columns: 46px 94px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-card img {
    width: 94px;
    height: 70px;
  }

  .detail-layout {
    gap: 24px;
  }

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

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