:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --blue: #2563eb;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(234, 88, 12, 0.35);
  font-size: 15px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--orange);
}

.site-search,
.mobile-search,
.hero-search-box {
  display: flex;
  align-items: center;
}

.site-search input,
.mobile-search input,
.hero-search-box input,
.filter-toolbar input,
.filter-toolbar select {
  width: 240px;
  min-height: 42px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: 12px 0 0 12px;
  padding: 0 14px;
  color: var(--text);
  outline: none;
}

.site-search input:focus,
.mobile-search input:focus,
.hero-search-box input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--orange);
}

.site-search button,
.mobile-search button,
.hero-search-box button {
  min-height: 42px;
  border: 0;
  color: #ffffff;
  background: var(--orange);
  border-radius: 0 12px 12px 0;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.site-search button:hover,
.mobile-search button:hover,
.hero-search-box button:hover {
  background: var(--orange-dark);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 26px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-menu nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-menu nav a {
  padding: 10px 12px;
  color: #374151;
  border-radius: 12px;
}

.mobile-menu nav a:hover {
  color: var(--orange);
  background: #fff7ed;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg,
.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after,
.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(0deg, rgba(17, 24, 39, 0.36), rgba(17, 24, 39, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 74px 0 110px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 14px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 24px);
}

.hero-tags,
.movie-card-tags,
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.quick-tags a,
.quick-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 650;
}

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

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

.primary-button {
  color: var(--orange);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.floating-feature {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  margin-bottom: 36px;
}

.section-block {
  padding: 64px 0;
}

.white-section {
  background: #ffffff;
}

.section-heading,
.category-overview-head,
.player-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading span,
.category-overview-head span,
.subpage-hero span {
  display: inline-block;
  color: var(--orange);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.category-overview-head h2,
.search-panel h2,
.article-card h2,
.side-card h2,
.player-title-row h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.section-heading a,
.category-overview-head a,
.player-title-row a {
  color: var(--orange);
  font-weight: 800;
}

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

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

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

.movie-card {
  background: var(--card);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

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

.movie-type-badge,
.movie-play-badge {
  position: absolute;
  z-index: 2;
}

.movie-type-badge {
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: var(--orange);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 750;
}

.movie-play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.86);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  padding: 18px;
}

.movie-card-title {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

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

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

.movie-card-meta,
.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.movie-card-tags {
  margin-top: 14px;
}

.movie-card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  color: var(--orange);
  background: #fff7ed;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact .movie-card-title {
  font-size: 16px;
}

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

.category-card,
.search-panel,
.category-overview-card,
.article-card,
.side-card,
.player-card {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 26px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--orange);
}

.category-card-main span {
  font-size: 22px;
  font-weight: 900;
}

.category-card-main strong {
  color: #ffffff;
  background: var(--orange);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.category-card p,
.search-panel p,
.category-overview-head p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-samples {
  display: grid;
  gap: 8px;
}

.category-samples a {
  color: #374151;
  font-weight: 700;
}

.category-samples a:hover {
  color: var(--orange);
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 380px;
  gap: 30px;
  align-items: start;
}

.search-panel {
  position: sticky;
  top: 92px;
  padding: 28px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 48%, #eff6ff);
}

.hero-search-box {
  margin: 22px 0;
}

.hero-search-box input {
  width: 100%;
}

.quick-tags a,
.quick-tags span {
  color: var(--orange);
  background: #ffffff;
  border-color: #fed7aa;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 62px 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.ranking-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 16px;
  font-weight: 900;
}

.ranking-thumb img {
  width: 88px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-info a {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 850;
}

.ranking-info a:hover {
  color: var(--orange);
}

.ranking-info p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.subpage-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  padding: 82px 0;
}

.subpage-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.1;
}

.subpage-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 19px;
}

.subpage-hero span {
  color: #fed7aa;
}

.category-overview-list {
  display: grid;
  gap: 30px;
}

.category-overview-card {
  padding: 26px;
}

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

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  border-radius: 14px;
}

.empty-state {
  display: none;
  padding: 28px;
  color: var(--muted);
  background: #ffffff;
  border-radius: 20px;
  text-align: center;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
  color: #fed7aa;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
}

.detail-one-line {
  max-width: 760px;
  color: #ffedd5;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 700;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

.player-card,
.article-card,
.side-card {
  padding: 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 24px;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.06));
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(234, 88, 12, 0.96);
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

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

.player-title-row {
  align-items: center;
  margin: 18px 0 0;
}

.player-title-row h2 {
  font-size: 24px;
}

.article-card p {
  margin: 12px 0 0;
  color: #374151;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 18px 0 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.side-tags {
  margin-top: 18px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  color: #9ca3af;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1100px) {
  .site-nav,
  .site-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero-inner,
  .detail-layout,
  .two-column-layout,
  .detail-content-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    width: min(340px, 100%);
  }

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

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

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

  .hero-slider,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner {
    padding: 48px 0 100px;
    gap: 28px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .hero-poster {
    max-width: 240px;
  }

  .featured-grid,
  .movie-grid,
  .full-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .section-block {
    padding: 42px 0;
  }

  .section-heading,
  .category-overview-head,
  .player-title-row {
    display: block;
  }

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

  .ranking-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 13px;
  }

  .ranking-thumb img {
    width: 72px;
    height: 96px;
  }

  .detail-hero-inner {
    padding: 28px 0 48px;
  }

  .player-card,
  .article-card,
  .side-card,
  .category-overview-card {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header-inner,
  .mobile-menu,
  .site-footer-inner,
  .hero-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .floating-feature {
    margin-top: -34px;
  }

  .mobile-search input {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .site-footer-inner {
    gap: 24px;
  }

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