:root {
  --primary: #0284c7;
  --primary-deep: #0369a1;
  --primary-soft: #e0f2fe;
  --secondary: #0f172a;
  --secondary-light: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --page: #f8fafc;
  --card: #ffffff;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--secondary);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 36%, #f8fafc 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header:hover {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--secondary);
  white-space: nowrap;
}

.site-header:not(.is-scrolled):not(:hover) .brand,
.site-header:not(.is-scrolled):not(:hover) .desktop-nav a,
.site-header:not(.is-scrolled):not(:hover) .mobile-toggle span {
  color: var(--white);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: var(--white);
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.34);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-panel nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--secondary-light);
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel nav a:hover,
.mobile-panel nav a.is-active {
  color: var(--primary-deep);
  background: var(--primary-soft);
}

.site-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 28vw);
}

.site-search input,
.filter-panel input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 999px;
  padding: 11px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--secondary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.filter-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.site-search button,
.primary-button,
.ghost-button,
.section-more,
.filter-chips button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-search button,
.primary-button {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: var(--white);
  padding: 11px 18px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.28);
  white-space: nowrap;
}

.site-search button:hover,
.primary-button:hover,
.section-more:hover,
.filter-chips button:hover {
  transform: translateY(-2px);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, calc(100vw - 32px));
  max-height: 450px;
  overflow: auto;
  padding: 10px;
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--primary-soft);
}

.search-result-item img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong,
.search-result-item span {
  display: block;
}

.search-result-item strong {
  font-size: 14px;
  margin-bottom: 4px;
}

.search-result-item span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.mobile-panel.is-open {
  display: grid;
  gap: 16px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
}

.mobile-search {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #020617;
  color: var(--white);
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(14, 165, 233, 0.38), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.64) 46%, rgba(2, 6, 23, 0.26)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.84));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 78vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
}

.hero-panel {
  width: min(700px, 100%);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.34));
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.44);
  backdrop-filter: blur(18px);
}

.hero-site-title,
.eyebrow {
  margin: 0 0 10px;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 900;
}

.hero-panel h1,
.hero-panel h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero-panel h1,
.hero-panel h2 {
  font-size: clamp(40px, 7vw, 78px);
}

.hero-summary,
.hero-panel > p:not(.eyebrow):not(.hero-site-title) {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(186, 230, 253, 0.28);
}

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

.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.ghost-button {
  padding: 11px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: max(18px, calc((100vw - 1180px) / 2 - 72px));
}

.hero-next {
  right: max(18px, calc((100vw - 1180px) / 2 - 72px));
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.quick-entry,
.content-section,
.filter-panel,
.detail-layout,
.player-section,
.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-entry {
  margin-top: -40px;
  position: relative;
  z-index: 6;
}

.quick-card,
.filter-panel,
.detail-cover-card,
.detail-article,
.category-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.quick-card {
  padding: clamp(22px, 3vw, 34px);
}

.quick-card h2,
.section-head h2,
.category-card h2,
.detail-article h2 {
  margin: 0;
  letter-spacing: -0.04em;
  color: var(--secondary);
}

.quick-card h2,
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 42px);
}

.quick-links,
.footer-links,
.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links {
  margin-top: 20px;
}

.quick-links a,
.footer-links a,
.category-sample-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--secondary-light);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quick-links a {
  padding: 10px 15px;
  font-weight: 800;
}

.quick-links a:hover,
.footer-links a:hover,
.category-sample-links a:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

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

.page-section {
  padding-top: 36px;
}

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

.section-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.8;
}

.section-more {
  padding: 11px 17px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 900;
  white-space: nowrap;
}

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

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: var(--shadow);
}

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

.cover-art {
  position: relative;
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 70% 25%, rgba(56, 189, 248, 0.34), transparent 36%),
    linear-gradient(135deg, #0f172a, #0369a1);
}

.cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.2s ease;
}

.cover-art img.image-missing {
  opacity: 0;
}

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

.movie-card-cover {
  aspect-ratio: 16 / 9;
}

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.62);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.movie-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.movie-meta {
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.tag-row span {
  padding: 5px 8px;
  color: #475569;
  background: #f1f5f9;
}

.ranking-section {
  margin-top: 78px;
  padding: 72px max(16px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 20% 10%, rgba(14, 165, 233, 0.32), transparent 24%),
    linear-gradient(135deg, #0f172a, #075985);
  color: var(--white);
}

.standalone-ranking {
  margin-top: 32px;
}

.section-head.light h2,
.section-head.light p,
.light .eyebrow {
  color: var(--white);
}

.light-link {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

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

.ranking-item a {
  display: grid;
  grid-template-columns: 44px 78px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.ranking-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--primary-deep);
  font-weight: 950;
}

.ranking-cover {
  width: 78px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
}

.ranking-text strong {
  display: block;
  color: var(--white);
  line-height: 1.35;
}

.ranking-text em {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-style: normal;
}

.page-main {
  padding-top: 110px;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 70px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 25%, rgba(14, 165, 233, 0.42), transparent 28%),
    linear-gradient(135deg, #0f172a, #0c4a6e);
  box-shadow: var(--shadow);
}

.page-hero h1,
.detail-copy h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p:not(.eyebrow),
.detail-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
}

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

.category-card {
  padding: 22px;
}

.category-card-main h2 {
  font-size: 28px;
  margin-top: 12px;
}

.category-card-main p {
  color: var(--muted);
  line-height: 1.8;
}

.category-label {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 900;
  font-size: 12px;
}

.category-sample-links {
  margin-top: 18px;
}

.category-sample-links a,
.footer-links a {
  padding: 7px 10px;
  font-size: 13px;
}

.filter-panel {
  margin-top: 28px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  padding: 9px 13px;
  background: #f1f5f9;
  color: var(--secondary-light);
  font-weight: 800;
}

.filter-chips button.is-active {
  background: var(--primary);
  color: var(--white);
}

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

.breadcrumb a {
  color: var(--primary-deep);
  font-weight: 800;
}

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

.player-section {
  margin-top: 26px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.30), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-wrap.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.38);
  font-size: 30px;
  padding-left: 4px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.detail-cover-card,
.detail-article {
  padding: 20px;
}

.detail-cover {
  aspect-ratio: 16 / 10;
  border-radius: 22px;
}

.detail-meta-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.detail-meta-list p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-meta-list strong {
  color: var(--secondary);
}

.detail-meta-list span {
  color: var(--muted);
  text-align: right;
}

.detail-article h2 {
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 12px;
}

.detail-article h2:not(:first-child) {
  margin-top: 28px;
}

.detail-article p {
  margin: 0;
  color: var(--secondary-light);
  line-height: 2;
  font-size: 17px;
}

.related-section {
  padding-bottom: 60px;
}

.site-footer {
  margin-top: 84px;
  padding: 44px 0 28px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.footer-inner p {
  max-width: 460px;
  line-height: 1.8;
}

.footer-links {
  align-content: start;
  justify-content: end;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.54);
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-inner > .site-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-arrow {
    display: none;
  }

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

  .section-head,
  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 66px;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 96px;
    align-items: end;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-panel h1,
  .hero-panel h2 {
    font-size: 40px;
  }

  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item a {
    grid-template-columns: 38px 72px 1fr;
  }

  .page-main {
    padding-top: 90px;
  }

  .page-hero,
  .detail-hero {
    padding: 28px;
  }

  .player-wrap {
    border-radius: 20px;
  }

  .detail-article p {
    font-size: 15px;
  }
}
