* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: #ea580c;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
}

.brand-short {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a,
.mobile-panel a {
  color: #e2e8f0;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover,
.brand:hover {
  color: #fb923c;
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  outline: none;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  color: #ffffff;
  padding: 10px 42px 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #cbd5e1;
}

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  color: #cbd5e1;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: #1e293b;
}

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

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

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 10px;
}

.mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search button {
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #ea580c;
  padding: 0 16px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b 0%, #334155 46%, #0f172a 100%);
  padding: 78px 0 70px;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.34), rgba(234, 88, 12, 0));
}

.hero-carousel {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #ea580c;
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.hero-text,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.hero-tags span,
.card-tags span {
  display: inline-flex;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(234, 88, 12, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.25);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.small-actions {
  margin-top: 24px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: #ea580c;
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}

.btn-primary:hover {
  background: #c2410c;
}

.btn-secondary {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
}

.btn-secondary:hover {
  background: #475569;
}

.btn.full {
  width: 100%;
}

.hero-media {
  position: relative;
}

.hero-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid #475569;
  border-radius: 24px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.hero-cover img,
.card-cover img,
.mini-card img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover::after,
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.42));
}

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

.hero-play {
  left: 50%;
  top: 50%;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
  font-size: 32px;
}

.hero-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -26px;
  z-index: 3;
  display: grid;
  gap: 4px;
  color: #1e293b;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.hero-card strong {
  font-size: 17px;
}

.hero-card span {
  color: #64748b;
  font-size: 13px;
}

.hero-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #94a3b8;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 560px;
  margin-top: 36px;
}

.hero-stats div {
  text-align: center;
}

.hero-stats strong {
  display: block;
  color: #fb923c;
  font-size: 28px;
}

.hero-stats span {
  color: #94a3b8;
  font-size: 13px;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #ffffff;
}

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

.slate-section {
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.section-head {
  margin-bottom: 30px;
}

.section-head.no-pad {
  margin-bottom: 22px;
}

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

.section-head.center {
  max-width: 720px;
  text-align: center;
}

.section-head h2,
.content-card h2,
.player-card h2,
.side-panel h2,
.rank-panel h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-head.light h2,
.slate-section .section-head h2 {
  color: #ffffff;
}

.section-head p:not(.eyebrow) {
  color: #64748b;
  margin: 10px 0 0;
}

.section-link {
  color: #ea580c;
  font-weight: 800;
}

.light-link {
  color: #fed7aa;
}

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

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

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

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

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

.card-cover img {
  transition: transform 0.35s ease;
}

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

.play-badge {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-pill {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  color: #ffffff;
  background: #ea580c;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: #1e293b;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: #ea580c;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  margin-top: 12px;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.card-category {
  display: inline-flex;
  margin-top: 12px;
  color: #ea580c;
  font-size: 13px;
  font-weight: 800;
}

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

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

.category-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #f97316);
  font-weight: 900;
}

.category-card h2 {
  margin: 0;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #64748b;
}

.category-card strong {
  color: #ea580c;
}

.latest-list,
.rank-list {
  display: grid;
  gap: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  background: #ffffff;
  padding: 13px 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: #fb923c;
}

.slate-section .rank-row {
  color: #1e293b;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: #ea580c;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-meta {
  color: #64748b;
  font-size: 13px;
}

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

.page-hero p:not(.eyebrow) {
  margin: 16px 0 0;
}

.mini-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  display: grid;
  gap: 8px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 800;
}

.mini-card img {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #020617;
}

.filter-mini,
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-mini button {
  border: 0;
  border-radius: 12px;
  color: #334155;
  background: #e2e8f0;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
}

.filter-mini button.is-active {
  color: #ffffff;
  background: #ea580c;
}

.filter-panel {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  flex: 1 1 180px;
  color: #1e293b;
  background: #f8fafc;
  padding: 12px 14px;
}

.filter-input {
  min-width: min(420px, 100%);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.side-panel,
.content-card,
.player-card {
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.rank-list.tall {
  max-height: 840px;
  overflow: auto;
  padding-right: 4px;
}

.detail-hero {
  padding-bottom: 46px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 14px;
}

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

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 7px 12px;
  font-size: 13px;
}

.poster-card {
  overflow: hidden;
  border: 4px solid #475569;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background: #020617;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.3);
}

.no-top {
  padding-top: 42px;
}

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

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

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  cursor: pointer;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.36);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: #ea580c;
  box-shadow: 0 20px 42px rgba(234, 88, 12, 0.35);
  font-size: 36px;
}

.video-frame.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-card h2,
.player-card p,
.content-card,
.side-panel {
  padding: 24px;
}

.player-card h2 {
  font-size: 28px;
  padding-bottom: 0;
}

.player-card p,
.content-card p,
.side-panel dd {
  color: #475569;
}

.content-card {
  margin-bottom: 24px;
}

.content-card h2 {
  margin-bottom: 12px;
}

.side-panel {
  position: sticky;
  top: 92px;
}

.side-panel dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.side-panel dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.side-panel dd {
  margin: -8px 0 0;
  font-weight: 800;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

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

.site-footer p {
  margin: 12px 0 0;
  color: #94a3b8;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 22px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

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

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 12px;
    font-size: 14px;
  }

  .header-search {
    width: 190px;
  }

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

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

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

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

  .rank-panel,
  .side-panel {
    position: static;
  }
}

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

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

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

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

  .hero-section,
  .page-hero,
  .detail-hero {
    padding: 54px 0;
  }

  .hero-stats,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .poster-card {
    width: min(260px, 100%);
  }
}

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

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .category-grid.large,
  .mini-strip {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

  .hero-actions,
  .filter-mini,
  .filter-panel {
    flex-direction: column;
  }

  .btn,
  .filter-panel input,
  .filter-panel select {
    width: 100%;
  }

  .hero-play,
  .play-overlay span {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
