:root {
  --site-orange: #f97316;
  --site-amber: #f59e0b;
  --site-gold: #facc15;
  --site-blue: #0284c7;
  --site-cyan: #06b6d4;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-line: #e5e7eb;
  --site-bg: #f8fafc;
  --site-dark: #111827;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--site-text);
  background: linear-gradient(180deg, #fff7ed 0, #ffffff 22rem, #f8fafc 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

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

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
  font-size: 20px;
  transform: translateZ(0);
}

.logo:hover .logo-mark {
  transform: scale(1.07);
}

.logo-title {
  display: block;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

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

.main-nav a:hover,
.main-nav a.is-active {
  color: #ea580c;
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff7ed;
  color: #c2410c;
  cursor: pointer;
}

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

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.22), transparent 24rem), radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.16), transparent 20rem), linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.03));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-size: 60px 60px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(0deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
}

.hero-slider {
  position: relative;
  z-index: 1;
  min-height: 630px;
  display: flex;
  align-items: center;
  padding: 64px 0;
}

.hero-track {
  position: relative;
  width: 100%;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(42px, 6.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 950;
}

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

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list span,
.card-tag,
.info-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-tags span {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

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

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

.btn-primary {
  color: #c2410c;
  background: #fff;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

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

.btn-orange {
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.25);
}

.hero-media {
  position: relative;
  min-height: 470px;
}

.hero-poster {
  position: absolute;
  inset: 0 8% 0 0;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  box-shadow: 0 36px 78px rgba(88, 28, 0, 0.32);
  transform: rotate(2.2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(15, 23, 42, 0.78));
}

.hero-card {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: min(360px, 88%);
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--site-text);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.hero-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-card small {
  color: var(--site-muted);
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: -48px;
  display: flex;
  gap: 10px;
}

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

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

.search-panel {
  position: relative;
  z-index: 2;
  margin: -34px auto 0;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.search-input,
.filter-select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
  color: var(--site-text);
  outline: 0;
  min-height: 48px;
  padding: 0 18px;
  box-shadow: inset 0 1px 0 rgba(249, 115, 22, 0.04);
}

.search-input:focus,
.filter-select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a,
.quick-links button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.section {
  padding: 64px 0;
}

.section-soft {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

.link-more {
  color: #ea580c;
  font-weight: 850;
  white-space: nowrap;
}

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

.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));
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 52px rgba(15, 23, 42, 0.14);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fed7aa, #fef3c7);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.poster img.is-missing {
  opacity: 0;
}

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(234, 88, 12, 0.92);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 8px 16px rgba(124, 45, 18, 0.16);
}

.poster-score {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 12px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
  color: var(--site-muted);
  font-size: 12px;
}

.card-meta span,
.card-tag {
  padding: 5px 9px;
  background: #f3f4f6;
}

.card-tag {
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 800;
}

.card-line {
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.65;
}

.feature-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 240px;
}

.feature-card .poster {
  aspect-ratio: auto;
  height: 100%;
}

.feature-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 235px;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.category-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
  font-weight: 900;
}

.category-card h2,
.category-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.7;
  flex: 1;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mini-list a {
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-num {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  font-weight: 950;
}

.rank-thumb {
  overflow: hidden;
  width: 86px;
  height: 112px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
}

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

.rank-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-desc {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.65;
}

.rank-stats {
  min-width: 112px;
  text-align: right;
  color: #0369a1;
  font-weight: 900;
}

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

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.22), transparent 18rem), linear-gradient(90deg, rgba(0,0,0,.16), transparent);
}

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

.page-hero h1 {
  margin: 0 0 18px;
  max-width: 900px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.75;
}

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

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

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--site-shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  background: #0f172a;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  filter: blur(1px);
  transform: scale(1.02);
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,.12), rgba(0,0,0,.62));
}

.play-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  font-size: 30px;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.content-card,
.sidebar-card {
  border-radius: 26px;
  background: #fff;
  padding: 26px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.content-card + .content-card,
.sidebar-card + .sidebar-card {
  margin-top: 22px;
}

.content-card h2,
.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--site-line);
}

.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.info-row span:last-child {
  text-align: right;
  font-weight: 850;
}

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

.no-results {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 850;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  margin-top: 64px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 34px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  text-align: center;
  color: #cbd5e1;
  font-size: 13px;
}

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

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

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

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

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

  .main-nav.is-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--site-shadow);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-slider {
    min-height: auto;
    padding: 48px 0 78px;
  }

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 410px;
  }

  .hero-dots {
    bottom: -44px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

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

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

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

  .feature-card .poster {
    aspect-ratio: 3 / 4;
  }

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

  .rank-stats {
    grid-column: 2 / 4;
    text-align: left;
  }

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

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

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

  .logo-subtitle {
    display: none;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-media {
    min-height: 340px;
  }

  .hero-card {
    width: calc(100% - 28px);
  }

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

  .content-card,
  .sidebar-card {
    padding: 20px;
  }
}
