:root {
  --autumn-50: #fff7ed;
  --autumn-100: #ffedd5;
  --autumn-200: #fed7aa;
  --autumn-500: #f97316;
  --autumn-600: #ea580c;
  --autumn-700: #c2410c;
  --leaf-200: #fef08a;
  --leaf-400: #facc15;
  --leaf-500: #eab308;
  --text: #1f2937;
  --muted: #6b7280;
  --panel: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 20px 45px rgba(124, 45, 18, 0.13);
  --gradient: linear-gradient(135deg, #f97316 0%, #ea580c 48%, #fb923c 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--autumn-50) 0%, #ffffff 38%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.topbar {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(124, 45, 18, 0.10);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: rotate(10deg) scale(1.04);
}

.logo-title {
  display: block;
  color: var(--autumn-700);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

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

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

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--autumn-600);
}

.header-search {
  position: relative;
  width: 260px;
}

.header-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 2px solid var(--autumn-200);
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 18px 10px 42px;
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--autumn-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search span {
  position: absolute;
  left: 15px;
  top: 50%;
  color: var(--autumn-500);
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--autumn-700);
  background: var(--autumn-100);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid var(--autumn-100);
}

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

.mobile-panel .nav-links {
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
}

.mobile-panel .nav-links a {
  padding: 10px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  color: #fff;
  background: var(--gradient);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.32) 0 2px, transparent 2px), radial-gradient(circle at 75% 65%, rgba(255,255,255,0.22) 0 3px, transparent 3px);
  background-size: 60px 60px, 90px 90px;
}

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

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

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h1 span {
  color: var(--leaf-200);
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 30px;
  color: #ffedd5;
  font-size: clamp(18px, 2vw, 24px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 12px 22px;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

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

.btn-primary {
  background: #fff;
  color: var(--autumn-600);
  box-shadow: 0 16px 34px rgba(124, 45, 18, 0.22);
}

.btn-primary:hover {
  background: var(--autumn-50);
}

.btn-ghost {
  border-color: #fff;
  color: #fff;
}

.btn-ghost:hover {
  color: var(--autumn-600);
  background: #fff;
}

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

.hero-tag {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  min-height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.28);
  backdrop-filter: blur(16px);
}

.hero-slide.is-active {
  display: grid;
  animation: fadeIn 0.45s ease both;
}

.hero-poster {
  position: relative;
  min-height: 430px;
  background-image: linear-gradient(0deg, rgba(0,0,0,0.78), rgba(0,0,0,0.10)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-poster-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
}

.hero-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--autumn-600);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.hero-poster h2 {
  margin: 14px 0 8px;
  font-size: 30px;
  line-height: 1.18;
}

.hero-poster p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #f3f4f6;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section-card {
  padding: 42px;
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.section-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 900;
}

.section-title span {
  color: var(--autumn-600);
}

.section-desc {
  margin: 0;
  color: var(--muted);
}

.link-more {
  color: var(--autumn-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 45px rgba(124, 45, 18, 0.18);
}

.movie-cover {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 60%;
  background: linear-gradient(135deg, var(--autumn-100), #fff);
}

.movie-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,0.38);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.play-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--autumn-600);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}

.movie-badges {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-badges span {
  border-radius: 8px;
  background: rgba(255,255,255,0.90);
  color: var(--autumn-700);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.rating {
  color: var(--leaf-500);
  font-weight: 900;
}

.featured-card {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(31, 41, 55, 0.18);
}

.featured-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-card:hover img {
  transform: scale(1.06);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.38) 52%, rgba(0,0,0,0.05) 100%);
}

.featured-overlay h3 {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.featured-overlay p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #e5e7eb;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-card {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(124, 45, 18, 0.16);
}

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

.list-body {
  padding: 18px 18px 18px 0;
}

.list-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.list-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-wall {
  background: var(--gradient);
  border-radius: 30px;
  padding: 46px;
  color: #fff;
  text-align: center;
}

.category-wall .section-title {
  color: #fff;
}

.category-wall .section-desc {
  color: var(--autumn-100);
}

.category-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.category-tile {
  display: block;
  border-radius: 18px;
  padding: 24px 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(124, 45, 18, 0.24);
}

.category-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 42px;
}

.category-tile strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.category-tile small {
  color: var(--muted);
}

.page-hero {
  padding: 64px 0;
  color: #fff;
  background: var(--gradient);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--autumn-100);
  font-size: 19px;
}

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

.breadcrumb a:hover {
  color: #fff;
}

.filter-box {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-bottom: 28px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 180px 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 20px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(124, 45, 18, 0.16);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: #fff;
  background: var(--gradient);
  font-size: 22px;
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
}

.rank-cover img {
  width: 180px;
  height: 104px;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  padding: 56px 0 44px;
  color: #fff;
  background: radial-gradient(circle at 78% 18%, rgba(254, 240, 138, 0.26), transparent 28%), var(--gradient);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 46px 0 72px;
}

.player-card,
.detail-panel,
.aside-panel {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.player-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background-image: linear-gradient(0deg, rgba(0,0,0,0.70), rgba(0,0,0,0.16)), var(--poster-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  z-index: 2;
}

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

.player-mask span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--autumn-600);
  box-shadow: 0 18px 38px rgba(0,0,0,0.32);
  font-size: 34px;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h2,
.aside-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.3;
}

.detail-panel p {
  margin: 0 0 18px;
  color: #4b5563;
}

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

.meta-box {
  border-radius: 14px;
  padding: 14px;
  background: var(--autumn-50);
}

.meta-box small {
  display: block;
  color: var(--muted);
}

.meta-box strong {
  color: var(--autumn-700);
}

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

.tag-row span,
.tag-row a {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--autumn-700);
  background: var(--autumn-100);
  font-size: 13px;
  font-weight: 800;
}

.aside-panel {
  padding: 22px;
}

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

.aside-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}

.aside-item img {
  width: 96px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}

.aside-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.aside-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.empty-state {
  display: none;
  border-radius: 22px;
  padding: 46px 20px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  padding: 44px 0;
  color: #fff;
  background: #1f2937;
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
}

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

.fade-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

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

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

  .mobile-panel .header-search,
  .mobile-panel .nav-links {
    display: flex;
  }

  .mobile-panel .header-search {
    width: 100%;
    margin-top: 16px;
  }

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

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

  .rank-item {
    grid-template-columns: 56px 150px 1fr;
  }

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

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

  .topbar {
    font-size: 12px;
  }

  .logo-title {
    font-size: 20px;
  }

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

  .hero-inner {
    padding: 42px 0 86px;
  }

  .hero-slide,
  .hero-poster {
    min-height: 360px;
  }

  .section {
    padding: 48px 0;
  }

  .section-card,
  .category-wall {
    padding: 24px;
    border-radius: 22px;
  }

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

  .grid-3,
  .grid-4,
  .grid-auto,
  .footer-grid,
  .filter-box,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-template-columns: 1fr;
  }

  .list-body {
    padding: 0 16px 16px;
  }

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

  .rank-cover {
    grid-column: 1 / -1;
  }

  .rank-cover img {
    width: 100%;
    height: 180px;
  }

  .rank-action {
    grid-column: 1 / -1;
  }

  .detail-panel,
  .aside-panel {
    padding: 20px;
  }
}
