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

:root {
  --dawn: #fff9f0;
  --dawn-deep: #ffe8d5;
  --sunrise: #ff6916;
  --sunrise-dark: #ea580c;
  --morning: #f0601f;
  --ink: #111827;
  --muted: #6b7280;
  --line: #f1e6dc;
  --panel: #ffffff;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--dawn) 0%, #ffffff 36%, #f9fafb 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(241, 230, 220, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: white;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  box-shadow: 0 10px 24px rgba(255, 105, 22, 0.35);
  font-size: 14px;
}

.brand-name,
.footer-brand {
  font-size: 26px;
  line-height: 1;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #374151;
  font-weight: 700;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: var(--sunrise);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: var(--sunrise);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: #374151;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 22px 18px;
  background: rgba(255, 255, 255, 0.98);
}

.mobile-nav.open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: #374151;
}

.mobile-link:hover {
  color: var(--sunrise);
  background: var(--dawn);
}

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  background: #000;
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px min(7vw, 86px);
  color: white;
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.7s ease both;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--sunrise);
  background: rgba(255, 232, 213, 0.92);
}

.hero-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.detail-meta,
.tag-row,
.pill-row,
.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.section-action,
.side-link,
.category-card-body span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  box-shadow: 0 16px 30px rgba(255, 105, 22, 0.34);
}

.primary-button:hover,
.section-action:hover,
.side-link:hover,
.category-card:hover .category-card-body span {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 105, 22, 0.26);
}

.ghost-button {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.38);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--sunrise);
}

.hero-side {
  padding: 30px;
  color: white;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(0, 0, 0, 0.98));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-side h2 {
  margin: 0;
  font-size: 24px;
}

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

.side-link,
.section-action,
.category-card-body span {
  color: white;
  background: var(--sunrise);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 22px;
}

.inner-section {
  padding-top: 0;
  padding-bottom: 0;
}

.warm-section {
  background: linear-gradient(90deg, #fff4eb, var(--dawn));
  padding: 70px 0;
}

.dark-section {
  color: white;
  background: #111827;
  padding: 70px 0;
}

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

.section-heading h2 {
  margin: 14px 0 8px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.dark-section .section-heading p {
  color: #d1d5db;
}

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

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
}

.poster-wrap,
.large-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f3f4f6, #fff4eb);
}

.movie-card:not(.movie-card-large) .card-link {
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  aspect-ratio: 2 / 3;
}

.poster-wrap img,
.large-cover img,
.category-thumbs img,
.detail-poster,
.compact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.category-card:hover img,
.compact-card:hover img {
  transform: scale(1.08);
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  color: white;
  background: var(--sunrise);
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.compact-card h3,
.large-content h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.35;
}

.card-body h3 {
  min-height: 2.7em;
  font-size: 16px;
}

.card-body p,
.compact-card p,
.large-content p {
  color: var(--muted);
  line-height: 1.65;
}

.card-body p {
  min-height: 3.2em;
  margin: 10px 0 0;
  font-size: 13px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-large .card-link {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.large-cover {
  aspect-ratio: 16 / 10;
}

.large-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.14));
}

.large-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px;
  color: white;
}

.large-content h3 {
  margin-top: 12px;
  font-size: 25px;
}

.large-content p {
  margin-bottom: 0;
  color: #e5e7eb;
  font-size: 14px;
}

.pill,
.tag,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.pill {
  padding: 7px 11px;
}

.pill-hot {
  color: white;
  background: var(--sunrise);
}

.pill-soft {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.compact-card a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.compact-card a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.compact-card img {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.compact-card h3 {
  color: inherit;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card p {
  margin: 6px 0 0;
  font-size: 13px;
}

.category-strip-list {
  display: grid;
  gap: 46px;
}

.strip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.strip-title h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 28px;
}

.strip-title h3::before {
  content: "";
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sunrise), var(--morning));
}

.strip-title a {
  color: var(--sunrise);
  font-weight: 800;
}

.scroll-row {
  display: grid;
  grid-auto-columns: minmax(170px, 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  min-width: 176px;
  scroll-snap-align: start;
}

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

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 22px 26px;
}

.small-hero {
  padding-bottom: 18px;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card a {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  background: white;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  background: var(--dawn-deep);
  overflow: hidden;
}

.category-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-card-body h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.category-card-body p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
}

.search-panel {
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.search-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 2px solid #f3e2d1;
  border-radius: 18px;
  outline: 0;
  color: var(--ink);
  background: white;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--sunrise);
  box-shadow: 0 0 0 5px rgba(255, 105, 22, 0.12);
}

.filter-row {
  margin-top: 14px;
}

.filter-button {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: var(--dawn);
  cursor: pointer;
  font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
  color: white;
  background: var(--sunrise);
}

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

.detail-main {
  background: #f9fafb;
}

.player-section {
  background: #000;
}

.player-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.16));
  cursor: pointer;
}

.player-trigger.hidden {
  display: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  box-shadow: 0 20px 42px rgba(255, 105, 22, 0.34);
  font-size: 34px;
}

.player-trigger span:last-child {
  font-size: 18px;
  font-weight: 900;
}

.player-message {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  max-width: min(460px, calc(100% - 40px));
  padding: 12px 16px;
  border-radius: 14px;
  color: white;
  background: rgba(0, 0, 0, 0.66);
  display: none;
}

.player-message.show {
  display: block;
}

.detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 22px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
}

.detail-content,
.side-panel {
  border-radius: 26px;
  background: white;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.detail-content {
  padding: 32px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sunrise);
  font-weight: 800;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.detail-meta span {
  padding: 8px 12px;
  color: #9a3412;
  background: var(--dawn-deep);
}

.tag-row {
  margin-top: 16px;
}

.tag {
  padding: 7px 12px;
  color: #374151;
  background: #f3f4f6;
}

.lead-text {
  margin: 24px 0;
  padding: 20px;
  border-left: 5px solid var(--sunrise);
  border-radius: 16px;
  color: #374151;
  background: var(--dawn);
  font-size: 18px;
  line-height: 1.85;
}

.detail-block {
  margin-top: 30px;
}

.detail-block h2,
.side-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-block p {
  margin: 0;
  color: #374151;
  line-height: 2;
  font-size: 17px;
}

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

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  background: var(--dawn-deep);
  box-shadow: var(--shadow);
}

.side-panel {
  padding: 20px;
}

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

.side-panel .compact-card a {
  background: #f9fafb;
}

.side-panel .compact-card a:hover {
  background: var(--dawn);
}

.side-panel .compact-card h3 {
  color: var(--ink);
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 620px;
  margin: 14px 0 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

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

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

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

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

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

  .menu-button {
    display: inline-flex;
  }

  .hero-stage {
    min-height: 72vh;
  }

  .hero-content {
    padding: 58px 22px 72px;
  }

  .hero-arrow {
    display: none;
  }

  .content-section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .large-grid,
  .movie-grid,
  .catalog-grid,
  .six-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

  .category-thumbs {
    min-height: 220px;
  }

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

  .detail-sidebar {
    grid-row: auto;
  }

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

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding: 14px 16px;
  }

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

  .hero-copy h1 {
    font-size: 42px;
  }

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

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

  .content-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .large-grid,
  .movie-grid,
  .catalog-grid,
  .six-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: 78%;
  }

  .card-body h3 {
    min-height: auto;
  }

  .detail-content {
    padding: 22px;
  }

  .player-wrap {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }

  .play-icon {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
