:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --secondary-50: #fff7ed;
  --secondary-100: #ffedd5;
  --secondary-600: #ea580c;
  --secondary-700: #c2410c;
  --accent-500: #eab308;
  --success-600: #16a34a;
  --dark-300: #cbd5e1;
  --dark-400: #94a3b8;
  --dark-500: #64748b;
  --dark-700: #334155;
  --dark-800: #1e293b;
  --dark-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--dark-800);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
}

.logo-text {
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--dark-700);
  font-weight: 650;
}

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

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

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--dark-800);
  background: var(--primary-50);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--dark-700);
  font-weight: 650;
}

.mobile-nav a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

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

.home-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--dark-900);
}

.hero-stage,
.hero-slide {
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
  padding: 80px 0;
}

.hero-kicker,
.cover-type,
.cover-region,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-kicker {
  padding: 8px 16px;
  margin-bottom: 22px;
  color: #fff;
  background: var(--secondary-600);
  box-shadow: var(--shadow-medium);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #e5e7eb;
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  padding: 6px 12px;
  color: var(--primary-800);
  background: rgba(219, 234, 254, 0.92);
  font-size: 13px;
}

.hero-actions,
.center-actions,
.page-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.btn-primary {
  color: #fff;
  background: var(--primary-600);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--primary-700);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
  color: #fff;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.55);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-2px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 42px;
  background: #fff;
}

.content-section {
  padding: 76px 0;
}

.wide-section {
  padding: 76px 0;
}

.warm-section {
  background: linear-gradient(180deg, var(--secondary-50), #fff);
}

.cool-section {
  background: linear-gradient(180deg, var(--primary-50), #fff);
}

.section-heading,
.horizontal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.section-heading {
  justify-content: flex-start;
}

.section-heading h2 {
  margin: 0;
  color: var(--dark-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--dark-500);
}

.section-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: var(--shadow-soft);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  height: 230px;
  display: block;
  overflow: hidden;
  background: var(--dark-900);
}

.movie-card-large .movie-cover {
  height: 320px;
}

.movie-card-small .movie-cover {
  height: 190px;
}

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

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

.cover-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.82));
}

.cover-region,
.cover-type {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
}

.cover-region {
  left: 12px;
  background: var(--primary-600);
}

.cover-type {
  right: 12px;
  background: var(--secondary-600);
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .cover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
  margin: 0;
  color: var(--dark-800);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-meta {
  margin: 8px 0 0;
  color: var(--dark-500);
  font-size: 14px;
}

.movie-line {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--dark-700);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horizontal-row {
  display: flex;
  gap: 24px;
  padding: 4px 4px 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.horizontal-card {
  flex: 0 0 320px;
}

.scroll-controls {
  display: flex;
  gap: 10px;
}

.scroll-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--dark-700);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.scroll-controls button:hover {
  box-shadow: var(--shadow-medium);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.tab-button {
  border: 0;
  border-radius: 14px;
  padding: 12px 22px;
  color: var(--dark-700);
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 750;
}

.tab-button.active,
.tab-button:hover {
  color: #fff;
  background: var(--primary-600);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.home-search-panel {
  margin-top: -54px;
  position: relative;
  z-index: 8;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-strong);
}

.search-card h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.search-card p {
  margin: 0;
  color: var(--dark-500);
}

.inline-search,
.search-tools {
  display: flex;
  gap: 10px;
}

.inline-search input,
.search-tools input,
.search-tools select {
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.inline-search input {
  flex: 1;
}

.inline-search button,
.search-tools button {
  border: 0;
  border-radius: 14px;
  padding: 12px 20px;
  color: #fff;
  background: var(--primary-600);
  font-weight: 800;
  cursor: pointer;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.gradient-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-600), #9a3412);
}

.gradient-dark {
  background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
}

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

.category-card a {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.category-thumbs {
  height: 190px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--dark-900);
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-copy {
  padding: 22px;
}

.category-copy h2 {
  margin: 0 0 10px;
  color: var(--dark-900);
}

.category-copy p {
  min-height: 54px;
  margin: 0 0 14px;
  color: var(--dark-500);
}

.category-copy span {
  color: var(--primary-600);
  font-weight: 800;
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

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

.ranking-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.ranking-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary-600), var(--accent-500));
  font-weight: 900;
}

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

.ranking-copy strong,
.ranking-copy em {
  display: block;
}

.ranking-copy strong {
  color: var(--dark-900);
  font-size: 16px;
}

.ranking-copy em {
  margin-top: 4px;
  color: var(--dark-500);
  font-size: 13px;
  font-style: normal;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
}

.breadcrumbs a:hover {
  color: #fff;
}

.detail-hero {
  padding: 62px 0;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  width: 260px;
  height: 360px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
}

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

.detail-meta {
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: 18px;
}

.detail-one-line {
  max-width: 850px;
  margin: 24px 0 0;
  color: #f8fafc;
  font-size: 20px;
}

.player-section {
  padding: 70px 0 36px;
}

.player-section h2 {
  margin: 0 0 20px;
  color: var(--dark-900);
  font-size: 30px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-strong);
}

.video-player,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-player {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}

.player-cover span {
  position: absolute;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--primary-600);
  font-size: 34px;
  box-shadow: var(--shadow-strong);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 36px 0 76px;
}

.story-card {
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  margin: 0 0 12px;
  color: var(--dark-900);
}

.story-card p {
  margin: 0;
  color: var(--dark-700);
}

.search-section {
  padding-top: 52px;
}

.search-tools {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr) auto;
  margin-bottom: 26px;
}

.site-footer {
  color: var(--dark-300);
  background: var(--dark-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding: 58px 0 44px;
}

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

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

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

.footer-logo {
  margin-bottom: 16px;
  color: #fff;
  font-size: 22px;
}

.footer-bottom {
  padding: 22px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--dark-400);
  text-align: center;
}

@media (max-width: 1100px) {
  .three-cols,
  .four-cols,
  .category-grid,
  .ranking-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-layout,
  .search-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-hero,
  .hero-stage,
  .hero-slide {
    min-height: 540px;
  }

  .hero-copy {
    padding: 66px 0 92px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-panel {
    margin-top: 0;
    padding-top: 24px;
  }

  .search-card,
  .inline-search,
  .detail-layout,
  .detail-content,
  .search-tools,
  .three-cols,
  .four-cols,
  .category-grid,
  .ranking-page-list {
    grid-template-columns: 1fr;
  }

  .inline-search,
  .search-tools {
    flex-direction: column;
  }

  .section-heading,
  .horizontal-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-poster {
    width: 210px;
    height: 300px;
  }

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

  .ranking-item {
    grid-template-columns: 42px 62px 1fr;
  }

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

  .movie-cover,
  .movie-card-large .movie-cover,
  .movie-card-small .movie-cover {
    height: 260px;
  }
}
