@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --accent-50: #fff7ed;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --secondary-500: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100vh;
}

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

img {
  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.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

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

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

.brand-mark,
.footer-logo span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.22);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gray-700);
  font-weight: 600;
}

.nav-link {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
}

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

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

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 600;
}

.mobile-panel a:hover {
  background: var(--gray-100);
  color: var(--primary-600);
}

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

.hero {
  position: relative;
  height: 600px;
  min-height: 600px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(59, 130, 246, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.24)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 55%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 74px;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  color: var(--white);
  z-index: 2;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 28px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.tag-row span {
  color: var(--primary-700);
  background: var(--primary-50);
}

.tag-row span:nth-child(2n) {
  color: var(--accent-600);
  background: var(--accent-50);
}

.tag-row.big span {
  font-size: 14px;
  padding: 7px 13px;
}

.hero-actions,
.detail-copy .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.btn.ghost {
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

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

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

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

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.search-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -36px auto 44px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.search-strip strong {
  display: block;
  font-size: 21px;
}

.search-strip span,
.section-heading p,
.movie-card p,
.card-meta,
.rank-info em,
.category-copy p,
.text-panel p {
  color: var(--gray-600);
}

.global-search {
  display: flex;
  gap: 12px;
}

.global-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
}

.global-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.global-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: var(--white);
  font-weight: 800;
  background: var(--primary-600);
  cursor: pointer;
}

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

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

.page-main,
.detail-main {
  padding: 34px 0 64px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 8px 0 0;
}

.section-more {
  color: var(--primary-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 6px 20px 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(59, 130, 246, 0.22);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.56);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

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

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--primary-600);
}

.movie-card p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

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

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

.compact-card p {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.rank-row a {
  display: grid;
  grid-template-columns: 48px 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--white);
}

.rank-num {
  color: var(--primary-600);
  font-weight: 900;
  font-size: 20px;
}

.rank-row img {
  width: 58px;
  height: 74px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info em {
  margin-top: 6px;
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--gray-900);
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.84), rgba(37, 99, 235, 0.42));
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.page-hero {
  margin-bottom: 28px;
  padding: 46px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: radial-gradient(circle at 76% 18%, rgba(249, 115, 22, 0.38), transparent 34%), linear-gradient(135deg, var(--gray-900), #1e3a8a 56%, #7c2d12);
  box-shadow: var(--shadow-soft);
}

.soft-hero {
  color: var(--gray-900);
  background: radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.16), transparent 35%), linear-gradient(135deg, var(--white), var(--primary-50));
  border: 1px solid var(--gray-200);
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  opacity: 0.78;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--primary-700);
  background: var(--primary-50);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.breadcrumb a:hover {
  color: var(--primary-600);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr auto;
  gap: 14px;
  align-items: end;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  display: none;
  margin: 20px 0;
  padding: 34px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

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

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.category-copy h2 {
  margin: 14px 0 10px;
  font-size: 32px;
  letter-spacing: -0.05em;
}

.category-copy p {
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.rank-table th,
.rank-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.rank-table th {
  color: var(--gray-600);
  background: var(--gray-50);
  font-size: 13px;
}

.table-rank {
  display: inline-flex;
  min-width: 48px;
  color: var(--primary-600);
  font-weight: 900;
}

.table-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.table-title img {
  width: 44px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
  padding: 28px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: radial-gradient(circle at 78% 10%, rgba(249, 115, 22, 0.36), transparent 34%), linear-gradient(135deg, #030712, #1e3a8a 52%, #111827);
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-copy .lead {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.player-section,
.text-panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
}

.player-section {
  margin-bottom: 34px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.player-section h2,
.text-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.play-layer span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  font-size: 30px;
  padding-left: 5px;
}

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

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

.text-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.text-panel p {
  margin: 0;
  line-height: 2;
}

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

.site-footer {
  margin-top: 60px;
  color: var(--gray-300);
  background: var(--gray-900);
}

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

.footer-logo {
  color: var(--white);
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--white);
}

.site-footer p {
  color: var(--gray-300);
  line-height: 1.8;
}

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

.site-footer a:hover {
  color: var(--primary-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  text-align: center;
  color: var(--gray-500);
}

@media (max-width: 1100px) {
  .movie-grid,
  .archive-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

  .hero-content {
    bottom: 66px;
  }

  .hero-arrow {
    display: none;
  }

  .search-strip,
  .split-section,
  .category-overview,
  .detail-hero,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel .search-field,
  .filter-panel .btn {
    grid-column: 1 / -1;
  }

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

@media (max-width: 640px) {
  .site-nav,
  .content-section,
  .page-main,
  .detail-main,
  .footer-grid,
  .mobile-panel,
  .search-strip {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    height: 520px;
    min-height: 520px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
  }

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

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

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

  .movie-card p,
  .card-meta,
  .tag-row {
    display: none;
  }

  .page-hero,
  .detail-hero,
  .player-section,
  .text-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .archive-grid,
  .related-grid,
  .category-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .poster-link {
    aspect-ratio: 16 / 10;
  }
}
