
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --orange: #f97316;
  --red: #ef4444;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 54px rgba(15, 23, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f9fafb;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", 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: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.26);
  font-size: 14px;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.header-search,
.mobile-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 230px;
  padding: 9px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--white);
  background: var(--blue);
  font-weight: 700;
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  padding: 8px 11px;
  color: #374151;
  font-size: 20px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: var(--white);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 30%), linear-gradient(120deg, #2563eb 0%, #06b6d4 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -12% -36% 28%;
  height: 340px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  filter: blur(20px);
  transform: rotate(-9deg);
}

.hero-container {
  position: relative;
  z-index: 1;
  padding: 72px 0 54px;
}

.hero-slider {
  min-height: 430px;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 46px;
}

.hero-slide.active {
  display: grid;
  animation: fadeSlide 0.5s ease both;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--blue);
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 760px;
  margin: 12px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(22px, 3.6vw, 36px);
  line-height: 1.2;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags a,
.hero-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

.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;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: var(--blue);
  background: var(--white);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero-art {
  position: relative;
  display: block;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  aspect-ratio: 16 / 11;
  box-shadow: var(--shadow-lg);
  background: rgba(15, 23, 42, 0.18);
}

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

.hero-art:hover img {
  transform: scale(1.06);
}

.hero-art span {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(17, 24, 39, 0.72);
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 22px;
}

.hero-dot {
  width: 32px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  background: var(--white);
}

.section {
  padding: 58px 0;
}

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

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2,
.side-card h2,
.ranking-aside h2,
.archive-group h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  color: #111827;
}

.section-head > a,
.side-more {
  color: var(--blue);
  font-weight: 800;
}

.section-head.light h2,
.section-head.light .section-kicker,
.section-head.light > a {
  color: var(--white);
}

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

.category-tile,
.category-panel {
  display: block;
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-tile strong,
.category-panel-title {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.category-tile span,
.category-panel p {
  color: var(--muted);
  font-size: 14px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  border-radius: 999px;
  padding: 6px 10px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dbeafe;
}

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

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

.movie-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.movie-category {
  top: 12px;
  right: 12px;
  background: var(--blue);
}

.rank-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.movie-card-body {
  padding: 18px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover {
  color: var(--blue);
}

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

.movie-meta {
  justify-content: space-between;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.hot-band {
  padding: 58px 0;
  color: var(--white);
  background: linear-gradient(115deg, var(--orange), var(--red));
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.small-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hot-band .small-card:hover {
  background: rgba(255, 255, 255, 0.23);
  transform: translateY(-2px);
}

.small-card img {
  width: 88px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.small-card-info {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.small-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

.small-card em {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-style: normal;
}

.side-card .small-card,
.ranking-aside .small-card {
  background: #f8fafc;
}

.side-card .small-card:hover,
.ranking-aside .small-card:hover {
  background: #eff6ff;
}

.side-card .small-card em,
.ranking-aside .small-card em {
  color: var(--muted);
}

.small-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.movie-rail .movie-card {
  scroll-snap-align: start;
}

.page-hero,
.detail-top {
  color: var(--white);
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}

.page-hero {
  padding: 48px 0 52px;
}

.orange-hero {
  background: linear-gradient(115deg, var(--orange), var(--red));
}

.page-hero h1 {
  margin: 12px 0 12px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.14;
  font-weight: 900;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.detail-top {
  padding: 18px 0;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: 1fr 190px 190px;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.filter-bar input,
.filter-bar select,
.search-panel input {
  width: 100%;
  padding: 11px 14px;
}

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

.empty-result,
.search-title {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 800;
}

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

.ranking-aside,
.side-card {
  position: sticky;
  top: 88px;
  border-radius: 20px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ranking-aside h2,
.side-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

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

.side-more {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.player-card,
.detail-side .side-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.play-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
  font-size: 30px;
  transform: translateX(3px);
}

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

.player-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.82);
  text-align: center;
  font-weight: 800;
}

.player-error[hidden] {
  display: none;
}

.detail-content {
  padding: 28px;
}

.detail-content h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
}

.detail-meta {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.detail-meta a,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  background: #f3f4f6;
}

.detail-meta a {
  color: var(--blue);
  background: #eff6ff;
}

.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}

.detail-block h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 900;
}

.detail-block p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.review-block p {
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 16px;
  background: #eff6ff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.archive-layout {
  display: grid;
  gap: 22px;
}

.archive-group {
  border-radius: 20px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.archive-group h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.archive-group h2 a {
  color: var(--blue);
}

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

.archive-links a {
  display: grid;
  min-width: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.archive-links a:hover {
  background: #eff6ff;
}

.archive-links span,
.archive-links em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-links span {
  font-weight: 800;
}

.archive-links em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 26px;
  padding: 40px 0;
}

.footer-logo {
  margin-bottom: 10px;
  color: var(--white);
}

.site-footer p {
  max-width: 460px;
  margin: 0;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }
  .movie-grid,
  .category-movie-grid,
  .category-grid,
  .category-panel-grid,
  .archive-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ranking-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .ranking-aside,
  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-container {
    padding: 48px 0 38px;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-art {
    max-width: 520px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .movie-grid,
  .category-movie-grid,
  .featured-grid,
  .category-grid,
  .category-panel-grid,
  .rank-grid,
  .archive-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }
  .site-logo {
    font-size: 18px;
  }
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }
  .mobile-search input {
    width: 100%;
  }
  .hero-copy p,
  .page-hero p {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .movie-grid,
  .category-movie-grid,
  .featured-grid,
  .category-grid,
  .category-panel-grid,
  .rank-grid,
  .archive-links {
    grid-template-columns: 1fr;
  }
  .small-card img {
    width: 78px;
    height: 62px;
  }
  .detail-content {
    padding: 20px;
  }
  .search-panel {
    grid-template-columns: 1fr;
  }
}
