:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --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.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-600));
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.24);
}

.brand-name {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

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

.nav-link,
.mobile-link {
  border-radius: 999px;
  color: var(--slate-600);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--slate-900);
  background: var(--slate-100);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
}

.top-search input,
.mobile-search input,
.page-search-form input,
.filter-input {
  width: 100%;
  color: var(--slate-900);
  background: transparent;
  border: 0;
  outline: 0;
}

.top-search input {
  width: 220px;
  padding: 7px 10px 7px 14px;
}

.top-search button,
.mobile-search button,
.page-search-form button {
  border: 0;
  color: var(--white);
  background: var(--slate-900);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: var(--white);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--slate-900);
  border-radius: 4px;
}

.mobile-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--slate-100);
  border-radius: 18px;
}

.hero-slider {
  position: relative;
  min-height: 62vh;
  height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-700), var(--slate-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
  pointer-events: none;
}

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

.hero-overlay,
.detail-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62) 50%, rgba(15, 23, 42, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 650px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.eyebrow.dark {
  color: var(--slate-700);
  background: rgba(226, 232, 240, 0.75);
  border-color: var(--slate-200);
}

.hero-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 32px;
  color: rgba(248, 250, 252, 0.9);
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-actions,
.feature-band-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 22px;
  color: var(--slate-900);
  background: var(--white);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.primary-button.dark {
  color: var(--white);
  background: var(--slate-900);
}

.primary-button.full {
  width: 100%;
  margin-top: 18px;
}

.ghost-button {
  min-height: 48px;
  padding: 0 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

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

.hero-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
  background: var(--white);
}

.hero-card-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -92px;
  margin-bottom: 72px;
}

.hero-card,
.movie-card,
.small-movie-card,
.wide-card,
.category-tile,
.story-card,
.info-panel {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.hero-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover,
.movie-card:hover,
.small-movie-card:hover,
.wide-card:hover,
.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.hero-card img,
.poster-frame img,
.wide-cover img,
.detail-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card img,
.poster-frame img,
.wide-cover img {
  transition: transform 0.55s ease;
}

.hero-card:hover img,
.movie-card:hover img,
.small-movie-card:hover img,
.wide-card:hover img {
  transform: scale(1.06);
}

.hero-card-shade,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.76));
}

.hero-card-text {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 8px;
}

.hero-card-text strong {
  font-size: 1.35rem;
}

.hero-card-text span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.hover-play,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hover-play {
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%) scale(0.92);
  font-size: 1.8rem;
}

.hero-card:hover .hover-play,
.movie-card:hover .play-badge,
.small-movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.content-section {
  margin-bottom: 76px;
}

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

.section-heading h2,
.feature-band h2,
.page-hero h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section-heading p,
.feature-band p,
.page-hero p {
  max-width: 690px;
  margin: 9px 0 0;
  color: var(--slate-600);
}

.text-link {
  min-width: max-content;
  color: var(--slate-600);
}

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

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

.movie-card,
.small-movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.72);
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.small-movie-card {
  border-radius: 18px;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--slate-200);
}

.small-movie-card .poster-frame {
  aspect-ratio: 1 / 1;
}

.play-badge {
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%) scale(0.92);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong,
.wide-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-900);
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 700;
}

.card-desc,
.wide-info span:last-child {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 0.92rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feature-band {
  margin: 20px 0 80px;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--white), var(--slate-100));
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.feature-band-inner {
  justify-content: space-between;
}

.feature-band-inner > div {
  max-width: 760px;
}

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

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

.wide-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-200);
}

.rank-number {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 900;
}

.wide-info {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px 16px 14px 0;
}

.page-main {
  min-height: 72vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 58px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  border-bottom: 1px solid var(--slate-200);
}

.compact-hero {
  padding: 74px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--slate-500);
  font-size: 0.94rem;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--slate-900);
}

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb.light a:hover {
  color: var(--white);
}

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

.category-tile {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile span {
  color: var(--slate-900);
  font-size: 1.35rem;
  font-weight: 900;
}

.category-tile strong {
  color: var(--slate-600);
  font-weight: 500;
}

.page-filter,
.page-search-form {
  max-width: 620px;
  margin-top: 28px;
}

.page-filter input,
.page-search-form {
  min-height: 56px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.page-filter input {
  padding: 0 18px;
}

.page-search-form {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.page-search-form input {
  padding: 0 12px;
}

.detail-main {
  background: var(--slate-50);
}

.detail-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 86px 0 72px;
}

.detail-title-block {
  max-width: 820px;
}

.detail-title-block h1 {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-title-block p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.detail-content {
  margin-top: -44px;
  margin-bottom: 70px;
}

.detail-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42));
}

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

.player-start span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  font-size: 2rem;
}

.story-card,
.info-panel {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 24px;
}

.story-card h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.story-card p {
  margin: 0;
  color: var(--slate-700);
  white-space: pre-line;
}

.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: var(--slate-200);
  box-shadow: var(--shadow-card);
}

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

.info-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 10px;
}

.info-panel dt {
  color: var(--slate-500);
  font-weight: 800;
}

.info-panel dd {
  margin: 0;
  color: var(--slate-800);
  text-align: right;
}

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

.tag-list span {
  padding: 7px 10px;
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-footer {
  padding: 40px 0;
  color: var(--slate-500);
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 700;
}

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

.is-filtered-out {
  display: none !important;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--slate-500);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
}

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

  .mobile-menu-button {
    display: inline-block;
  }

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

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

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

  .detail-aside {
    position: static;
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 64px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .hero-slider {
    min-height: 570px;
    height: auto;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-card-strip {
    grid-template-columns: 1fr;
    margin-top: -62px;
  }

  .section-heading,
  .feature-band-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wide-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 122px;
  }

  .wide-info {
    padding: 12px 12px 12px 0;
  }

  .detail-hero {
    min-height: 400px;
  }

  .detail-content {
    margin-top: -28px;
  }

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

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

  .story-card,
  .info-panel {
    padding: 22px;
  }
}

@media (max-width: 460px) {
  .container,
  .site-header-inner,
  .mobile-panel {
    width: min(100% - 22px, 1180px);
  }

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

  .ranking-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .detail-title-block h1 {
    font-size: 2.15rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
