:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --orange-50: #fff7ed;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-xl: 20px;
  --radius-2xl: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
  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;
}

.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.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

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

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  background: linear-gradient(90deg, var(--teal-600), var(--cyan-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--gray-500);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--teal-600);
  background: var(--teal-50);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-100);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
  border-top: 1px solid var(--gray-200);
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, var(--teal-600), var(--cyan-600));
}

.hero-section {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.78) 2px, transparent 3px),
    radial-gradient(circle at 52px 52px, rgba(255, 255, 255, 0.52) 2px, transparent 3px);
  background-size: 72px 72px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 44px;
  padding: 72px 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal-600);
  background: var(--teal-50);
}

.hero-search,
.search-panel,
.inline-filter {
  display: flex;
  gap: 10px;
  width: min(100%, 640px);
}

.hero-search input,
.search-panel input,
.search-panel select,
.inline-filter input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  outline: none;
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--gray-900);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  color: var(--teal-600);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  box-shadow: 0 16px 35px rgba(13, 148, 136, 0.25);
}

.hero-section .primary-button {
  color: var(--teal-600);
  background: var(--white);
}

.ghost-button {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.hero-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-slide {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-slide:first-child {
  grid-row: span 2;
  min-height: 390px;
}

.hero-slide:hover,
.hero-slide.is-active {
  transform: translateY(-4px);
  box-shadow: 0 28px 68px rgba(15, 23, 42, 0.24);
}

.hero-slide span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.section-block {
  padding: 74px 0;
}

.warm-block {
  background: linear-gradient(135deg, var(--amber-50), var(--orange-50));
}

.cool-block {
  background: linear-gradient(135deg, var(--teal-50), #ecfeff);
}

.section-heading {
  margin-bottom: 30px;
}

.center-heading {
  text-align: center;
}

.center-heading .eyebrow {
  margin: 0 auto;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-heading p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--gray-600);
}

.split-heading a {
  color: var(--teal-600);
  font-weight: 800;
}

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

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 238px;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(6, 182, 212, 0.12));
}

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

.category-card:hover::before {
  opacity: 1;
}

.category-card-main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 24px;
}

.category-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
}

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

.category-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: 14px;
}

.category-card strong,
.category-card em {
  color: var(--gray-700);
  font-style: normal;
  font-size: 14px;
}

.category-card em {
  color: var(--teal-600);
  font-weight: 800;
}

.category-samples {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 24px 24px;
}

.category-samples span,
.tag-row span {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--teal-600);
  background: var(--teal-50);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-cover-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.cover-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #0f766e, #0891b2 52%, #1e293b);
}

.cover-poster {
  aspect-ratio: 3 / 4;
}

.cover-hero {
  height: 100%;
  min-height: inherit;
}

.cover-frame img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 48%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  color: var(--white);
  text-align: center;
}

.cover-fallback span {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.cover-fallback small {
  color: rgba(255, 255, 255, 0.78);
}

.play-badge {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: var(--teal-600);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--teal-600);
}

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

.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span,
.detail-meta span,
.rank-meta span,
.source-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gray-100);
}

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

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

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

.rank-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  font-size: 20px;
  font-weight: 900;
}

.rank-content {
  min-width: 0;
}

.rank-title {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.cta-section {
  padding: 78px 0;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.cta-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 46px);
}

.cta-inner p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
}

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

.compact-hero {
  min-height: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--white);
  text-decoration: underline;
}

.inline-filter {
  margin-top: 20px;
}

.result-count {
  margin-bottom: 18px;
  color: var(--gray-600);
  font-weight: 800;
}

.search-panel {
  flex-wrap: wrap;
  width: 100%;
  margin-top: 22px;
}

.search-panel input {
  flex: 2 1 320px;
}

.search-panel select {
  flex: 1 1 180px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-position: center;
  background-size: cover;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(20, 184, 166, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.68));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  padding: 72px 0;
}

.detail-cover {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
  max-width: 900px;
}

.detail-copy p {
  font-size: 20px;
}

.detail-meta {
  margin: 18px 0;
}

.detail-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
  margin-bottom: 24px;
}

.player-panel,
.content-card {
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player-panel {
  overflow: hidden;
}

.player-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.player-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(22px, 3vw, 32px);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle, rgba(20, 184, 166, 0.42), transparent 32%),
    rgba(2, 6, 23, 0.64);
  cursor: pointer;
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--teal-600);
  background: var(--white);
  font-size: 32px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.play-overlay strong {
  font-size: 22px;
}

.play-overlay small,
.player-tip {
  color: rgba(255, 255, 255, 0.78);
}

.player-tip {
  margin: 0;
  padding: 16px 24px 24px;
  color: var(--gray-600);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
}

.accent-card {
  background: linear-gradient(135deg, var(--amber-50), var(--white));
}

.standalone-card {
  max-width: 920px;
}

.standalone-card p + p {
  margin-top: 16px;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding: 54px 0;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

.footer-brand {
  margin-bottom: 16px;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
}

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

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

  .hero-inner,
  .detail-hero-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 300px;
  }

  .category-grid,
  .wide-category-grid,
  .movie-grid,
  .featured-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-section {
    min-height: auto;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-featured,
  .category-grid,
  .wide-category-grid,
  .movie-grid,
  .featured-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide:first-child {
    min-height: 260px;
  }

  .hero-search,
  .search-panel,
  .inline-filter,
  .split-heading,
  .player-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .section-block,
  .page-hero {
    padding: 48px 0;
  }

  .detail-hero-inner {
    padding: 48px 0;
  }
}
