/*
  高清剧集大全 - Static movie site styles
  Visual language follows the uploaded build: white sticky navigation, ocean/island gradients,
  large poster hero, rounded cards, soft shadows, overlay cards and responsive grids.
*/
:root {
  --color-ocean-50: #f0f9ff;
  --color-ocean-100: #e0f2fe;
  --color-ocean-400: #38bdf8;
  --color-ocean-600: #0284c7;
  --color-ocean-700: #0369a1;
  --color-island-500: #22c55e;
  --color-island-600: #16a34a;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-900: #111827;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-gray-900);
  background: var(--color-gray-50);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}

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.96);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--container));
  height: 64px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--color-ocean-600);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.1);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.brand-mark svg path:last-child {
  fill: #ffffff;
}

.brand-text,
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--color-ocean-600), var(--color-island-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav,
.desktop-cats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a,
.desktop-cats a,
.mobile-nav a {
  color: var(--color-gray-600);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.desktop-cats a:hover,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--color-ocean-600);
}

.desktop-cats {
  gap: 12px;
}

.desktop-cats a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-ocean-50);
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-gray-600);
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 8px 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: var(--color-ocean-50);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.12)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.05) 62%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - var(--container)) / 2));
  right: 24px;
  bottom: 72px;
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  color: var(--color-ocean-100);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-ocean-600), var(--color-island-600));
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 72px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.35);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(2, 132, 199, 0.7);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.main-section,
.page-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 56px 0;
}

.page-hero {
  padding: 56px 0 28px;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 35%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 34%),
    #ffffff;
  border-bottom: 1px solid var(--color-gray-200);
}

.page-hero-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--color-gray-600);
  font-size: 18px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--color-gray-600);
}

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

.section-link:hover {
  color: var(--color-ocean-700);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 260px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

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

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

.movie-card {
  display: block;
  min-width: 0;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.26), rgba(22, 163, 74, 0.22)),
    var(--color-gray-200);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
  opacity: 0.82;
}

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.92);
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
}

.movie-info {
  display: block;
  padding: 14px;
}

.movie-info strong,
.category-card strong,
.rank-list strong {
  display: block;
  overflow: hidden;
  color: var(--color-gray-900);
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info em {
  display: block;
  margin-top: 4px;
  color: var(--color-gray-500);
  font-size: 13px;
  font-style: normal;
}

.card-line {
  display: -webkit-box;
  min-height: 42px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--color-gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span,
.meta-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--color-ocean-700);
  background: var(--color-ocean-50);
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--color-island-600);
  background: rgba(34, 197, 94, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.category-card p {
  color: var(--color-gray-600);
}

.filters {
  display: grid;
  grid-template-columns: 1fr 160px 160px 160px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filters input,
.filters select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  color: var(--color-gray-900);
  background: #ffffff;
  outline: none;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--color-ocean-600);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.filter-summary {
  margin: -10px 0 24px;
  color: var(--color-gray-600);
  font-size: 14px;
}

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

.rank-list,
.side-panel,
.content-card {
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-list {
  overflow: hidden;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--color-gray-100);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-number {
  color: var(--color-ocean-600);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-gray-200);
}

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

.rank-list p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--color-gray-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-panel {
  position: sticky;
  top: 88px;
  padding: 20px;
  align-self: start;
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.side-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-panel a {
  color: var(--color-gray-700);
}

.side-panel a:hover {
  color: var(--color-ocean-600);
}

.player-shell {
  background: #000000;
}

.player-top {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 14px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.back-link:hover {
  color: #ffffff;
}

.video-box {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-message {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 2;
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 14px;
}

.player-message.is-visible {
  display: block;
}

.detail-main {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--color-gray-600);
}

.content-card {
  padding: 22px;
  margin-bottom: 18px;
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.content-card p {
  margin: 0;
  color: var(--color-gray-700);
  white-space: pre-line;
}

.related-card {
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.related-card:last-child {
  margin-bottom: 0;
}

.related-card img {
  width: 98px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--color-gray-200);
}

.related-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card span {
  color: var(--color-gray-500);
  font-size: 13px;
}

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

.empty-state {
  display: none;
  padding: 40px;
  border-radius: var(--radius-xl);
  color: var(--color-gray-600);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

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

.site-footer {
  color: var(--color-gray-300);
  background: #111827;
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 14px;
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

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

.site-footer ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-gray-500);
  font-size: 14px;
  text-align: center;
}

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero-controls,
  .hero-arrow {
    display: none;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 42px;
  }

  .section-heading,
  .rank-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

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

  .side-panel {
    position: static;
  }
}

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

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

  .movie-grid,
  .category-grid,
  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .card-line,
  .tag-row {
    display: none;
  }

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

  .rank-item {
    grid-template-columns: 42px 76px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rank-number {
    font-size: 20px;
  }
}
