:root {
  --primary-50: #eef8ff;
  --primary-100: #d9efff;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --accent-50: #fff7ed;
  --accent-500: #f97316;
  --accent-600: #ea580c;
  --secondary-500: #8b5cf6;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --shadow-soft: 0 16px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--neutral-800);
  background: linear-gradient(180deg, #ffffff 0%, var(--neutral-50) 42%, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 229, 229, 0.85);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.35);
}

.brand-text {
  font-size: 20px;
  color: var(--neutral-900);
}

.desktop-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  color: var(--neutral-600);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.25s ease;
}

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

.header-search,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter {
  width: 240px;
  padding: 11px 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  color: var(--neutral-700);
  background: #ffffff;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.local-filter:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.header-search button,
.mobile-search button,
.big-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.header-search button,
.mobile-search button {
  padding: 10px 16px;
}

.big-search button,
.primary-button,
.ghost-button {
  padding: 13px 22px;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: #ffffff;
  color: var(--neutral-700);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid var(--neutral-100);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  color: #ffffff;
  overflow: hidden;
  background: var(--neutral-900);
}

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

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

.hero-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(249, 115, 22, 0.35), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  min-height: 680px;
  padding: 86px 0 98px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--primary-100);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-title .eyebrow {
  color: var(--primary-700);
  border-color: var(--primary-100);
  background: var(--primary-50);
}

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

.hero-copy p,
.detail-copy p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

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

.hero-poster {
  display: block;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

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

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.search-panel {
  margin-top: -58px;
  position: relative;
  z-index: 8;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.search-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.big-search input {
  flex: 1;
  width: auto;
  padding: 15px 18px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 54px 0 22px;
}

.category-tile {
  position: relative;
  min-height: 150px;
  padding: 18px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  background: var(--neutral-900);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  margin-top: 54px;
  font-size: 19px;
  font-weight: 850;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.category-tile:hover img {
  opacity: 0.7;
  transform: scale(1.08);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
  padding-bottom: 58px;
}

.content-section,
.category-block {
  margin: 44px 0;
}

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

.section-head h2,
.page-title h1,
.detail-article h2,
.info-card h2 {
  margin: 0;
  color: var(--neutral-900);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: 30px;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--neutral-500);
}

.section-more {
  padding: 10px 15px;
  color: var(--primary-700);
  background: var(--primary-50);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--neutral-100);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px 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(-5px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow-card);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
}

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

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.86);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 32px;
  padding: 5px 8px;
  color: #ffffff;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-500), var(--secondary-500));
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-info h2 {
  margin: 8px 0 7px;
  color: var(--neutral-900);
  font-size: 18px;
  line-height: 1.28;
}

.movie-info h2 a:hover {
  color: var(--primary-600);
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card .movie-info {
  padding: 13px;
}

.compact-card .movie-info h2 {
  font-size: 16px;
}

.ranking-aside {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--neutral-100);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-list,
.ranking-page-list {
  display: grid;
  gap: 14px;
}

.ranking-list .compact-card,
.ranking-page-list .compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.ranking-list .poster-wrap img,
.ranking-page-list .poster-wrap img {
  height: 100%;
  min-height: 132px;
}

.page-main {
  padding: 48px 0 68px;
}

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

.page-title h1 {
  margin-top: 14px;
  font-size: clamp(36px, 6vw, 58px);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--neutral-100);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.local-filter {
  width: min(100%, 520px);
}

.filter-count {
  color: var(--neutral-500);
  font-weight: 750;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  color: #ffffff;
  overflow: hidden;
  background: var(--neutral-900);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 26%, rgba(14, 165, 233, 0.32), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.36)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 54%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 520px;
  padding: 66px 0;
}

.detail-poster {
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 48px 0;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

.player-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000000;
}

.play-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.play-cover span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  padding-left: 6px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  font-size: 32px;
}

.player-panel.is-playing .play-cover {
  display: none;
}

.detail-article,
.info-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--neutral-100);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.info-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 22px;
  color: var(--neutral-600);
  font-size: 16px;
}

.info-card:first-child {
  margin-top: 0;
}

.info-card dl,
.info-card dd {
  margin: 0;
}

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

.info-card dl div:last-child {
  border-bottom: 0;
}

.info-card dt {
  color: var(--neutral-500);
  font-weight: 750;
}

.info-card dd {
  color: var(--neutral-800);
}

.site-footer {
  color: var(--neutral-300);
  background: var(--neutral-800);
}

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

.footer-grid h2 {
  margin: 0 0 13px;
  color: #ffffff;
  font-size: 16px;
}

.footer-grid p {
  margin: 14px 0 0;
  color: var(--neutral-400);
  font-size: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--neutral-400);
  font-size: 14px;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 20px;
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--neutral-400);
  text-align: center;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .mobile-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-content,
  .two-column,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .ranking-aside {
    position: static;
  }

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

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

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

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

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

  .hero-content {
    padding: 64px 0 84px;
  }

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

  .hero-copy p,
  .detail-copy p {
    font-size: 16px;
  }

  .search-panel {
    margin-top: -34px;
    padding: 20px;
  }

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

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

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

  .section-head,
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-list .compact-card,
  .ranking-page-list .compact-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .detail-hero-inner {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
  }

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

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

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

@media (max-width: 460px) {
  .brand-text {
    font-size: 17px;
  }

  .category-strip,
  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    width: 150px;
  }
}
