:root {
  --teal: #0d9488;
  --cyan: #0891b2;
  --emerald: #059669;
  --rose: #e11d48;
  --orange: #f97316;
  --amber: #f59e0b;
  --blue: #2563eb;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

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

.header-inner {
  max-width: 1180px;
  height: 66px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: #fcd34d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.06);
}

.main-nav {
  display: flex;
  gap: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  opacity: 0.95;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.main-nav a:hover {
  color: #fde68a;
  opacity: 1;
}

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

.header-search input,
.mobile-panel input {
  width: 230px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #0f172a;
  outline: none;
  box-shadow: inset 0 0 0 2px transparent;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  box-shadow: inset 0 0 0 2px #fcd34d;
}

.header-search button,
.mobile-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #0f766e;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px 11px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 18px;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  font-weight: 700;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(115deg, #f97316 0%, #ec4899 50%, #e11d48 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.22),
      transparent 26%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.18),
      transparent 30%
    ),
    rgba(15, 23, 42, 0.28);
}

.hero-track {
  position: relative;
  max-width: 1180px;
  min-height: 540px;
  margin: 0 auto;
  padding: 58px 18px;
}

.hero-slide {
  display: none;
  min-height: 420px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 44px;
  animation: fadeIn 0.45s ease both;
}

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

.hero-copy {
  max-width: 660px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(8px);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0 0 26px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

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

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

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 28px 75px rgba(15, 23, 42, 0.38);
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-poster-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(14px);
}

.hero-poster-info strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

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

.hero-tags span,
.meta-pills span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.hero-dots {
  position: relative;
  max-width: 1180px;
  margin: -62px auto 0;
  padding: 0 18px 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
}

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

.section,
.detail-wrap,
.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 18px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #14b8a6, #10b981);
}

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

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

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #111827;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.more-link {
  color: var(--teal);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

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

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

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

.poster-frame img,
.compact-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  font-weight: 900;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: scale(1);
}

.region-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.region-badge {
  top: 10px;
  right: 10px;
  background: var(--orange);
}

.year-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: block;
  min-height: 48px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--teal);
}

.card-body em {
  display: -webkit-box;
  margin-top: 8px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: block;
  margin-top: 12px;
  color: #475569;
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

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

.movie-card-wide .poster-link {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.movie-card-wide .poster-frame {
  aspect-ratio: auto;
  min-height: 145px;
}

.recommend-shell {
  background: linear-gradient(90deg, #ecfdf5, #ecfeff);
}

.category-shell {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 50%, #14b8a6);
}

.category-shell .section-title,
.category-shell .section-desc {
  color: #ffffff;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.08)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.category-tile:nth-child(4n + 1) {
  background: linear-gradient(135deg, #fb7185, #db2777);
}

.category-tile:nth-child(4n + 2) {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.category-tile:nth-child(4n + 3) {
  background: linear-gradient(135deg, #10b981, #0d9488);
}

.category-tile:nth-child(4n + 4) {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.category-tile:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
}

.category-tile span {
  display: block;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

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

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

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

.rank-num {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 900;
}

.rank-thumb {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.rank-copy em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.filter-panel {
  padding: 20px;
  border-radius: 24px;
  margin-bottom: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.filter-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
}

.no-result {
  display: none;
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #475569;
  font-size: 14px;
}

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

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

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-box {
  position: relative;
  background: #020617;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.76)),
    rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

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

.player-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #e11d48;
  background: rgba(255, 255, 255, 0.92);
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.player-play:hover {
  transform: scale(1.08);
}

.player-error {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.82);
  text-align: center;
}

.player-error.is-visible {
  display: block;
}

.player-titlebar {
  padding: 18px 22px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
}

.player-titlebar h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.detail-card {
  padding: 26px;
  margin-top: 22px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #0f766e;
  background: linear-gradient(90deg, #ccfbf1, #cffafe);
  font-weight: 800;
}

.detail-card p {
  margin: 0 0 18px;
  color: #334155;
}

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

.detail-tags {
  margin-top: 10px;
}

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

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

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

.compact-card:hover {
  background: #f8fafc;
}

.compact-poster {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.compact-info strong {
  display: block;
  color: #111827;
  line-height: 1.35;
}

.compact-info em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  margin-top: 5px;
}

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 18px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.2fr;
  gap: 24px;
}

.footer-logo {
  color: #ffffff;
}

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}

.footer-links a:hover {
  color: #fcd34d;
}

.copyright {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 26px;
  color: #94a3b8;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

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

  .hero-poster {
    max-width: 520px;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

  .rank-list,
  .footer-inner,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-track {
    min-height: auto;
    padding: 40px 18px 80px;
  }

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

  .hero-dots {
    margin-top: -54px;
  }
}

@media (max-width: 560px) {
  .logo {
    font-size: 20px;
  }

  .mobile-panel form {
    display: grid;
  }

  .mobile-panel input {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.three,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .poster-link {
    grid-template-columns: 1fr;
  }

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

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

  .detail-card,
  .side-card {
    padding: 18px;
  }

  .section,
  .detail-wrap,
  .page-hero-inner {
    padding: 34px 16px;
  }
}
