* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, #ea580c, #f97316 55%, #fb923c);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(234, 88, 12, 0.22);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.local-filter input {
  min-width: 230px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.wide-search input::placeholder {
  color: #ffedd5;
}

.header-search input:focus {
  min-width: 290px;
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ea580c;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 24px;
}

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

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-sub-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.2)), linear-gradient(0deg, #0f172a, rgba(15, 23, 42, 0.1) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 820px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: #f97316;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.hero-mini-tags,
.detail-meta,
.detail-tags,
.tag-row,
.quick-links,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.hero-mini-tags span,
.detail-meta span,
.detail-tags a,
.tag-row span,
.quick-links a {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.hero-mini-tags {
  margin-top: 8px;
  margin-bottom: 28px;
}

.hero-actions,
.page-actions {
  gap: 14px;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #f97316;
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.32);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.text-button {
  color: #f97316;
  background: #fff7ed;
}

.primary-button.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(249, 115, 22, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

.intro-search {
  margin-top: -52px;
  position: relative;
  z-index: 7;
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.intro-search h2 {
  margin: 0 0 18px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.wide-search {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  color: #111827;
  background: #f3f4f6;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.wide-search input::placeholder {
  color: #9ca3af;
}

.wide-search button {
  color: #ffffff;
  background: #f97316;
}

.quick-links a {
  color: #9a3412;
  background: #ffedd5;
}

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

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

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #64748b;
}

.section-heading > a {
  color: #ea580c;
  font-weight: 900;
}

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

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

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

.local-filter {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.local-filter.standalone {
  min-width: 260px;
  margin-bottom: 0;
}

.local-filter input {
  width: 100%;
  color: #111827;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.movie-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

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

.featured-card .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-score,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-score {
  right: 12px;
  background: rgba(249, 115, 22, 0.95);
}

.rank-badge {
  left: 12px;
  background: rgba(17, 24, 39, 0.72);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body em {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  padding: 5px 9px;
}

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

.rank-panel,
.side-card,
.detail-card,
.overview-card,
.page-hero .container,
.table-wrap {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.rank-panel,
.side-card,
.detail-card,
.overview-card,
.table-wrap {
  padding: 24px;
}

.rank-panel {
  position: sticky;
  top: 96px;
}

.rank-panel h2,
.side-card h2,
.article-block h2,
.overview-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

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

.compact-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-item:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.compact-item img {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  object-fit: cover;
}

.compact-item strong,
.compact-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item em {
  color: #64748b;
  font-size: 13px;
  font-style: normal;
}

.compact-item b {
  color: #f97316;
}

.compact-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 12px;
  font-weight: 900;
}

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

.category-tile {
  overflow: hidden;
  display: grid;
  gap: 12px;
  border-radius: 24px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.15);
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  object-fit: cover;
}

.category-tile strong {
  color: #111827;
  font-size: 20px;
}

.category-tile em,
.overview-card p {
  color: #64748b;
  font-style: normal;
}

.page-hero {
  padding: 58px 0 12px;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 40%), linear-gradient(135deg, #fff7ed, #ffffff 62%, #f8fafc);
}

.page-hero .container {
  padding: 36px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
}

.compact-hero {
  padding-bottom: 38px;
}

.category-hero {
  padding-bottom: 30px;
}

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

.overview-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.channel-topline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.detail-wrap {
  padding-top: 34px;
}

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f97316;
  font-size: 42px;
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
}

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

.detail-card {
  margin-top: 22px;
}

.detail-title-row {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.detail-title-row h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-title-row p {
  margin: 0;
  color: #64748b;
}

.detail-score {
  min-width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #ffffff;
  background: #f97316;
  font-size: 24px;
  font-weight: 900;
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  color: #9a3412;
  background: #ffedd5;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags a {
  color: #1d4ed8;
  background: #dbeafe;
}

.article-block {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  margin-top: 24px;
}

.article-block p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

.review-block {
  border-left: 4px solid #f97316;
  border-top: 0;
  border-radius: 18px;
  padding: 20px;
  background: #fff7ed;
}

.detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 96px;
}

.poster-card img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.table-wrap {
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.rank-table th,
.rank-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.rank-table th {
  color: #9a3412;
  background: #fff7ed;
  font-weight: 900;
}

.rank-table a {
  color: #ea580c;
  font-weight: 800;
}

.search-status {
  margin-bottom: 18px;
  color: #64748b;
  font-weight: 800;
}

.site-footer {
  margin-top: 60px;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 40px;
  padding: 46px 0;
}

.footer-brand {
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 14px 0 0;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #fed7aa;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 18px 16px;
  color: #94a3b8;
  text-align: center;
}

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
  }

  .header-inner {
    height: 64px;
  }

  .brand,
  .footer-brand {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-tags,
  .hero-mini-tags,
  .hero-actions,
  .page-actions {
    justify-content: center;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .detail-title-row {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .category-movie-grid,
  .related-grid,
  .category-grid,
  .overview-grid,
  .channel-topline,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-search,
  .mobile-search {
    flex-direction: column;
  }

  .wide-search button,
  .mobile-search button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

  .hero {
    height: 530px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .intro-search,
  .page-hero .container,
  .rank-panel,
  .side-card,
  .detail-card,
  .overview-card,
  .table-wrap {
    border-radius: 20px;
    padding: 18px;
  }

  .movie-grid,
  .featured-grid,
  .latest-grid,
  .category-movie-grid,
  .related-grid,
  .category-grid,
  .overview-grid,
  .channel-topline,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-item {
    grid-template-columns: auto 52px minmax(0, 1fr);
  }

  .compact-item b {
    display: none;
  }
}
