* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #172033;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 42%, #fff4fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.32);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #475569;
  font-weight: 700;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #0284c7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  display: flex;
  align-items: center;
  min-width: 260px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe6f0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.search-form input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 14px 11px 18px;
  background: transparent;
  color: #172033;
}

.search-form button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  padding: 11px 16px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #dbe6f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
}

.mobile-panel {
  display: none;
  padding: 14px 0 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-panel nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  color: #334155;
  font-weight: 700;
}

.page-main {
  min-height: 72vh;
}

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

.hero-track {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 30%, rgba(14, 165, 233, 0.54), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(236, 72, 153, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.32));
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.78fr;
  gap: 56px;
  align-items: center;
  min-height: 640px;
  padding: 92px 0 72px;
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.hero-tag,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero .hero-tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  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, #0ea5e9, #ec4899);
  box-shadow: 0 18px 38px rgba(14, 165, 233, 0.32);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-light {
  color: #0369a1;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
}

.hero-poster {
  position: relative;
  padding: 18px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 70px rgba(2, 6, 23, 0.42);
  backdrop-filter: blur(18px);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.hero-poster-card {
  position: absolute;
  right: -18px;
  bottom: 32px;
  width: min(260px, 72%);
  padding: 16px;
  border-radius: 22px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(20px);
}

.hero-poster-card strong {
  display: block;
  color: #0284c7;
  font-size: 14px;
}

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

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.72), rgba(252, 231, 243, 0.82));
}

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

.section-kicker {
  color: #0284c7;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: #64748b;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.42);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.card-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.card-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.28);
}

.score-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 999px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.28;
}

.card-title a:hover {
  color: #0284c7;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: #0284c7;
  font-weight: 900;
}

.category-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  min-height: 220px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-panel h3 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.category-panel p {
  margin: 0;
  color: #64748b;
}

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

.mini-links a {
  padding: 6px 10px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  border-radius: 14px;
  font-weight: 950;
}

.rank-row img {
  width: 80px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  border-radius: 14px;
}

.rank-title {
  margin: 0 0 4px;
  color: #0f172a;
  font-size: 17px;
}

.rank-title a:hover {
  color: #0284c7;
}

.rank-info {
  color: #64748b;
  font-size: 14px;
}

.page-hero {
  padding: 58px 0 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #0ea5e9, #ec4899);
}

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

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

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.5fr));
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid #dbe6f0;
  outline: 0;
  padding: 12px 14px;
  color: #172033;
  background: #f8fafc;
  border-radius: 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.empty-state {
  display: none;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
  border-radius: 22px;
}

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

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

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.34);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(14, 165, 233, 0.4);
}

.play-button span {
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 24px solid #ffffff;
}

.detail-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
}

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

.detail-title {
  margin: 24px 0 12px;
  color: #0f172a;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-weight: 900;
}

.detail-copy {
  display: grid;
  gap: 18px;
  color: #334155;
  font-size: 17px;
}

.poster-box img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  border-radius: 22px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f7;
}

.info-list span:first-child {
  color: #64748b;
}

.info-list span:last-child {
  color: #0f172a;
  font-weight: 900;
  text-align: right;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding: 20px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 14px;
}

@media (max-width: 1060px) {
  .nav,
  .header-actions .search-form {
    display: none;
  }

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

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

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

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

  .header-inner {
    min-height: 64px;
  }

  .logo {
    font-size: 18px;
  }

  .hero,
  .hero-track,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    gap: 28px;
    padding: 64px 0 76px;
  }

  .hero-poster-card {
    right: 12px;
    bottom: 20px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head {
    display: grid;
  }

  .grid-5,
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 64px 1fr;
  }

  .rank-row .btn {
    grid-column: 1 / -1;
  }

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

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