* {
  box-sizing: border-box;
}

:root {
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --slate: #0f172a;
  --soft-bg: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.25);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--teal-dark), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.nav-link,
.mobile-link {
  color: #334155;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--teal-dark);
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-search input,
.filter-select select {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 11px 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

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

.header-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #334155;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 24px 22px;
  background: #fff;
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.4), transparent 36%), #020617;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1280px, 100%);
  transform: translateX(-50%);
  padding: 72px 24px;
  color: #fff;
}

.hero-content h1 {
  max-width: 780px;
  margin: 14px 0 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #e2e8f0;
  font-size: 19px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-meta,
.detail-meta,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta span,
.detail-meta span {
  color: #cbd5e1;
}

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

.primary-button,
.secondary-button,
.section-more,
.tile-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 12px 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.22);
}

.secondary-button {
  padding: 12px 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.tile-more:hover {
  transform: translateY(-2px);
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.intro-panel,
.side-panel,
.detail-text-card,
.category-overview-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.intro-panel {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 460px);
  align-items: center;
  gap: 28px;
  margin-top: -42px;
  position: relative;
  z-index: 6;
  padding: 34px;
}

.intro-panel h2,
.section-heading h2,
.side-panel h2,
.page-hero h1,
.detail-info h1,
.detail-text-card h2 {
  margin: 10px 0 0;
  color: #0f172a;
  line-height: 1.15;
}

.intro-panel h2,
.section-heading h2,
.side-panel h2,
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.intro-panel p,
.side-panel p,
.page-hero p,
.detail-one-line,
.detail-text-card p,
.category-tile p,
.category-overview-card p {
  color: var(--muted);
}

.large-search input {
  flex: 1;
  min-width: 0;
}

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

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

.section-more,
.tile-more {
  color: var(--teal-dark);
  background: #ccfbf1;
  padding: 10px 16px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  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: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(20, 184, 166, 0.24), rgba(15, 23, 42, 0.95));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(20, 184, 166, 0.86);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-rank {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.movie-meta-line a {
  color: var(--teal-dark);
  font-weight: 800;
}

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--teal-dark);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #0f766e;
  background: #f0fdfa;
  font-size: 12px;
  font-weight: 700;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

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

.compact-card .movie-card-body {
  padding: 14px;
}

.compact-card .movie-card h2,
.compact-card h2 {
  font-size: 16px;
}

.side-panel {
  padding: 28px;
  align-self: start;
  position: sticky;
  top: 100px;
}

.narrow-button {
  margin-top: 12px;
}

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

.category-tile,
.category-overview-card {
  padding: 24px;
}

.category-tile {
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  border: 1px solid #ccfbf1;
}

.category-tile h2,
.category-overview-card h2 {
  margin: 0;
  font-size: 24px;
}

.category-mini-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-mini-list a,
.category-overview-card li a {
  color: #334155;
  font-weight: 700;
}

.category-mini-list a:hover,
.category-overview-card li a:hover {
  color: var(--teal-dark);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.45), transparent 34%), linear-gradient(135deg, #020617, #0f172a 62%, #134e4a);
}

.page-hero {
  padding: 76px 24px;
}

.page-hero-inner,
.detail-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  color: #fff;
  max-width: 860px;
}

.page-hero p {
  max-width: 740px;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #bae6fd;
  font-weight: 700;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.filter-search,
.filter-select {
  display: grid;
  gap: 8px;
  color: #475569;
  font-weight: 800;
}

.filter-search input,
.filter-select select {
  width: 100%;
  border-radius: 16px;
}

.empty-state {
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.category-overview-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.category-overview-head strong {
  min-width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-size: 22px;
}

.category-overview-card ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.category-overview-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 9px;
}

.category-overview-card li span {
  color: var(--muted);
}

.detail-hero {
  min-height: 580px;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: blur(2px);
}

.detail-hero-overlay {
  position: relative;
  min-height: 580px;
  padding: 72px 24px;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.35));
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 2 / 3;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 62px);
}

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

.detail-tags {
  margin: 24px 0;
}

.detail-main {
  display: grid;
  gap: 26px;
}

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

.movie-player,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-player {
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 3;
  background: radial-gradient(circle at 30% 20%, rgba(20, 184, 166, 0.32), transparent 40%), #020617;
}

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

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
}

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 22px 45px rgba(20, 184, 166, 0.35);
  font-size: 34px;
  cursor: pointer;
}

.detail-text-card {
  padding: 32px;
}

.detail-text-card h2 {
  font-size: 26px;
}

.detail-text-card p {
  margin: 14px 0 26px;
  font-size: 17px;
}

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

.ranking-grid-full .movie-card:nth-child(-n + 3) .poster-rank {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #020617);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.footer-about p {
  max-width: 580px;
  color: #94a3b8;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-column a:hover {
  color: #5eead4;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 12px;
  }

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

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

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

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .intro-panel,
  .two-column-layout,
  .footer-inner,
  .detail-layout,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 68px 18px 86px;
  }

  .hero-arrow {
    display: none;
  }

  .section-wrap {
    padding: 40px 16px;
  }

  .intro-panel {
    margin-top: -30px;
    padding: 24px;
  }

  .large-search {
    display: grid;
  }

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

  .movie-card-body {
    padding: 12px;
  }

  .movie-card h2 {
    font-size: 15px;
  }

  .movie-card p {
    min-height: 42px;
    font-size: 12px;
  }

  .page-hero,
  .detail-hero-overlay {
    padding: 52px 16px;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-poster {
    width: 190px;
  }

  .detail-text-card {
    padding: 22px;
  }

  .player-start {
    width: 72px;
    height: 72px;
  }
}
