* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed 0%, #f9fafb 34%, #f3f4f6 100%);
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 55%, #fb923c 100%);
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.22);
}

.nav-wrap {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  color: #ffffff;
  font-size: 22px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  font-size: 14px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff7ed;
  font-weight: 650;
}

.site-menu a {
  position: relative;
  padding: 20px 0;
}

.site-menu a::after {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.2s ease;
}

.site-menu a:hover::after {
  transform: scaleX(1);
}

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

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

.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.42), transparent 30%), linear-gradient(120deg, #c2410c 0%, #ea580c 45%, #f59e0b 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(255, 247, 237, 0.08)), radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.28), transparent 24%);
}

.hero-inner {
  position: relative;
  min-height: 620px;
  padding: 70px 0 92px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 54px;
  min-height: 460px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.55s ease both;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.17);
  color: #fff7ed;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  text-shadow: 0 14px 32px rgba(124, 45, 18, 0.36);
}

.hero-copy h2 + p,
.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  padding: 13px 24px;
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 16px 38px rgba(124, 45, 18, 0.28);
}

.btn-ghost {
  padding: 13px 24px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.btn-small {
  padding: 9px 15px;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  color: #ffffff;
  font-size: 13px;
}

.hero-poster {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(124, 45, 18, 0.35);
  transform: rotate(2deg);
}

.hero-poster::before {
  position: absolute;
  inset: 18px -16px -16px 30px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

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

.hero-poster:hover img,
.movie-card:hover img,
.category-thumb:hover img,
.category-card-image:hover img,
.rank-item:hover img {
  transform: scale(1.06);
}

.hero-control {
  position: absolute;
  right: 0;
  bottom: 124px;
  display: flex;
  gap: 10px;
}

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

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

.hero-search {
  position: absolute;
  right: 0;
  bottom: 38px;
  left: 0;
  display: flex;
  max-width: 760px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(124, 45, 18, 0.22);
}

.hero-search input,
.search-panel input,
.filter-card input,
.filter-card select {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
}

.hero-search input {
  padding: 18px 24px;
  background: transparent;
}

.hero-search button,
.search-panel button {
  border: 0;
  background: linear-gradient(90deg, #f97316, #f59e0b);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hero-search button {
  min-width: 130px;
}

.section-block {
  padding: 58px 0;
}

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

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

.section-kicker {
  padding: 6px 12px;
  background: #ffedd5;
  color: #ea580c;
}

.section-head h2,
.rank-column h2,
.content-card h2,
.category-card-large h2,
.category-panel h3 {
  margin: 0;
  color: #111827;
  line-height: 1.2;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.text-link {
  color: #ea580c;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 58px rgba(154, 52, 18, 0.14);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fed7aa, #ffedd5);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.64));
  content: "";
  opacity: 0.75;
}

.movie-duration,
.movie-play {
  position: absolute;
  z-index: 2;
  color: #ffffff;
}

.movie-duration {
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.movie-play {
  right: 14px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: #ea580c;
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 13px;
}

.movie-tags span {
  padding: 5px 9px;
  background: #fff7ed;
  color: #c2410c;
}

.two-column {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 72px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 18px 44px rgba(154, 52, 18, 0.12);
}

.rank-num {
  color: #f97316;
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 72px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rank-text {
  min-width: 0;
}

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

.rank-text strong {
  color: #111827;
}

.rank-text em {
  color: #6b7280;
  font-size: 13px;
  font-style: normal;
}

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

.category-grid,
.category-large-grid {
  display: grid;
  gap: 22px;
}

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

.category-panel,
.category-card-large {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.category-panel {
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 14px;
}

.category-thumb,
.category-card-image {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffedd5;
}

.category-thumb img,
.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-panel p,
.category-card-large p {
  margin: 8px 0 14px;
  color: #6b7280;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  padding: 72px 0;
  background: linear-gradient(120deg, #ea580c 0%, #f59e0b 100%);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.category-card-large {
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 18px;
}

.category-card-image {
  aspect-ratio: 4 / 3;
}

.filter-card,
.search-panel {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.filter-card label {
  display: grid;
  flex: 1;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.filter-card input,
.filter-card select,
.search-panel input {
  min-height: 46px;
  border-radius: 999px;
  background: #f9fafb;
  padding: 0 16px;
  color: #111827;
}

.search-panel {
  max-width: 760px;
  margin-top: 28px;
  padding: 8px;
}

.search-panel button {
  min-width: 118px;
  border-radius: 999px;
}

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

.rank-column {
  min-width: 0;
}

.rank-column h2 {
  margin-bottom: 16px;
}

.tall-rank {
  max-height: 960px;
  overflow: auto;
  padding-right: 4px;
}

.detail-hero {
  padding: 56px 0;
  background: linear-gradient(120deg, #111827 0%, #7c2d12 55%, #f97316 100%);
  color: #ffffff;
}

.detail-wrap {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-meta span,
.detail-tags span {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff7ed;
}

.detail-tags {
  margin: 16px 0 28px;
}

.player-section {
  margin-top: -36px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
}

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

.play-circle {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 42px rgba(234, 88, 12, 0.34);
  font-size: 30px;
}

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

.content-card {
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

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

.info-table div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-table strong {
  color: #6b7280;
  font-size: 13px;
}

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

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
  color: #d1d5db;
}

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

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

.footer-grid p {
  margin: 0;
  color: #9ca3af;
}

.footer-grid a {
  display: block;
  margin-bottom: 9px;
  color: #d1d5db;
}

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

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

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .movie-grid,
  .rank-layout,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column,
  .category-large-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    color: #9a3412;
    box-shadow: 0 22px 48px rgba(124, 45, 18, 0.2);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    padding: 14px 18px;
  }

  .site-menu a::after {
    display: none;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero-inner {
    min-height: 720px;
    padding-top: 44px;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-poster {
    margin-top: 28px;
    transform: none;
  }

  .hero-control {
    right: auto;
    bottom: 104px;
    left: 0;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 26px;
  }

  .hero-search button,
  .search-panel button {
    min-height: 48px;
  }

  .section-head,
  .filter-card,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .mini-grid,
  .footer-grid,
  .rank-layout,
  .info-table {
    grid-template-columns: 1fr;
  }

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

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

  .detail-hero {
    padding-top: 36px;
  }

  .content-card {
    padding: 22px;
  }
}
