:root {
  color-scheme: light;
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-300: #fdba74;
  --amber-400: #fb923c;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --text: #2b2118;
  --muted: #77695d;
  --line: rgba(146, 64, 14, 0.16);
  --surface: rgba(255, 255, 255, 0.92);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.13);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--amber-50), #ffffff 44%, #fff8ee 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.08);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  color: var(--amber-900);
  font-size: 21px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--amber-700);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-link {
  color: var(--amber-800);
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-600);
  transform: translateY(-1px);
}

.search-form,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.mobile-search input,
.big-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  width: 210px;
  padding: 10px 14px;
}

.search-form input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-form button,
.mobile-search button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.2);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--amber-900);
  background: rgba(254, 215, 170, 0.55);
  cursor: pointer;
}

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

.mobile-search input {
  width: 100%;
  padding: 11px 14px;
}

.mobile-nav {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  background: #111111;
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 0.9s ease, transform 1.1s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.14));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 88px;
  max-width: 760px;
  color: #ffffff;
}

.hero-labels,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-labels span,
.meta-row em,
.tag-cloud span {
  border-radius: 999px;
  padding: 7px 13px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
}

.hero-labels span + span {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 44px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 64px;
  background: var(--amber-500);
}

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

.content-shell {
  padding: 64px 0;
}

.intro-panel {
  padding-top: 54px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.2);
}

.section-heading h2 {
  margin: 0;
  color: var(--amber-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--amber-700);
}

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

.category-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.65));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(120, 53, 15, 0.16);
}

.category-card strong {
  color: var(--amber-900);
  font-size: 22px;
}

.category-card span {
  color: var(--muted);
  line-height: 1.65;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(120, 53, 15, 0.16);
}

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

.poster-wrap {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-300));
}

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

.movie-card:hover img,
.rank-link:hover img,
.side-recommend .rank-link:hover img {
  transform: scale(1.08);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.meta-row em {
  color: var(--amber-700);
  background: var(--amber-100);
}

.meta-row small {
  color: var(--muted);
  font-size: 13px;
}

.card-body strong {
  color: var(--amber-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body > span:not(.meta-row) {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body > small {
  color: #9a8a7a;
}

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

.wide-grid {
  display: grid;
  gap: 18px;
}

.movie-card.is-wide .card-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.movie-card.is-wide .poster-wrap {
  aspect-ratio: auto;
  min-height: 168px;
}

.ranking-panel,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-head h2,
.side-card h2 {
  margin: 0;
  color: var(--amber-900);
}

.panel-head a {
  color: var(--amber-700);
  font-weight: 800;
}

.rank-list,
.rank-page-list,
.side-recommend {
  display: grid;
  gap: 13px;
}

.rank-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-link {
  position: relative;
  display: grid;
  grid-template-columns: 72px 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, rgba(255, 237, 213, 0.55));
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  transform: translateY(-2px);
  background: var(--amber-50);
}

.rank-link img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: var(--amber-500);
}

.rank-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-content strong {
  overflow: hidden;
  color: var(--amber-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-content small {
  color: var(--muted);
}

.page-hero {
  min-height: 310px;
  display: grid;
  place-items: end start;
  padding: 84px max(24px, calc((100vw - 1180px) / 2)) 46px;
  color: #ffffff;
  background: radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.24), transparent 32%), linear-gradient(135deg, #7c2d12, #d97706 62%, #f59e0b);
}

.page-hero p {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.86;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.page-hero span {
  display: block;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.filter-bar label {
  display: grid;
  gap: 8px;
  min-width: min(100%, 260px);
  color: var(--amber-900);
  font-weight: 800;
}

.filter-bar input,
.filter-bar select {
  padding: 12px 14px;
}

.detail-wrap {
  padding: 34px 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--amber-700);
  font-weight: 700;
}

.breadcrumb span:last-child {
  color: var(--muted);
}

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

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
}

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.08));
}

.player-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  max-width: min(620px, calc(100% - 40px));
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
}

.movie-info {
  margin-top: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-meta {
  margin-bottom: 14px;
}

.movie-info h1 {
  margin: 0 0 14px;
  color: var(--amber-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.lead-text {
  color: var(--amber-800);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.75;
}

.movie-info h2 {
  margin: 28px 0 10px;
  color: var(--amber-900);
  font-size: 25px;
}

.movie-info p {
  color: #4f463f;
  font-size: 16px;
  line-height: 1.9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-cloud span {
  color: var(--amber-700);
  background: var(--amber-100);
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 94px;
}

.poster-card {
  display: grid;
  gap: 12px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}

.poster-card strong {
  color: var(--amber-900);
  font-size: 20px;
}

.poster-card span {
  color: var(--muted);
}

.related-shell {
  padding-top: 24px;
}

.big-search {
  max-width: 760px;
  margin: 0 auto 26px;
}

.big-search input {
  flex: 1;
  min-height: 54px;
  padding: 0 20px;
  font-size: 18px;
}

.big-search button {
  min-height: 54px;
  padding: 0 28px;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--amber-800);
  font-weight: 800;
  text-align: center;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff8ee, #ffedd5);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--amber-900);
  font-size: 22px;
}

.footer-inner p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
  color: var(--amber-800);
  font-weight: 800;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  color: #9a8a7a;
}

.is-hidden-card {
  display: none;
}

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

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

  .search-form {
    margin-left: auto;
  }

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

  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    height: auto;
    min-height: 64px;
  }

  .brand-text small,
  .search-form {
    display: none;
  }

  .hero {
    height: 640px;
    min-height: 640px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 92px;
  }

  .hero-arrow {
    display: none;
  }

  .content-shell,
  .detail-wrap {
    width: min(100% - 24px, 1180px);
  }

  .category-grid,
  .movie-grid,
  .latest-grid,
  .catalog-grid,
  .rank-page-list {
    grid-template-columns: 1fr;
  }

  .movie-card.is-wide .card-link {
    grid-template-columns: 1fr;
  }

  .movie-card.is-wide .poster-wrap {
    aspect-ratio: 3 / 2;
  }

  .page-hero {
    min-height: 280px;
    padding: 70px 18px 34px;
  }

  .movie-info {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

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

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

  .rank-link {
    grid-template-columns: 64px 36px minmax(0, 1fr);
  }

  .rank-link img {
    width: 64px;
    height: 48px;
  }

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