* {
  box-sizing: border-box;
}

:root {
  --coral: #ff5533;
  --coral-dark: #ed3010;
  --coral-soft: #ffe4df;
  --peach: #ffe8e1;
  --peach-light: #fff5f2;
  --text: #111827;
  --muted: #6b7280;
  --line: #ffd4c7;
  --panel: #ffffff;
  --shadow: 0 20px 55px rgba(255, 85, 51, 0.16);
  --gradient: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, var(--peach-light), #ffffff 28%, var(--peach-light));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  color: #ffffff;
  background: var(--gradient);
  box-shadow: 0 16px 38px rgba(237, 48, 16, 0.22);
}

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

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

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--coral);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

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

.nav-link {
  padding: 9px 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.site-search input,
.year-filter {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0 16px;
  color: #374151;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.site-search input:focus,
.year-filter:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 85, 51, 0.12);
}

.site-search button,
.primary-btn,
.ghost-btn,
.rank-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.primary-btn,
.rank-action {
  color: #ffffff;
  background: var(--gradient);
  box-shadow: 0 12px 28px rgba(255, 85, 51, 0.28);
}

.site-search button:hover,
.primary-btn:hover,
.rank-action:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 36px rgba(255, 85, 51, 0.34);
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-nav {
  display: none;
  padding: 12px 24px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.mobile-nav .nav-link {
  display: block;
  color: #374151;
}

main {
  padding-top: 66px;
}

.hero-carousel {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 70%, rgba(255, 85, 51, 0.52), transparent 34%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  right: 32px;
  bottom: 82px;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.section-heading p,
.page-hero p {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.2vw, 23px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.content-section,
.quick-categories,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.content-section,
.quick-categories {
  padding: 58px 0;
}

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

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.16;
  font-weight: 900;
}

.section-heading a,
.text-link {
  color: var(--coral-dark);
  font-weight: 800;
}

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

.category-tile {
  min-height: 146px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, var(--peach-light));
  box-shadow: 0 16px 35px rgba(255, 85, 51, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.category-tile span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 212, 199, 0.8);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--peach);
}

.movie-card.compact .card-poster {
  aspect-ratio: 3 / 4;
}

.card-poster img,
.category-cover img,
.rank-thumb img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gradient);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.card-body {
  padding: 18px;
}

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

.card-body h3,
.rank-content h3 {
  margin: 9px 0 8px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.card-body p,
.rank-content p,
.category-card-body p,
.detail-line,
.detail-section p,
.footer-brand p,
.site-footer p {
  color: var(--muted);
}

.card-body p,
.rank-content p,
.category-card-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: 12px;
  font-weight: 800;
}

.soft-panel,
.feature-panel {
  width: min(1180px, calc(100% - 32px));
  padding: 38px;
  border-radius: 34px;
}

.soft-panel {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 199, 0.72);
}

.feature-panel {
  background: linear-gradient(135deg, var(--peach), var(--coral-soft));
  box-shadow: var(--shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 118px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--gradient);
  font-weight: 900;
}

.rank-thumb {
  display: block;
  height: 80px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--peach);
}

.rank-action {
  min-width: 74px;
  min-height: 36px;
}

.page-main,
.detail-main {
  padding-top: 34px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 240px;
  margin-bottom: 18px;
  padding: 42px;
  border-radius: 34px;
  color: var(--text);
  background:
    radial-gradient(circle at right top, rgba(255, 85, 51, 0.22), transparent 34%),
    linear-gradient(135deg, #ffffff, var(--peach-light));
  box-shadow: 0 20px 55px rgba(255, 85, 51, 0.12);
}

.page-hero span {
  display: block;
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  min-height: 190px;
  background: var(--peach);
}

.category-card-body {
  padding: 24px;
}

.category-card-body h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.page-search {
  min-width: 0;
}

.page-search input {
  border-color: var(--line);
  background: #ffffff;
}

.filter-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.year-filter {
  width: auto;
  min-width: 148px;
  border-color: var(--line);
}

.chip-filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--coral-dark);
  background: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.chip-filter.active,
.chip-filter:hover {
  color: #ffffff;
  border-color: transparent;
  background: var(--gradient);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 42px;
  padding: 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at right bottom, rgba(255, 85, 51, 0.18), transparent 35%),
    #ffffff;
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 3 / 4;
  background: var(--peach);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.14);
}

.detail-line {
  max-width: 760px;
  margin: 18px 0;
  font-size: 18px;
}

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

.detail-meta-list div {
  padding: 14px;
  border-radius: 18px;
  background: var(--peach-light);
}

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

.detail-meta-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.player-section,
.detail-section {
  margin-bottom: 38px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.06);
}

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

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--gradient);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
  font-size: 34px;
  padding-left: 5px;
}

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

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  font-size: 17px;
}

.related-section {
  padding-top: 10px;
}

.no-result {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  background: var(--peach-light);
  text-align: center;
  font-weight: 800;
}

.no-result.is-visible {
  display: block;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--peach-light), #ffffff);
}

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

.footer-logo {
  margin-bottom: 14px;
  color: var(--coral-dark);
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--coral-dark);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .site-search {
    margin-left: auto;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: block;
  }

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .site-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  main {
    padding-top: 118px;
  }

  .hero-carousel {
    min-height: 540px;
    height: calc(100vh - 118px);
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 74px;
  }

  .hero-control {
    display: none;
  }

  .category-grid,
  .three-cols,
  .four-cols,
  .category-page-grid,
  .footer-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .soft-panel,
  .feature-panel,
  .page-hero,
  .detail-hero,
  .player-section,
  .detail-section {
    padding: 22px;
    border-radius: 24px;
  }

  .section-heading,
  .page-hero {
    display: block;
  }

  .section-heading a,
  .page-hero .primary-btn {
    margin-top: 12px;
  }

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

  .rank-action {
    grid-column: 3;
    justify-self: start;
  }

  .detail-cover {
    width: min(100%, 300px);
    margin: 0 auto;
  }

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

@media (max-width: 480px) {
  .content-section,
  .quick-categories {
    width: min(100% - 22px, 1180px);
    padding: 38px 0;
  }

  .page-main,
  .detail-main {
    width: min(100% - 22px, 1180px);
  }

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

  .rank-no {
    display: none;
  }

  .rank-thumb {
    height: 96px;
  }

  .rank-action {
    grid-column: 2;
  }
}
