:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --ink: #1f2937;
  --muted: #64748b;
  --line: rgba(14, 165, 233, 0.18);
  --paper: rgba(255, 255, 255, 0.92);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, rgba(240, 249, 255, 0.72) 48%, rgba(255, 251, 235, 0.72) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.94), rgba(255, 251, 235, 0.94), rgba(240, 249, 255, 0.94));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand.compact {
  gap: 8px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #fbbf24);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-title {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--sky-dark), var(--amber-dark));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #0369a1;
  background: linear-gradient(90deg, rgba(186, 230, 253, 0.68), rgba(254, 240, 138, 0.64));
  transform: translateY(-1px);
}

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

.top-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.top-search input {
  width: 250px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(14, 165, 233, 0.8);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--sky), var(--amber));
  padding: 11px 18px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.24);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(224, 242, 254, 0.7);
  padding: 10px 12px;
  color: #0369a1;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  color: #334155;
  font-weight: 650;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.58) 44%, rgba(15, 23, 42, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
}

.hero-badge,
.detail-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.86), rgba(245, 158, 11, 0.86));
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.22);
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 14px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(241, 245, 249, 0.92);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--sky), var(--amber));
  box-shadow: 0 20px 48px rgba(14, 165, 233, 0.32);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.white-btn:hover,
.rank-action:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.active {
  width: 34px;
  background: #fff;
}

.section-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 20px;
}

.section-wrap.narrow-padding {
  padding-top: 64px;
  padding-bottom: 64px;
}

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

.section-heading > span {
  width: 5px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sky), var(--amber));
  flex-shrink: 0;
}

.section-heading div {
  flex: 1;
}

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

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading a {
  color: #0369a1;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(245, 158, 11, 0.16));
}

.large-card .poster-link {
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72));
}

.card-year {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

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

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(224, 242, 254, 0.7);
}

.movie-card h2 {
  margin: 13px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

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

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

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

.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #0369a1;
  background: rgba(186, 230, 253, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.soft-band {
  background: linear-gradient(90deg, rgba(224, 242, 254, 0.54), rgba(254, 243, 199, 0.52));
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 20px;
}

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

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

.category-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  min-height: 230px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -42px;
  top: -42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(251, 191, 36, 0.26));
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.24);
}

.category-tile strong {
  display: block;
  margin-top: 18px;
  font-size: 23px;
}

.category-tile p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.category-tile div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile div span {
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 9px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.82);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 74px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(90deg, var(--sky), var(--amber));
  box-shadow: 0 24px 70px rgba(14, 165, 233, 0.25);
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

.white-btn {
  color: #0369a1;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

.inner-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  color: #fff;
  background: radial-gradient(circle at 22% 28%, rgba(14, 165, 233, 0.42), transparent 32%), linear-gradient(135deg, #0f172a, #075985 54%, #b45309);
}

.inner-hero > div {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 20px;
}

.inner-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-weight: 750;
}

.inner-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.inner-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(241, 245, 249, 0.9);
  font-size: 19px;
  line-height: 1.75;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 190px 220px;
  gap: 14px;
  margin-bottom: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px 96px 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.07);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sky), var(--amber));
}

.rank-poster img {
  width: 96px;
  height: 128px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-info div span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #0369a1;
  background: rgba(224, 242, 254, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.rank-action {
  color: #fff;
  background: linear-gradient(90deg, var(--sky), var(--amber));
}

.hero-search {
  margin-top: 28px;
  max-width: 660px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.mini-card img {
  width: 74px;
  height: 96px;
  border-radius: 13px;
  object-fit: cover;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  line-height: 1.35;
}

.mini-card em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 20px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

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

.breadcrumb a:hover {
  color: var(--sky-dark);
}

.player-card,
.detail-card,
.side-box,
.side-poster {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

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

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

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.66));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--amber));
  box-shadow: 0 22px 55px rgba(2, 6, 23, 0.42);
  font-size: 36px;
}

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

.detail-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

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

.detail-card h2 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.detail-card p {
  color: #475569;
  line-height: 1.9;
}

.detail-side {
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: 98px;
}

.side-poster {
  overflow: hidden;
}

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

.side-box {
  padding: 20px;
}

.side-box h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

.side-box p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  color: var(--muted);
}

.side-box p strong {
  color: #0f172a;
}

.related-section {
  padding-top: 36px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.98));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 20px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-group {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-group h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.footer-group a {
  color: #475569;
}

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

.footer-bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 18px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1120px) {
  .four-cols,
  .three-cols,
  .category-grid,
  .wide-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-search {
    display: none;
  }
}

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

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

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar,
  .detail-wrap,
  .footer-inner,
  .rank-item {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .rank-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding: 12px 14px;
  }

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

  .hero-content {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .section-wrap,
  .inner-hero > div,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .four-cols,
  .three-cols,
  .category-grid,
  .wide-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-row {
    grid-auto-columns: minmax(260px, 82vw);
  }

  .mini-card {
    grid-template-columns: 68px 1fr;
  }
}
