*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-900: #1e3a8a;
  --secondary-50: #fff7ed;
  --secondary-100: #ffedd5;
  --secondary-600: #ea580c;
  --secondary-700: #c2410c;
  --dark-50: #f8fafc;
  --dark-100: #f1f5f9;
  --dark-300: #cbd5e1;
  --dark-500: #64748b;
  --dark-600: #475569;
  --dark-700: #334155;
  --dark-800: #1e293b;
  --dark-900: #0f172a;
  --white: #ffffff;
  --soft-shadow: 0 2px 15px rgba(15, 23, 42, 0.06);
  --medium-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  --hard-shadow: 0 18px 55px rgba(15, 23, 42, 0.24);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f9fafb;
  color: var(--dark-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: var(--white);
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.brand-name {
  background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  letter-spacing: -0.04em;
}

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

.nav-link {
  color: var(--dark-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

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

.mobile-nav {
  display: none;
  border-top: 1px solid #e5e7eb;
  background: var(--white);
}

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

.mobile-nav-inner {
  display: grid;
  gap: 8px;
  padding-block: 14px 18px;
}

.mobile-link {
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--dark-700);
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-900), var(--dark-800));
}

.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-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.05);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 600px;
}

.hero-copy {
  width: min(700px, 100%);
  color: var(--white);
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--secondary-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: #e5e7eb;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 13px;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  padding: 0 22px;
  border: 0;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--primary-600);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--white);
  font-size: 34px;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section-block {
  padding-block: 72px;
}

.pt-none {
  padding-top: 0;
}

.bg-soft-orange {
  background: linear-gradient(180deg, var(--secondary-50), var(--white));
}

.bg-soft-blue {
  background: linear-gradient(180deg, var(--primary-50), var(--white));
}

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

.section-heading h2 {
  margin: 0;
  color: var(--dark-900);
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--dark-500);
}

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

.scroll-shell {
  position: relative;
}

.movie-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 6px 0 18px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  z-index: 4;
  top: 40%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--medium-shadow);
  color: var(--dark-800);
  font-size: 30px;
}

.scroll-left {
  left: -10px;
}

.scroll-right {
  right: -10px;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-row .movie-card {
  flex: 0 0 320px;
}

.poster-frame {
  position: relative;
  height: 236px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-900), var(--secondary-600));
}

.movie-card-small .poster-frame {
  height: 180px;
}

.movie-card-wide .poster-frame {
  height: 214px;
}

.poster-frame img,
.detail-poster img,
.rank-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

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

img.is-missing {
  opacity: 0;
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--secondary-600);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  right: auto;
  left: 12px;
  background: var(--primary-600);
}

.play-mark {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-700);
  font-size: 15px;
}

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

.movie-card-body h2 {
  margin: 0;
  color: var(--dark-900);
  font-size: 19px;
  line-height: 1.35;
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 14px;
  overflow: hidden;
  color: var(--dark-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dark-500);
  font-size: 13px;
}

.movie-meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--dark-100);
}

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

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

.category-card {
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--medium-shadow);
}

.category-card h3,
.category-card h2 {
  margin: 0 0 10px;
  color: var(--dark-900);
  font-size: 24px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--dark-500);
}

.category-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.category-card li a,
.category-mini-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dark-700);
  font-weight: 650;
}

.category-card li a:hover,
.category-mini-links a:hover {
  color: var(--primary-600);
}

.category-mini-links {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.page-hero {
  position: relative;
  padding: 92px 0 78px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.24), transparent 30%), linear-gradient(135deg, var(--dark-900), var(--dark-800));
  color: var(--white);
}

.page-hero h1 {
  max-width: 900px;
  margin: 20px 0 14px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e2e8f0;
  font-size: 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  padding-inline: 12px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  color: var(--dark-700);
  font-weight: 800;
}

.pagination .active {
  background: var(--primary-600);
  color: var(--white);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--dark-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding-block: 64px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-900), var(--secondary-600));
  box-shadow: var(--hard-shadow);
}

.detail-info h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.detail-tags {
  margin: 0 0 28px;
}

.player-section {
  padding-block: 58px 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--hard-shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.22), rgba(0, 0, 0, 0.40));
  color: var(--white);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .player-overlay {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.player-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: var(--primary-600);
  box-shadow: 0 14px 42px rgba(37, 99, 235, 0.45);
  font-size: 32px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  padding-block: 36px;
}

.content-card {
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.content-card h2 {
  margin: 0 0 18px;
  color: var(--dark-900);
  font-size: 28px;
}

.content-card p,
.content-card blockquote {
  margin: 0;
  color: var(--dark-700);
  font-size: 16px;
  line-height: 1.9;
}

.content-card blockquote {
  border-left: 4px solid var(--secondary-600);
  padding-left: 18px;
}

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

.rank-feature {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  position: relative;
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
  box-shadow: var(--medium-shadow);
}

.rank-feature img {
  height: 150px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-900), var(--secondary-600));
}

.rank-number {
  position: absolute;
  top: -14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--secondary-600);
  color: var(--white);
  font-weight: 900;
}

.rank-feature h2 {
  margin: 4px 0 10px;
  color: var(--dark-900);
  font-size: 21px;
}

.rank-feature p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--dark-500);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 30px;
  border-radius: 22px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

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

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--dark-100);
  color: var(--dark-700);
  font-weight: 800;
}

.filter-buttons button.active {
  background: var(--primary-600);
  color: var(--white);
}

.search-grid .movie-card.is-hidden,
.empty-state {
  display: none;
}

.empty-state.show {
  display: block;
  margin-top: 28px;
  border-radius: 18px;
  padding: 22px;
  background: var(--white);
  color: var(--dark-600);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-block: 48px;
}

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

.footer-brand p,
.site-footer li,
.footer-bottom {
  color: var(--dark-300);
}

.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
  line-height: 1.8;
}

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

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

.site-footer a:hover {
  color: #93c5fd;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 18px;
  text-align: center;
  font-size: 14px;
}

.poster-tone-1 .poster-frame,
.poster-tone-1.detail-hero,
.poster-tone-1 .detail-poster,
.poster-tone-1.rank-feature img {
  background: linear-gradient(135deg, #1e3a8a, #ea580c);
}

.poster-tone-2 .poster-frame,
.poster-tone-2.detail-hero,
.poster-tone-2 .detail-poster,
.poster-tone-2.rank-feature img {
  background: linear-gradient(135deg, #312e81, #db2777);
}

.poster-tone-3 .poster-frame,
.poster-tone-3.detail-hero,
.poster-tone-3 .detail-poster,
.poster-tone-3.rank-feature img {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.poster-tone-4 .poster-frame,
.poster-tone-4.detail-hero,
.poster-tone-4 .detail-poster,
.poster-tone-4.rank-feature img {
  background: linear-gradient(135deg, #7c2d12, #1d4ed8);
}

.poster-tone-5 .poster-frame,
.poster-tone-5.detail-hero,
.poster-tone-5 .detail-poster,
.poster-tone-5.rank-feature img {
  background: linear-gradient(135deg, #581c87, #c2410c);
}

.poster-tone-6 .poster-frame,
.poster-tone-6.detail-hero,
.poster-tone-6 .detail-poster,
.poster-tone-6.rank-feature img {
  background: linear-gradient(135deg, #164e63, #b45309);
}

.poster-tone-7 .poster-frame,
.poster-tone-7.detail-hero,
.poster-tone-7 .detail-poster,
.poster-tone-7.rank-feature img {
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.poster-tone-8 .poster-frame,
.poster-tone-8.detail-hero,
.poster-tone-8 .detail-poster,
.poster-tone-8.rank-feature img {
  background: linear-gradient(135deg, #1e293b, #f97316);
}

.poster-tone-9 .poster-frame,
.poster-tone-9.detail-hero,
.poster-tone-9 .detail-poster,
.poster-tone-9.rank-feature img {
  background: linear-gradient(135deg, #365314, #0891b2);
}

.poster-tone-10 .poster-frame,
.poster-tone-10.detail-hero,
.poster-tone-10 .detail-poster,
.poster-tone-10.rank-feature img {
  background: linear-gradient(135deg, #7f1d1d, #1e40af);
}

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

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .brand-name {
    font-size: 22px;
  }

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

  .hero-arrow {
    display: none;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .detail-poster {
    width: min(280px, 80vw);
  }
}

@media (max-width: 620px) {
  .section-container {
    width: min(100% - 24px, 1280px);
  }

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

  .hero h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.05em;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid-large,
  .footer-grid,
  .rank-feature-grid {
    grid-template-columns: 1fr;
  }

  .rank-feature {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .rank-feature img {
    height: 126px;
  }

  .scroll-btn {
    display: none;
  }

  .movie-row .movie-card {
    flex-basis: 280px;
  }

  .poster-frame {
    height: 218px;
  }
}
