* {
  box-sizing: border-box;
}

:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --deep-orange: #c2410c;
  --dark: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --card: #ffffff;
  --line: rgba(17, 24, 39, 0.09);
  --shadow: 0 24px 60px rgba(124, 45, 18, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
    linear-gradient(135deg, #fffbeb 0%, #ffffff 42%, #fff7ed 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 52%, #d97706 100%);
  box-shadow: 0 14px 32px rgba(154, 52, 18, 0.22);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(3deg);
}

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

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

.nav-link {
  opacity: 0.92;
  font-weight: 700;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 44px 10px 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.page-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 3px;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  background: rgba(154, 52, 18, 0.22);
}

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

.mobile-panel a {
  padding: 10px 0;
  font-weight: 700;
}

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

.mobile-search input,
.page-search input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  padding: 12px 16px;
  outline: none;
}

.mobile-search button,
.page-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  color: var(--deep-orange);
  background: #ffffff;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  align-items: center;
  gap: 52px;
  padding: 88px max(24px, calc((100vw - 1280px) / 2 + 24px)) 110px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(124, 45, 18, 0.72) 48%, rgba(17, 24, 39, 0.72) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.96), transparent);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 20px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.75;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

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

.hero-poster {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.44);
  backdrop-filter: blur(18px);
}

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

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: #ffffff;
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.05em;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.section-heading.with-link a {
  color: var(--deep-orange);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--shadow);
  background: #7c2d12;
  isolation: isolate;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
  transition: transform 0.5s ease;
  z-index: -2;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.84) 100%);
  z-index: -1;
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 62px;
  font-size: 22px;
}

.category-tile em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.18);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.quality-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.quality-badge {
  right: 12px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  min-width: 32px;
  text-align: center;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.card-content {
  padding: 16px;
}

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

.meta-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.card-summary {
  min-height: 46px;
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

.rank-section {
  max-width: 1120px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.rank-number {
  color: var(--orange);
  font-size: 20px;
  font-weight: 950;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.rank-main {
  display: grid;
  gap: 6px;
}

.rank-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-main em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  position: relative;
  max-width: 1280px;
  min-height: 320px;
  margin: 34px auto 0;
  padding: 68px 24px;
  overflow: hidden;
  border-radius: 34px;
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(124, 45, 18, 0.96), rgba(249, 115, 22, 0.82)),
    var(--hero-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.soft-hero {
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 66px);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.84);
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -6px 0 26px;
}

.filter-btn {
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  color: var(--deep-orange);
  background: #ffffff;
  padding: 9px 16px;
  font-weight: 900;
  cursor: pointer;
}

.filter-btn.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.empty-state {
  display: none;
  border: 1px dashed rgba(249, 115, 22, 0.42);
  border-radius: 20px;
  color: var(--muted);
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

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

.breadcrumb a {
  color: var(--deep-orange);
  font-weight: 800;
}

.detail-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-info {
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 38px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.detail-info h1 {
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 70px);
}

.detail-one-line {
  color: #374151;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 28px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  border-radius: 18px;
  padding: 14px;
  background: #fff7ed;
}

.detail-meta-grid b {
  color: var(--muted);
  font-size: 12px;
}

.player-section {
  padding-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #020617;
  box-shadow: 0 34px 80px rgba(2, 6, 23, 0.32);
}

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

.player-start {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.16), rgba(2, 6, 23, 0.42));
  cursor: pointer;
}

.player-start span {
  width: 92px;
  height: 92px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 38px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 24px 52px rgba(249, 115, 22, 0.36);
}

.player-start.is-hidden {
  display: none;
}

.detail-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-text article,
.side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.detail-text article {
  padding: 34px;
}

.detail-text article h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-text article p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.side-card {
  padding: 24px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.side-card h2 {
  margin: 0 0 8px;
}

.side-card a {
  border-radius: 16px;
  color: var(--deep-orange);
  background: #fff7ed;
  padding: 12px 14px;
  font-weight: 800;
}

.page-search {
  display: flex;
  max-width: 620px;
  gap: 12px;
  margin-top: 26px;
}

.search-results .movie-card.is-hidden,
.cards-filter-area .movie-card.is-hidden,
.cards-filter-area .rank-item.is-hidden {
  display: none;
}

.site-footer {
  margin-top: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-weight: 800;
}

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slider,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
    padding-top: 58px;
  }

  .hero-poster {
    max-width: 280px;
    transform: none;
  }

  .compact-rank {
    grid-template-columns: 1fr;
  }

  .detail-hero,
  .detail-text {
    grid-template-columns: 1fr;
  }

  .detail-poster img {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

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

  .section-wrap {
    padding: 48px 16px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

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

  .hero-controls {
    bottom: 18px;
  }

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

  .card-content {
    padding: 12px;
  }

  .card-content h3 {
    font-size: 16px;
  }

  .card-summary {
    display: none;
  }

  .page-hero {
    margin: 18px 16px 0;
    padding: 46px 20px;
    border-radius: 24px;
  }

  .detail-hero {
    padding: 16px;
    gap: 18px;
  }

  .detail-info,
  .detail-text article {
    padding: 22px;
    border-radius: 24px;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .player-start span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

  .page-search,
  .footer-inner,
  .section-heading.with-link {
    flex-direction: column;
    align-items: stretch;
  }
}
