:root {
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --white: #ffffff;
  --shadow: 0 20px 35px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 10px 20px rgba(20, 184, 166, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #374151;
  font-weight: 650;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.footer-links a:hover,
.card-body h3 a:hover,
.rank-info h3 a:hover,
.category-copy h2 a:hover {
  color: var(--teal-dark);
}

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

.header-search input,
.filter-panel input,
.filter-panel select {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.header-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
}

.header-search button,
.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 22px rgba(20, 184, 166, 0.22);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.section-more {
  color: var(--teal-dark);
  background: #ccfbf1;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  gap: 12px;
  flex-direction: column;
  font-weight: 700;
}

.mobile-panel.open {
  display: flex;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.05));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 700px;
  padding-top: 20px;
}

.hero-kicker,
.category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.card-meta,
.rank-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

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

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

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

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

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.six-col {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.category-overview-card:hover .category-cover img,
.related-item:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.24);
  transition: opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-meta,
.rank-meta {
  color: #6b7280;
  font-size: 12px;
}

.card-meta span,
.rank-meta span,
.rank-meta strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-meta span:first-child,
.rank-meta strong {
  color: var(--teal-dark);
  background: #ccfbf1;
}

.card-body h3,
.rank-info h3 {
  margin: 12px 0 8px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
}

.card-body p,
.rank-info p,
.detail-section p,
.lead-text {
  color: #4b5563;
  line-height: 1.75;
}

.card-body p {
  min-height: 76px;
  margin: 0 0 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.tag-row span,
.detail-tags span {
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 290px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 20px;
}

.compact-card .card-body p {
  min-height: 52px;
  -webkit-line-clamp: 2;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: auto 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-size: 22px;
  font-weight: 900;
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.rank-info p {
  margin: 0 0 10px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: #111827;
}

.category-tile span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18));
}

.category-tile strong {
  position: absolute;
  inset: auto 18px 18px;
  color: #fff;
  font-size: 24px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.compact-hero {
  padding: 58px 0;
}

.ranking-hero {
  background: linear-gradient(135deg, #dc2626, #f97316);
}

.search-hero {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

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

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

.compact-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.04em;
}

.compact-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.category-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.category-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.92);
  font-weight: 800;
}

.category-copy h2 {
  margin: 0 0 10px;
}

.category-copy p {
  margin: 0 0 14px;
  color: #4b5563;
  line-height: 1.7;
}

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

.mini-links a {
  color: var(--teal-dark);
  background: #ccfbf1;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.45fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.player-stage {
  padding: 32px 0;
  background: #050505;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
}

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

.big-play {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.95);
  font-size: 34px;
  box-shadow: 0 24px 50px rgba(20, 184, 166, 0.28);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  padding: 36px 0 0;
}

.detail-card,
.side-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.detail-card {
  padding: 28px;
}

.detail-breadcrumb {
  color: #6b7280;
  margin-bottom: 18px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.detail-meta span {
  color: #4b5563;
  background: #f3f4f6;
}

.category-badge {
  flex-shrink: 0;
}

.lead-text {
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 18px;
  background: #f0fdfa;
  color: #115e59;
  font-weight: 700;
}

.detail-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-section p {
  margin: 0 0 20px;
}

.detail-tags {
  padding-top: 8px;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 94px;
  padding: 20px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #f9fafb;
}

.related-item img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #1f2937;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item em {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  margin-top: 60px;
  padding: 42px 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-logo {
  color: #5eead4;
}

.site-footer p {
  max-width: 720px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 14px;
  font-weight: 700;
}

[data-card].filtered-out {
  display: none;
}

@media (max-width: 1100px) {
  .six-col,
  .four-col,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .three-col,
  .rank-grid,
  .category-overview,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding-inline: 24px;
  }

  .hero-arrow {
    display: none;
  }

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

  .rank-card {
    grid-template-columns: 42px 102px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 18px;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

  .detail-title-row,
  .footer-grid,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-container {
    width: min(100% - 22px, 1180px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

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

  .six-col,
  .four-col,
  .three-col,
  .category-grid {
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

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

  .rank-thumb {
    aspect-ratio: 16 / 9;
  }

  .player-stage {
    padding: 16px 0;
  }

  .player-box,
  .detail-card,
  .side-card {
    border-radius: 18px;
  }

  .detail-card {
    padding: 18px;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
