* {
  box-sizing: border-box;
}

:root {
  --teal: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --dark: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.28);
}

.brand-text,
.footer-logo {
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  font-weight: 650;
  color: #334155;
  padding: 26px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search,
.mobile-search,
.search-panel form {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  color: var(--dark);
  background: transparent;
  font: inherit;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #f1f5f9;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 99px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 16px 22px 22px;
  background: white;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: #334155;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--teal);
  background: #ecfeff;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #2563eb 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -26% -12%;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.hero-slides {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 22px 110px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 58px;
  min-height: 430px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 780px;
  margin: 0 0 24px;
  color: #cffafe;
  font-size: 20px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dffcff;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.center-actions {
  justify-content: center;
}

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

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

.btn.primary {
  color: var(--teal);
  background: white;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn.ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.btn.ghost.dark {
  color: var(--teal);
  border-color: #99f6e4;
  background: #ecfeff;
}

.hero-poster {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.08);
}

.hero-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: white;
}

.quick-links,
.featured-panel,
.content-section,
.category-grid,
.filter-panel,
.ranking-list,
.search-panel,
.detail-hero,
.player-section,
.detail-section,
.breadcrumb {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-links {
  position: relative;
  z-index: 5;
  margin-top: -46px;
}

.quick-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}

.quick-inner strong {
  color: var(--teal);
  white-space: nowrap;
}

.quick-inner div,
.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-inner a,
.link-cloud a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  background: #f1f5f9;
}

.quick-inner a:hover,
.link-cloud a:hover {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.featured-panel,
.content-section,
.category-grid,
.ranking-list,
.search-panel,
.player-section,
.detail-section {
  padding-top: 70px;
  padding-bottom: 20px;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

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

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.large-card .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-body h3 {
  margin: 9px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--teal);
}

.card-body p {
  min-height: 44px;
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

.soft-section {
  max-width: none;
  padding-left: max(22px, calc((100vw - 1180px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1180px) / 2 + 22px));
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.page-hero {
  text-align: center;
  padding-top: 86px;
  padding-bottom: 64px;
}

.page-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: #64748b;
  font-size: 19px;
  line-height: 1.8;
}

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

.category-tile {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  color: white;
  background-image:
    linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(37, 99, 235, 0.72)),
    var(--cover);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.category-tile strong,
.category-tile em,
.category-tile .tile-action {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 30px;
}

.category-tile em {
  display: block;
  max-width: 520px;
  font-style: normal;
  color: #dffcff;
  line-height: 1.7;
}

.tile-action {
  position: absolute;
  left: 28px;
  bottom: 24px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--teal);
  background: white;
  font-weight: 800;
}

.category-glow {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.filter-panel {
  padding-top: 18px;
  padding-bottom: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.category-list {
  padding-bottom: 80px;
}

.ranking-list {
  display: grid;
  gap: 16px;
  padding-bottom: 80px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 64px 94px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.rank-number {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.rank-cover {
  display: block;
  width: 94px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #ccfbf1;
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-info p {
  margin: 0 0 10px;
  color: #64748b;
  line-height: 1.6;
}

.search-panel {
  padding-top: 10px;
  padding-bottom: 34px;
}

.search-panel form {
  max-width: 760px;
  margin: 0 auto;
}

.search-panel input {
  flex: 1;
  padding: 16px 20px;
}

.search-panel button {
  align-self: stretch;
  padding: 0 28px;
}

.breadcrumb {
  padding-top: 28px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
  padding-top: 42px;
  padding-bottom: 52px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #ccfbf1, #dbeafe);
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.lead {
  color: #475569;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin: 20px 0 14px;
}

.player-section {
  padding-top: 18px;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.watch-player.started .player-start {
  display: none;
}

.detail-section {
  padding-top: 54px;
}

.detail-section h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.detail-section p {
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.9;
}

.review-box p {
  padding: 24px;
  border-left: 4px solid var(--teal);
  border-radius: 18px;
  background: #f8fafc;
}

.related-section {
  padding-bottom: 80px;
}

.compact-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}

.compact-card img {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 22px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  line-height: 1.7;
}

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

.footer-links a {
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  text-align: center;
  color: #94a3b8;
}

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

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

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

  .hero-slide,
  .detail-hero,
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 320px;
    max-width: 420px;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-slides {
    padding-top: 54px;
    padding-bottom: 96px;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p,
  .lead {
    font-size: 17px;
  }

  .hero-poster {
    margin-top: 28px;
    min-height: 300px;
    transform: none;
  }

  .quick-inner,
  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-side,
  .movie-grid,
  .wide-grid,
  .small-grid,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 48px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover {
    width: 74px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
  }

  .detail-hero {
    gap: 24px;
  }

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

  .player-start {
    font-size: 16px;
    padding: 13px 20px;
  }
}
