:root {
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 25px 65px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

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

.narrow-shell {
  width: min(940px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

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

.nav-link,
.nav-drop-button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: transparent;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop-button:hover {
  color: var(--teal-dark);
  background: #ecfdf5;
}

.nav-dropdown {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--gray-700);
  font-size: 14px;
}

.nav-drop-menu a:hover {
  color: var(--teal-dark);
  background: #ecfdf5;
}

.header-search {
  display: flex;
  align-items: center;
  width: 250px;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
}

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

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 10px 16px 16px;
  background: #fff;
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

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

.hero-track,
.hero-slide,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-image,
.media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.5s ease;
}

.media-image.image-hidden {
  opacity: 0;
}

.hero-shade {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.04));
}

.hero-content {
  max-width: 720px;
  color: #fff;
}

.hero-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 13px;
  font-weight: 750;
}

.hero-content .hero-chip {
  margin-bottom: 18px;
  background: var(--teal);
  color: #fff;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 14px;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-title {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-actions,
.next-prev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn:hover,
.movie-card-link:hover,
.category-tile:hover,
.featured-card:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: #fff;
  color: var(--gray-900);
}

.btn-primary:hover {
  background: var(--teal);
  color: #fff;
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-text {
  color: #fff;
  background: transparent;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.featured-panel {
  position: relative;
  z-index: 8;
  margin-top: -78px;
  margin-bottom: 26px;
}

.featured-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 260px;
  overflow: hidden;
  border-radius: 32px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-xl);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card > img {
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #14b8a6);
}

.featured-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.featured-card p {
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.75;
}

.featured-play {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-size: 28px;
}

.content-section {
  padding: 58px 0;
}

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(180deg, var(--gray-50), #fff);
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-heading h2,
.page-hero h1,
.text-card h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-more {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
  box-shadow: var(--shadow-lg);
}

.movie-thumb,
.movie-thumb-wide,
.rank-cover,
.category-covers,
.detail-poster,
.player-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #115e59 55%, #0891b2);
}

.movie-thumb {
  aspect-ratio: 16 / 9;
}

.movie-thumb-wide {
  height: 100%;
  min-height: 148px;
}

.movie-card-link:hover .media-image {
  transform: scale(1.06);
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

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

.movie-card-body h3,
.rank-info h3 {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p,
.rank-info p {
  display: -webkit-box;
  min-height: 3.2em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta-line span:last-child {
  color: var(--teal-dark);
  font-weight: 700;
}

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

.movie-card-horizontal .movie-card-link {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 160px;
}

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

.category-tile,
.category-overview-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong,
.category-overview-card h2 {
  color: var(--gray-900);
  font-size: 21px;
}

.category-tile span,
.category-overview-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

.category-overview-card {
  gap: 18px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 120px;
  border-radius: 18px;
  padding: 8px;
}

.category-covers img {
  min-width: 0;
  border-radius: 12px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.38), transparent 32%), linear-gradient(135deg, #0f172a, #0f766e 62%, #0891b2);
}

.page-hero h1 {
  margin-top: 16px;
  max-width: 840px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.compact-hero {
  min-height: 340px;
  display: flex;
  align-items: center;
}

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

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

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin-top: 28px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 18px;
  background: transparent;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-panel input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  outline: 0;
  padding: 13px 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--gray-100);
  color: var(--gray-700);
  cursor: pointer;
}

.filter-buttons button.active {
  background: #ccfbf1;
  color: var(--teal-dark);
  font-weight: 800;
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  color: var(--gray-600);
  background: #fff;
}

.empty-state.visible {
  display: block;
}

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

.rank-card-link {
  display: grid;
  grid-template-columns: 70px 140px 1fr;
  align-items: center;
  gap: 18px;
  border-radius: 22px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rank-num {
  color: var(--teal-dark);
  font-size: 28px;
}

.rank-cover {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.detail-top {
  padding: 34px 0 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #0f766e 64%, #0891b2);
}

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

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

.player-card video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-card video {
  background: #000;
}

.player-cover {
  border: 0;
  padding: 0;
  cursor: pointer;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.player-cover.is-hidden {
  display: none;
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 34px;
  transform: translate(-50%, -50%);
}

.detail-info {
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.detail-copy {
  border-radius: 24px;
  padding: 22px;
  color: var(--gray-900);
  background: #fff;
}

.detail-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-copy p {
  color: var(--gray-600);
  line-height: 1.75;
}

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

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  padding: 12px;
  background: var(--gray-50);
  color: var(--gray-700);
  font-size: 14px;
}

.detail-meta-grid strong {
  color: var(--gray-500);
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strong-chip {
  background: var(--teal);
  color: #fff;
}

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

.text-card {
  border-radius: 26px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.text-card p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.next-prev-links {
  justify-content: space-between;
  margin-top: 26px;
}

.next-prev-links a {
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-weight: 800;
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #fff, var(--gray-100));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-grid p,
.footer-links a {
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

.footer-links a:hover {
  color: var(--teal-dark);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 18px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13px;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.4));
    align-items: flex-end;
    padding-bottom: 76px;
  }

  .hero-arrow {
    display: none;
  }

  .featured-panel {
    margin-top: 0;
    padding-top: 22px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-play {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid-three,
  .movie-grid-four,
  .movie-grid-six,
  .category-grid,
  .category-overview-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card-horizontal .movie-card-link,
  .rank-card-link {
    grid-template-columns: 120px 1fr;
  }

  .rank-num {
    grid-column: 1 / -1;
  }
}

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

  .brand-text small {
    display: none;
  }

  .mobile-nav.open,
  .movie-grid-three,
  .movie-grid-four,
  .movie-grid-six,
  .category-grid,
  .category-overview-grid,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }

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

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .movie-card-horizontal .movie-card-link,
  .rank-card-link {
    grid-template-columns: 1fr;
  }

  .movie-thumb-wide,
  .rank-cover {
    aspect-ratio: 16 / 9;
    height: auto;
  }

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