:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(120, 53, 15, 0.16);
  --soft-shadow: 0 12px 35px rgba(17, 24, 39, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 55%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(120, 53, 15, 0.12);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-600);
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.32);
}

.logo-text {
  font-size: 1.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: var(--gray-700);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber-600);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

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

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 7px 9px 7px 16px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.08);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gray-800);
}

.header-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--amber-600);
  border-radius: 12px;
  background: var(--amber-100);
}

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

.mobile-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--gray-700);
}

.mobile-nav a:hover {
  color: var(--amber-600);
  background: var(--amber-50);
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding-top: 118px;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 30%, rgba(253, 230, 138, 0.34), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(251, 146, 60, 0.34), transparent 26%),
    linear-gradient(135deg, #d97706 0%, #ea580c 50%, #7c2d12 100%);
}

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

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
}

.hero-carousel {
  position: relative;
  z-index: 2;
  min-height: 540px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 13px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--amber-600);
  background: var(--amber-100);
  font-weight: 800;
  font-size: 0.92rem;
}

.hero-kicker {
  color: #78350f;
  background: rgba(255, 255, 255, 0.76);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.7rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-title span {
  color: #fde68a;
}

.hero-copy {
  max-width: 680px;
  margin: 0 0 30px;
  color: #fff7ed;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: var(--amber-600);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(120, 53, 15, 0.25);
}

.btn-primary:hover {
  background: #fff7ed;
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.btn-warm {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.25);
}

.hero-poster {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-card {
  position: relative;
  width: min(420px, 100%);
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 35px 80px rgba(67, 20, 7, 0.36);
  transform: rotate(2deg);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-card-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 15px;
  border-radius: 20px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(14px);
}

.hero-card-info strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.hero-card-info span {
  color: #fde68a;
  font-size: 0.92rem;
}

.hero-dots {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.hero-dot {
  width: 40px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

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

.section {
  padding: 76px 0;
}

.section-sm {
  padding: 54px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--gray-900);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 12px 0 0;
  max-width: 700px;
  color: var(--gray-500);
}

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

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

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

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

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

.movie-card,
.channel-card,
.text-panel,
.rank-panel {
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.10);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover,
.channel-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(251, 191, 36, 0.22), transparent 38%),
    linear-gradient(135deg, #fff7ed, #fed7aa);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.image-hidden {
  opacity: 0;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.24);
}

.card-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.movie-card:hover .card-play {
  transform: translateY(0);
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.35;
  color: var(--gray-900);
  font-weight: 900;
}

.card-summary {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #92400e;
  background: var(--amber-50);
  font-size: 0.78rem;
  font-weight: 800;
}

.channel-card {
  position: relative;
  padding: 26px;
  min-height: 180px;
}

.channel-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
}

.channel-card h2,
.channel-card h3 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 1.3rem;
  font-weight: 950;
}

.channel-card p {
  margin: 0 0 18px;
  color: var(--gray-500);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 46px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.rank-thumb {
  width: 82px;
  height: 62px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--amber-100);
}

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

.rank-info h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--gray-900);
}

.rank-info p {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.rank-score {
  color: var(--amber-600);
  font-weight: 950;
}

.page-hero {
  padding: 138px 0 56px;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 30%, rgba(253, 230, 138, 0.32), transparent 30%),
    linear-gradient(135deg, #d97706, #ea580c 58%, #7c2d12);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #fff7ed;
  font-size: 1.12rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  width: 100%;
  outline: 0;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--amber-50);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.26);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    linear-gradient(0deg, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.18)),
    rgba(0, 0, 0, 0.12);
}

.play-layer.is-hidden {
  display: none;
}

.play-button-core {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: #ffffff;
  font-size: 2.4rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.text-panel {
  padding: 26px;
}

.text-panel h1,
.text-panel h2,
.text-panel h3 {
  margin: 0 0 14px;
  color: var(--gray-900);
  font-weight: 950;
  line-height: 1.2;
}

.text-panel h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.text-panel h2 {
  font-size: 1.5rem;
}

.text-panel p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--amber-100);
  box-shadow: var(--soft-shadow);
}

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

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

.meta-box {
  padding: 12px;
  border-radius: 16px;
  background: var(--amber-50);
}

.meta-box small {
  display: block;
  color: var(--gray-500);
  font-size: 0.78rem;
}

.meta-box strong {
  display: block;
  color: var(--gray-900);
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #fff7ed;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #ffffff;
  font-weight: 800;
}

.footer {
  padding: 42px 0;
  color: #7c2d12;
  background: #fff7ed;
  border-top: 1px solid rgba(217, 119, 6, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  color: #78350f;
}

.footer p,
.footer a {
  color: #92400e;
}

.footer a {
  display: block;
  margin: 6px 0;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 119, 6, 0.12);
  color: #92400e;
}

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

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

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

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

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-card {
    width: min(320px, 100%);
  }

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

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

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

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

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

  .hero {
    padding-top: 104px;
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 38px 70px 1fr;
  }

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

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

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