* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: #fff7ed;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.9);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #b45309;
  background: #ffedd5;
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.inline-filter input,
.inline-filter select {
  height: 42px;
  border: 2px solid #fed7aa;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #374151;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.top-search button,
.primary-btn,
.ghost-btn,
.section-more,
.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.primary-btn,
.card-actions a {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.top-search button {
  height: 42px;
  padding: 0 20px;
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
}

.primary-btn.small {
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.ghost-btn {
  min-height: 46px;
  padding: 0 20px;
  color: #fff7ed;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.top-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.card-actions a:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 35%, rgba(251, 191, 36, 0.32), transparent 28%), linear-gradient(0deg, rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  color: #fff;
  max-width: 710px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.rank-strip .eyebrow {
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.92);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.08em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-poster {
  position: relative;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, #451a03, #f59e0b);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 8px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #f59e0b;
}

.quick-panel {
  position: relative;
  z-index: 4;
  margin-top: -44px;
  padding-bottom: 28px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-grid a {
  padding: 22px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 45px rgba(146, 64, 14, 0.13);
  backdrop-filter: blur(12px);
}

.quick-grid strong {
  display: block;
  color: #92400e;
  font-size: 20px;
  margin-bottom: 6px;
}

.quick-grid span {
  color: #6b7280;
}

.section-block {
  padding: 62px 0;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}

.section-block:nth-of-type(even) {
  background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.category-overview-head h2,
.rank-strip h2,
.page-hero h1,
.detail-content h1,
.text-panel h2,
.side-card h2 {
  margin: 0;
  color: #1f2937;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading h2,
.rank-strip h2,
.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.section-heading p,
.category-overview-head p,
.page-hero p,
.rank-strip p {
  margin: 10px 0 0;
  max-width: 680px;
  color: #6b7280;
  line-height: 1.8;
}

.section-more {
  min-height: 40px;
  padding: 0 16px;
  color: #9a3412;
  background: #ffedd5;
}

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

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

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

.page-grid {
  padding: 42px 0 72px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.22);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(146, 64, 14, 0.18);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #fbbf24, transparent 30%), linear-gradient(135deg, #451a03, #ea580c);
}

.movie-card.compact .poster-frame {
  aspect-ratio: 16 / 10;
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
  font-weight: 950;
}

.card-body {
  padding: 16px;
}

.card-meta,
.card-actions,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-meta {
  justify-content: space-between;
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.card-meta a {
  color: #b45309;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.movie-card.compact h3 {
  font-size: 17px;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.movie-card.compact p {
  min-height: auto;
}

.card-actions {
  justify-content: space-between;
  margin-top: 14px;
}

.card-actions span {
  color: #92400e;
  font-weight: 900;
}

.card-actions a {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

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

.category-tile,
.category-overview-card {
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.12);
}

.category-tile {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
}

.category-cover {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.category-tile > div {
  padding: 24px;
}

.category-tile h2,
.category-overview-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: 26px;
}

.category-tile p {
  color: #6b7280;
  line-height: 1.75;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  padding: 7px 10px;
  color: #9a3412;
  border-radius: 999px;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.rank-strip {
  padding: 76px 0;
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.32), transparent 26%), linear-gradient(135deg, #111827, #7c2d12 52%, #f97316);
}

.rank-strip h2,
.rank-strip p {
  color: #fff;
}

.rank-strip-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.rank-list span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f59e0b;
  font-weight: 950;
}

.rank-list em {
  color: #fde68a;
  font-style: normal;
  font-weight: 900;
}

.page-hero {
  padding: 86px 0 46px;
  background: radial-gradient(circle at 14% 18%, rgba(251, 191, 36, 0.42), transparent 24%), linear-gradient(135deg, #fff7ed, #ffffff 54%, #ffedd5);
}

.category-hero,
.rank-hero,
.search-hero {
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
}

.inline-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.inline-filter input {
  min-width: min(420px, 100%);
}

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

.overview-list {
  display: grid;
  gap: 28px;
  padding: 44px 0 72px;
}

.category-overview-card {
  padding: 26px;
}

.detail-shell {
  padding: 28px 0 72px;
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #9a3412;
  font-weight: 800;
}

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

.detail-main,
.side-card {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(146, 64, 14, 0.12);
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.48)), linear-gradient(0deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.22));
  cursor: pointer;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.player-cover strong {
  font-size: 20px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.detail-content {
  padding: 26px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.detail-content h1 {
  font-size: clamp(32px, 4vw, 50px);
}

.lead-text {
  color: #4b5563;
  font-size: 19px;
  line-height: 1.85;
}

.detail-meta {
  padding: 16px 0;
  margin: 18px 0;
  border-top: 1px solid #ffedd5;
  border-bottom: 1px solid #ffedd5;
}

.detail-meta span {
  padding: 8px 12px;
  color: #92400e;
  border-radius: 999px;
  background: #fff7ed;
  font-weight: 800;
}

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

.text-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 22px;
  background: #fff7ed;
}

.text-panel.warm-panel {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.text-panel h2 {
  font-size: 24px;
}

.text-panel p {
  margin: 12px 0 0;
  color: #4b5563;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-side {
  position: sticky;
  top: 92px;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

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

.site-footer {
  color: #ffedd5;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

.footer-brand {
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  max-width: 440px;
  line-height: 1.8;
}

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

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

.footer-links a {
  color: #ffedd5;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  .top-search {
    display: none;
  }

  .hero-content,
  .detail-grid,
  .rank-strip-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    order: 5;
  }

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

  .nav-link {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 17px;
  }

  .quick-grid,
  .category-grid,
  .footer-grid,
  .category-tile {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 170px;
  }

  .section-heading,
  .category-overview-head,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .compact-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .movie-grid,
  .compact-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

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

  .primary-btn,
  .ghost-btn,
  .inline-filter input,
  .inline-filter select {
    width: 100%;
  }

  .page-hero {
    padding: 58px 0 34px;
  }
}
