:root {
  --orange: #f97316;
  --orange-deep: #ea580c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --soft: #fff7ed;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 46%, #fef3c7 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.25);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-5deg);
}

.logo-name {
  display: block;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: transparent;
  background: linear-gradient(90deg, var(--orange-deep), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.logo-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
}

.main-nav a {
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--orange-deep);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #9a3412;
  background: #ffedd5;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 18px;
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #f59e0b 48%, #facc15 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(3px);
}

.hero::before {
  top: -180px;
  left: -120px;
}

.hero::after {
  right: -120px;
  bottom: -160px;
}

.float-shape {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.12);
  animation: floatShape 7s ease-in-out infinite;
}

.float-shape.one {
  width: 58px;
  height: 58px;
  top: 12%;
  left: 9%;
}

.float-shape.two {
  width: 88px;
  height: 88px;
  right: 12%;
  top: 18%;
  animation-delay: 1.3s;
}

.float-shape.three {
  width: 70px;
  height: 70px;
  left: 28%;
  bottom: 14%;
  animation-delay: 2.1s;
}

.float-shape.four {
  width: 104px;
  height: 104px;
  right: 23%;
  bottom: 18%;
  animation-delay: 3.2s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -22px, 0);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 20px 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: 42px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 38px rgba(124, 45, 18, 0.3);
}

.hero-lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(18px, 2.2vw, 24px);
  text-shadow: 0 10px 24px rgba(124, 45, 18, 0.2);
}

.hero-search {
  max-width: 640px;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 50px rgba(124, 45, 18, 0.2);
  backdrop-filter: blur(12px);
}

.hero-search input,
.search-panel input,
.search-panel select {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 15px;
  outline: 0;
  color: #1f2937;
  background: #fff;
}

.hero-search input {
  padding: 16px 18px;
}

.hero-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 15px;
  padding: 14px 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange-deep), var(--amber));
  box-shadow: 0 12px 28px rgba(154, 52, 18, 0.22);
}

.secondary-button {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

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

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

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.19);
  backdrop-filter: blur(9px);
  font-weight: 800;
}

.hero-slider {
  position: relative;
  min-height: 484px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(124, 45, 18, 0.26);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide-body {
  padding: 22px;
  color: #fff;
  background: linear-gradient(180deg, rgba(124, 45, 18, 0.18), rgba(124, 45, 18, 0.52));
}

.hero-slide h2 {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.2;
}

.hero-slide p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.hero-slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.hero-slide-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.hero-slide-meta span {
  background: rgba(255, 255, 255, 0.22);
}

.hero-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0), #fffbeb 92%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0 0;
}

.section:last-child {
  padding-bottom: 72px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-intro {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(154, 52, 18, 0.18);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #fdba74, #f59e0b);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
  transition: opacity 0.24s ease;
}

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

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--orange-deep);
}

.card-desc {
  min-height: 44px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  color: #c2410c;
  background: #ffedd5;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 186px;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #f59e0b 58%, #facc15);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  right: -52px;
  bottom: -70px;
  background: rgba(255, 255, 255, 0.22);
}

.category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 65px rgba(154, 52, 18, 0.2);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.category-count {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.22);
}

.search-panel {
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(154, 52, 18, 0.08);
  backdrop-filter: blur(12px);
}

.search-panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 12px;
}

.search-panel input,
.search-panel select {
  padding: 14px 16px;
}

.no-results {
  display: none;
  padding: 30px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.08);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 74px 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(154, 52, 18, 0.15);
}

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

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

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

.ranking-info h2,
.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 64px 0 36px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(250, 204, 21, 0.22));
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange-deep);
  font-weight: 800;
}

.detail-page {
  padding-bottom: 74px;
}

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

.player-card,
.content-card,
.recommend-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.24), rgba(17, 24, 39, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--orange-deep);
  font-size: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.player-title {
  max-width: 84%;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.content-card {
  padding: 30px;
}

.content-card h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.detail-lead {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.meta-pill {
  padding: 7px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  font-size: 13px;
}

.content-card h2,
.recommend-card h2 {
  margin: 28px 0 12px;
  font-size: 24px;
}

.content-card p {
  color: #4b5563;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.info-grid strong {
  display: block;
  margin-top: 4px;
  color: #1f2937;
}

.recommend-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 118px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item:hover h3 {
  color: var(--orange-deep);
}

.side-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.index-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.index-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.site-footer {
  color: #fff;
  background: linear-gradient(180deg, #111827, #1f2937);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner p {
  color: #d1d5db;
}

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

.footer-links a:hover {
  color: #fdba74;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: #9ca3af;
  font-size: 14px;
}

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

@media (max-width: 1020px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .recommend-card {
    position: static;
  }
}

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

  .main-nav {
    display: none;
  }

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

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

  .logo-name {
    font-size: 18px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 20px 92px;
  }

  .hero-search,
  .search-panel-row {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 430px;
  }

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

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

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

  .ranking-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ranking-thumb {
    display: none;
  }

  .ranking-action {
    grid-column: 2;
  }

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

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