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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 163, 175, 0.12);
  backdrop-filter: blur(14px);
}

.nav-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #00a3af, #33b8c2);
  box-shadow: 0 12px 26px rgba(0, 163, 175, 0.28);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 650;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #008c97;
  background: #e6f7f8;
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(0, 163, 175, 0.18);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.nav-search input {
  width: 170px;
  border: 0;
  outline: none;
  padding: 8px 4px 8px 12px;
  background: transparent;
  color: #111827;
}

.nav-search button,
.search-panel button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #00a3af, #33b8c2);
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-search button {
  padding: 8px 16px;
}

.nav-search button:hover,
.search-panel button:hover,
.primary-button:hover {
  background: linear-gradient(90deg, #008c97, #00a3af);
  box-shadow: 0 10px 20px rgba(0, 163, 175, 0.25);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #008c97;
  background: #e6f7f8;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-slide {
  pointer-events: none;
}

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

.hero-control {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.hero-dot.active {
  background: #00a3af;
  width: 32px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  color: #1f2937;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
}

.section-icon.red {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.section-icon.cyan {
  background: linear-gradient(135deg, #00a3af, #33b8c2);
}

.section-icon.yellow {
  background: linear-gradient(135deg, #eab308, #f59e0b);
}

.section-icon.purple {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.section-icon.pink {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 163, 175, 0.18);
}

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

.poster-link img,
.list-poster img,
.detail-cover img,
.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-link img,
.list-poster img {
  transition: transform 0.35s ease;
}

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

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-overlay span,
.play-badge {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #00a3af;
  box-shadow: 0 16px 32px rgba(0, 163, 175, 0.35);
}

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

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

.movie-title {
  display: block;
  color: #1f2937;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.movie-title:hover,
.movie-card:hover .movie-title {
  color: #00a3af;
}

.movie-card p,
.list-content p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.card-tags span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e6f7f8;
  color: #008c97;
  font-size: 12px;
  font-weight: 700;
}

.card-tags span {
  padding: 5px 9px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.list-poster {
  position: relative;
  display: block;
  min-height: 168px;
  overflow: hidden;
  background: #0f172a;
}

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.category-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 163, 175, 0.18);
}

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

.category-card h3 {
  color: #111827;
  font-size: 22px;
  font-weight: 850;
  margin: 0 0 10px;
}

.category-card p {
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 16px;
}

.category-link {
  color: #008c97;
  font-weight: 800;
}

.search-panel {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  margin-bottom: 36px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.search-row input {
  width: 100%;
  border: 1px solid rgba(0, 163, 175, 0.22);
  border-radius: 999px;
  padding: 14px 18px;
  outline: none;
  color: #111827;
  background: #f8fafc;
}

.search-panel button {
  padding: 0 24px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  padding: 9px 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #00a3af, #33b8c2);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(51, 184, 194, 0.95), transparent 34%), linear-gradient(135deg, #0f172a 0%, #164e63 55%, #008c97 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  font-weight: 900;
  margin: 0 0 18px;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 90px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #00a3af, #33b8c2);
}

.rank-thumb {
  width: 90px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

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

.rank-title {
  color: #111827;
  font-weight: 850;
}

.rank-title:hover {
  color: #00a3af;
}

.rank-meta {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.rank-score {
  color: #ca8a04;
  font-weight: 900;
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  margin: 28px 0;
}

.breadcrumbs a {
  color: #008c97;
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-side,
.content-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.24));
  cursor: pointer;
}

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

.player-button {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00a3af;
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(0, 163, 175, 0.35);
}

.detail-main-content {
  padding: 26px;
}

.detail-main-content h1 {
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  font-weight: 900;
  margin: 0 0 12px;
}

.detail-subtitle {
  color: #64748b;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.detail-tags span {
  padding: 7px 12px;
}

.content-panel {
  padding: 26px;
  margin-top: 24px;
}

.content-panel h2,
.detail-side h2 {
  color: #111827;
  font-size: 22px;
  font-weight: 850;
  margin: 0 0 16px;
}

.content-panel p {
  color: #475569;
  line-height: 2;
  margin: 0 0 18px;
  text-align: justify;
}

.detail-side {
  padding: 22px;
}

.detail-cover {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  gap: 0;
  margin-bottom: 24px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
  text-align: right;
}

.related-stack {
  display: grid;
  gap: 14px;
}

.related-mini {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
}

.related-mini img {
  width: 88px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.related-mini a {
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

.related-mini a:hover {
  color: #00a3af;
}

.related-mini span {
  color: #64748b;
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  padding: 44px 0 24px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 36px;
}

.footer-logo {
  color: #ffffff;
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 560px;
  line-height: 1.8;
  margin: 0;
}

.site-footer h3 {
  color: #ffffff;
  font-weight: 850;
  margin: 0 0 14px;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #33b8c2;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #94a3b8;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

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

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

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

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

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

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

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

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

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

@media (max-width: 640px) {
  .section-heading h2 {
    font-size: 24px;
  }

  .movie-card-list,
  .category-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .list-poster,
  .rank-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-panel button {
    padding: 12px 20px;
  }
}
