:root {
  color-scheme: light;
  --bg: #f7faf9;
  --panel: #ffffff;
  --ink: #101827;
  --muted: #5f6b7a;
  --soft: #e8f6f0;
  --line: #e5ebe9;
  --brand: #059669;
  --brand-dark: #047857;
  --brand-soft: #d1fae5;
  --teal: #0f766e;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.24);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-dark);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-dark);
  border-radius: 999px;
}

main {
  width: 100%;
}

.hero-carousel {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 45%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.03);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.05));
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 620px;
  padding: 68px;
  color: #ffffff;
}

.hero-label,
.section-kicker,
.detail-label,
.directory-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy .hero-label {
  color: #d1fae5;
  background: rgba(5, 150, 105, 0.28);
  border: 1px solid rgba(209, 250, 229, 0.28);
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn,
.section-link,
.site-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.site-search button {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.24);
  cursor: pointer;
}

.primary-btn:hover,
.site-search button:hover,
.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.3);
}

.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 68px;
  bottom: 36px;
  display: flex;
  gap: 8px;
}

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

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

.hero-search-panel,
.side-panel,
.story-card,
.category-card,
.category-directory-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.hero-search-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-search-panel h2,
.side-panel h2,
.story-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.site-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.site-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 10px 0 14px;
  color: var(--ink);
  background: transparent;
}

.hero-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-mini-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-weight: 800;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 54px auto;
}

.soft-panel {
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff, #effdf7);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

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

.section-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.section-heading p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  min-height: 42px;
  padding: 0 18px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  white-space: nowrap;
}

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

.category-card,
.category-directory-card {
  padding: 22px;
  overflow: hidden;
}

.category-card-main,
.category-directory-card > a {
  display: grid;
  gap: 10px;
}

.category-card-main span {
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 950;
}

.category-card-main strong,
.category-directory-card p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 500;
}

.category-samples,
.directory-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.category-samples a,
.directory-links a {
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.category-samples a:hover,
.directory-links a:hover {
  color: var(--brand-dark);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.12);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.64));
}

.year-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: #064e3b;
  background: rgba(209, 250, 229, 0.9);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-chip {
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(5, 150, 105, 0.94);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card-body h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.movie-card-body h2 a:hover {
  color: var(--brand-dark);
}

.movie-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  min-height: 48px;
  margin: 10px 0 0;
  color: #475569;
  line-height: 1.6;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 800;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 3 / 4;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact .movie-desc {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.side-panel {
  padding: 22px;
}

.side-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: clamp(36px, 7vw, 72px);
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 0%, rgba(20, 184, 166, 0.38), transparent 32%),
    linear-gradient(135deg, #064e3b, #0f172a 72%);
  box-shadow: var(--shadow);
}

.page-hero > span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.page-hero h1 {
  margin: 18px 0 12px;
  max-width: 850px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.page-hero .site-search {
  max-width: 620px;
  margin-top: 26px;
}

.category-page-hero {
  background:
    radial-gradient(circle at 84% 12%, rgba(16, 185, 129, 0.42), transparent 32%),
    linear-gradient(135deg, #052e2b, #0f172a 72%);
}

.ranking-hero {
  background:
    radial-gradient(circle at 82% 8%, rgba(245, 158, 11, 0.34), transparent 30%),
    linear-gradient(135deg, #111827, #064e3b 72%);
}

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

.category-directory-card h2 {
  margin: 10px 0 0;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

.breadcrumb strong {
  color: var(--ink);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.player-panel,
.detail-info {
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-panel {
  overflow: hidden;
}

.video-box {
  position: relative;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78));
  cursor: pointer;
}

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

.player-start-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.35);
}

.player-start span:last-child {
  font-weight: 950;
  font-size: 18px;
}

.player-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  color: #334155;
  font-weight: 800;
}

.player-title-row span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
}

.detail-info {
  padding: 30px;
}

.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.detail-one-line {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.detail-meta-list div {
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-meta-list dt {
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-tags {
  margin-top: 22px;
}

.wide-btn {
  width: 100%;
  margin-top: 24px;
}

.detail-text-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story-card {
  padding: 26px;
}

.story-card p {
  margin: 14px 0 0;
  color: #334155;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #111827 54%, #064e3b);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 30px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.footer-brand p,
.footer-column p {
  margin: 12px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.footer-column a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #6ee7b7;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  text-align: center;
}

.searchable-card.is-hidden,
.category-directory-card.is-hidden {
  display: none;
}

@media (max-width: 1100px) {
  .hero-carousel,
  .split-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-search-panel,
  .side-panel,
  .sticky-panel {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-carousel,
  .content-section,
  .page-hero,
  .detail-shell,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 34px 24px 82px;
    align-self: end;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .site-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .site-search input {
    min-height: 44px;
  }

  .movie-grid,
  .category-grid,
  .directory-grid,
  .movie-list-grid,
  .detail-text-section {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-info,
  .story-card,
  .soft-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .detail-meta-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
