:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --primary: #52677c;
  --primary-dark: #334e68;
  --primary-light: #eef3f8;
  --accent: #ffc107;
  --accent-dark: #d49600;
  --danger: #ef4444;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 20px 45px rgba(15, 23, 42, 0.16);
  --radius: 18px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  box-shadow: 0 12px 20px rgba(82, 103, 124, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-text em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: var(--primary-dark);
  background: var(--primary-light);
}

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

.nav-search input,
.mobile-search input,
.big-search input {
  min-width: 230px;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(82, 103, 124, 0.14);
}

.nav-search button,
.mobile-search button,
.big-search button,
.filter-row button {
  border: 0;
  color: #ffffff;
  background: var(--primary-dark);
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.filter-row button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  background: var(--primary);
}

.menu-button {
  display: none;
  border: 0;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text);
  background: #f1f5f9;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.mobile-panel.open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 14px 16px 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
}

.mobile-links {
  display: grid;
  gap: 6px;
  padding: 8px 16px 16px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 193, 7, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.70) 48%, rgba(15, 23, 42, 0.30)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.90), rgba(15, 23, 42, 0.10));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 52px;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 26px;
  color: #e2e8f0;
  font-size: clamp(17px, 2.3vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.card-tags,
.tag-cloud,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #0f172a;
  background: var(--accent);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(20px);
  transition: transform 0.25s ease;
}

.hero-card:hover {
  transform: translateY(-5px) scale(1.01);
}

.hero-card .poster {
  border-radius: 18px;
}

.hero-card strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.hero-card span {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.hero-dot {
  width: 32px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 52px;
  background: var(--accent);
}

.main-flow,
.page-layout {
  padding: 54px 0;
}

.quick-section {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 54px;
}

.quick-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(82, 103, 124, 0.34);
  box-shadow: var(--shadow-medium);
}

.quick-card span {
  font-size: 18px;
  font-weight: 900;
}

.quick-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.section {
  margin-top: 54px;
}

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

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

.section-head.compact {
  align-items: center;
}

.section-head h2,
.page-title h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-more {
  min-width: max-content;
  color: var(--primary-dark);
  font-weight: 900;
}

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

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

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(82, 103, 124, 0.32);
  box-shadow: var(--shadow-medium);
}

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

.poster {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 193, 7, 0.40), transparent 32%),
    linear-gradient(135deg, #334e68, #0f172a);
}

.poster-mark {
  position: relative;
  z-index: 0;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  opacity: 0.82;
}

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

.movie-card:hover .poster img,
.hero-card:hover .poster img {
  transform: scale(1.06);
}

.card-content {
  padding: 14px;
}

.card-tags {
  margin-bottom: 10px;
}

.card-tags span {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: transparent;
}

.movie-card h3 {
  min-height: 44px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card-desc {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-title {
  max-width: 900px;
  margin-bottom: 34px;
}

.page-title p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 42px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  font-weight: 800;
}

.pagination strong {
  color: #ffffff;
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.link-panel {
  margin-top: 36px;
}

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

.category-grid a,
.notice-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: 0.2s ease;
}

.category-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(82, 103, 124, 0.35);
  box-shadow: var(--shadow-soft);
}

.category-grid strong {
  font-size: 18px;
}

.category-grid span,
.notice-card {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.notice-card {
  margin-top: 24px;
}

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

.rank-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.rank-item.top {
  border-color: rgba(255, 193, 7, 0.6);
}

.rank-link {
  display: grid;
  grid-template-columns: 56px 92px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-link .poster {
  border-radius: 14px;
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--primary-dark);
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.rank-item.top .rank-num {
  color: #0f172a;
  background: var(--accent);
}

.rank-item h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.rank-item p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.search-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}

.big-search {
  display: flex;
  gap: 10px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  font-size: 17px;
}

.filter-row {
  margin-top: 14px;
}

.filter-row button {
  color: var(--primary-dark);
  background: var(--primary-light);
  box-shadow: none;
}

.detail-page {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

.detail-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  color: #ffffff;
}

.detail-poster {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(18px);
}

.detail-poster .poster {
  border-radius: 20px;
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0;
  color: #e2e8f0;
  font-size: 22px;
  line-height: 1.75;
}

.detail-content {
  padding: 42px 0 64px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-medium);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 193, 7, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: #0f172a;
  background: var(--accent);
  border-radius: 50%;
  font-size: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

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

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

.text-panel,
.side-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.text-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0 0 18px;
}

.side-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.tag-cloud span {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-color: transparent;
}

.review-panel {
  margin-top: 24px;
}

.related-section {
  margin-top: 34px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 20px;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #e2e8f0;
}

.footer-links a:hover {
  color: #0f172a;
  background: var(--accent);
  border-color: var(--accent);
}

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

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

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

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

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

  .menu-button {
    display: inline-flex;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 48px 0 84px;
  }

  .hero-card {
    max-width: 280px;
  }

  .detail-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 48px 0;
  }

  .detail-poster {
    max-width: 260px;
  }

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

  .rank-link {
    grid-template-columns: 46px 80px 1fr;
    gap: 12px;
  }
}

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text em {
    display: none;
  }

  .quick-section,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .card-content {
    padding: 12px;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-search,
  .big-search {
    flex-direction: column;
  }

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .rank-link {
    grid-template-columns: 42px 1fr;
  }

  .rank-link .poster {
    display: none;
  }

  .text-panel,
  .side-panel,
  .search-panel {
    padding: 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
