:root {
  --primary-50: #e6f7f7;
  --primary-100: #cceeee;
  --primary-400: #1ab0b0;
  --primary-500: #009999;
  --primary-600: #007a7a;
  --accent-500: #f97316;
  --secondary-50: #f0f4f8;
  --secondary-100: #d9e2ec;
  --secondary-200: #bcccdc;
  --secondary-500: #627d98;
  --secondary-600: #486581;
  --secondary-700: #334e68;
  --secondary-900: #102a43;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(16, 42, 67, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 42, 67, 0.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--secondary-900);
  background: var(--secondary-50);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(188, 204, 220, 0.6);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  box-shadow: 0 14px 30px rgba(0, 153, 153, 0.25);
  transition: transform 0.25s ease;
}

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

.brand-copy strong,
.footer-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand-copy small,
.footer-brand small {
  display: block;
  color: var(--secondary-600);
  font-size: 12px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  color: var(--secondary-700);
}

.nav-link,
.nav-search {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-search:hover,
.nav-link.is-active,
.nav-search.is-active {
  color: var(--primary-600);
}

.nav-search {
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--secondary-100);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--secondary-100);
  color: var(--secondary-900);
  font-size: 22px;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--secondary-700);
}

.mobile-menu a:hover {
  background: var(--secondary-50);
  color: var(--primary-600);
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--secondary-900);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  max-width: 1280px;
}

.hero-content h1 {
  max-width: 820px;
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #d9e2ec;
  font-size: clamp(17px, 2vw, 22px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 153, 153, 0.9);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.hero-dots {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

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

.hero-dot.is-active {
  width: 34px;
  background: var(--primary-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--primary-500);
  box-shadow: 0 14px 28px rgba(0, 153, 153, 0.26);
}

.btn-primary:hover {
  background: var(--primary-600);
}

.btn-outline {
  color: var(--primary-600);
  border: 1px solid rgba(0, 153, 153, 0.35);
  background: var(--white);
}

.quick-search-section {
  background: var(--white);
}

.quick-search-card {
  transform: translateY(-36px);
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.quick-search-card h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.quick-search-card p {
  margin: 0;
  color: var(--secondary-600);
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--secondary-200);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--secondary-900);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(0, 153, 153, 0.12);
}

.page-section {
  padding: 76px 0;
}

.bg-white {
  background: var(--white);
}

.soft-bg {
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-100));
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--secondary-600);
}

.section-more {
  color: var(--primary-600);
  font-weight: 700;
  white-space: nowrap;
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--secondary-200);
}

.poster-wrap.large {
  aspect-ratio: 21 / 9;
}

.poster-wrap.small {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-wrap img,
.compact-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-round {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.92);
  font-size: 23px;
}

.poster-year,
.poster-region {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.poster-year {
  right: 12px;
  background: rgba(0, 0, 0, 0.68);
}

.poster-region {
  left: 12px;
  background: var(--primary-500);
}

.card-content {
  display: block;
  padding: 18px;
}

.card-content strong {
  display: -webkit-box;
  margin-bottom: 8px;
  color: var(--secondary-900);
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .card-content strong {
  color: var(--primary-600);
}

.card-desc {
  display: -webkit-box;
  margin-bottom: 12px;
  color: var(--secondary-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  color: var(--secondary-500);
  font-size: 13px;
}

.movie-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 24px;
}

.rail-item {
  flex: 0 0 320px;
}

.scrollbar-hide {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary-900), var(--primary-600));
  box-shadow: var(--shadow);
}

.category-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile strong,
.category-tile small,
.category-tile p,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile strong {
  font-size: 24px;
  margin-bottom: 6px;
}

.category-tile small {
  color: var(--primary-100);
  font-weight: 700;
}

.category-tile p {
  color: #d9e2ec;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-style: normal;
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.latest-list,
.compact-list {
  display: grid;
  gap: 16px;
}

.compact-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.08);
  overflow: hidden;
}

.compact-card img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.45s ease;
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card strong {
  font-size: 17px;
}

.compact-card small {
  color: var(--secondary-600);
  margin-top: 6px;
}

.rank-card,
.category-overview-card,
.detail-side-card,
.detail-article {
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rank-card h2,
.rank-card p {
  margin-top: 0;
}

.rank-card p {
  color: var(--secondary-600);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 50px 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(188, 204, 220, 0.65);
  border-radius: 18px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  border-color: var(--primary-500);
}

.rank-num {
  color: var(--secondary-500);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.top-rank .rank-num {
  color: var(--accent-500);
}

.rank-row img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

.rank-info strong,
.rank-info small,
.rank-info em {
  display: block;
}

.rank-info strong {
  color: var(--secondary-900);
  font-size: 16px;
}

.rank-info small {
  display: -webkit-box;
  color: var(--secondary-600);
  font-size: 13px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-info em {
  color: var(--primary-600);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  color: var(--white);
  background: radial-gradient(circle at 15% 20%, rgba(26, 176, 176, 0.5), transparent 28%), linear-gradient(135deg, var(--secondary-900), var(--primary-600));
}

.sub-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: #d9e2ec;
  font-size: 18px;
}

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

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
}

.category-overview-head p {
  margin: 0;
  color: var(--secondary-600);
}

.category-overview-head strong {
  color: var(--primary-600);
  white-space: nowrap;
}

.category-overview-card .btn {
  margin-top: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 16px;
  align-items: end;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 22px;
  background: var(--secondary-50);
  border: 1px solid rgba(188, 204, 220, 0.8);
}

.filter-panel label span {
  display: block;
  margin-bottom: 7px;
  color: var(--secondary-700);
  font-size: 13px;
  font-weight: 700;
}

.filter-count {
  margin: 0 0 12px;
  color: var(--primary-600);
  font-weight: 800;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: var(--white);
  background: var(--secondary-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  filter: blur(1px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 42, 67, 0.98), rgba(16, 42, 67, 0.72), rgba(16, 42, 67, 0.35));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 46px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: #d9e2ec;
}

.breadcrumb a:hover {
  color: var(--primary-100);
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.detail-info h1 {
  margin: 18px 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.detail-one-line {
  max-width: 820px;
  color: #d9e2ec;
  font-size: 20px;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span,
.tag-list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 14px;
}

.player-section {
  background: #071827;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 153, 153, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.player-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.player-cover strong {
  font-size: 24px;
}

.player-cover small {
  color: #d9e2ec;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #d9e2ec;
  background: rgba(0, 0, 0, 0.55);
  font-size: 13px;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-article h2,
.detail-side-card h2 {
  margin-top: 0;
}

.detail-article p {
  color: var(--secondary-700);
  font-size: 17px;
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--secondary-500);
  font-weight: 700;
}

.detail-side-card dd {
  margin: 0;
  color: var(--secondary-900);
}

.detail-side-card a {
  color: var(--primary-600);
  font-weight: 700;
}

.site-footer {
  color: var(--secondary-100);
  background: var(--secondary-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 32px;
  padding: 52px 0 34px;
}

.footer-about p,
.footer-links a,
.copyright {
  color: #bcccdc;
}

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

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a:hover {
  color: var(--primary-100);
}

.copyright {
  padding: 22px 0;
  border-top: 1px solid rgba(188, 204, 220, 0.2);
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .movie-grid,
  .home-grid,
  .all-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-search-card,
  .latest-layout,
  .detail-columns,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .hero-carousel {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 94px;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .quick-search-card {
    transform: none;
    margin-top: 0;
    border-radius: 0;
    width: 100%;
  }

  .home-search {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 52px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-block;
    margin-top: 12px;
  }

  .movie-grid,
  .home-grid,
  .all-grid,
  .related-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rail-item {
    flex-basis: 82vw;
  }

  .compact-card {
    grid-template-columns: 120px 1fr;
  }

  .compact-card img {
    width: 120px;
  }

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

  .rank-row img {
    width: 82px;
  }

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

  .filter-count {
    margin-bottom: 0;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-content {
    padding-bottom: 52px;
  }

  .detail-poster {
    max-width: 100%;
  }

  .detail-meta span,
  .tag-list span {
    font-size: 12px;
  }
}
