* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 46%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #e11d48 0%, #f97316 52%, #f59e0b 100%);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.12);
}

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

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #f97316;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.footer-logo .logo-mark {
  color: #ffffff;
  background: linear-gradient(135deg, #e11d48, #f97316);
}

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

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff1f2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.search-form input {
  width: 210px;
  border: 0;
  outline: 0;
  color: #ffffff;
  padding: 8px 12px;
  background: transparent;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-form button {
  border: 0;
  border-radius: 999px;
  color: #ea580c;
  font-weight: 700;
  padding: 8px 14px;
  background: #ffffff;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-nav.is-open {
  display: flex;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 6px 16px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, #e11d48, #f97316);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.28);
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin-bottom: 10px;
}

.hero h2 {
  font-size: clamp(32px, 5vw, 60px);
}

.hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: #ffffff;
  font-size: 14px;
}

.hero-meta span {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  padding: 13px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #e11d48, #f97316);
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.28);
}

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

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  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.48);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 56px 0;
}

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

.section-heading h1,
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-heading h1 span,
.section-heading h2 span {
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e11d48, #f97316);
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 16px;
}

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

.category-card {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border-radius: 18px;
  color: #ffffff;
  padding: 24px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease;
}

.category-card:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.category-card h2,
.category-card h3,
.category-card p,
.category-card .category-icon {
  position: relative;
  z-index: 2;
}

.category-card h2,
.category-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.tone-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.tone-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.tone-pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}

.tone-yellow {
  background: linear-gradient(135deg, #eab308, #ca8a04);
}

.tone-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.tone-purple {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.tone-orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.tone-gray {
  background: linear-gradient(135deg, #374151, #111827);
}

.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 {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22);
}

.movie-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

.movie-thumb img,
.compact-thumb img,
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.movie-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.region-pill,
.type-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.region-pill {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: #f97316;
}

.type-pill {
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e11d48, #f97316);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card-link:hover h2 {
  color: #ea580c;
}

.movie-card-body p {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card {
  min-width: 0;
}

.compact-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #e11d48);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.12);
}

.compact-card h3 {
  margin: 10px 0 4px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.feature-strip {
  color: #ffffff;
  padding: 64px 0;
  background: linear-gradient(135deg, #111827, #000000);
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll .compact-card {
  flex: 0 0 210px;
}

.horizontal-scroll .compact-card p {
  color: #9ca3af;
}

.cta-panel {
  overflow: hidden;
  border-radius: 26px;
  color: #ffffff;
  text-align: center;
  padding: 44px 24px;
  background: linear-gradient(90deg, #e11d48, #f97316);
  box-shadow: 0 24px 60px rgba(234, 88, 12, 0.28);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
}

.cta-panel p {
  margin: 0 auto 24px;
  max-width: 700px;
  color: #fff1f2;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  color: #374151;
  font-weight: 700;
  padding: 10px 16px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, #e11d48, #f97316);
}

.no-results {
  margin: 24px 0;
  border-radius: 16px;
  padding: 28px;
  color: #6b7280;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.page-hero {
  color: #ffffff;
  padding: 66px 0;
  background: linear-gradient(90deg, #e11d48 0%, #f97316 52%, #f59e0b 100%);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  margin: 26px 0;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.video-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  font-size: 32px;
  padding-left: 6px;
  background: linear-gradient(90deg, #e11d48, #f97316);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  border-radius: 12px;
  color: #fecaca;
  text-align: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.72);
}

.detail-main,
.detail-sidebar,
.info-card {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.detail-main {
  overflow: hidden;
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-copy .lead {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 18px;
}

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

.detail-tags span {
  border-radius: 999px;
  color: #ea580c;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 12px;
  background: #ffedd5;
}

.article-section {
  margin-top: 30px;
}

.article-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.article-section p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
}

.detail-sidebar {
  padding: 22px;
}

.detail-sidebar h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 12px;
}

.info-list span:first-child {
  color: #6b7280;
}

.info-list span:last-child {
  color: #111827;
  font-weight: 800;
  text-align: right;
}

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

.related-card {
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.related-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f97316, #e11d48);
}

.related-card h3 {
  margin: 12px 14px 4px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.related-card p {
  margin: 0 14px 14px;
  color: #6b7280;
  font-size: 13px;
}

.site-footer {
  margin-top: 64px;
  color: #ffffff;
  background: linear-gradient(180deg, #111827, #000000);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-grid p {
  max-width: 420px;
  color: #9ca3af;
  margin: 18px 0 0;
}

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

.footer-grid a:not(.footer-logo) {
  display: block;
  color: #9ca3af;
  margin: 10px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  text-align: center;
  padding: 22px 16px;
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .search-form input {
    width: 170px;
  }

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

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

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

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

  .header-inner {
    min-height: 60px;
  }

  .logo-text {
    display: inline;
  }

  .search-form {
    display: none;
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-control {
    top: auto;
    bottom: 82px;
    transform: none;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .hero-meta {
    gap: 8px;
  }

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

  .section {
    padding: 40px 0;
  }

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

  .detail-copy {
    padding: 22px;
  }

  .horizontal-scroll .compact-card {
    flex-basis: 170px;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    display: none;
    flex-direction: column;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero h1,
  .hero h2 {
    font-size: 36px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
