:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #e5e7eb;
  --panel: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 28%, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 19px;
  letter-spacing: -0.03em;
}

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

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

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--brand-dark);
  background: #ffedd5;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid #fed7aa;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
}

.header-search input,
.mobile-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 2px 10px 16px;
  color: #111827;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  padding: 10px 15px;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--brand-dark);
  background: #ffedd5;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

main {
  min-height: 62vh;
}

.hero-shell {
  position: relative;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.hero-intro {
  max-width: 720px;
  margin-bottom: 18px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  background: #ffedd5;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-intro h1,
.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-intro p,
.page-hero p {
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 34px;
  align-items: center;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: #ffffff;
  isolation: isolate;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.2);
  transform: scale(1.12);
  opacity: 0.58;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.45), transparent 34%), linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.68) 55%, rgba(17, 24, 39, 0.42));
}

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

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #fed7aa;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 18px;
  color: #f3f4f6;
  line-height: 1.9;
  font-size: 17px;
}

.hero-tags,
.detail-tags,
.card-tags,
.category-samples,
.filter-hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.category-samples span,
.filter-hotwords button {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.ghost-button.light {
  color: var(--brand-dark);
  background: #ffedd5;
  border-color: #fed7aa;
}

.outline-button {
  color: var(--brand-dark);
  border: 1px solid #fed7aa;
  background: #ffffff;
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 26px;
  overflow: hidden;
  background: #1f2937;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  aspect-ratio: 2 / 3;
}

.hero-poster img,
.poster-link img,
.detail-poster img,
.rank-row-poster img,
.rank-feature img,
.rank-mini-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster span,
.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.88);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.carousel-arrow,
.carousel-dot {
  border: 0;
  cursor: pointer;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-size: 28px;
  line-height: 1;
}

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

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fdba74;
  opacity: 0.5;
}

.carousel-dot.is-active {
  width: 34px;
  opacity: 1;
  background: var(--brand);
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 20px;
}

.tinted-section {
  max-width: none;
  margin-top: 30px;
  padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1180px) / 2 + 20px));
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border-top: 1px solid #ffedd5;
  border-bottom: 1px solid #ffedd5;
}

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

.single-heading {
  align-items: start;
}

.section-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-more {
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f3f4f6;
}

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

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: auto;
  right: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
}

.poster-play {
  width: 46px;
  height: 46px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

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

.card-meta {
  display: flex;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.card-tags {
  padding: 14px 16px 18px;
  margin-top: auto;
}

.card-tags span,
.category-samples span,
.filter-hotwords button {
  color: var(--brand-dark);
  background: #ffedd5;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid #fed7aa;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  font-size: 24px;
  font-weight: 900;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 22px;
}

.rank-panel,
.rank-feature,
.rank-list,
.article-card,
.player-section,
.detail-hero,
.page-hero {
  border: 1px solid #f3f4f6;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  padding: 16px;
}

.rank-mini-item {
  display: grid;
  grid-template-columns: 42px 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
}

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

.rank-index,
.rank-row-number {
  color: var(--brand-dark);
  font-weight: 900;
}

.rank-mini-item img {
  width: 56px;
  height: 76px;
  border-radius: 12px;
  background: #f3f4f6;
}

.rank-mini-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

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

.rank-feature {
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.rank-feature img {
  width: 100%;
  height: 360px;
  background: #f3f4f6;
}

.rank-feature div {
  padding: 24px;
}

.rank-feature span {
  color: var(--brand-dark);
  font-weight: 900;
}

.rank-feature h2 {
  margin: 8px 0;
  font-size: 28px;
}

.rank-feature p {
  color: var(--muted);
  line-height: 1.8;
}

.page-hero {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 48px 42px;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.16), transparent 36%), #ffffff;
}

.small-hero h1 {
  font-size: clamp(34px, 4.5vw, 56px);
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #fed7aa;
}

.filter-panel input {
  flex: 1 1 280px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  outline: 0;
  padding: 13px 16px;
}

.filter-panel input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-hotwords button {
  border: 0;
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: 50px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 34px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: center;
  background: radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.15), transparent 34%), #ffffff;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  background: #f3f4f6;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta,
.compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.detail-meta span,
.compact-meta span {
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

.detail-tags span {
  color: var(--brand-dark);
  background: #ffedd5;
}

.player-section {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-red));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  font-size: 28px;
}

.detail-content {
  padding-top: 30px;
}

.article-card {
  padding: 34px;
}

.article-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p {
  margin: 0 0 14px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.rank-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.rank-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
}

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

.rank-row-poster {
  width: 92px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
}

.rank-row-main h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.rank-row-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 32px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.footer-links a {
  display: block;
  margin: 9px 0;
  color: #9ca3af;
}

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slide {
    grid-template-columns: 1fr 260px;
    padding: 34px;
  }

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 16px;
  }

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

  .hero-shell,
  .content-section,
  .breadcrumb,
  .page-hero,
  .detail-hero,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-carousel {
    min-height: 760px;
    border-radius: 24px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-poster {
    max-width: 250px;
    margin: 0 auto;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .rank-mini-item {
    grid-template-columns: 34px 48px 1fr;
  }

  .rank-mini-meta {
    display: none;
  }

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

  .rank-row .outline-button {
    grid-column: 1 / -1;
  }

  .rank-row-poster {
    width: 76px;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

  .hero-intro h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .article-card {
    border-radius: 22px;
  }
}
