:root {
  --bg: #f5f8fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5edf0;
  --accent: #00a3af;
  --accent-2: #33b8c2;
  --accent-dark: #087f87;
  --gold: #f5b942;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(0, 163, 175, 0.08), transparent 34rem), var(--bg);
  line-height: 1.7;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #dcebef, #f7fbfc);
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(0, 163, 175, 0.28);
}

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #475569;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--accent-dark);
  background: rgba(0, 163, 175, 0.1);
  transform: translateY(-1px);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 163, 175, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 26, 0.92), rgba(7, 16, 26, 0.68) 48%, rgba(7, 16, 26, 0.25)),
    radial-gradient(circle at 20% 20%, rgba(0, 163, 175, 0.35), transparent 34rem);
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  align-items: center;
  gap: 64px;
  color: #fff;
}

.hero-text {
  max-width: 780px;
  padding: 80px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  background: rgba(0, 163, 175, 0.1);
  border: 1px solid rgba(0, 163, 175, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero .eyebrow {
  color: #9ff5f8;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero h1 {
  margin: 20px 0 8px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 38px);
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-tags {
  margin: 24px 0 28px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: var(--accent-dark);
  background: rgba(0, 163, 175, 0.1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(0, 163, 175, 0.26);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.btn-light {
  color: var(--accent-dark);
  background: #fff;
  border-color: var(--line);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  aspect-ratio: 3 / 4.2;
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  z-index: 1;
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  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: 36px;
  background: #fff;
}

.quick-search-section {
  margin-top: -48px;
  position: relative;
  z-index: 4;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 480px);
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-card h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.home-search {
  display: flex;
  gap: 10px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 163, 175, 0.12);
}

.section-block {
  padding: 72px 0 0;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 38px);
}

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

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

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

.category-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 13px;
}

.category-copy strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.category-copy span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.movie-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4.1;
  background: #e6f3f5;
}

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

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #ef7b2d);
  box-shadow: 0 10px 20px rgba(245, 185, 66, 0.28);
}

.movie-body {
  padding: 14px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-title {
  margin: 8px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-title a:hover {
  color: var(--accent-dark);
}

.movie-desc {
  min-height: 66px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.page-main {
  padding-top: 32px;
}

.page-hero {
  padding: 52px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(0, 163, 175, 0.13), rgba(255, 255, 255, 0.86)),
    #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.small-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}

.small-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.compact-actions {
  margin-top: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.7fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

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

.list-page-grid {
  grid-template-columns: repeat(5, 1fr);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--accent-dark);
  font-weight: 800;
}

.watch-panel,
.detail-card,
.info-card,
.side-poster {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.watch-panel {
  overflow: hidden;
}

.watch-head {
  padding: 28px 28px 22px;
}

.watch-head h1 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
}

.watch-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.player-frame {
  position: relative;
  background: #050b12;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050b12;
  z-index: 1;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 163, 175, 0.2), rgba(5, 11, 18, 0.66));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: var(--accent-dark);
  background: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  font-size: 28px;
  padding-left: 4px;
}

.player-start strong {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

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

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-poster {
  overflow: hidden;
}

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

.info-card {
  padding: 22px;
}

.info-card dl {
  margin: 0;
}

.info-card div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  min-width: 0;
}

.info-card a {
  color: var(--accent-dark);
  font-weight: 800;
}

.all-tags {
  margin-top: 18px;
}

.site-footer {
  margin-top: 76px;
  padding: 34px 0;
  color: #dbeafe;
  background: #0f172a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #dbeafe;
}

@media (max-width: 1180px) {
  .movie-grid,
  .list-page-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-poster {
    display: none;
  }

  .search-card,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .home-search {
    flex-direction: column;
  }

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

  .detail-sidebar {
    position: static;
  }

  .side-poster {
    display: none;
  }

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

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

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

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-text {
    padding: 58px 0 94px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 25px;
  }

  .hero p {
    font-size: 15px;
  }

  .quick-search-section {
    margin-top: -32px;
  }

  .search-card,
  .page-hero,
  .watch-head,
  .detail-card {
    padding: 22px;
  }

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

  .category-grid,
  .movie-grid,
  .list-page-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .category-card {
    padding: 12px;
  }

  .movie-body {
    padding: 12px;
  }

  .movie-title {
    font-size: 15px;
  }

  .movie-desc {
    min-height: 78px;
    font-size: 12px;
  }

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