:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --indigo: #4338ca;
  --slate: #0f172a;
  --muted: #64748b;
  --soft: #f1f5f9;
  --card: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 46%, #ecfeff 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.35);
}

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

.nav-link {
  color: #334155;
  font-weight: 700;
  padding: 10px 0;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dropdown-panel {
  position: absolute;
  top: 42px;
  left: -22px;
  width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: #ccfbf1;
  color: var(--teal-dark);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.local-filter input,
.search-panel input {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  outline: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.local-filter button,
.search-panel button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  cursor: pointer;
  font-weight: 800;
}

.header-search input:focus,
.mobile-search input:focus,
.local-filter input:focus,
.search-panel input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #0f172a;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel a {
  display: block;
  padding: 11px 6px;
  color: #334155;
  font-weight: 800;
}

.mobile-panel.is-open {
  display: block;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 54%, #4338ca 100%);
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.28), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.16), transparent 34%);
  opacity: 0.95;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #f8fafc 0%, rgba(248, 250, 252, 0));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
  padding: 52px 0 110px;
}

.hero-text {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text .eyebrow,
.hero-copy .eyebrow,
.page-hero .eyebrow,
.cta-panel .eyebrow {
  color: #c7fff6;
}

.hero-text h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.08em;
}

.hero-text p {
  max-width: 620px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 14px 26px rgba(13, 148, 136, 0.28);
}

.hero-text .btn.primary,
.hero-copy .btn.primary,
.cta-panel .btn.primary {
  color: var(--teal-dark);
  background: #ffffff;
}

.btn.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.full-btn {
  width: 100%;
  margin-top: 16px;
}

.hero-carousel {
  position: relative;
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.38);
  background: rgba(15, 23, 42, 0.18);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.46) 48%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  color: #ffffff;
}

.hero-copy h2 {
  margin: 12px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.hero-copy p {
  max-width: 640px;
  color: #dbeafe;
  line-height: 1.8;
  margin: 0 0 16px;
}

.hero-tags {
  margin-bottom: 18px;
  color: #a7f3d0;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

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

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

.feature-cards {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: -74px auto 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-cards article,
.movie-card,
.category-tile,
.category-overview-card,
.detail-card,
.cover-card,
.ranking-box,
.search-panel,
.local-filter,
.player-panel {
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.feature-cards article {
  padding: 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-cards article:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-cards span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--teal);
  font-weight: 900;
}

.feature-cards strong {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
}

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

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

.soft-bg {
  width: 100%;
  max-width: none;
  padding: 60px max(16px, calc((100% - 1180px) / 2));
  background: rgba(241, 245, 249, 0.72);
}

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

.section-title h2 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.05em;
}

.section-title a {
  color: var(--teal-dark);
  font-weight: 900;
}

.compact-title h2 {
  font-size: 26px;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

.play-chip,
.rank-badge {
  position: absolute;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  background: rgba(13, 148, 136, 0.86);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.9);
}

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

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.movie-card h2 a:hover {
  color: var(--teal-dark);
}

.movie-card p {
  min-height: 66px;
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.65;
  font-size: 14px;
}

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

.tag-row span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 12px;
  font-weight: 900;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.category-tile {
  display: block;
  min-height: 142px;
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 24px;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.7;
}

.ranking-box {
  padding: 22px;
}

.sticky-box {
  position: sticky;
  top: 92px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: #f1f5f9;
  transform: translateX(3px);
}

.ranking-row img {
  width: 76px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.list-rank {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 13px;
  font-weight: 900;
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.ranking-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info small {
  margin-top: 5px;
  color: #64748b;
}

.cta-panel,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 56px;
  padding: 54px;
  border-radius: 32px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.22);
}

.cta-panel h2,
.page-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.cta-panel p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.cta-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-panel a {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ffffff;
  font-weight: 900;
}

.slim-hero {
  margin-top: 32px;
  margin-bottom: 18px;
  padding: 44px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  color: #c7d2fe;
  font-weight: 800;
}

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

.category-overview-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  padding: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
}

.category-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 28px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-weight: 800;
  font-size: 13px;
}

.local-filter,
.search-panel {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
}

.local-filter input,
.search-panel input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  border-radius: 20px;
  color: #64748b;
  background: #ffffff;
  text-align: center;
  font-weight: 800;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side {
  min-width: 0;
}

.player-panel {
  padding: 0;
  overflow: hidden;
  background: #000000;
  border-color: rgba(15, 23, 42, 0.86);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.62));
  cursor: pointer;
}

.video-start span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 6px;
  background: rgba(13, 148, 136, 0.88);
  box-shadow: 0 20px 50px rgba(13, 148, 136, 0.42);
  font-size: 34px;
}

.movie-player.is-playing .video-start {
  opacity: 0;
  pointer-events: none;
}

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

.detail-card .crumbs {
  margin: 0 0 18px;
  color: #64748b;
}

.detail-card .crumbs a:hover {
  color: var(--teal-dark);
}

.detail-card h1 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.detail-card h2 {
  margin: 30px 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.detail-card p {
  color: #475569;
  line-height: 1.95;
  font-size: 16px;
}

.lead-text {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  color: #0f766e !important;
  background: #ccfbf1;
  font-weight: 800;
}

.detail-tags span {
  font-size: 13px;
}

.cover-card {
  padding: 16px;
  margin-bottom: 22px;
}

.cover-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.related-block {
  width: 100%;
  padding-top: 34px;
}

.site-footer {
  color: #dbeafe;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 52%, #134e4a 100%);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.site-footer p {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 9px 0;
}

.site-footer a:hover {
  color: #5eead4;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

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

  .hero-inner {
    padding-top: 40px;
  }

  .feature-cards,
  .movie-grid,
  .wide-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-box {
    position: static;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .brand {
    font-size: 21px;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-bottom: 100px;
  }

  .hero-carousel,
  .hero-slide img {
    min-height: 380px;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .hero-dots {
    right: 20px;
    bottom: 18px;
  }

  .feature-cards,
  .movie-grid,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    margin-top: -58px;
  }

  .content-section,
  .page-hero,
  .cta-panel,
  .detail-layout {
    width: min(100% - 24px, 1180px);
  }

  .page-hero,
  .cta-panel {
    padding: 30px;
    border-radius: 24px;
  }

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

  .category-cover img {
    height: 260px;
  }

  .local-filter,
  .search-panel,
  .section-title {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-card p {
    min-height: auto;
  }

  .video-start span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
