:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --secondary: #14b8a6;
  --secondary-dark: #0d9488;
  --accent: #ea580c;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #f0fdfa 100%);
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
  border-bottom: 1px solid rgba(229, 231, 235, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.main-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  background: #e0f2fe;
  color: var(--primary-dark);
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.mobile-nav {
  display: none;
  padding: 0 18px 18px;
  flex-direction: column;
  gap: 12px;
  font-weight: 700;
}

.mobile-nav.open {
  display: flex;
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  color: #fff;
  overflow: hidden;
  background: #030712;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92), rgba(0,0,0,0.52) 42%, rgba(0,0,0,0.10));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 118px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255,255,255,0.86);
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.72;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span,
.tag {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

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

.button-primary,
.button-light,
.button-outline,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary,
.player-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 32px rgba(2, 132, 199, 0.28);
}

.button-light {
  color: #111827;
  background: #fff;
}

.button-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.button-primary:hover,
.button-light:hover,
.button-outline:hover,
.player-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.32);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1280px) / 2));
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  font-size: 22px;
  cursor: pointer;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 26px;
  border-radius: 999px;
  background: #fff;
}

.search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.search-box button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 0 24px;
  font-weight: 900;
  cursor: pointer;
}

.page-hero,
.detail-hero {
  padding: 130px 0 48px;
  background: linear-gradient(135deg, #e0f2fe, #fff, #f0fdfa);
}

.page-hero h1,
.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #374151;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.category-pill:hover {
  color: var(--primary-dark);
  border-color: #bae6fd;
  transform: translateY(-1px);
}

.section-block {
  padding: 64px 0 0;
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-more {
  white-space: nowrap;
  color: var(--primary-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.85);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.14);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #e0f2fe, #111827);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent);
}

.type-badge,
.rank-no {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 132, 199, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.rank-no {
  background: rgba(234, 88, 12, 0.92);
}

.rank-no + .type-badge {
  left: auto;
  right: 12px;
}

.play-dot {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

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

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.32;
}

.card-body h3 a:hover {
  color: var(--primary-dark);
}

.meta-line,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-desc {
  margin-top: 8px;
}

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

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #ea580c, #0284c7);
}

.category-card:nth-child(3n + 2) {
  background: linear-gradient(135deg, #0d9488, #0369a1);
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255,255,255,0.86);
  line-height: 1.58;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 24px;
}

.toolbar .search-box {
  width: min(560px, 100%);
  margin: 0;
  box-shadow: none;
  padding: 10px;
}

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

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

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

.detail-poster {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: radial-gradient(circle at 20% 20%, #e0f2fe, #111827);
}

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

.detail-info {
  padding-top: 10px;
}

.detail-info p {
  color: #4b5563;
  line-height: 1.86;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-meta span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
  color: #374151;
}


.detail-info .button-outline {
  color: var(--primary-dark);
  border-color: #bae6fd;
  background: #ffffff;
}

.player-section {
  padding: 48px 0 0;
}

.player-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #030712;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), rgba(0,0,0,0.28));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-wrap.playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  min-height: 58px;
  padding: 0 30px;
  font-size: 18px;
}

.article-block {
  margin-top: 42px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-block p {
  color: #4b5563;
  line-height: 1.88;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.ranking-index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  font-weight: 900;
}

.ranking-thumb img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 20%, #e0f2fe, #111827);
}

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

.ranking-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  margin-top: 80px;
  padding: 56px 0 22px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

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

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

.footer-grid a {
  display: block;
  color: var(--muted);
  margin: 10px 0;
}

.footer-grid a:hover {
  color: var(--primary-dark);
}

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #9ca3af;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

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

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

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 24px;
  }

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

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

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

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

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

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

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

  .hero {
    min-height: 620px;
    height: 86vh;
  }

  .hero-content {
    padding: 92px 0 96px;
  }

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

  .section-head,
  .toolbar {
    display: block;
  }

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

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

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

  .card-body h3 {
    font-size: 16px;
  }

  .ranking-item {
    grid-template-columns: 42px 74px minmax(0, 1fr);
  }

  .ranking-thumb img {
    width: 74px;
    height: 98px;
  }

  .ranking-item .button-primary {
    grid-column: 2 / -1;
    width: fit-content;
  }
}
