:root {
  --site-dark: #0f172a;
  --site-dark-soft: #1e293b;
  --site-orange: #ea580c;
  --site-orange-dark: #c2410c;
  --site-text: #1e293b;
  --site-muted: #64748b;
  --site-soft: #f8fafc;
  --site-line: #e2e8f0;
}

.site-body {
  min-height: 100vh;
  background: #f8fafc;
  color: var(--site-text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.header-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link,
.mobile-link {
  color: #e2e8f0;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: #fb923c;
}

.header-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 14rem;
  padding: 0.65rem 0.9rem;
  background: #334155;
  color: #ffffff;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}

.header-search button,
.mobile-search button,
.large-search button {
  border-radius: 0.75rem;
  background: var(--site-orange);
  color: #ffffff;
  font-weight: 700;
  padding: 0.65rem 1rem;
}

.mobile-toggle {
  display: none;
  color: #ffffff;
  font-size: 1.6rem;
}

.mobile-panel {
  display: none;
  padding: 0 0 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.mobile-panel.open {
  display: grid;
  gap: 0.85rem;
}

.hero-section {
  background: radial-gradient(circle at 75% 20%, rgba(249, 115, 22, 0.33), transparent 26%), linear-gradient(135deg, #1e293b 0%, #334155 42%, #0f172a 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero-slide.active {
  display: grid;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fb923c;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 span {
  display: block;
  color: #fb923c;
  margin-top: 0.35rem;
}

.hero-copy p,
.page-hero p,
.detail-intro p {
  max-width: 48rem;
  margin-top: 1.35rem;
  color: #d1d5db;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin-top: 1.4rem;
}

.hero-tags span,
.tag-row span,
.tag-cloud span {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.85rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: var(--site-orange);
  color: #ffffff;
  padding: 0.85rem 1.35rem;
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.25);
}

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

.ghost-btn {
  background: rgba(51, 65, 85, 0.86);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
}

.ghost-btn:hover {
  background: rgba(71, 85, 105, 0.96);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 4px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

.hero-poster img,
.movie-cover img,
.category-card img,
.category-overview-cover img,
.detail-poster img,
.player-cover img,
.related-card img,
.latest-row img,
.rank-row img,
.mini-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster:after,
.movie-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 58%);
  opacity: 0.9;
}

.hero-play,
.play-dot {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--site-orange);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.32);
}

.hero-play {
  width: 5rem;
  height: 5rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-controls button {
  color: #ffffff;
}

.hero-controls > button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.6rem;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.active {
  width: 1.8rem;
  background: #fb923c;
}

.content-section {
  padding: 4rem 0;
}

.soft-bg {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.detail-article h2,
.related-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  color: #1e293b;
}

.section-heading p {
  color: var(--site-muted);
  margin-top: 0.35rem;
}

.section-link {
  color: var(--site-orange);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.13);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.movie-cover img,
.category-card img,
.related-card img,
.latest-row img,
.rank-row img {
  transition: transform 0.3s ease;
}

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

.movie-type,
.rank-badge {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
}

.movie-type {
  right: 0.75rem;
  background: var(--site-orange);
}

.rank-badge {
  left: 0.75rem;
  background: #0f172a;
}

.play-dot {
  right: 0.85rem;
  bottom: 0.85rem;
  width: 2.35rem;
  height: 2.35rem;
}

.movie-info {
  padding: 1rem;
}

.movie-info h3 {
  font-size: 1.06rem;
  line-height: 1.35;
  font-weight: 850;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.movie-info h3 a:hover {
  color: var(--site-orange);
}

.movie-info p {
  min-height: 2.8rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #64748b;
  font-size: 0.82rem;
  margin: 0.8rem 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.category-card {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.category-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.1));
}

.category-card div {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.category-card span,
.category-card strong {
  display: block;
}

.category-card span {
  color: #fb923c;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.category-card strong {
  font-size: 0.95rem;
  line-height: 1.55;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: 2rem;
}

.ranking-list,
.latest-list {
  display: grid;
  gap: 0.75rem;
}

.rank-row,
.latest-row {
  display: grid;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--site-line);
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.75rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 2.4rem 5rem 1fr auto;
}

.latest-row {
  grid-template-columns: 5rem 1fr auto auto;
}

.rank-row:hover,
.latest-row:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.rank-row img,
.latest-row img {
  aspect-ratio: 16 / 9;
  border-radius: 0.65rem;
  background: #0f172a;
}

.rank-number {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffedd5;
  color: var(--site-orange);
  font-weight: 900;
}

.rank-title,
.latest-title {
  font-weight: 850;
  color: #1e293b;
}

.rank-hot,
.latest-row span:not(.latest-title) {
  color: #64748b;
  font-size: 0.86rem;
}

.page-hero,
.detail-hero {
  background: linear-gradient(135deg, #1e293b, #334155 48%, #0f172a);
  color: #ffffff;
  padding: 4rem 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-bar input,
.filter-bar select,
.large-search input {
  background: #ffffff;
  color: #1e293b;
  padding: 0.85rem 1rem;
}

.filter-bar input {
  min-width: min(100%, 24rem);
  flex: 1;
}

.large-search {
  max-width: 44rem;
  margin-top: 2rem;
}

.large-search input {
  flex: 1;
  min-height: 3.2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 18rem 1fr;
  gap: 2.5rem;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 1.2rem;
  border: 4px solid rgba(148, 163, 184, 0.55);
  background: #0f172a;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.35);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0;
}

.detail-meta span {
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.38);
  color: #e2e8f0;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #000000;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.24);
  aspect-ratio: 16 / 9;
}

.player-shell video,
.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-shell video {
  background: #000000;
}

.player-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  background: #000000;
}

.player-cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.player-cover span {
  position: relative;
  z-index: 2;
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--site-orange);
  font-size: 2rem;
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.32);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.42fr);
  gap: 2rem;
  align-items: start;
}

.detail-article,
.related-panel,
.category-overview-card {
  border: 1px solid var(--site-line);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.detail-article,
.related-panel {
  padding: 1.6rem;
}

.detail-article h2 + p {
  margin-top: 0.8rem;
}

.detail-article p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
  white-space: pre-line;
}

.tag-cloud {
  margin-top: 1rem;
}

.related-list {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0;
}

.related-card {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.8rem;
  align-items: center;
  border-radius: 0.85rem;
  padding: 0.55rem;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #fff7ed;
}

.related-card img {
  aspect-ratio: 16 / 9;
  border-radius: 0.7rem;
  background: #0f172a;
}

.related-card span {
  display: block;
  color: #1e293b;
  font-weight: 850;
  line-height: 1.4;
}

.related-card small {
  display: block;
  color: #64748b;
  margin-top: 0.25rem;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 13rem 1fr;
  overflow: hidden;
}

.category-overview-cover {
  position: relative;
  min-height: 12rem;
  background: #0f172a;
}

.category-overview-cover span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  border-radius: 999px;
  background: var(--site-orange);
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.category-overview-card > div {
  padding: 1.25rem;
}

.category-overview-card h2 {
  color: #1e293b;
  font-size: 1.35rem;
  font-weight: 900;
}

.category-overview-card p {
  color: #64748b;
  margin: 0.7rem 0 1rem;
  line-height: 1.6;
}

.mini-strip {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.mini-strip a {
  width: 3.6rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #0f172a;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 2rem;
}

.footer-grid p {
  max-width: 34rem;
  margin-top: 1rem;
  line-height: 1.8;
}

.footer-grid h3 {
  color: #ffffff;
  font-weight: 850;
  margin-bottom: 0.8rem;
}

.footer-grid li {
  margin: 0.45rem 0;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 0.9rem;
}

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-slide,
  .detail-grid,
  .detail-content-grid,
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 18rem;
  }

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

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

@media (max-width: 640px) {
  .hero-section,
  .page-hero,
  .detail-hero {
    padding: 3rem 0;
  }

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

  .section-heading,
  .filter-bar,
  .large-search {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-row,
  .latest-row {
    grid-template-columns: 3.8rem 1fr;
  }

  .rank-number,
  .rank-hot,
  .latest-row span:not(.latest-title) {
    display: none;
  }

  .related-card {
    grid-template-columns: 6rem 1fr;
  }
}
