:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --accent-500: #d97706;
  --accent-600: #b45309;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--slate-50) 36%, #ffffff 100%);
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.28);
}

.brand-text {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

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

.main-nav a {
  padding: 9px 13px;
  color: var(--slate-600);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary-700);
  background: var(--primary-100);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 32vw);
  padding: 6px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--slate-700);
  background: transparent;
  padding: 0 6px 0 12px;
}

.header-search button,
.primary-button,
.secondary-button,
.section-more,
.hero-link,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--primary-600);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.primary-button:hover,
.section-more:hover,
.hero-link:hover,
.play-button:hover {
  transform: translateY(-2px);
  background: var(--primary-700);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.3);
}

.secondary-button {
  color: var(--primary-700);
  background: var(--white);
  border: 1px solid var(--primary-100);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.secondary-button:hover {
  color: var(--white);
  background: var(--accent-500);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--slate-700);
}

.hero-slider {
  position: relative;
  margin: 28px auto 48px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  background: var(--slate-900);
}

.hero-track {
  position: relative;
  min-height: 580px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  min-height: 580px;
  padding: 58px;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 24% 20%, rgba(14, 165, 233, 0.48), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76) 48%, rgba(15, 23, 42, 0.3));
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.35rem, 5.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-600);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #fde68a;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.meta-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
  margin: 54px 0;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--slate-600);
}

.category-strip,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chip,
.quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: color 0.2s ease, transform 0.2s ease, border 0.2s ease;
}

.category-chip:hover,
.quick-links a:hover {
  color: var(--primary-700);
  border-color: var(--primary-200);
  transform: translateY(-2px);
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-100);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.13);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--slate-200), var(--primary-100));
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-500), var(--primary-600));
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.25);
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin: 0 0 6px;
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 1.08rem;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--primary-700);
}

.card-desc {
  min-height: 56px;
  margin: 8px 0 12px;
  color: var(--slate-600);
  font-size: 0.93rem;
  line-height: 1.55;
}

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

.movie-card.is-compact .card-desc {
  min-height: 0;
}

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

.category-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  background: radial-gradient(circle at 100% 0%, var(--primary-100), transparent 42%), var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

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

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.28fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.toolbar input,
.toolbar select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  color: var(--slate-700);
  background: var(--white);
  outline: 0;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.empty-state {
  display: none;
  padding: 32px;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-2xl);
  color: var(--slate-500);
  text-align: center;
  background: var(--white);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 18px;
  color: var(--slate-500);
  font-size: 0.94rem;
}

.breadcrumbs a {
  color: var(--primary-700);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 30px;
  border-radius: 30px;
  color: var(--white);
  background: radial-gradient(circle at 20% 16%, rgba(14, 165, 233, 0.48), transparent 32%),
    linear-gradient(135deg, var(--slate-900), #172554 62%, #1e293b);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.7vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

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

.info-item {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.info-item span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 800;
}

.info-item strong {
  color: var(--white);
}

.player-section,
.content-panel {
  margin: 36px 0;
  padding: 26px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.player-section h2,
.content-panel h2 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.56);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.32), rgba(0, 0, 0, 0.65));
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  color: var(--primary-700);
  background: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.player-title {
  max-width: 80%;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.content-panel p {
  margin: 0 0 16px;
  color: var(--slate-700);
}

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

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

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

.site-footer p {
  max-width: 520px;
  color: var(--slate-400);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--slate-300);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--slate-400);
  text-align: center;
}

@keyframes slideDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .header-search {
    width: min(270px, 30vw);
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .header-inner {
    min-height: 68px;
  }

  .header-search {
    display: none;
  }

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

  .main-nav {
    position: fixed;
    top: 68px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    animation: slideDown 0.22s ease both;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 13px 14px;
  }

  .hero-slider {
    margin-top: 18px;
    border-radius: 24px;
  }

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

  .hero-slide {
    padding: 30px 24px 74px;
  }

  .hero-dots {
    left: 24px;
    bottom: 24px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-desc {
    display: none;
  }

  .category-overview,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    padding: 18px;
  }

  .detail-poster {
    max-width: 280px;
    margin: 0 auto;
  }

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

  .player-section,
  .content-panel {
    padding: 18px;
  }
}

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

  .movie-grid,
  .movie-grid.dense {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card h3 {
    font-size: 0.96rem;
  }

  .tag-row {
    display: none;
  }
}
