:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #d97706;
  --amber-dark: #b45309;
  --orange: #ea580c;
  --red: #dc2626;
  --slate: #0f172a;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 42%, #ffedd5 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  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(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.3);
}

.brand-text {
  font-size: 25px;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  background-clip: text;
  -webkit-background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-weight: 650;
  color: #374151;
}

.desktop-nav a,
.nav-dropdown > a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > a {
  color: var(--amber);
}

.nav-dropdown {
  position: relative;
  padding: 22px 0;
}

.dropdown-panel {
  position: absolute;
  top: 62px;
  left: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
}

.dropdown-panel a:hover {
  background: #fff7ed;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search,
.mobile-search,
.hero-search,
.filter-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 15px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--amber-dark);
  cursor: pointer;
}

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 18px;
  border-top: 1px solid var(--line);
}

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

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

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  background: var(--slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 10vw, 300px);
  bottom: clamp(30px, 8vw, 82px);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-meta,
.hero-desc,
.detail-line,
.detail-one {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-desc {
  margin-bottom: 24px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.rank-action,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #fff;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.3);
}

.ghost-btn {
  color: #fff;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover,
.rank-action:hover,
.more-link:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.hero-arrow.prev {
  bottom: 86px;
}

.hero-arrow.next {
  bottom: 32px;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: 24px;
  display: flex;
  gap: 9px;
}

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

.hero-dot.active {
  width: 32px;
  background: #f59e0b;
}

.hero-quick-panel {
  margin: -28px auto 0;
  width: min(1060px, calc(100% - 40px));
  position: relative;
  z-index: 2;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-height: 48px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 750;
}

.content-section {
  padding: 58px 0;
}

.alt-soft:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.42);
}

.spotlight-band {
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.85), rgba(255, 237, 213, 0.78));
}

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

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

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.compact-heading h2 {
  font-size: 28px;
}

.more-link {
  color: var(--amber-dark);
  white-space: nowrap;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

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

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

.play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--amber);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: 0.25s ease;
}

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

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover {
  color: var(--amber);
}

.card-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-desc {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact .card-body {
  padding: 12px;
}

.compact .card-body h3 {
  font-size: 16px;
}

.compact .card-desc {
  display: none;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
}

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

.mini-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
}

.mini-card img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  margin-bottom: 6px;
  color: var(--text);
}

.mini-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.ranking-card,
.info-card {
  border-radius: 22px;
  padding: 24px;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
}

.rank-no {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.48), transparent 36%), linear-gradient(135deg, #111827, #7c2d12 55%, #f59e0b);
}

.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
}

.crumbs a:hover {
  color: #fbbf24;
}

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

.category-card a {
  position: relative;
  min-height: 250px;
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--slate);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.18));
}

.category-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.category-content strong,
.category-content em {
  display: block;
}

.category-content strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-content em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-style: normal;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.filter-panel input {
  flex: 1;
}

.filter-panel select {
  min-width: 150px;
}

.rank-rows {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 92px 64px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-cover img {
  width: 92px;
  height: 122px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.rank-main h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.rank-main p {
  margin: 0 0 8px;
  color: #4b5563;
}

.rank-action {
  color: #fff;
  padding: 10px 18px;
  background: var(--amber);
}

.detail-hero {
  padding: 42px 0 70px;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  filter: blur(18px) saturate(120%);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.6), rgba(146, 64, 14, 0.64));
}

.detail-head {
  position: relative;
  z-index: 2;
}

.detail-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  margin-top: 34px;
}

.detail-poster img {
  width: 230px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-info {
  color: #fff;
}

.detail-info h1 {
  margin-bottom: 14px;
}

.detail-one {
  margin: 14px 0 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.big-play {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 45px rgba(217, 119, 6, 0.35);
  cursor: pointer;
  font-size: 34px;
  padding-left: 5px;
}

.story-block,
.info-card {
  margin-top: 22px;
}

.story-block {
  padding: 26px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.story-block h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.info-card {
  margin-top: 0;
}

.info-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px 14px;
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 48px 0;
}

.footer-brand {
  color: #fff;
  font-size: 21px;
  margin-bottom: 14px;
}

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

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

.site-footer a {
  color: #d1d5db;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

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

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

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

  .two-column,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: 62px;
  }

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

  .hero-carousel {
    min-height: 520px;
    border-radius: 22px;
  }

  .hero-actions,
  .hero-search,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .rank-cover img {
    width: 72px;
    height: 96px;
  }

  .rank-number,
  .rank-action {
    display: none;
  }

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

  .detail-poster img {
    width: 180px;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .page-hero,
  .detail-hero {
    padding: 48px 0;
  }
}

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

  .hero-content h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-meta,
  .hero-desc,
  .page-hero p {
    font-size: 16px;
  }

  .mini-card {
    grid-template-columns: 70px 1fr;
  }

  .mini-card img {
    width: 70px;
    height: 96px;
  }
}
