:root {
  --primary-50: #fff7ed;
  --primary-100: #ffedd5;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --accent-50: #fdf8f6;
  --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;
  --black: #000000;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

img,
video {
  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.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--gray-900);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--primary-500);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.26);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--gray-700);
  font-size: 15px;
}

.nav-link {
  transition: color 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--gray-700);
  background: transparent;
}

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

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 18px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.mobile-nav.open {
  display: flex;
}

.mobile-link {
  padding: 10px 0;
  color: var(--gray-700);
}

.hero {
  position: relative;
  max-width: 1280px;
  min-height: 560px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  box-shadow: var(--shadow-xl);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 76px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: var(--primary-700);
  background: var(--primary-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.16;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--gray-200);
  font-size: 18px;
}

.hero-tags,
.meta-line,
.poster-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.meta-line span,
.poster-meta span {
  display: inline-flex;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: inherit;
  font-size: 13px;
}

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

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

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--primary-500);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.button.primary:hover {
  background: var(--primary-600);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  width: 34px;
  border-radius: 999px;
  background: var(--primary-500);
}

.search-panel,
.content-section,
.page-hero,
.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
}

.search-panel h2,
.section-head h2,
.content-section h2,
.detail-article h2,
.related-aside h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.search-panel p,
.section-head p,
.page-hero p,
.poster-body p,
.featured-body p,
.detail-copy p,
.detail-article p,
.category-main p {
  color: var(--gray-600);
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: var(--gray-800);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: none;
  box-shadow: var(--shadow-card);
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary-500);
}

.content-section.section-light,
.content-section.section-soft,
.content-section.section-gradient,
.rank-section,
.category-section {
  margin-top: 20px;
  border-radius: 24px;
}

.content-section.section-light,
.rank-section,
.category-section {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.content-section.section-soft {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.content-section.section-gradient {
  background: linear-gradient(135deg, var(--primary-50), #ffffff);
  box-shadow: var(--shadow-card);
}

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

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

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

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

.poster-card,
.card-featured,
.category-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover,
.card-featured:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.poster-thumb,
.featured-thumb {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-200), var(--primary-100));
}

.poster-thumb {
  height: 260px;
}

.featured-thumb {
  min-height: 440px;
}

.poster-thumb img,
.featured-thumb img,
.detail-poster img,
.ranking-item img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.poster-card:hover img,
.card-featured:hover img {
  transform: scale(1.08);
}

.type-pill,
.hover-play,
.play-bubble {
  position: absolute;
  z-index: 2;
}

.type-pill {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  border-radius: 8px;
  font-size: 12px;
}

.hover-play,
.play-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--primary-500);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.hover-play {
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-card:hover .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.play-bubble {
  left: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  font-size: 24px;
}

.poster-body,
.featured-body {
  padding: 18px;
}

.poster-body h3,
.featured-body h3,
.rank-row h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.3;
}

.poster-body p,
.featured-body p {
  margin: 0 0 14px;
  min-height: 48px;
  font-size: 14px;
}

.poster-meta {
  color: var(--gray-600);
  font-size: 13px;
}

.poster-meta span {
  background: var(--gray-100);
}

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

.tag-row span {
  display: inline-flex;
  padding: 4px 9px;
  color: var(--primary-700);
  background: var(--primary-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag-row.wide span {
  font-size: 13px;
}

.featured-card-link {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.featured-body h3 {
  font-size: 34px;
  letter-spacing: -0.03em;
}

.meta-line {
  margin-bottom: 14px;
  color: var(--gray-600);
}

.meta-line span {
  background: var(--gray-100);
}

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

.category-tile,
.category-main {
  display: flex;
  flex-direction: column;
  min-height: 142px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border 0.2s ease;
}

.category-tile:hover,
.category-main:hover {
  transform: translateY(-3px);
  border-color: var(--primary-500);
}

.category-tile strong,
.category-main h2 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--gray-900);
}

.category-tile span,
.category-main p {
  color: var(--gray-600);
  font-size: 14px;
}

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

.rank-list li a,
.ranking-item a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.rank-no,
.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--primary-500);
  border-radius: 14px;
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-heat,
.ranking-score {
  color: var(--primary-600);
  font-weight: 800;
}

.page-hero,
.detail-hero {
  margin-top: 24px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--primary-50), var(--white));
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.category-preview {
  display: grid;
  gap: 8px;
  padding: 14px 6px 4px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-bar.single {
  grid-template-columns: minmax(0, 560px);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  color: var(--gray-600);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
}

.empty-state.show {
  display: block;
}

.detail-hero {
  background: linear-gradient(135deg, var(--white), var(--primary-50));
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.detail-head-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  height: 460px;
  background: var(--gray-100);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

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

.detail-copy p {
  max-width: 800px;
  font-size: 18px;
}

.player-section h2 {
  margin-bottom: 18px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  border: 0;
  background-position: center;
  background-size: cover;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.player-cover.hidden {
  display: none;
}

.play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  color: var(--white);
  background: var(--primary-500);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.35);
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
}

.detail-article,
.related-aside {
  padding: 28px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.detail-article h2,
.related-aside h2 {
  margin: 0 0 16px;
}

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

.detail-article p {
  margin: 0;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.info-list dt {
  color: var(--gray-500);
}

.info-list dd {
  margin: 0;
  color: var(--gray-900);
}

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

.rank-row {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
}

.rank-row a {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rank-row img {
  width: 80px;
  height: 104px;
}

.rank-row h3 {
  font-size: 15px;
}

.rank-row p {
  margin: 0;
  color: var(--gray-600);
  font-size: 13px;
}

.ranking-item a {
  grid-template-columns: 54px 76px minmax(0, 1fr) auto;
}

.ranking-item img {
  width: 76px;
  height: 96px;
  border-radius: 12px;
}

.ranking-info {
  display: grid;
  gap: 4px;
}

.ranking-info strong {
  font-size: 18px;
}

.ranking-info em {
  color: var(--gray-600);
  font-style: normal;
  font-size: 14px;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.footer-grid li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: 14px;
}

.movie-card.is-hidden {
  display: none;
}

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

  .featured-card-link,
  .detail-head-grid,
  .detail-section {
    grid-template-columns: 1fr;
  }

  .featured-thumb {
    min-height: 360px;
  }

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

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

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

  .hero,
  .search-panel,
  .content-section,
  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stage,
  .hero-slide {
    min-height: 620px;
  }

  .hero-slide {
    padding: 42px 24px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.92));
  }

  .search-panel,
  .filter-bar,
  .footer-grid,
  .ranking-item a {
    grid-template-columns: 1fr;
  }

  .section-head,
  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.large-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-thumb {
    height: 220px;
  }

  .ranking-score {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .hero {
    min-height: 560px;
    padding: 0 12px;
  }

  .hero-stage,
  .hero-slide {
    min-height: 560px;
    border-radius: 20px;
  }

  .movie-grid,
  .movie-grid.large-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .poster-thumb {
    height: 280px;
  }

  .detail-poster {
    height: 420px;
  }

  .rank-list li a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-heat {
    grid-column: 2;
  }
}
