html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.site-nav {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #ffffff;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

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

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e5e7eb;
  font-size: 15px;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: #2dd4bf;
}

.nav-search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.search-page-form input,
.filter-fields input,
.filter-fields select {
  width: 260px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #334155;
  color: #ffffff;
  padding: 10px 16px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-search input::placeholder,
.search-page-form input::placeholder,
.filter-fields input::placeholder {
  color: #cbd5e1;
}

.nav-search input:focus,
.search-page-form input:focus,
.filter-fields input:focus,
.filter-fields select:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.nav-search button {
  border: 0;
  border-radius: 999px;
  background: #14b8a6;
  color: #ffffff;
  padding: 9px 15px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.18));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 72px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 780px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 720px;
  color: #e5e7eb;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.9);
  color: #ffffff;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 26px;
  color: #ffffff;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  border: 0;
  background: #14b8a6;
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(20, 184, 166, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.28);
}

.ghost-btn.dark {
  border-color: #0f766e;
  color: #0f766e;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  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.is-active {
  width: 32px;
  background: #14b8a6;
}

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

.page-top {
  padding-top: 34px;
}

.section-block,
.ranking-section,
.filter-panel,
.detail-content,
.category-overview-card {
  margin-bottom: 64px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.section-title-row a {
  color: #0f766e;
  font-weight: 800;
}

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

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

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

.movie-card-small .poster-wrap {
  height: 170px;
}

.movie-card-large .poster-wrap {
  height: 270px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
}

.duration-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.poster-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  min-height: 60%;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.poster-gradient span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.55;
}

.card-body {
  display: block;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
}

.movie-card:hover .card-body strong {
  color: #0f766e;
}

.card-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span:first-child {
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  padding: 4px 8px;
}

.card-meta span:last-child,
.ranking-score {
  color: #d97706;
  font-weight: 800;
}

.ranking-section {
  border-radius: 24px;
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  padding: 32px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 52px 128px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.ranking-item img {
  width: 128px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.ranking-copy {
  min-width: 0;
}

.ranking-copy strong,
.ranking-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-copy strong {
  color: #111827;
  font-size: 17px;
}

.ranking-copy small {
  margin-top: 5px;
  color: #64748b;
}

.page-hero {
  border-radius: 26px;
  background: linear-gradient(135deg, #0f172a, #115e59 55%, #0f766e);
  color: #ffffff;
  padding: 42px;
  margin-bottom: 36px;
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.18);
}

.page-hero h1 {
  position: relative;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

.amber-hero {
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

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

.breadcrumb a {
  color: #0f766e;
  font-weight: 700;
}

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

.category-overview-card {
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.13);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-card p {
  min-height: 76px;
  color: #64748b;
  line-height: 1.7;
}

.mini-posters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.mini-posters img {
  height: 78px;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-fields input,
.filter-fields select,
.search-page-form input {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #111827;
}

.filter-fields input::placeholder,
.search-page-form input::placeholder {
  color: #94a3b8;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 34px;
}

.player-card,
.detail-side,
.detail-main-copy,
.movie-info-box {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at center, #1e293b, #020617);
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.25));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.started .play-mask {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-symbol {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #14b8a6;
  box-shadow: 0 18px 36px rgba(20, 184, 166, 0.28);
  font-size: 28px;
}

.detail-side {
  padding: 18px;
}

.detail-cover {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #0f766e);
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-facts span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.detail-main-copy,
.movie-info-box {
  padding: 30px;
}

.detail-main-copy h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.one-line {
  color: #0f766e;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.8;
}

.detail-main-copy h2,
.movie-info-box h2 {
  margin: 28px 0 12px;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.detail-main-copy p {
  color: #334155;
  font-size: 16px;
  line-height: 2;
}

.movie-info-box h2 {
  margin-top: 0;
}

.movie-info-box dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 10px;
  margin: 0;
}

.movie-info-box dt {
  color: #64748b;
  font-weight: 700;
}

.movie-info-box dd {
  margin: 0;
  color: #111827;
}

.movie-info-box a {
  color: #0f766e;
  font-weight: 800;
}

.search-page-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.search-page-form input {
  width: min(420px, 100%);
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1;
}

.footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.footer-brand p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.footer-nav a:hover {
  color: #2dd4bf;
}

.copyright {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding: 22px 0;
  color: #64748b;
  text-align: center;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1024px) {
  .site-nav {
    gap: 16px;
  }

  .nav-links {
    gap: 14px;
  }

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

  .watch-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: start;
  }

  .detail-cover {
    height: 280px;
  }
}

@media (max-width: 760px) {
  .site-nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #334155;
  }

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

  .nav-search {
    width: 100%;
    margin-left: 0;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-slider {
    min-height: 560px;
    height: 78vh;
  }

  .hero-content {
    padding: 44px 22px 76px;
  }

  .hero-arrow {
    display: none;
  }

  .page-container {
    width: min(100% - 28px, 1280px);
  }

  .page-hero {
    padding: 30px 22px;
  }

  .grid-three,
  .grid-four,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .poster-wrap,
  .movie-card-small .poster-wrap,
  .movie-card-large .poster-wrap {
    height: 220px;
  }

  .ranking-section {
    padding: 22px;
  }

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

  .ranking-item img {
    width: 88px;
    height: 62px;
  }

  .ranking-score {
    grid-column: 3;
  }

  .detail-side {
    display: block;
  }

  .detail-cover {
    height: 360px;
  }

  .detail-main-copy,
  .movie-info-box {
    padding: 22px;
  }
}
