* {
  box-sizing: border-box;
}

:root {
  --sunset-50: #fff7ed;
  --sunset-100: #ffedd5;
  --sunset-200: #fed7aa;
  --sunset-500: #f97316;
  --sunset-600: #ea580c;
  --twilight-50: #fef2f2;
  --twilight-500: #ef4444;
  --twilight-600: #dc2626;
  --golden-50: #fefce8;
  --golden-500: #eab308;
  --ocean-500: #0ea5e9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--sunset-50), #ffffff 36%, var(--sunset-50));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", 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.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--shadow-soft);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sunset-600);
  background: var(--sunset-100);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  padding: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 8px 10px;
  background: transparent;
}

.header-search button,
.primary-button,
.secondary-button,
.text-link {
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--shadow-soft);
}

.header-search button {
  padding: 8px 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.primary-button:hover,
.secondary-button:hover,
.header-search button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xl);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--sunset-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--sunset-600);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--sunset-500), var(--twilight-500) 52%, var(--sunset-600));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-slider {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 82px 0 110px;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  padding: 7px;
  margin: 26px 0 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  color: #ffffff;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--sunset-600);
  font-weight: 800;
  background: #ffffff;
}

.hero-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(17, 24, 39, 0.25);
  background: rgba(17, 24, 39, 0.26);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 54%);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-poster-title {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
  font-size: 20px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 3;
}

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: #ffffff;
}

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

.main-section {
  padding: 64px 0 0;
}

.page-section {
  padding: 48px 0 72px;
}

.lift-section {
  position: relative;
  z-index: 5;
  margin-top: -58px;
}

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

.section-heading h2,
.page-title h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

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

.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 28px;
  overflow: hidden;
  min-height: 320px;
  color: #ffffff;
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.94), rgba(239, 68, 68, 0.86));
  box-shadow: var(--shadow-xl);
}

.featured-content {
  padding: 34px;
}

.featured-content h2 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.featured-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
}

.featured-media {
  position: relative;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.12);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sunset-100), var(--twilight-50));
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.92);
  backdrop-filter: blur(6px);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sunset-600);
  font-size: 13px;
  font-weight: 750;
}

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

.movie-card h3 a:hover,
.rank-row h3 a:hover,
.text-link:hover {
  color: var(--sunset-600);
}

.movie-card p,
.rank-row p {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-list span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 650;
  background: var(--gray-100);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, var(--twilight-500), var(--golden-500));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, var(--ocean-500), var(--sunset-500));
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.category-card strong {
  display: inline-block;
  margin-top: 18px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(120deg, var(--sunset-500), var(--twilight-500) 55%, var(--sunset-600));
}

.page-hero-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb a:hover {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  padding: 16px;
  margin-bottom: 26px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select,
.search-box input,
.search-box select {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: var(--gray-800);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus,
.search-box select:focus {
  border-color: var(--sunset-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--gray-500);
  border: 1px dashed var(--gray-300);
  border-radius: 22px;
  background: #ffffff;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 62px 94px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
}

.rank-poster {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sunset-100);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 10px 16px;
  color: var(--sunset-600);
  background: var(--sunset-100);
}

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid var(--gray-200);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.player-card {
  overflow: hidden;
}

.player-frame {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: var(--shadow-xl);
}

.player-info {
  padding: 24px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.detail-card,
.side-card {
  padding: 24px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-card p {
  color: var(--gray-700);
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gray-50);
}

.meta-item span {
  display: block;
  color: var(--gray-500);
  font-size: 13px;
}

.meta-item strong {
  display: block;
  margin-top: 4px;
}

.side-poster {
  overflow: hidden;
  border-radius: 20px;
  background: var(--sunset-100);
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 70px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: var(--sunset-100);
}

.related-item strong {
  display: block;
  line-height: 1.3;
}

.related-item span {
  color: var(--gray-500);
  font-size: 13px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 160px auto;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-box button {
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
}

.site-footer {
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--gray-900);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-copy {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.58);
}

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

  .header-search {
    width: 240px;
  }

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

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 10px 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .header-search {
    order: 5;
    width: 100%;
  }

  .hero-slider {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 56px 0 100px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

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

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

  .rank-row {
    grid-template-columns: 48px 78px minmax(0, 1fr);
  }

  .rank-row .text-link {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero h1 {
    font-size: 38px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 44px;
  }

  .meta-table {
    grid-template-columns: 1fr;
  }
}
