* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f8fafc;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #14b8a6 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #2563eb;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.08);
}

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

.nav-link {
  border: 0;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #dbeafe;
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.drop-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  display: grid;
  width: 180px;
  padding: 8px;
  color: #1f2937;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-panel a,
.mobile-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.drop-panel a:hover {
  color: #2563eb;
  background: #eff6ff;
}

.header-search {
  position: relative;
  width: min(300px, 26vw);
}

.header-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

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

.header-search input:focus {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  opacity: 0.8;
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  display: none;
  overflow: hidden;
  color: #111827;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.search-results.is-open {
  display: block;
}

.search-results a {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
}

.search-results strong {
  display: block;
  font-size: 14px;
}

.search-results small {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: #1d4ed8;
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-category-title {
  margin: 12px 12px 4px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 1s ease;
}

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

.hero-content {
  display: flex;
  height: 100%;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 6px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: #f97316;
  font-size: 14px;
  font-weight: 800;
}

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

.hero p {
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

.hero-button,
.ghost-button,
.cta-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 15px 28px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 18px 38px rgba(239, 68, 68, 0.3);
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-button:hover,
.cta-box a:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
}

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

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

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

.section {
  padding: 70px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.section-heading,
.center-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.center-heading {
  display: block;
  text-align: center;
}

.section-heading h2,
.center-heading h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: #ffffff;
}

.section-heading p,
.center-heading p {
  margin: 0;
  color: #64748b;
}

.section-more {
  color: #2563eb;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0f172a;
}

.card-media img,
.wide-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .card-media img,
.wide-rank-card:hover img {
  transform: scale(1.08);
}

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.32);
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.year-pill,
.rank-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  top: 10px;
  bottom: auto;
  left: 10px;
  right: auto;
  background: #ef4444;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.wide-rank-card h2 a:hover,
.side-link:hover span {
  color: #2563eb;
}

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

.card-meta span,
.tag-cloud span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 12px;
  font-weight: 800;
}

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

.wide-rank-card {
  display: flex;
  min-height: 154px;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-rank-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.wide-cover {
  position: relative;
  flex: 0 0 142px;
  overflow: hidden;
  background: #0f172a;
}

.wide-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: #ffffff;
  border-radius: 999px;
  background: #ef4444;
  font-size: 12px;
  font-weight: 900;
}

.wide-rank-card > div:not(.wide-cover) {
  padding: 18px;
}

.wide-rank-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

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

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

.category-card,
.category-overview-card {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 26px;
  color: #ffffff;
  border-radius: 24px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.2);
}

.category-card.c1,
.category-overview-card:nth-child(2n) {
  background: linear-gradient(135deg, #38bdf8, #4f46e5);
}

.category-card.c2,
.category-overview-card:nth-child(3n) {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.category-card.c3,
.category-overview-card:nth-child(4n) {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.category-card.c4,
.category-overview-card:nth-child(5n) {
  background: linear-gradient(135deg, #8b5cf6, #2563eb);
}

.cat-icon {
  font-size: 42px;
}

.category-card strong,
.category-overview-card h2 {
  font-size: 22px;
}

.category-card small,
.category-overview-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.7;
}

.category-overview-card {
  grid-template-columns: 1fr;
  min-height: 250px;
}

.overview-main {
  display: grid;
  gap: 10px;
}

.overview-main h2 {
  margin: 0;
}

.overview-main p {
  margin: 0;
}

.overview-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.overview-links a {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark-grid .movie-card {
  background: #1e293b;
}

.dark-grid .card-body h2,
.dark-grid .card-meta span {
  color: #ffffff;
}

.dark-grid .card-body p {
  color: #cbd5e1;
}

.cta-section {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #14b8a6);
}

.cta-box {
  text-align: center;
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 48px);
}

.cta-box p {
  margin: 0 auto;
  max-width: 680px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

.cta-box a {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

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

.page-hero {
  padding: 86px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4, #14b8a6);
  background-position: center;
  background-size: cover;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.small-hero,
.list-hero,
.ranking-hero {
  background: linear-gradient(135deg, #0f172a, #2563eb 52%, #06b6d4);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: 0;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.detail-hero {
  min-height: 540px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  padding: 56px 0;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #dbeafe;
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.75;
}

.detail-watch {
  margin-top: 26px;
}

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

.player-card,
.story-card,
.info-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
}

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

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.68));
  cursor: pointer;
}

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

.play-circle {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.32);
  font-size: 32px;
}

.story-card,
.info-card,
.side-card {
  padding: 26px;
  margin-top: 24px;
}

.story-card h2,
.info-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
}

.story-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 16px;
  line-height: 1.95;
}

.info-card {
  margin-top: 0;
  position: sticky;
  top: 88px;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
}

.info-card dt {
  color: #2563eb;
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #475569;
}

.side-link {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.side-link:hover {
  background: #f8fafc;
}

.side-link img {
  width: 82px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.side-link span {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  padding: 56px 0 36px;
}

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

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

.site-footer a {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
}

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

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

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

  .header-search {
    width: min(360px, 45vw);
    margin-left: auto;
  }

  .menu-button {
    display: block;
  }

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

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

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

  .detail-poster {
    width: min(320px, 80vw);
  }
}

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

  .logo span:last-child {
    font-size: 18px;
  }

  .header-search {
    display: none;
  }

  .hero {
    height: 520px;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

  .four-col,
  .wide-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .wide-rank-card {
    display: block;
  }

  .wide-cover {
    display: block;
    aspect-ratio: 16 / 10;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-hero-grid {
    padding: 38px 0;
    gap: 26px;
  }

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