* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #e2e8f0;
  background: radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.20), transparent 26%), linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  backdrop-filter: blur(22px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-subtitle {
  color: #94a3b8;
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.72);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.72);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.84) 46%, rgba(15, 23, 42, 0.20) 100%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-copy {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(680px, calc(100% - 32px));
  transform: translateY(-50%);
  z-index: 2;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22d3ee;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-pill {
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 630px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  color: #bae6fd;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.11);
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-button,
.section-link {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.52);
}

.ghost-button.small {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.6;
}

.hero-dot.active {
  width: 30px;
  opacity: 1;
  background: #22d3ee;
}

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

.search-shell,
.player-card,
.article-card,
.category-card,
.movie-card {
  border: 1px solid rgba(51, 65, 85, 0.82);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(20px);
}

.search-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 24px;
}

.search-shell h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 3vw, 34px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(430px, 100%);
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.72);
}

.search-box span {
  color: #22d3ee;
  font-size: 21px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #f8fafc;
  background: transparent;
}

.search-box input::placeholder {
  color: #64748b;
}

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

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

.section-heading h2 {
  margin: 6px 0 6px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: #94a3b8;
}

.movie-grid,
.category-grid,
.ranking-strip {
  display: grid;
  gap: 20px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 30px 80px rgba(8, 145, 178, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(8, 47, 73, 0.82));
}

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

.movie-card:hover .poster-link img {
  transform: scale(1.07);
  filter: brightness(0.8);
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  min-height: 30px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-height: 28px;
  padding: 0 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.card-body h3 {
  margin: 7px 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #22d3ee;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 204px;
  border-radius: 24px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.category-card-main {
  position: relative;
  display: flex;
  min-height: 134px;
  padding: 24px;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.24), transparent 32%), linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(8, 47, 73, 0.54));
}

.category-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  right: -36px;
  top: -36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.28);
  filter: blur(8px);
}

.category-card strong {
  position: relative;
  color: #ffffff;
  font-size: 25px;
  line-height: 1.2;
}

.category-card em {
  position: relative;
  max-width: 260px;
  margin-top: 8px;
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 14px 18px 18px;
}

.category-samples a {
  color: #cbd5e1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-samples a:hover {
  color: #22d3ee;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
}

.filter-button.active,
.filter-button:hover {
  color: #ffffff;
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(8, 145, 178, 0.32);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background: radial-gradient(circle at 18% 10%, rgba(14, 165, 233, 0.26), transparent 34%), linear-gradient(135deg, #020617 0%, #0f172a 62%, #082f49 100%);
}

.compact-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

.ranking-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  margin: 10px 0 14px;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.page-search {
  margin-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #22d3ee;
}

.breadcrumb strong {
  color: #e2e8f0;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding: 96px 0 78px;
  background: #020617;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(3px) saturate(1.1);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.86), rgba(8, 47, 73, 0.64)), linear-gradient(0deg, #020617, transparent 55%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

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

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(8, 47, 73, 0.82));
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.42);
}

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

.detail-copy h1 {
  margin: 10px 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-copy .lead {
  max-width: 820px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 19px;
}

.detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.detail-info li {
  padding: 12px 14px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.54);
}

.detail-info span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.detail-info strong {
  color: #f8fafc;
  font-size: 14px;
}

.player-card {
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
}

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

.player-heading h2 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 38px);
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 22px 60px rgba(6, 182, 212, 0.34);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.play-button span {
  display: inline-block;
  margin-left: 6px;
  font-size: 32px;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.play-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.article-card {
  padding: clamp(22px, 4vw, 40px);
  border-radius: 28px;
}

.article-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 28px;
}

.article-card h2 + p {
  margin-top: 0;
}

.article-card p {
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 17px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: rgba(2, 6, 23, 0.9);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: #94a3b8;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-links a:hover {
  color: #22d3ee;
}

[data-movie-card].hidden {
  display: none;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero {
    height: auto;
    min-height: 640px;
  }

  .hero-copy {
    top: 52%;
  }

  .search-shell,
  .section-heading,
  .footer-inner,
  .player-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel {
    margin-top: 24px;
  }

  .movie-grid,
  .ranking-strip,
  .category-grid,
  .large-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-cover {
    width: min(300px, 100%);
  }

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

@media (max-width: 540px) {
  .header-inner {
    height: 64px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .movie-grid,
  .ranking-strip,
  .category-grid,
  .large-categories {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .card-body p {
    min-height: auto;
  }

  .content-section {
    padding-top: 46px;
  }

  .player-card {
    padding: 12px;
    border-radius: 20px;
  }

  .play-button {
    width: 68px;
    height: 68px;
  }
}
