* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #d97706, #ea580c);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.32);
}

.brand-text {
  font-size: 22px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d97706;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: #92400e;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 6px;
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
  padding: 14px 0 18px;
}

.mobile-nav a {
  padding: 10px 0;
  color: #374151;
  font-weight: 650;
}

.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-categories a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-size: 14px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #d97706, #ea580c 55%, #fb923c);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 237, 213, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.22));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 64px 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 720px;
  margin: 20px 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2.5vw, 25px);
}

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

.hero-search {
  display: flex;
  max-width: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 20px;
  background: transparent;
  color: #ffffff;
}

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

.hero-search button {
  border: 0;
  padding: 0 22px;
  background: #ffffff;
  color: #b45309;
  font-weight: 800;
}

.pill-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-link {
  background: #ffffff;
  color: #b45309;
  box-shadow: 0 18px 36px rgba(120, 53, 15, 0.24);
}

.secondary-link,
.pill-link {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-link:hover,
.secondary-link:hover,
.pill-link:hover {
  transform: translateY(-2px);
}

.hero-slider {
  position: relative;
  min-height: 470px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 30px 70px rgba(120, 53, 15, 0.36);
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.hero-slide-content {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), #111827);
}

.hero-slide-content h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero-slide-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.main-space {
  padding: 60px 0;
}

.content-stack {
  display: grid;
  gap: 74px;
}

.section-block {
  position: relative;
}

.tinted-block {
  margin-inline: -16px;
  padding: 36px 16px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-heading h2 {
  margin: 6px 0 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #6b7280;
}

.section-kicker {
  color: #d97706;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
}

.movie-cover {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #111827;
}

.movie-card-large .movie-cover {
  height: 330px;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.cover-type,
.cover-year {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.cover-type {
  left: 12px;
  background: #d97706;
}

.cover-year {
  right: 12px;
  background: rgba(17, 24, 39, 0.78);
}

.cover-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  background: #d97706;
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 17px;
}

.movie-info h3 {
  margin: 0 0 9px;
  color: #111827;
  font-size: 18px;
  line-height: 1.32;
}

.movie-info h3 a:hover {
  color: #d97706;
}

.movie-info p {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #5b6472;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #cbd5e1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.wide-cover {
  min-height: 190px;
  background: #111827;
}

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

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

.wide-kicker {
  color: #d97706;
  font-size: 13px;
  font-weight: 800;
}

.wide-info h3 {
  margin: 7px 0 9px;
  font-size: 22px;
  line-height: 1.25;
}

.wide-info h3 a:hover {
  color: #d97706;
}

.wide-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #5b6472;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.category-card {
  padding: 24px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(217, 119, 6, 0.15);
}

.category-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #6b7280;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 170px 150px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  background: #ffffff;
  color: #111827;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.filter-panel button {
  border: 0;
  background: #d97706;
  color: #ffffff;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 22px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.page-hero {
  padding: 66px 0;
  background: linear-gradient(120deg, #d97706, #ea580c);
  color: #ffffff;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #fef3c7;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #fff7ed;
  color: #b45309;
  font-size: 20px;
  font-weight: 900;
}

.rank-cover img {
  width: 120px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-info h3 a:hover {
  color: #d97706;
}

.rank-info p {
  margin: 0;
  color: #6b7280;
}

.rank-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #d97706;
  color: #ffffff;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  background: #030712;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.20), rgba(3, 7, 18, 0.72));
  transition: opacity 0.2s ease;
}

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

.play-action {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #d97706;
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(217, 119, 6, 0.38);
}

.player-title {
  padding: 18px 22px;
}

.player-title h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.player-title p {
  margin: 0;
  color: #6b7280;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.85;
}

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

.info-table div {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.info-table strong {
  display: block;
  margin-bottom: 5px;
  color: #6b7280;
  font-size: 13px;
}

.side-card {
  padding: 20px;
}

.poster-large {
  overflow: hidden;
  border-radius: 20px;
  background: #111827;
}

.poster-large img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.side-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.side-link {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 70px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.side-link span {
  display: block;
  color: #111827;
  font-weight: 800;
  line-height: 1.35;
}

.side-link small {
  color: #6b7280;
}

.site-footer {
  margin-top: 70px;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.brand-light {
  color: #ffffff;
}

.footer-brand p {
  max-width: 560px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1100px) {
  .card-grid,
  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .mobile-toggle {
    display: inline-block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .card-grid,
  .card-grid.three,
  .wide-grid,
  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .brand-text {
    font-size: 18px;
  }

  .hero-inner {
    padding: 42px 0;
  }

  .hero-search {
    border-radius: 18px;
  }

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

  .hero-slide {
    border-radius: 22px;
  }

  .hero-slide img {
    height: 240px;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.three,
  .wide-grid,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .movie-cover,
  .movie-card-large .movie-cover {
    height: 300px;
  }

  .wide-card,
  .rank-item {
    grid-template-columns: 1fr;
  }

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

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

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