:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #e2e8f0;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --blue: #2563eb;
  --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 24px rgba(8, 145, 178, 0.3);
  font-size: 14px;
}

.brand-name {
  font-size: 24px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #0f172a;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 12px 16px 18px;
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  border-radius: 14px;
  padding: 12px 14px;
  color: #334155;
  font-weight: 700;
  background: #f8fafc;
}

.mobile-link.active {
  color: var(--cyan);
  background: #ecfeff;
}

.page-space {
  padding: 32px 0 70px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 1s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.44) 42%, rgba(2, 6, 23, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding: 46px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 640px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(8, 145, 178, 0.34);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(15, 23, 42, 0.34);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.45);
  cursor: pointer;
  font-size: 34px;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.72);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

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

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.hero-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.hero-panel p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  padding: 13px 14px;
  color: var(--text);
  background: #ffffff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.hero-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 800;
}

.hero-mini-grid {
  display: grid;
  gap: 12px;
}

.compact-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.compact-card img {
  width: 72px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.compact-card span {
  font-weight: 800;
  line-height: 1.35;
}

section + section {
  margin-top: 64px;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card.hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
  border-color: rgba(8, 145, 178, 0.25);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  transform: translateY(-6px);
}

.movie-cover {
  position: relative;
  height: 270px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.movie-card-large .movie-cover {
  height: 320px;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 36%, rgba(15, 23, 42, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .movie-cover::after {
  opacity: 1;
}

.movie-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.32);
}

.movie-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  opacity: 0;
  font-size: 54px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35));
  transform: scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card-link:hover .movie-play {
  opacity: 1;
  transform: scale(1);
}

.movie-info {
  padding: 18px;
}

.movie-info h2 {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card-link:hover .movie-info h2 {
  color: var(--cyan);
}

.movie-info p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.ranking-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span,
.ranking-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f1f5f9;
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.soft-section {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

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

.ranking-item a {
  display: grid;
  grid-template-columns: 44px 96px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.rank-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.ranking-item img {
  width: 96px;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.ranking-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.ranking-item p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile,
.category-overview-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-tile > a,
.category-overview-head {
  display: block;
  padding: 24px;
}

.category-tile h2,
.category-overview-head h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p,
.category-overview-head p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-samples,
.category-strip {
  display: grid;
  gap: 10px;
}

.category-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 24px 24px;
}

.category-overview-list {
  display: grid;
  gap: 28px;
}

.page-hero {
  border-radius: 28px;
  padding: 42px;
  background: linear-gradient(135deg, #ffffff 0%, #ecfeff 48%, #eff6ff 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.compact-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--cyan);
  font-weight: 700;
}

.detail-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.movie-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.86));
}

.player-overlay span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 40px rgba(8, 145, 178, 0.4);
  font-size: 34px;
}

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

.detail-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 28px;
}

.detail-cover img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #164e63);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.detail-category {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-line {
  margin: 0 0 18px;
  color: #334155;
  font-size: 19px;
  line-height: 1.75;
}

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

.article-content {
  padding: 0 28px 34px;
}

.article-content h2 {
  margin: 28px 0 12px;
  font-size: 28px;
}

.article-content p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
  white-space: pre-line;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 0;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .hero-section,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 540px;
  }

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

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

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

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

  .menu-button {
    display: block;
  }

  .header-inner {
    min-height: 66px;
  }

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

  .page-space {
    padding-top: 20px;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .hero-content,
  .hero-panel,
  .page-hero,
  .soft-section {
    padding: 22px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

  .hero-search,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid-featured,
  .related-grid,
  .ranking-list-home,
  .category-grid,
  .category-strip,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover,
  .movie-card-large .movie-cover {
    height: 250px;
  }

  .ranking-item a {
    grid-template-columns: 38px 84px 1fr;
    gap: 12px;
  }

  .ranking-item img {
    width: 84px;
    height: 112px;
  }

  .detail-main,
  .article-content {
    padding: 20px;
  }

  .detail-cover {
    max-width: 260px;
  }
}

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

  .hero-carousel {
    min-height: 460px;
    border-radius: 22px;
  }

  .hero-content h2,
  .compact-hero h1,
  .detail-content h1 {
    font-size: 31px;
  }

  .hero-content p,
  .detail-line,
  .article-content p {
    font-size: 16px;
  }
}
