:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --rose-400: #fb7185;
  --green-500: #22c55e;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(120, 53, 15, 0.12);
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, var(--amber-50) 52%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(251, 113, 133, 0.22));
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(120, 53, 15, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), #f97316 55%, var(--rose-400));
  box-shadow: 0 12px 30px rgba(217, 119, 6, 0.34);
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

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

.brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--amber-700), #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand-sub {
  margin-top: 4px;
  color: var(--amber-600);
  font-size: 12px;
}

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

.main-nav a {
  position: relative;
  transition: color 0.24s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-500);
  transition: width 0.24s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--amber-600);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--amber-700);
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: #374151;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 52%, #fb7185 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.18), rgba(120, 53, 15, 0.02));
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(42px);
  animation: floatGlow 5s ease-in-out infinite alternate;
}

.hero-glow.one {
  width: 160px;
  height: 160px;
  top: 48px;
  left: 7%;
}

.hero-glow.two {
  width: 210px;
  height: 210px;
  right: 8%;
  bottom: 70px;
  animation-delay: 1.4s;
}

@keyframes floatGlow {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(18px) scale(1.1);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 74px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin-top: 22px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 680px;
  font-size: clamp(18px, 2.2vw, 26px);
  color: #fff7ed;
  line-height: 1.7;
}

.hero-desc {
  max-width: 640px;
  margin-top: 14px;
  color: rgba(255, 251, 235, 0.9);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-light {
  color: var(--amber-600);
  background: #fff;
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.18);
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  background: rgba(180, 83, 9, 0.18);
  backdrop-filter: blur(14px);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(120, 53, 15, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-carousel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-card {
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(120, 53, 15, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px);
}

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

.hero-card-body {
  padding: 26px;
}

.hero-card h2 {
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
}

.hero-card p {
  margin-top: 12px;
  color: rgba(255, 251, 235, 0.92);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--amber-500);
}

.badge.green {
  background: var(--green-500);
}

.badge.dark {
  background: rgba(31, 41, 55, 0.72);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 26px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

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

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fff, var(--amber-50));
}

.section-white {
  background: #fff;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 18px;
  color: var(--amber-700);
  background: var(--amber-100);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.16);
  font-weight: 900;
}

.section-head h2,
.page-title {
  color: #1f2937;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p,
.page-lead {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.scroll-row {
  overflow-x: auto;
  padding: 8px 4px 28px;
}

.scroll-row-inner {
  display: flex;
  gap: 24px;
  min-width: max-content;
}

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.1);
  border: 1px solid rgba(120, 53, 15, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(245, 158, 11, 0.28);
}

.movie-card.wide {
  width: 322px;
  flex: 0 0 322px;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

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

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

.card-badge-left,
.card-badge-right {
  position: absolute;
  top: 14px;
  z-index: 2;
}

.card-badge-left {
  left: 14px;
}

.card-badge-right {
  right: 14px;
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.movie-title {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.24s ease;
}

.movie-card:hover .movie-title {
  color: var(--amber-600);
}

.movie-meta {
  color: var(--amber-600);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.movie-line {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: #f59e0b;
  font-weight: 900;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #111827;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.66;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.78;
}

.category-tile-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(17, 24, 39, 0.82));
}

.category-tile h3 {
  font-size: 25px;
  font-weight: 950;
}

.category-tile p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(120, 53, 15, 0.08);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-500), #ef4444);
}

.rank-row img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: 18px;
}

.rank-info h3 {
  font-size: 19px;
  font-weight: 900;
}

.rank-info p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.rank-score {
  color: var(--amber-600);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 58px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316 54%, #fb7185);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 32%), radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.14), transparent 30%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .page-title,
.page-hero .page-lead {
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.09);
  border: 1px solid rgba(120, 53, 15, 0.08);
}

.search-input,
.select-input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 53, 15, 0.16);
  color: #374151;
  background: var(--amber-50);
  outline: none;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.result-note {
  margin-bottom: 18px;
  color: var(--amber-700);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 32px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 28px 72px rgba(17, 24, 39, 0.28);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(17, 24, 39, 0.26);
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-700);
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.34);
  font-size: 38px;
  line-height: 1;
}

.detail-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(120, 53, 15, 0.08);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.1);
}

.detail-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-panel-body {
  padding: 24px;
}

.detail-panel h2,
.article-card h2 {
  color: #1f2937;
  font-size: 26px;
  font-weight: 950;
}

.meta-table {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(120, 53, 15, 0.08);
}

.meta-row span:first-child {
  color: var(--muted);
}

.meta-row span:last-child {
  color: #1f2937;
  font-weight: 800;
  text-align: right;
}

.article-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(120, 53, 15, 0.08);
  box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.article-card p {
  margin-top: 14px;
  color: #4b5563;
  line-height: 2;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 48px 0;
  color: var(--amber-50);
  background: linear-gradient(180deg, var(--amber-900), #451a03);
}

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

.site-footer h2,
.site-footer h3 {
  font-weight: 950;
}

.site-footer p,
.site-footer a {
  color: var(--amber-200);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: var(--amber-200);
}

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

@media (max-width: 1080px) {
  .grid.movies {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
  }

  .main-nav {
    display: none;
  }

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

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

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

  .brand-sub {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0;
  }

  .hero-carousel {
    min-height: 470px;
  }

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

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

  .rank-row {
    grid-template-columns: 52px 92px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }
}

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

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card img {
    height: 250px;
  }

  .hero-carousel {
    min-height: 470px;
  }

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

  .movie-card.wide {
    width: 286px;
    flex-basis: 286px;
  }

  .rank-row {
    grid-template-columns: 46px 78px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-row img {
    width: 78px;
    height: 58px;
    border-radius: 14px;
  }

  .rank-num {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .play-button {
    width: 74px;
    height: 74px;
    font-size: 30px;
  }
}
