* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #292524;
  background: #fafaf9;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

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

.logo-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #0ea5e9 52%, #f59e0b);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.28);
}

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

.nav-link,
.mobile-link {
  color: #57534e;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #0284c7;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 30vw);
}

.nav-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #d6d3d1;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: #292524;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.nav-search button,
.mobile-search button,
.filter-panel button,
.btn-primary {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  color: #ffffff;
  background: #0284c7;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.filter-panel button:hover,
.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.18);
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid #e7e5e4;
  padding: 12px 16px 18px;
  background: #ffffff;
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  display: block;
  padding: 8px 0;
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

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

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

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #0284c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #bae6fd;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 610px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 11px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 34px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.66);
  transform: translateY(-50%) scale(1.05);
}

.hero-arrow.prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-arrow.next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  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: 32px;
  background: #ffffff;
}

.hero-thumbs {
  position: absolute;
  right: 0;
  bottom: 54px;
  left: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
}

.hero-thumb {
  display: grid;
  width: 108px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.hero-thumb img {
  width: 100%;
  height: 70px;
  object-fit: cover;
}

.hero-thumb span {
  padding: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-content {
  padding: 48px 0 0;
}

.section-block {
  margin: 0 0 58px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #1c1917;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.section-heading p {
  color: #57534e;
}

.section-heading a {
  color: #0284c7;
  font-weight: 800;
}

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

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

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

.ranking-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.category-tile,
.movie-card,
.horizontal-card,
.detail-panel,
.filter-panel,
.info-card,
.ranking-item {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.horizontal-card:hover,
.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.category-tile {
  position: relative;
  min-height: 170px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), #ffffff 52%, rgba(245, 158, 11, 0.16));
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  color: #1c1917;
}

.category-tile p {
  margin: 0;
  color: #57534e;
  line-height: 1.7;
}

.category-tile span {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #0284c7;
  font-weight: 800;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0c4a6e, #1c1917);
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.poster-play {
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #0284c7;
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.38);
}

.movie-info {
  padding: 16px;
}

.movie-title {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  color: #1c1917;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.movie-info p,
.horizontal-card p,
.info-card p,
.detail-panel p {
  color: #57534e;
  line-height: 1.75;
}

.movie-info p {
  display: -webkit-box;
  min-height: 50px;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-meta span,
.tag-row span,
.detail-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 10px;
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 16px;
  padding: 12px;
}

.horizontal-image {
  overflow: hidden;
  border-radius: 14px;
  background: #0c4a6e;
}

.horizontal-image img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 48px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.rank-no {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #f59e0b);
  font-weight: 900;
}

.ranking-item img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #57534e;
  font-size: 13px;
  font-weight: 800;
}

.filter-empty {
  display: none;
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  color: #57534e;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-hero {
  padding: 56px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.42), transparent 36%),
    linear-gradient(135deg, #0c4a6e, #1c1917 72%);
}

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

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

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

.player-card {
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.18), rgba(0, 0, 0, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #0284c7;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.38);
}

.player-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.56);
  font-size: 13px;
}

.detail-panel,
.info-card {
  padding: 24px;
}

.detail-panel h1 {
  margin: 0 0 12px;
  color: #1c1917;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
}

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

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

.breadcrumb a {
  color: #0284c7;
  font-weight: 700;
}

.detail-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e7e5e4;
}

.detail-section h2,
.info-card h2 {
  margin: 0 0 12px;
  color: #1c1917;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.side-card img {
  width: 82px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.side-card span {
  display: block;
  color: #1c1917;
  font-weight: 800;
}

.side-card small {
  color: #78716c;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0;
  background: #1c1917;
  color: #d6d3d1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
}

.site-footer p {
  max-width: 430px;
  color: #a8a29e;
  line-height: 1.75;
}

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

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

.footer-links a {
  color: #d6d3d1;
  transition: color 0.2s ease;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

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

  .hero-carousel {
    height: 520px;
  }

  .hero-arrow,
  .hero-thumbs {
    display: none;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.28));
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 84px;
  }

  .section-heading {
    display: grid;
  }

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

  .horizontal-card,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .horizontal-image img,
  .ranking-item img {
    width: 100%;
    height: 180px;
  }

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

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