
:root {
  --brand-orange: #f97316;
  --brand-red: #ef4444;
  --brand-pink: #ec4899;
  --text-main: #111827;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --line-soft: #e5e7eb;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 70px rgba(239, 68, 68, 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

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

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-orange);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input,
.mobile-search input {
  width: 220px;
  padding: 10px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.top-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: #fff7ed;
  color: #ea580c;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #f1f5f9;
  padding: 16px;
  background: #ffffff;
}

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

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #374151;
}

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

.hero-carousel {
  position: relative;
  height: 650px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red), var(--brand-pink));
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 36%, rgba(255, 255, 255, 0.24), transparent 34%), rgba(0, 0, 0, 0.20);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
  color: #fff7ed;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.hero-content h1 span {
  color: #fde047;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #fff7ed;
  font-size: clamp(18px, 2vw, 24px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

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

.primary-button {
  padding: 14px 28px;
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.20);
}

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

.primary-button:hover,
.ghost-button:hover,
.watch-link:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 120px;
  z-index: 2;
  width: 330px;
  height: 450px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 38px 80px rgba(15, 23, 42, 0.34);
  transform: rotate(3deg);
}

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

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

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

.hero-bottom-fade {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-page), transparent);
}

.featured-overlap {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: -70px auto 70px;
}

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

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

.section-wrap.no-margin {
  margin-bottom: 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: 34px;
}

.section-heading .eyebrow,
.page-hero .eyebrow {
  color: #ea580c;
  background: #ffedd5;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.movie-card.large .poster-link {
  aspect-ratio: 16 / 12;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), transparent 60%);
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.70);
  font-size: 12px;
  font-weight: 800;
}

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

.card-body {
  padding: 20px;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: #ea580c;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.watch-link {
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.movie-card.horizontal .poster-link {
  aspect-ratio: auto;
  height: 100%;
  min-height: 180px;
}

.white-band {
  padding: 70px 0;
  margin-bottom: 76px;
  background: #ffffff;
}

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

.small-grid .movie-card h2 {
  font-size: 17px;
}

.two-column-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
}

.ranking-panel,
.cta-panel,
.filter-panel,
.category-tile,
.detail-info,
.detail-poster {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-panel,
.cta-panel {
  padding: 28px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

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

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

.compact-card img {
  width: 74px;
  height: 56px;
  border-radius: 14px;
}

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

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

.compact-rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
}

.cta-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
}

.cta-panel h2 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.15;
}

.cta-panel p {
  color: #fff7ed;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cta-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ea580c;
  background: #ffffff;
  font-weight: 900;
}

.page-main,
.detail-main {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  padding: 94px 16px 78px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red), var(--brand-pink));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 20%, rgba(255,255,255,0.28), transparent 28%), radial-gradient(circle at 82% 18%, rgba(255,255,255,0.20), transparent 25%);
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(40px, 6vw, 64px);
}

.page-hero p {
  max-width: 780px;
  margin: 18px auto 0;
  color: #fff7ed;
  font-size: 19px;
}

.simple-actions {
  justify-content: center;
}

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

.category-tile {
  overflow: hidden;
}

.category-main-link {
  display: block;
  min-height: 190px;
  padding: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
}

.category-main-link span {
  display: block;
  margin-bottom: 16px;
  font-size: 26px;
  font-weight: 900;
}

.category-main-link strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff7ed;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.category-samples a {
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: #ea580c;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 22px;
}

.filter-panel form {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 14px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
}

.filter-empty {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  color: #9a3412;
  background: #fff7ed;
  font-weight: 800;
  text-align: center;
}

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

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

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

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

.rank-row {
  display: grid;
  grid-template-columns: 50px 92px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.rank-row img {
  width: 92px;
  height: 68px;
  border-radius: 14px;
}

.rank-number {
  color: #ea580c;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

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

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

.rank-heat {
  color: #ef4444;
  font-weight: 900;
  text-align: right;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
}

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

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

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(to top, rgba(0,0,0,0.74), rgba(0,0,0,0.22));
  z-index: 3;
}

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

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ea580c;
  background: #ffffff;
  font-size: 34px;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.play-overlay span {
  font-size: 24px;
  font-weight: 900;
}

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
}

.detail-poster {
  overflow: hidden;
  height: 440px;
}

.detail-info {
  padding: 34px;
}

.detail-info h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

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

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

.lead-text {
  color: #ea580c;
  font-size: 20px;
  font-weight: 800;
}

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

.detail-info p {
  color: #475569;
  font-size: 17px;
}

.related-section {
  margin-bottom: 92px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 34px;
}

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

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

.site-footer p,
.site-footer li,
.site-footer a {
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.keyword-cloud {
  line-height: 2;
}

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

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1180px) {
  .hero-poster {
    display: none;
  }

  .hero-content {
    max-width: 860px;
  }

  .desktop-nav {
    gap: 12px;
  }
}

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

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

  .feature-grid,
  .movie-grid,
  .small-grid,
  .category-list,
  .top-three,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-block,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 24px);
    height: 62px;
  }

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

  .hero-carousel {
    height: 620px;
  }

  .hero-content {
    width: calc(100% - 32px);
    justify-content: center;
  }

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

  .hero-controls {
    bottom: 68px;
  }

  .featured-overlap {
    margin-top: -48px;
  }

  .feature-grid,
  .movie-grid,
  .small-grid,
  .category-list,
  .top-three,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-card.horizontal .poster-link {
    aspect-ratio: 16 / 10;
  }

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

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

  .rank-row {
    grid-template-columns: 40px 74px minmax(0, 1fr);
  }

  .rank-row img {
    width: 74px;
    height: 56px;
  }

  .rank-heat {
    display: none;
  }

  .detail-poster {
    height: 520px;
  }

  .detail-info {
    padding: 24px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-overlay span {
    padding: 0 20px;
    font-size: 18px;
    text-align: center;
  }
}
