* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --cyan: #0891b2;
  --cyan-soft: #22d3ee;
  --blue: #2563eb;
  --teal: #0d9488;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

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

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;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
}

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

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

.nav-link {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

.nav-search input,
.mobile-search input,
.home-search input,
.filter-panel input {
  width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.nav-search input:focus,
.mobile-search input:focus,
.home-search input:focus,
.filter-panel input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.24);
}

.nav-search button,
.mobile-search button,
.home-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--blue);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.52) 46%, rgba(2, 6, 23, 0.18) 100%), linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.22));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  max-width: 720px;
  color: #ffffff;
}

.hero-eyebrow,
.page-hero-inner > span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0faff;
  background: rgba(8, 145, 178, 0.44);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-style: normal;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan-soft), var(--blue));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34);
}

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

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 50px rgba(8, 145, 178, 0.25);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.42);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.home-intro h2,
.section-head h2,
.article-card h1,
.page-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.home-intro p,
.section-head p,
.page-hero p,
.lead-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.home-search input,
.filter-panel input {
  color: var(--text);
  border-color: var(--line);
  background: #ffffff;
}

.home-search input::placeholder,
.filter-panel input::placeholder {
  color: #94a3b8;
}

.home-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.section-head a,
.filter-panel a,
.breadcrumb a,
.poster-card a {
  color: var(--cyan);
  font-weight: 850;
}

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

.category-card,
.category-overview-card,
.article-card,
.side-card,
.player-card,
.filter-panel {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.category-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(37, 99, 235, 0.18));
}

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

.category-card span,
.category-info strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.category-card strong,
.category-info em {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

.type-badge,
.year-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
}

.type-badge {
  right: 12px;
}

.year-badge {
  left: 12px;
}

.card-body {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.card-body strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.card-body em {
  min-height: 44px;
  color: var(--muted);
  font-style: normal;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.1);
  font-size: 12px;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
}

.ranking-list,
.ranking-page-list,
.side-links {
  display: grid;
  gap: 12px;
}

.compact-link,
.ranking-row {
  display: grid;
  grid-template-columns: auto 62px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.compact-link:hover,
.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.compact-link img,
.ranking-row img {
  width: 62px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-number,
.ranking-index {
  color: var(--cyan);
  font-size: 22px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.compact-link strong,
.ranking-row strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link em,
.ranking-row em,
.ranking-row small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
}

.wide-card .poster-wrap {
  height: 100%;
  min-height: 188px;
  aspect-ratio: auto;
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.38), transparent 34%), linear-gradient(135deg, #0f172a, #164e63 48%, #0d9488);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
}

.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-info {
  display: grid;
  gap: 8px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-panel input {
  width: min(520px, 100%);
}

.empty-state {
  display: none;
  margin-top: 26px;
  border-radius: 18px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.ranking-row {
  grid-template-columns: 64px 76px minmax(0, 1fr) auto;
  padding: 14px 18px;
}

.ranking-row img {
  width: 76px;
  height: 102px;
}

.ranking-action {
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  font-weight: 850;
}

.detail-shell {
  padding-top: 28px;
}

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

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

.detail-main-column,
.detail-side-column {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  background: #020617;
}

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

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

.movie-video {
  object-fit: contain;
  cursor: pointer;
}

.player-cover {
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  object-fit: cover;
  filter: brightness(0.65);
}

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

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 60px rgba(8, 145, 178, 0.35);
  transform: translate(-50%, -50%);
  font-size: 32px;
  text-indent: 4px;
}

.article-card,
.side-card {
  padding: 26px;
}

.article-card h1 {
  margin-bottom: 14px;
}

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

.detail-tags span {
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.1);
}

.article-card h2,
.side-card h2 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.article-card p {
  color: #334155;
  font-size: 17px;
}

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

.poster-card h2 {
  margin-top: 18px;
}

.poster-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.poster-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.poster-card li span {
  color: var(--muted);
}

.poster-card li strong {
  color: var(--text);
}

.site-footer {
  margin-top: 44px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 24px;
}

.footer-logo span {
  color: var(--cyan-soft);
}

.footer-brand p {
  max-width: 560px;
  margin: 0;
  color: #94a3b8;
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--cyan-soft);
}

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

[hidden] {
  display: none !important;
}

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

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

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

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-shell {
    min-height: 62px;
  }

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

  .mobile-search input {
    flex: 1;
    width: 100%;
  }

  .hero-slider {
    height: 78vh;
    min-height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy {
    padding: 70px 0 30px;
  }

  .hero-actions,
  .home-search,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .home-intro,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .recommend-grid,
  .detail-side-column {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .content-shell {
    padding: 34px 0;
  }

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

  .ranking-row {
    grid-template-columns: 48px 62px minmax(0, 1fr);
  }

  .ranking-action {
    display: none;
  }

  .article-card,
  .side-card {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-text {
    font-size: 16px;
    letter-spacing: 0;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .compact-link {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .compact-link .rank-number {
    display: none;
  }
}
