:root {
  --brand: #f97316;
  --brand-dark: #c2410c;
  --brand-hot: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --dark: #111827;
  --dark-soft: #1f2937;
  --radius: 18px;
  --shadow: 0 22px 50px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 12px 24px rgba(17, 24, 39, 0.08);
}

* {
  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: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 48%, #fff7ed 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  box-shadow: 0 14px 30px rgba(194, 65, 12, 0.28);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ea580c;
  background: #ffffff;
  box-shadow: inset 0 0 0 5px rgba(249, 115, 22, 0.12);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  font-weight: 700;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: #ffedd5;
  transform: translateY(-1px);
}

.header-search {
  width: min(310px, 32vw);
  position: relative;
}

.header-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 10px 48px 10px 18px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.5);
}

.header-search button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  transform: translateY(-50%);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 12px 22px 20px;
  background: #c2410c;
}

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

.mobile-links {
  display: grid;
  gap: 12px;
  color: #ffffff;
  font-weight: 700;
}

.mobile-search {
  margin-top: 14px;
}

.page-shell {
  min-height: 58vh;
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72) 44%, rgba(0, 0, 0, 0.12));
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: 11%;
  bottom: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.58), rgba(249, 115, 22, 0));
  filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 40px));
  min-height: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(660px, 100%);
  padding: 90px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brand);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.35);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 650px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(16px, 2.2vw, 21px);
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.hero-meta {
  margin-bottom: 28px;
  color: #f3f4f6;
  font-weight: 700;
}

.stars {
  color: #facc15;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

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

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

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

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  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.is-active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 54px 0;
}

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

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 900;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-desc {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.7));
  opacity: 0.72;
}

.badge,
.rating-badge,
.channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  color: #ffffff;
  background: var(--brand);
}

.rating-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  color: #111827;
  background: #facc15;
}

.play-chip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 30px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-chip span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
}

.movie-card:hover .play-chip {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-title {
  min-height: 54px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta,
.rank-meta {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  box-shadow: var(--shadow-soft);
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #111827, #ea580c);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-tile p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -42px;
  bottom: -60px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-hero {
  padding: 66px 0 38px;
  color: #ffffff;
  background: radial-gradient(circle at 78% 16%, rgba(253, 186, 116, 0.42), transparent 34%), linear-gradient(135deg, #111827, #7c2d12 58%, #ea580c);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
}

.toolbar {
  margin-bottom: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.toolbar input,
.toolbar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: rgba(249, 115, 22, 0.65);
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.24);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 118px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #111827;
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 950;
}

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

.breadcrumb {
  padding: 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.2);
}

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

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin: 0 0 20px;
  color: #374151;
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 22px;
}

.detail-meta span,
.tag-list span,
.channel-badge {
  padding: 6px 12px;
  border-radius: 999px;
  color: #7c2d12;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 900;
}

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.stream-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.poster-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.poster-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.poster-layer.is-hidden {
  display: none;
}

.play-core {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.play-core span:first-child {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.45);
}

.play-core span:last-child {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 20px;
  color: #374151;
}

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

.search-results {
  display: grid;
  gap: 16px;
}

.search-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-card img {
  width: 112px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #111827;
}

.search-card h2,
.search-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.search-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.empty-state {
  padding: 34px;
  border: 1px dashed #fdba74;
  border-radius: 22px;
  color: #9a3412;
  background: #fff7ed;
  text-align: center;
  font-weight: 800;
}

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

.footer-inner {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

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

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

.footer-bottom {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(75, 85, 99, 0.72);
  text-align: center;
  font-size: 14px;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    padding: 0 16px;
  }

  .logo {
    font-size: 19px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.64));
  }

  .hero-copy {
    padding: 80px 0 100px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-title {
    min-height: 48px;
    font-size: 16px;
  }

  .card-desc {
    min-height: 42px;
    font-size: 13px;
  }

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

  .rank-item {
    grid-template-columns: 46px 88px 1fr;
  }

  .rank-item .btn {
    grid-column: 2 / 4;
  }

  .rank-cover {
    aspect-ratio: 2 / 3;
  }

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

  .detail-poster {
    max-width: 260px;
  }

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

@media (max-width: 460px) {
  .container,
  .hero-content,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1280px);
  }

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

  .search-card {
    grid-template-columns: 88px 1fr;
  }

  .search-card img {
    width: 88px;
  }
}
