:root {
  --site-orange: #f97316;
  --site-orange-dark: #ea580c;
  --site-red: #dc2626;
  --site-bg: #f9fafb;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-card: #ffffff;
  --site-border: #e5e7eb;
  --site-dark: #111827;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.24);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  opacity: 1;
  color: #ffedd5;
}

.header-search {
  position: relative;
  flex: 0 1 280px;
}

.header-search input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 48px 0 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--site-text);
  outline: none;
}

.header-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--site-orange);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

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

.mobile-nav.open {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 0 72px;
  color: #ffffff;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--site-orange);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.hero-title {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: 1.1rem;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: var(--site-orange);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: var(--site-orange-dark);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 32px;
  background: var(--site-orange);
}

.section {
  padding: 48px 0;
}

.section-tight {
  padding: 28px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 900;
  color: var(--site-text);
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--site-muted);
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--site-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card .poster-wrap {
  position: relative;
  overflow: hidden;
  background: #111827;
  aspect-ratio: 2 / 3;
}

.movie-card.landscape .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.card-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.0);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .card-mask {
  opacity: 1;
  background: rgba(0, 0, 0, 0.42);
}

.card-play {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  font-size: 1.5rem;
}

.card-badge,
.card-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-badge {
  left: 12px;
  color: #ffffff;
  background: var(--site-orange);
}

.card-year {
  right: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
}

.card-body {
  padding: 14px;
}

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

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

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--site-muted);
  font-size: 0.78rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  color: #ea580c;
  background: #ffedd5;
  font-weight: 700;
}

.home-category-panel {
  border-radius: 28px;
  padding: 32px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

.category-block + .category-block {
  margin-top: 32px;
}

.category-title-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: #374151;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-title-link:hover {
  color: var(--site-orange-dark);
}

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

.latest-item,
.ranking-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.latest-item:hover,
.ranking-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.latest-thumb,
.ranking-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
}

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

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  padding: 54px 0;
}

.page-hero.blue {
  background: linear-gradient(90deg, #2563eb, #4f46e5);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.filter-box {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 160px;
  gap: 12px;
  padding: 18px;
  margin: 28px 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-box input,
.filter-box select,
.search-large input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--site-text);
  background: #ffffff;
  outline: none;
}

.filter-box input:focus,
.filter-box select:focus,
.search-large input:focus {
  border-color: var(--site-orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.category-card {
  display: block;
  min-height: 220px;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.96), rgba(220, 38, 38, 0.92));
  box-shadow: var(--site-shadow);
  overflow: hidden;
  position: relative;
}

.category-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(79, 70, 229, 0.92));
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 900;
}

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

.category-count {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.category-covers {
  position: absolute;
  right: -12px;
  bottom: -18px;
  display: flex;
  gap: 8px;
  opacity: 0.78;
  transform: rotate(-8deg);
}

.category-covers img {
  width: 72px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

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

.breadcrumb a {
  color: var(--site-orange-dark);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 360px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side,
.content-box {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.detail-copy {
  padding: 24px;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.18;
  font-weight: 900;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 18px;
}

.detail-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--site-border);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: #374151;
}

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

.tag-list span {
  border-radius: 999px;
  padding: 5px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 700;
  font-size: 0.86rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.player-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-play span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--site-orange);
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.35);
  font-size: 2rem;
}

.player-shell.playing .player-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  border-radius: 999px;
  padding: 6px 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.84rem;
}

.side-poster {
  aspect-ratio: 2 / 3;
  background: #111827;
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-content {
  padding: 18px;
}

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

.search-large {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  margin: 28px 0;
}

.search-large button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--site-orange);
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  margin-top: 64px;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-grid p,
.footer-grid li {
  color: #9ca3af;
  font-size: 0.92rem;
}

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

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

.hidden-by-filter {
  display: none !important;
}

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

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

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

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

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

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

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

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

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

  .brand {
    font-size: 1.18rem;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    padding: 32px 0 64px;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-arrow {
    display: none;
  }

  .grid-featured,
  .grid-cards,
  .grid-categories,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-category-panel {
    padding: 20px;
    border-radius: 20px;
  }

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

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

  .filter-box,
  .search-large {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: block;
  }

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

@media (max-width: 460px) {
  .grid-featured,
  .grid-cards,
  .grid-categories,
  .related-grid {
    grid-template-columns: 1fr;
  }
}
