:root {
  --color-page: #f8fafc;
  --color-card: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-line: #e2e8f0;
  --color-primary: #0f766e;
  --color-primary-deep: #0f4f4a;
  --color-accent: #06b6d4;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.13), transparent 32rem), var(--color-page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

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

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

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 12px 28px rgba(8, 145, 178, 0.32);
}

.logo-text {
  font-size: 1.2rem;
}

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

.nav-links a {
  padding: 10px 14px;
  color: #334155;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #0f766e;
  background: #ccfbf1;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: #0f172a;
  background: #f1f5f9;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 630px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 52%, #1d4ed8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.22), transparent 20rem), linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.34));
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -18% 34%;
  height: 340px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.22);
  filter: blur(40px);
  z-index: 1;
}

.hero-stage {
  position: relative;
  z-index: 2;
  min-height: 630px;
}

.hero-slide {
  display: none;
  min-height: 630px;
  align-items: center;
  gap: 54px;
  padding: 64px 0;
}

.hero-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.7fr);
  animation: fadeIn 0.45s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  color: #ccfbf1;
  border: 1px solid rgba(204, 251, 241, 0.35);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.25);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(2.55rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-summary {
  max-width: 760px;
  color: #dbeafe;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(255, 255, 255, 0.24);
}

.button-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.button-teal {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.22);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #0f766e;
  border-radius: 999px;
  background: #ccfbf1;
  font-size: 0.86rem;
  font-weight: 800;
}

.hero .tag-pill {
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.2);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}

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

.hero-card-float {
  position: absolute;
  left: -36px;
  bottom: 36px;
  max-width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.26);
}

.hero-card-float strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.section {
  padding: 54px 0;
}

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

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

.section-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.panel {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #0f172a;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  background: #ffffff;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

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

.category-card {
  display: block;
  min-height: 172px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f0fdfa);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  border-color: rgba(20, 184, 166, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.category-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: #0f766e;
  font-weight: 900;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.category-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(20, 184, 166, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
}

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

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 900;
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.32);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover {
  color: #0f766e;
}

.movie-intro {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
}

.movie-meta span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.banner-page {
  padding: 70px 0 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2 52%, #1d4ed8);
}

.banner-page h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.banner-page p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 1.12rem;
  line-height: 1.85;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

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

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

.ranking-card {
  display: grid;
  grid-template-columns: 72px 132px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.rank-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #0f766e;
  border-radius: 18px;
  background: #ccfbf1;
  font-size: 1.25rem;
  font-weight: 900;
}

.ranking-card img {
  width: 132px;
  height: 176px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-main h2,
.ranking-main h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.ranking-main p {
  margin: 0 0 12px;
  color: var(--color-muted);
  line-height: 1.75;
}

.score-box {
  min-width: 92px;
  text-align: center;
}

.score-box strong {
  display: block;
  color: #0f766e;
  font-size: 1.7rem;
}

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

.player-section {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow-soft);
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #020617;
  outline: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-button-core {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 22px 46px rgba(8, 145, 178, 0.36);
  font-size: 2rem;
}

.detail-card {
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.9;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #e2e8f0;
  box-shadow: var(--shadow-card);
}

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

.side-panel {
  display: grid;
  gap: 18px;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.related-card strong {
  display: block;
  padding: 12px 12px 4px;
  font-size: 0.98rem;
}

.related-card span {
  display: block;
  padding: 0 12px 14px;
  color: #64748b;
  font-size: 0.84rem;
}

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

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

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

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

.footer-links a:hover {
  color: #ffffff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .side-panel {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-toggle {
    display: inline-flex;
  }

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

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

  .hero-slide.is-active {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    max-width: 360px;
  }

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

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

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

  .ranking-card {
    grid-template-columns: 52px 96px 1fr;
  }

  .ranking-card img {
    width: 96px;
    height: 132px;
  }

  .score-box {
    grid-column: 2 / -1;
    text-align: left;
  }
}

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

  .hero,
  .hero-stage,
  .hero-slide {
    min-height: auto;
  }

  .hero-slide {
    padding: 42px 0 74px;
  }

  .hero-card-float {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

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

  .search-panel,
  .category-grid,
  .movie-grid,
  .related-grid,
  .side-panel {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 44px 82px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-card img {
    width: 82px;
    height: 116px;
  }

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

  .detail-card {
    padding: 20px;
  }

  .play-button-core {
    width: 74px;
    height: 74px;
  }
}
