:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --rose: #f43f5e;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.header-inner {
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 24px;
  color: transparent;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
  font-size: 13px;
}

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

.desktop-nav a,
.mobile-panel a {
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
  color: var(--sky);
}

.header-search {
  width: 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-panel input,
.big-search input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 44px 11px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.big-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.header-search button {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--sky);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  padding: 12px 0;
}

.mobile-panel form {
  display: flex;
  gap: 10px;
}

.mobile-panel button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  cursor: pointer;
  font-weight: 800;
}

main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  color: #ffffff;
  background: #020617;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.34), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), #020617 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 640px;
  margin: 0 auto;
  padding: 92px 20px 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 58px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--sky);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.24);
  border-color: rgba(186, 230, 253, 0.32);
}

.hero-copy h1 {
  max-width: 820px;
  margin: 20px 0 10px;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.08em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: #bae6fd;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.1;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 18px;
}

.hero-actions,
.section-head,
.compact-head,
.filter-controls,
.player-caption,
.breadcrumb,
.hero-controls {
  display: flex;
  align-items: center;
}

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

.primary-btn,
.ghost-btn,
.outline-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 13px 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.3);
}

.ghost-btn {
  padding: 12px 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.outline-btn {
  padding: 12px 20px;
  color: var(--sky);
  border: 1px solid rgba(14, 165, 233, 0.28);
  background: #ffffff;
}

.primary-btn:hover,
.ghost-btn:hover,
.outline-btn:hover,
.text-link:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  background: linear-gradient(135deg, #0f172a, #164e63);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster span,
.play-mark {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.34);
}

.hero-poster span {
  left: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  gap: 18px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-controls > button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 26px;
  background: #ffffff;
}

.intro-strip,
.section-block,
.filter-panel,
.detail-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.intro-strip h2,
.section-head h2,
.search-card h2,
.filter-panel h2,
.prose-card h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.intro-strip p,
.search-card p,
.filter-panel p,
.page-hero p,
.prose-card p,
.category-overview-card p {
  color: var(--muted);
}

.section-block {
  padding-top: 54px;
  padding-bottom: 54px;
}

.section-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
}

.section-head a,
.text-link {
  color: var(--sky);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.82);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(14, 165, 233, 0.32);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

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

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

.play-mark {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  opacity: 0.94;
}

.rank-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  min-width: 42px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

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

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.movie-card h3 a:hover {
  color: var(--sky);
}

.movie-card p {
  min-height: 72px;
  margin: 0 0 14px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.light span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.soft-block {
  max-width: none;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
}

.soft-block > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category-grid,
.category-overview-grid,
.about-grid {
  display: grid;
  gap: 20px;
}

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

.category-card,
.category-overview-card,
.search-card,
.prose-card,
.filter-panel {
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: #ffffff;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.category-card {
  min-height: 190px;
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card span,
.category-title {
  color: var(--sky);
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.category-card p,
.category-overview-card p {
  margin: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(14, 165, 233, 0.3);
}

.rank-item span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  font-weight: 900;
}

.rank-item strong,
.rank-item em {
  display: block;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.search-card {
  padding: 30px;
  align-self: start;
  background: linear-gradient(160deg, #ffffff, #ecfeff);
}

.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 24px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 15%, rgba(34, 211, 238, 0.28), transparent 30%),
    linear-gradient(135deg, #0f172a, #075985 52%, #0891b2);
  margin-bottom: 18px;
}

.page-hero > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 86px 20px;
}

.compact-page-hero > div {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 720px;
  color: #e0f2fe;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.filter-controls {
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-controls input {
  max-width: 300px;
}

.filter-controls select {
  width: 150px;
  padding-right: 14px;
}

.filter-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
}

.empty-state.show {
  display: block;
}

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

.category-overview-card {
  padding: 24px;
}

.category-title {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.category-overview-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-overview-card div a {
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}

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

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.rank-table th,
.rank-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rank-table th {
  color: #334155;
  background: #f8fafc;
}

.rank-table td:first-child {
  font-weight: 900;
  color: var(--sky);
}

.rank-table a {
  font-weight: 900;
}

.detail-hero {
  padding-top: 34px;
  padding-bottom: 24px;
}

.breadcrumb {
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--sky);
  font-weight: 800;
}

.breadcrumb em {
  font-style: normal;
}

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

.player-card,
.detail-info {
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
}

.video-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.56));
}

.video-overlay span {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  box-shadow: 0 20px 44px rgba(14, 165, 233, 0.38);
  font-size: 28px;
}

.player-card.playing .video-overlay {
  display: none;
}

.player-caption {
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--muted);
}

.player-caption strong {
  color: var(--text);
  font-size: 18px;
}

.detail-info {
  padding: 28px;
}

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.07em;
}

.detail-info p {
  color: var(--muted);
  font-size: 17px;
}

.detail-info dl {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

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

.detail-info dt {
  color: var(--muted);
  font-weight: 900;
}

.detail-info dd {
  margin: 0;
  font-weight: 800;
}

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

.prose-card {
  padding: 30px;
}

.prose-card h2 {
  margin-top: 8px;
  font-size: 28px;
}

.prose-card p {
  font-size: 17px;
}

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

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.about-grid div {
  padding: 20px;
  border-radius: 20px;
  background: #f0f9ff;
}

.about-grid strong,
.about-grid span {
  display: block;
}

.about-grid span {
  color: var(--muted);
  margin-top: 6px;
}

.site-footer {
  margin-top: 34px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
}

.site-footer p {
  color: var(--muted);
  max-width: 430px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer a:not(.footer-brand) {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

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

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 30px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .detail-grid,
  .two-column,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 32px;
  }

  .hero-poster {
    max-width: 340px;
  }

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

  .filter-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

  .brand {
    font-size: 20px;
  }

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

  .hero-content {
    padding-top: 62px;
  }

  .intro-strip,
  .section-head,
  .player-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-grid,
  .related-grid,
  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .filter-controls input,
  .filter-controls select {
    max-width: none;
    width: 100%;
  }

  .page-hero > div {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}
