@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap");

:root {
  --primary: #ee7f38;
  --primary-strong: #e0642d;
  --primary-dark: #ba4d27;
  --accent: #eab308;
  --secondary: #433f3c;
  --secondary-soft: #736d5f;
  --warm-50: #fdf8f6;
  --warm-100: #f2e8e5;
  --warm-200: #ead7d1;
  --white: #ffffff;
  --black: #0f0d0b;
  --shadow: 0 18px 45px rgba(67, 63, 60, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", sans-serif;
  color: var(--secondary);
  background: var(--warm-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 246, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(234, 215, 209, 0.72);
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

.site-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(238, 127, 56, 0.35);
  font-size: 16px;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--secondary-soft);
  font-weight: 700;
  transition: 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary-strong);
  background: rgba(238, 127, 56, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 0;
  color: var(--secondary);
  background: var(--warm-100);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, #f0984f 52%, var(--accent) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(5px);
  opacity: 0.26;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  right: -120px;
  top: -180px;
  background: var(--white);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -180px;
  background: #8b2f15;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 66px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hero-title {
  margin: 22px 0 12px;
  max-width: 820px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

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

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

.btn-light {
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(67, 63, 60, 0.18);
}

.btn-dark {
  color: var(--white);
  background: rgba(67, 63, 60, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(238, 127, 56, 0.28);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 720px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 0 16px;
}

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

.hero-search button {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  color: var(--primary-dark);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.hero-stage {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 20px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 24px 60px rgba(67, 63, 60, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 42px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 13, 11, 0.82), rgba(15, 13, 11, 0.32), rgba(15, 13, 11, 0.1)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-slide h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
}

.hero-slide p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 42px;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

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

.hero-side {
  display: grid;
  gap: 14px;
}

.hero-mini {
  position: relative;
  min-height: 126px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(67, 63, 60, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 13, 11, 0.76), rgba(15, 13, 11, 0.22)), var(--mini-image);
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.hero-mini:hover::before {
  transform: scale(1.06);
}

.hero-mini span {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  align-content: end;
  padding: 18px;
}

.hero-mini strong {
  font-size: 18px;
  line-height: 1.25;
}

.hero-mini em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 64px;
}

.block {
  margin: 0 0 54px;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-head span {
  height: 4px;
  min-width: 60px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(238, 127, 56, 0));
}

.section-more {
  color: var(--primary-strong);
  font-weight: 900;
}

.lead {
  max-width: 820px;
  margin: -10px 0 26px;
  color: var(--secondary-soft);
  font-size: 17px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 62px rgba(67, 63, 60, 0.18);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

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

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(15, 13, 11, 0.56));
}

.movie-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 13, 11, 0.2);
}

.movie-info {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.movie-info strong {
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.3;
}

.movie-info em {
  color: var(--primary-strong);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.movie-info span {
  color: var(--secondary-soft);
  font-size: 14px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.movie-card-compact .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-box {
  display: grid;
  gap: 8px;
  min-height: 116px;
  align-content: end;
  padding: 20px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.category-box:nth-child(2n) {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
}

.category-box:hover {
  transform: translateY(-4px);
}

.category-box strong {
  font-size: 22px;
  line-height: 1.2;
}

.category-box span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--secondary-soft);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--warm-200);
  border-radius: 14px;
  outline: none;
  padding: 0 12px;
  color: var(--secondary);
  background: var(--warm-50);
}

.filter-empty {
  display: none;
  padding: 24px;
  border-radius: 18px;
  color: var(--secondary-soft);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 110px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.rank-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

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

.rank-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-main strong {
  color: var(--secondary);
  font-size: 18px;
}

.rank-main em {
  overflow: hidden;
  color: var(--secondary-soft);
  font-style: normal;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-action {
  color: var(--primary-strong);
  font-weight: 900;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination a {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--secondary-soft);
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.pagination a.is-current,
.pagination a:hover {
  color: var(--white);
  background: var(--primary);
}

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

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 13, 11, 0.9), rgba(15, 13, 11, 0.58), rgba(15, 13, 11, 0.26)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px 22px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-info p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 22px;
}

.detail-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px 66px;
}

.player-section,
.detail-text,
.related-section,
.search-panel {
  margin-bottom: 42px;
  padding: 24px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.player-section h2,
.detail-text h2,
.related-section h2,
.search-panel h1 {
  margin: 0 0 18px;
  color: var(--secondary);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(238, 127, 56, 0.28), rgba(15, 13, 11, 0.68));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.94);
  font-size: 28px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.play-overlay strong {
  font-size: 20px;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--white);
  background: rgba(15, 13, 11, 0.72);
}

.player-message.is-visible {
  display: block;
}

.detail-text p {
  margin: 0 0 18px;
  color: var(--secondary-soft);
  font-size: 17px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}

.search-box input {
  min-height: 50px;
  border: 1px solid var(--warm-200);
  border-radius: 16px;
  outline: none;
  padding: 0 16px;
  background: var(--warm-50);
}

.search-box button {
  border: 0;
  border-radius: 16px;
  padding: 0 22px;
  color: var(--white);
  background: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

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

.site-footer {
  color: var(--warm-100);
  background: var(--secondary);
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

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

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

@media (max-width: 980px) {
  .hero-stage,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    display: block;
  }

  .hero-inner {
    padding-top: 38px;
  }

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

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

  .hero-slide {
    padding: 28px;
  }

  .hero-dots {
    left: 28px;
  }

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

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

  .movie-card-compact {
    grid-template-columns: 120px 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 88px 1fr;
  }

  .rank-action {
    display: none;
  }

  .detail-hero-inner {
    padding-top: 34px;
  }

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

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

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

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

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .movie-card-compact {
    grid-template-columns: 132px 1fr;
  }
}
