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

:root {
  --primary-50: #fef8f2;
  --primary-100: #fdebd8;
  --primary-500: #ee7f38;
  --primary-600: #e0642d;
  --primary-700: #ba4d27;
  --accent-500: #eab308;
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-200: #eaddd7;
  --warm-300: #e0cec7;
  --secondary-50: #f5f5f4;
  --secondary-100: #e7e6e3;
  --secondary-500: #736d5f;
  --secondary-600: #5d5951;
  --secondary-700: #4d4944;
  --secondary-800: #433f3c;
  --secondary-900: #292524;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(67, 63, 60, 0.13);
  --shadow-card: 0 10px 30px rgba(67, 63, 60, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--secondary-800);
  background: var(--warm-50);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(234, 221, 215, 0.78);
  background: rgba(253, 248, 246, 0.92);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-800);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 12px 30px rgba(238, 127, 56, 0.32);
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: var(--secondary-600);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--secondary-700);
  border: 0;
  border-radius: 14px;
  background: var(--warm-100);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border: 1px solid var(--warm-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.hero-carousel {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--secondary-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(238, 127, 56, 0.45), transparent 36%),
    linear-gradient(90deg, rgba(41, 37, 36, 0.92) 0%, rgba(41, 37, 36, 0.68) 48%, rgba(41, 37, 36, 0.18) 100%),
    linear-gradient(0deg, rgba(41, 37, 36, 0.85) 0%, rgba(41, 37, 36, 0.14) 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  width: min(1280px, calc(100% - 32px));
  min-height: 690px;
  margin: 0 auto;
  padding: 92px 0 160px;
}

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

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--primary-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-summary {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.hero-tags,
.movie-tags,
.detail-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.movie-tags span,
.detail-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  box-shadow: 0 14px 30px rgba(238, 127, 56, 0.34);
}

.button-primary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

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

.button-ghost.dark {
  color: var(--secondary-800);
  border-color: var(--warm-200);
  background: var(--white);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--primary-600);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 92px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot,
.hero-thumb {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 36px;
  background: var(--primary-500);
}

.hero-thumbs {
  position: absolute;
  right: 50%;
  bottom: 24px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: min(880px, calc(100% - 32px));
  transform: translateX(50%);
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-thumb.is-active {
  color: var(--white);
  background: rgba(238, 127, 56, 0.72);
}

.hero-thumb img {
  width: 40px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search-band,
.section-wrap,
.category-overview-block,
.filter-panel,
.page-hero,
.detail-layout,
.detail-content-grid,
.breadcrumb {
  width: min(1280px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.home-search-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -42px;
  padding: 28px;
  border: 1px solid rgba(234, 221, 215, 0.86);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.home-search-band h2,
.section-heading h2,
.filter-panel h2,
.page-hero h1,
.detail-side-card h1,
.detail-article h2 {
  margin: 0;
  color: var(--secondary-800);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.home-search-band h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.home-search-band p,
.section-heading p,
.page-hero p,
.detail-side-card p,
.detail-article p,
.category-card p,
.rank-content p,
.site-footer p {
  color: var(--secondary-600);
}

.section-wrap,
.category-overview-block {
  padding: 68px 0 0;
}

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

.section-heading h2,
.filter-panel h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.section-heading a {
  color: var(--primary-600);
  font-weight: 900;
}

.compact-heading {
  align-items: start;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--warm-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-card-main {
  display: block;
  padding: 22px;
  background: linear-gradient(135deg, var(--primary-50), var(--white));
}

.category-card-main span {
  color: var(--primary-600);
  font-size: 12px;
  font-weight: 900;
}

.category-card h3 {
  margin: 10px 0 8px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.category-card strong {
  display: inline-flex;
  margin-top: 14px;
  color: var(--secondary-800);
}

.category-samples {
  display: grid;
  gap: 8px;
  padding: 16px 22px 22px;
}

.category-samples a {
  overflow: hidden;
  color: var(--secondary-600);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--warm-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 22px 50px rgba(67, 63, 60, 0.18);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--warm-100), var(--secondary-100));
}

.movie-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-year,
.movie-type {
  position: absolute;
  top: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(41, 37, 36, 0.72);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.movie-year {
  left: 12px;
}

.movie-type {
  right: 12px;
  background: rgba(238, 127, 56, 0.86);
}

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

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

.movie-meta {
  margin: 8px 0 0;
  color: var(--secondary-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-line {
  display: -webkit-box;
  overflow: hidden;
  min-height: 62px;
  margin: 10px 0 0;
  color: var(--secondary-600);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span,
.detail-tags span,
.detail-meta span {
  color: var(--primary-700);
  background: var(--primary-50);
}

.movie-card-compact .movie-title {
  min-height: auto;
  font-size: 15px;
}

.movie-card-compact .movie-line,
.movie-card-compact .movie-tags {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 28px;
}

.focus-panel {
  align-self: start;
  padding: 28px;
  border: 1px solid var(--warm-200);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--white), var(--primary-50));
  box-shadow: var(--shadow-card);
}

.focus-panel h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.focus-mini-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--warm-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(67, 63, 60, 0.08);
}

.rank-number {
  color: var(--primary-600);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

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

.rank-title {
  color: var(--secondary-800);
  font-size: 18px;
  font-weight: 900;
}

.rank-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-heat {
  padding: 8px 12px;
  color: var(--secondary-700);
  border-radius: 999px;
  background: var(--warm-100);
  font-size: 13px;
  font-weight: 900;
}

.page-main {
  padding-bottom: 78px;
}

.page-hero {
  margin-top: 28px;
  padding: 58px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 16%, rgba(234, 179, 8, 0.25), transparent 34%),
    linear-gradient(135deg, var(--secondary-800), var(--secondary-700));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  max-width: 960px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
}

.page-hero p:not(.section-kicker) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.filter-panel {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--warm-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.2fr));
  gap: 12px;
  margin-top: 18px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--secondary-800);
  border: 1px solid var(--warm-200);
  border-radius: 14px;
  background: var(--warm-50);
  outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(238, 127, 56, 0.13);
}

.filter-count {
  margin: 12px 0 0;
  color: var(--secondary-500);
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--secondary-500);
  font-size: 14px;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 28px;
  margin-top: 18px;
}

.player-card,
.detail-side-card,
.detail-article {
  border: 1px solid var(--warm-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--white);
  border: 0;
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.22), rgba(41, 37, 36, 0.74));
  cursor: pointer;
}

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

.play-symbol {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--primary-600);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  font-size: 28px;
}

.detail-side-card {
  overflow: hidden;
}

.detail-side-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-side-card div {
  padding: 22px;
}

.detail-side-card h1 {
  font-size: 30px;
  line-height: 1.12;
}

.detail-meta {
  margin-top: 16px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.detail-article {
  padding: 28px;
}

.detail-article h2 {
  font-size: 28px;
}

.detail-article p:not(.section-kicker) {
  color: var(--secondary-700);
  font-size: 16px;
}

.tags-article {
  background: linear-gradient(150deg, var(--white), var(--primary-50));
}

.related-wrap {
  padding-top: 48px;
}

.site-footer {
  margin-top: 80px;
  padding: 54px 0 24px;
  color: var(--warm-200);
  background: var(--secondary-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 32px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-logo {
  color: var(--white);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 16px;
}

.site-footer a {
  display: inline-flex;
  margin: 0 12px 10px 0;
  color: var(--warm-200);
  font-weight: 700;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(234, 221, 215, 0.18);
  text-align: center;
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

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

  .split-section,
  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-logo {
    font-size: 19px;
  }

  .hero-carousel {
    min-height: 820px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 54px 0 220px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-poster {
    width: min(260px, 80vw);
    transform: rotate(0);
  }

  .hero-controls {
    bottom: 142px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 18px;
  }

  .home-search-band,
  .section-heading,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .home-search-band,
  .section-heading {
    display: grid;
    align-items: start;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .focus-mini-grid,
  .filter-controls,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 22px;
  }

  .rank-row {
    align-items: start;
  }

  .rank-heat {
    width: fit-content;
  }
}
