:root {
  --primary: #0073e6;
  --primary-dark: #0055b8;
  --accent: #e67300;
  --ink: #0d0f12;
  --muted: #68717d;
  --line: #e6eaf0;
  --soft: #f8f9fa;
  --white: #ffffff;
  --dark: #111827;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(230, 234, 240, 0.7);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(0, 115, 230, 0.22);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
  color: #3f4752;
}

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

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eef3f8;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 3px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f6fa;
  font-weight: 650;
}

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

.top-main {
  padding-top: 96px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: #0b1220;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-slide::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--hero-cover);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(18px) saturate(1.15);
  opacity: 0.35;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 35%, rgba(230, 115, 0, 0.36), transparent 26%),
    linear-gradient(115deg, rgba(5, 14, 28, 0.96) 0%, rgba(5, 14, 28, 0.82) 48%, rgba(0, 115, 230, 0.4) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.55fr);
  gap: 54px;
  align-items: center;
  padding-top: 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: var(--primary);
  border: 1px solid rgba(0, 115, 230, 0.18);
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.09);
  font-size: 14px;
  font-weight: 800;
}

.hero .eyebrow,
.detail-info .eyebrow,
.rank-hero .eyebrow {
  color: #cfe8ff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero p {
  max-width: 700px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
}

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

.hero-tags span,
.chip-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.chip-row span {
  color: #4c5663;
  border-color: #e3e8ee;
  background: #f4f7fb;
}

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

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(0, 115, 230, 0.28);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button.dark {
  color: var(--ink);
  border-color: #dce4ed;
  background: #ffffff;
}

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

.hero-poster {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(0, 115, 230, 0.48), rgba(230, 115, 0, 0.48));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-controls button,
.hero-dots button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
}

.hero-dots {
  position: absolute;
  right: 150px;
  bottom: 52px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 28px;
  background: var(--white);
}

.section {
  padding: 70px 0;
}

.white-section {
  background: var(--white);
}

.gradient-section {
  background: linear-gradient(135deg, #f8fbff, #fff7ed);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a,
.text-link {
  color: var(--primary);
  font-weight: 800;
}

.search-band {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
  margin-top: -44px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-band h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.search-band p {
  margin: 0;
  color: var(--muted);
}

.quick-search,
.filter-bar {
  display: flex;
  gap: 10px;
}

.quick-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe4ed;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #fff;
}

.quick-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.1);
}

.quick-search button {
  min-width: 120px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--primary);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 115, 230, 0.28);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
}

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

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 16px;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-panel,
.overview-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.category-panel {
  padding: 24px;
}

.category-panel h3,
.overview-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-panel p,
.overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.mini-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-links a {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 14px;
  background: #f5f8fb;
}

.mini-links span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.mini-links small {
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 54px;
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 84% 20%, rgba(230, 115, 0, 0.4), transparent 26%),
    linear-gradient(135deg, #0f172a, #103b68 55%, #0d6ac2);
  box-shadow: var(--shadow);
}

.compact-hero p,
.rank-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

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

.overview-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
}

.overview-image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
}

.overview-image img {
  width: 100%;
  height: 156px;
  object-fit: cover;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.overview-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #536171;
  font-size: 13px;
  font-weight: 700;
}

.filter-area {
  padding-top: 36px;
}

.filter-bar {
  position: relative;
  z-index: 2;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.sticky-filter {
  position: sticky;
  top: 88px;
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 0.45fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-list li a:hover {
  transform: translateX(4px);
  border-color: rgba(0, 115, 230, 0.28);
}

.rank-num {
  color: var(--accent);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-meta {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

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

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.detail-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--detail-cover);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.26;
}

.detail-cover-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(8, 13, 24, 0.95), rgba(8, 13, 24, 0.7), rgba(0, 115, 230, 0.35));
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 58px 0;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.info-list span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.large-chips span {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.detail-content {
  padding: 42px 0 70px;
}

.player-section {
  margin-bottom: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #020617;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.player-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle, rgba(0, 115, 230, 0.2), rgba(0, 0, 0, 0.66));
}

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

.play-icon {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  font-size: 30px;
}

.article-section {
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.article-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.article-section p {
  margin: 0;
  color: #3f4752;
  font-size: 17px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

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

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #94a3b8;
  text-align: center;
}

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

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

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 780px;
  }

  .hero-content,
  .detail-grid,
  .search-band,
  .overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 360px;
    min-height: 440px;
  }

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

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

  .rank-list li a {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
  }
}

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

  .header-inner {
    height: 64px;
  }

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

  .top-main {
    padding-top: 76px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    gap: 28px;
    padding-top: 88px;
  }

  .hero p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-poster {
    min-height: 330px;
  }

  .hero-poster img {
    min-height: 330px;
  }

  .hero-controls {
    right: 16px;
    bottom: 18px;
  }

  .hero-dots {
    right: auto;
    left: 16px;
    bottom: 36px;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    display: grid;
  }

  .quick-search,
  .filter-bar {
    display: grid;
  }

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

  .card-body {
    padding: 13px;
  }

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

  .page-hero {
    padding: 34px 22px;
    border-radius: 22px;
  }

  .overview-image {
    min-height: 210px;
  }

  .detail-grid {
    padding: 34px 0;
  }

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

  .article-section {
    padding: 22px;
  }

  .footer-grid {
    padding: 36px 0;
  }
}
