:root {
  --dawn-50: #fff9f0;
  --dawn-100: #fff0d6;
  --dawn-200: #ffe4b8;
  --dawn-400: #ffc56b;
  --dawn-500: #ffb347;
  --dawn-600: #ff9f24;
  --dawn-700: #f58700;
  --morning-500: #0d96f8;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 52%, #fff9f0 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dawn-600);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--dawn-700);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-500), #f97316);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 159, 36, 0.25);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a {
  color: var(--ink-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--dawn-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search {
  display: flex;
  align-items: center;
  width: 270px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--dawn-500);
  box-shadow: 0 0 0 4px rgba(255, 228, 184, 0.8);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 0 9px 16px;
  border: 0;
  outline: 0;
  color: var(--ink-900);
}

.header-search button {
  padding: 9px 16px;
  border: 0;
  color: #ffffff;
  background: var(--dawn-600);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink-700);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--ink-700);
  font-weight: 600;
}

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

.hero {
  position: relative;
  height: 60vh;
  min-height: 460px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px 64px;
  color: #ffffff;
}

.hero-content h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
}

.hero-badges,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges {
  margin-bottom: 26px;
}

.hero-badges span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--ink-700);
  background: var(--dawn-50);
  font-size: 13px;
  font-weight: 700;
}

.hero-badges span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.hero-badges span:first-child {
  background: var(--dawn-500);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-500), #f97316);
  box-shadow: 0 12px 28px rgba(255, 159, 36, 0.32);
}

.btn-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 44px;
  background: var(--dawn-500);
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px 72px;
}

.content-section {
  margin-top: 56px;
}

.content-section:first-child {
  margin-top: 0;
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ink-600);
}

.section-more {
  color: var(--dawn-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card a {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dawn-100), #eff6ff);
}

.compact .poster-wrap {
  aspect-ratio: 4 / 5;
}

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

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

.poster-year {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #d1d5db;
}

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

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-channel {
  margin-top: auto;
  color: var(--dawn-700);
  font-size: 13px;
  font-weight: 800;
}

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-500), var(--morning-500));
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -52px;
  bottom: -64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

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

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  color: var(--ink-900);
  background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--dawn-500);
  box-shadow: 0 0 0 4px rgba(255, 228, 184, 0.75);
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-500), #f97316);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 62px 16px;
}

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

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ink-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--dawn-700);
  font-weight: 800;
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.detail-lead {
  margin: 0 0 20px;
  color: var(--ink-600);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-700);
  background: var(--dawn-50);
  font-weight: 800;
}

.player-shell {
  margin-top: 36px;
  border-radius: 24px;
  overflow: hidden;
  background: #05070d;
  box-shadow: var(--shadow-hover);
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover span {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-500), #f97316);
  font-size: 34px;
  box-shadow: 0 18px 45px rgba(255, 159, 36, 0.34);
}

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

.text-block {
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.text-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.text-block p {
  margin: 0;
  color: var(--ink-700);
  font-size: 16px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-500), #f97316);
  border-radius: 999px;
  font-weight: 900;
}

.rank-thumb {
  width: 96px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--dawn-50);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy h2,
.rank-copy h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 900;
}

.rank-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-600);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-panel {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.empty-state {
  display: none;
  padding: 32px;
  border: 1px dashed #d1d5db;
  border-radius: 20px;
  color: var(--ink-600);
  text-align: center;
  background: #ffffff;
}

.empty-state.is-visible {
  display: block;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 16px;
}

.brand-footer {
  color: var(--dawn-400);
}

.footer-brand p {
  max-width: 360px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

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

.site-footer li {
  margin: 8px 0;
}

.site-footer a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--dawn-400);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
}

@media (min-width: 700px) {
  .filter-bar,
  .search-panel {
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
  }

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

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

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    height: 70vh;
    min-height: 560px;
  }

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

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

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

  .detail-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: start;
  }

  .desktop-nav {
    display: flex;
  }
}

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

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 700px) {
  .header-search {
    display: none;
  }

  .hero-content {
    padding-bottom: 54px;
  }

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

  .rank-item {
    grid-template-columns: 36px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-num {
    width: 36px;
    height: 36px;
  }

  .rank-thumb {
    width: 72px;
  }

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

  .card-body {
    padding: 13px;
  }

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