:root {
  --blue: #0096dc;
  --blue-dark: #0077b6;
  --blue-light: #4db8e8;
  --yellow: #ffd700;
  --yellow-dark: #ffc700;
  --red: #e63946;
  --cream: #fff9e6;
  --ink: #10202f;
  --muted: #607080;
  --card: #ffffff;
  --line: rgba(16, 32, 47, 0.1);
  --shadow: 0 18px 50px rgba(0, 119, 182, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), #ffffff 32%, #f7fbff);
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: rgba(0, 150, 220, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0, 119, 182, 0.22);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: radial-gradient(circle at 32% 28%, #fff7ba, var(--yellow));
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.78);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 0;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--yellow);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 10px;
}

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

.header-search button,
.button,
.hero-button,
.play-button {
  border: 0;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--yellow);
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.button:hover,
.hero-button:hover,
.play-button:hover {
  transform: translateY(-2px);
  background: var(--yellow-dark);
  box-shadow: 0 10px 22px rgba(255, 199, 0, 0.26);
}

.menu-toggle {
  display: none;
  color: #ffffff;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--blue), var(--blue-light));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.16);
  animation: floatBubble 7s ease-in-out infinite;
}

.hero::before {
  width: 180px;
  height: 180px;
  top: 58px;
  left: 8%;
}

.hero::after {
  width: 280px;
  height: 280px;
  right: -40px;
  bottom: 30px;
  animation-delay: 1.4s;
}

.hero-slide {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: saturate(1.1);
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 119, 182, 0.96), rgba(0, 150, 220, 0.62), rgba(0, 0, 0, 0.32));
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 340px;
  gap: 46px;
  align-items: center;
  min-height: 620px;
  padding: 80px 0;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 215, 0, 0.95);
  font-weight: 900;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 215, 0, 0.22));
}

.hero-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  border-radius: 999px;
  background: rgba(230, 57, 70, 0.96);
  padding: 8px 12px;
  font-weight: 900;
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: var(--yellow);
}

.section {
  padding: 64px 0;
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 34px rgba(16, 32, 47, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 150, 220, 0.2), rgba(255, 215, 0, 0.18));
}

.poster-wrap img {
  height: 260px;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.34);
  font-size: 48px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .play-mask {
  opacity: 1;
}

.duration,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--blue);
}

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

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

.movie-meta span,
.movie-tags span,
.info-pill {
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(0, 150, 220, 0.1);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-card,
.stats-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(16, 32, 47, 0.08);
}

.category-card {
  padding: 22px;
}

.category-card strong {
  display: block;
  color: var(--blue-dark);
  font-size: 22px;
}

.category-card p {
  min-height: 48px;
  color: var(--muted);
}

.category-count {
  display: inline-flex;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--yellow);
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  padding: 74px 0 44px;
  color: #ffffff;
  background: radial-gradient(circle at top left, var(--blue-light), transparent 32%), linear-gradient(120deg, var(--blue-dark), var(--blue));
}

.page-title {
  max-width: 780px;
}

.page-title p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  margin: -28px auto 34px;
  position: relative;
  z-index: 3;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  outline-color: var(--blue);
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-item {
  display: grid;
  grid-template-columns: 72px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(16, 32, 47, 0.06);
}

.rank-number {
  color: var(--blue-dark);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb img {
  height: 126px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(145deg, rgba(0, 150, 220, 0.2), rgba(255, 215, 0, 0.18));
}

.rank-info strong {
  display: block;
  font-size: 20px;
}

.rank-info p {
  margin: 6px 0 10px;
  color: var(--muted);
}

.rank-score {
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  padding: 10px 14px;
  font-weight: 900;
  text-align: center;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #07131e;
  box-shadow: 0 28px 80px rgba(7, 19, 30, 0.32);
}

.player-shell video {
  display: block;
  width: 100%;
  min-height: 420px;
  max-height: 70vh;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.48), rgba(0, 0, 0, 0.42));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  padding: 8px 12px;
  font-size: 13px;
}

.detail-card {
  padding: 22px;
}

.detail-card h2,
.detail-card h3 {
  margin-top: 0;
}

.detail-card p {
  color: var(--muted);
}

.detail-side .poster-wrap img {
  height: 450px;
  border-radius: 24px;
}

.data-table {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.data-table div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.data-table span:first-child {
  color: var(--muted);
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 13px 16px;
}

.result-row a {
  font-weight: 900;
}

.result-row span {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  margin-top: 70px;
  color: #ffffff;
  background: #101820;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  margin: 6px 0;
}

.site-footer h3 {
  color: var(--yellow);
  margin-top: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

@keyframes floatBubble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(18px);
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

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

  .main-nav,
  .header-search {
    display: none;
  }

  .main-nav.is-open {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-bottom: 16px;
  }

  .main-nav.is-open a {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 12px 0;
  }

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

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

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

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .rank-item {
    grid-template-columns: 54px 82px 1fr;
  }

  .rank-score {
    grid-column: 2 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 56px 0 80px;
  }

  .hero p {
    font-size: 17px;
  }

  .grid,
  .category-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .poster-wrap img {
    height: 230px;
  }

  .player-shell video {
    min-height: 260px;
  }

  .rank-item,
  .result-row {
    grid-template-columns: 1fr;
  }
}
