body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 58%, #f8fafc 100%);
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

button,
a,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a 0%, #111827 54%, #020617 100%);
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

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

.nav-shell {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(34, 211, 238, 0.35);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav-links a,
.mobile-nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.78);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
}

.top-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  color: #ffffff;
  background: transparent;
}

.top-search input::placeholder {
  color: #94a3b8;
}

.top-search button,
.large-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 12px;
  padding: 9px 12px;
}

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

.mobile-brand {
  padding: 10px 12px;
  color: #22d3ee;
  font-weight: 800;
}

.mobile-nav a {
  display: block;
}

.hero-carousel {
  position: relative;
  height: min(72vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.18) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.08) 44%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

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

.hero-tags span,
.type-pill,
.year-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span:first-child,
.type-pill {
  background: #06b6d4;
  color: #ffffff;
}

.hero-tags span:not(:first-child),
.year-pill {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.filter-row,
.meta-line,
.footer-links,
.tagline,
.chip-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  padding: 13px 26px;
  box-shadow: 0 16px 28px rgba(6, 182, 212, 0.32);
}

.primary-btn.small {
  padding: 10px 18px;
  font-size: 14px;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: #ffffff;
}

.home-search-band {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  align-items: center;
  padding: 34px 0;
}

.search-band-inner h2,
.page-title-block h1,
.info-panel h1 {
  margin: 0;
  color: #0f172a;
  font-weight: 900;
}

.search-band-inner h2 {
  font-size: 32px;
}

.search-band-inner p,
.page-title-block p,
.section-head p,
.category-card-large p,
.category-mini-card p {
  color: #64748b;
  line-height: 1.8;
}

.large-search,
.search-page-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid #bae6fd;
  border-radius: 22px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.large-search input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 14px;
}

.content-section {
  margin: 68px 0;
}

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

.section-head > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #ecfeff;
  color: #0891b2;
  font-weight: 900;
}

.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}

.section-head p {
  grid-column: 2;
  margin: 0;
}

.section-more,
.text-link {
  color: #0891b2;
}

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

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

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

.movie-card,
.movie-row {
  color: inherit;
  text-decoration: none;
}

.movie-card {
  display: block;
  border-radius: 18px;
  transition: transform 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
  transition: opacity 0.25s ease;
}

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

.watch-icon,
.play-dot,
.overlay-play {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.watch-icon {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.type-pill {
  position: absolute;
  top: 12px;
  right: 12px;
}

.year-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.movie-card h3 {
  margin: 0 0 7px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tagline {
  gap: 6px;
  margin-top: 10px;
}

.tagline span,
.chip-group span {
  border-radius: 999px;
  background: #ecfeff;
  color: #0891b2;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.highlight-section,
.latest-section {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.latest-section {
  background: linear-gradient(135deg, #f5f3ff, #faf5ff);
}

.category-mini-grid,
.category-overview-grid,
.year-panels,
.detail-grid {
  display: grid;
  gap: 28px;
}

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

.category-mini-card,
.category-card-large,
.info-panel,
.side-card,
.filter-panel,
.search-workbench,
.year-panel {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.category-mini-card,
.category-card-large,
.filter-panel,
.search-workbench,
.year-panel,
.info-panel,
.side-card {
  padding: 26px;
}

.category-mini-card h3,
.category-card-large h2,
.year-panel h3,
.side-card h2,
.review-box h2,
.chip-group h2,
.detail-cover-text h2 {
  margin: 0 0 12px;
  color: #111827;
  font-weight: 900;
}

.mini-list,
.side-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.movie-row {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.row-poster {
  position: relative;
  flex: 0 0 150px;
  height: 92px;
  overflow: hidden;
  background: #0f172a;
}

.play-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-row:hover .play-dot {
  opacity: 1;
}

.row-content {
  min-width: 0;
  padding: 12px 14px 12px 0;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: #111827;
}

.row-title b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  font-size: 13px;
}

.row-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-content p {
  display: -webkit-box;
  margin: 0 0 6px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.year-panels {
  grid-template-columns: 1fr;
}

.year-panel {
  border-left: 5px solid #f97316;
}

.year-panel.amber {
  border-left-color: #f59e0b;
}

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

.long-list .movie-row {
  min-height: 112px;
}

.page-with-title {
  padding: 54px 0 72px;
}

.page-title-block {
  margin-bottom: 34px;
  padding: 36px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.page-title-block span {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #06b6d4;
  color: #ffffff;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 800;
}

.page-title-block h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}

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

.category-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #ffffff;
  font-weight: 900;
}

.sample-links {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
}

.sample-links a {
  color: #334155;
  text-decoration: none;
}

.sample-links a:hover {
  color: #0891b2;
}

.filter-row {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.filter-row label {
  display: grid;
  gap: 7px;
  flex: 1 1 240px;
  color: #334155;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: #ffffff;
  color: #0f172a;
}

.search-workbench {
  margin-bottom: 40px;
}

.search-results {
  margin-top: 26px;
}

.empty-search {
  border-radius: 18px;
  background: #f8fafc;
  color: #64748b;
  padding: 28px;
  text-align: center;
}

.detail-page {
  background: #f8fafc;
}

.detail-shell {
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  text-decoration: none;
}

.detail-grid {
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.25));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.overlay-play {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.96), rgba(37, 99, 235, 0.96));
  font-size: 30px;
  box-shadow: 0 18px 35px rgba(6, 182, 212, 0.35);
}

.overlay-title {
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.player::after {
  content: attr(data-status);
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: #ffffff;
  font-weight: 800;
}

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

.info-panel h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.meta-line {
  margin: 18px 0 22px;
}

.meta-line span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  padding: 6px 13px;
  font-size: 14px;
  font-weight: 800;
}

.lead-text {
  margin: 0 0 24px;
  color: #0f766e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.detail-cover-text {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 26px;
}

.detail-cover-text img {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.detail-cover-text p,
.review-box p {
  color: #475569;
  line-height: 1.9;
}

.review-box {
  margin: 24px 0;
  border-left: 5px solid #06b6d4;
  border-radius: 18px;
  background: #f8fafc;
  padding: 22px;
}

.chip-group h2 {
  font-size: 20px;
}

.detail-side {
  position: sticky;
  top: 92px;
}

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

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

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

.copyright {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .page-shell,
  .footer-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero-carousel {
    min-height: 560px;
    height: 68vh;
  }

  .hero-content {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .search-band-inner,
  .footer-shell,
  .category-mini-grid,
  .category-overview-grid,
  .detail-cover-text {
    grid-template-columns: 1fr;
  }

  .large-search,
  .search-page-form {
    flex-direction: column;
    border-radius: 20px;
  }

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

  .highlight-section,
  .latest-section,
  .page-title-block,
  .filter-panel,
  .search-workbench,
  .category-mini-card,
  .category-card-large,
  .info-panel,
  .side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head p {
    grid-column: 1 / -1;
  }

  .row-poster {
    flex-basis: 118px;
    height: 84px;
  }

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

@media (max-width: 480px) {
  .brand-text {
    font-size: 17px;
  }

  .feature-grid,
  .compact-grid,
  .library-grid,
  .movie-grid {
    grid-template-columns: 1fr;
  }

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