:root {
  --site-teal: #0d9488;
  --site-cyan: #0891b2;
  --site-blue: #2563eb;
  --site-dark: #111827;
  --site-muted: #64748b;
  --site-soft: #f8fafc;
  --site-line: rgba(15, 23, 42, 0.1);
  --site-card: rgba(255, 255, 255, 0.94);
  --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0d9488 0%, #0891b2 48%, #2563eb 100%);
  box-shadow: 0 16px 40px rgba(8, 145, 178, 0.24);
}

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

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

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 10px 28px rgba(0, 0, 0, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.search-pill input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font-size: 14px;
}

.search-pill input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-pill button,
.menu-toggle {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 90px 0 150px;
}

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

.hero-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
}

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

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

.btn-primary {
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, #0d9488 0%, #2563eb 100%);
  padding: 58px 0;
}

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

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

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

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 42px 0;
}

.section-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 50px rgba(15, 23, 42, 0.06);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 38px);
  color: #1f2937;
  letter-spacing: -0.05em;
}

.section-subtitle {
  max-width: 680px;
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.more-link {
  color: #0d9488;
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.feature-card:hover img,
.related-card:hover img {
  transform: scale(1.08);
}

.movie-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(8px);
}

.movie-badge {
  top: 10px;
  left: 10px;
}

.score-badge {
  right: 10px;
  bottom: 10px;
}

.movie-body {
  padding: 16px;
}

.movie-title {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.movie-card:hover .movie-title,
.feature-card:hover .feature-title,
.related-card:hover .related-title {
  color: #0d9488;
}

.movie-line {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.feature-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: #111827;
  box-shadow: var(--site-shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.6s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.05));
}

.feature-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
}

.feature-title {
  margin: 12px 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.feature-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

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

.category-tile {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 48%, #2563eb 100%);
  box-shadow: 0 20px 44px rgba(14, 116, 144, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 58px rgba(14, 116, 144, 0.25);
}

.category-tile h3 {
  margin: 0;
  font-size: 25px;
}

.category-tile p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-count {
  margin-top: 18px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 90px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--site-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.36);
}

.rank-number {
  font-size: 26px;
  font-weight: 900;
  color: #0d9488;
  text-align: center;
}

.rank-poster {
  width: 90px;
  height: 118px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #0d9488, #2563eb);
}

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

.rank-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #1f2937;
}

.rank-line {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  background: #f8fafc;
  color: #1f2937;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.player-card,
.detail-card,
.related-section {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--site-shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050816;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050816;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.5));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 160px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.player-status {
  padding: 14px 18px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #ffffff;
  font-size: 14px;
}

.detail-card {
  padding: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d9488, #2563eb);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-title {
  margin: 22px 0 12px;
  color: #111827;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 800;
}

.detail-text {
  color: #475569;
  line-height: 1.88;
}

.detail-text h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 24px;
}

.related-section {
  margin-top: 34px;
  padding: 28px;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.related-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.related-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-title {
  min-height: 46px;
  margin: 0;
  padding: 10px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.search-results {
  display: grid;
  gap: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.search-result-card img {
  width: 120px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.site-footer {
  margin-top: 42px;
  color: #cbd5e1;
  background: linear-gradient(90deg, #111827 0%, #1f2937 52%, #111827 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 32px;
  padding: 46px 0 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #5eead4;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
}

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  padding: 54px 20px;
  border-radius: 24px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

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

  .ranking-list,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-nav {
    align-items: flex-start;
  }

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

  .nav-actions {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.97), rgba(37, 99, 235, 0.97));
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.2);
  }

  .nav-actions.is-open {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .search-pill {
    min-width: 0;
    width: 100%;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 0 130px;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 14px;
  }

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

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

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

  .hero-title {
    font-size: 42px;
  }

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

  .rank-item {
    grid-template-columns: 42px 78px 1fr;
    gap: 12px;
  }

  .rank-poster {
    width: 78px;
    height: 104px;
  }

  .search-result-card {
    grid-template-columns: 88px 1fr;
  }

  .search-result-card img {
    width: 88px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
