:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --emerald: #10b981;
  --orange: #f97316;
  --rose: #e11d48;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #f8fafc;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef7f7 48%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.24);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-size: 20px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.desktop-nav a,
.nav-dropdown > button {
  border: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 0;
  cursor: pointer;
  font-weight: 700;
  opacity: 0.95;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-dropdown > button:hover {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 190px;
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 10px;
}

.dropdown-panel a:hover {
  color: var(--teal);
  background: #ecfeff;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.header-search input,
.mobile-nav input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: #ffffff;
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.header-search input {
  width: 230px;
}

.header-search button,
.mobile-nav button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--cyan);
  background: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.mobile-nav a {
  padding: 10px 0;
  font-weight: 800;
}

.mobile-nav form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(90deg, #f97316, #ec4899, #e11d48);
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.06);
  opacity: 0.44;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(225, 29, 72, 0.52));
}

.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 540px;
  padding: 54px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #ffffff;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
  margin: 18px 0 10px;
  line-height: 1.04;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
}

.hero-desc,
.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-style: normal;
  color: #075985;
  background: linear-gradient(90deg, #dbeafe, #cffafe);
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 950;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #be123c;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.22);
}

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

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
}

.primary-btn.full {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  border-radius: inherit;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  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;
  transition: 0.2s ease;
}

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

.quick-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.quick-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-inner a {
  border-radius: 999px;
  padding: 10px 18px;
  color: #0f766e;
  background: #ecfeff;
  font-weight: 900;
}

.content-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-size: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading > a {
  margin-left: auto;
  color: var(--teal);
  font-weight: 950;
}

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

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.25s ease;
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

.poster-frame.large {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.poster-frame img {
  transition: transform 0.45s ease;
}

.movie-link:hover .poster-frame img,
.media-item:hover .media-thumb img {
  transform: scale(1.08);
}

.year-badge,
.rank-badge,
.small-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 950;
}

.year-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 12px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.hover-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.25);
  font-size: 34px;
  opacity: 0;
  transition: 0.25s ease;
}

.movie-link:hover .hover-play {
  opacity: 1;
}

.movie-info {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.movie-info strong {
  font-size: 17px;
  line-height: 1.35;
  min-height: 46px;
}

.movie-info em,
.media-copy em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.media-list {
  display: grid;
  gap: 14px;
}

.media-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: 0.2s ease;
}

.media-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.media-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d1fae5, #cffafe);
}

.media-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.media-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-copy span {
  color: var(--muted);
  font-size: 13px;
}

.small-rank {
  left: 8px;
  top: 8px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  font-size: 12px;
}

.ranking-panel {
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(135deg, #0d9488, #0891b2);
  box-shadow: var(--shadow);
}

.ranking-panel .section-heading h2,
.ranking-panel .section-heading p {
  color: #ffffff;
}

.ranking-panel .media-item {
  background: rgba(255, 255, 255, 0.92);
}

.category-band {
  background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
}

.category-band-inner {
  color: #ffffff;
  text-align: center;
}

.category-band-inner h2,
.category-band-inner p {
  margin-left: auto;
  margin-right: auto;
}

.category-band-inner p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

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

.category-tile,
.category-overview-card {
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #ec4899);
  box-shadow: var(--shadow);
}

.category-tile {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 26px;
  text-align: left;
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px) rotate(-1deg);
}

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

.category-tile span {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.tile-1 {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tile-2 {
  background: linear-gradient(135deg, #10b981, #0d9488);
}

.tile-3 {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.tile-4 {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.page-hero {
  color: #ffffff;
  padding: 78px 20px;
}

.teal-hero {
  background: linear-gradient(90deg, var(--emerald), var(--teal), var(--cyan));
}

.orange-hero {
  background: linear-gradient(90deg, var(--orange), #ec4899, var(--rose));
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.detail-breadcrumb {
  color: var(--muted);
}

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

.category-overview-list {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 26px;
}

.category-overview-copy {
  align-self: center;
}

.category-overview-copy span {
  opacity: 0.8;
  font-weight: 900;
}

.category-overview-copy h2 {
  margin: 10px 0;
  font-size: 34px;
}

.category-overview-copy p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

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

.mini-grid .movie-info em,
.mini-grid .tag-row {
  display: none;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  background: #f8fafc;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.empty-state.is-visible {
  display: block;
}

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

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 0;
}

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

.player-card,
.detail-card,
.poster-side,
.related-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

.play-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  color: #e11d48;
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.play-overlay strong {
  font-size: 20px;
}

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

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.detail-card h2,
.related-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  font-weight: 850;
  color: #0f766e !important;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
}

.review-box {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.detail-tags .tag {
  font-size: 13px;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 22px;
}

.poster-side {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.related-card {
  padding: 20px;
}

.compact-list .media-item {
  grid-template-columns: 98px minmax(0, 1fr);
  box-shadow: none;
  border: 1px solid var(--line);
}

.search-summary {
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 900;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(220px, 500px) auto;
  gap: 10px;
  margin-top: 28px;
}

.site-footer {
  margin-top: 40px;
  color: #ffffff;
  background: #0f172a;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 800;
}

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

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

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

  .hero-content,
  .two-column,
  .detail-layout,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .cards-4,
  .cards-3,
  .category-grid,
  .mini-grid,
  .ranking-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
    padding: 0 14px;
  }

  .site-logo {
    font-size: 17px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding: 42px 16px 70px;
  }

  .hero-copy h1,
  .hero-copy h2,
  .page-hero h1 {
    font-size: 40px;
  }

  .content-section,
  .detail-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .section-heading > a {
    display: none;
  }

  .cards-4,
  .cards-3,
  .category-grid,
  .mini-grid,
  .ranking-wide {
    grid-template-columns: 1fr;
  }

  .media-item,
  .compact-list .media-item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

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

  .footer-inner {
    display: grid;
  }
}
