body {
  min-height: 100vh;
  background: #f8fafc;
  color: #111827;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.24);
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: #4b5563;
  font-weight: 650;
  transition: all 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #f97316;
  background: #fff7ed;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff7ed;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #f97316;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(249, 115, 22, 0.44), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.74) 42%, rgba(17, 24, 39, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.04));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
  padding-top: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: #fb923c;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-copy h1,
.hero-copy h2 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  margin-bottom: 18px;
}

.hero-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.hero-nav:hover {
  background: rgba(249, 115, 22, 0.86);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: all 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #f97316;
}

.category-strip {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -54px;
}

.category-strip a,
.category-card,
.filter-panel,
.side-card,
.detail-article,
.player-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.category-strip a {
  min-height: 108px;
  border-radius: 22px;
  padding: 22px;
  transition: all 0.25s ease;
}

.category-strip a:hover,
.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.13);
}

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

.category-strip strong {
  margin-bottom: 8px;
  font-size: 20px;
  color: #111827;
}

.category-strip span {
  color: #6b7280;
  line-height: 1.6;
}

.section-block {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  color: #111827;
}

.section-heading > a {
  color: #f97316;
  font-weight: 800;
}

.light-heading h2,
.light-heading > a {
  color: #ffffff;
}

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

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

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

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

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #f97316);
}

.movie-poster img,
.rank-cover img,
.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease;
}

.movie-card:hover .movie-poster img,
.rank-item:hover .rank-cover img {
  transform: scale(1.07);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.92);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #f97316;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin-bottom: 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.category-samples a:hover {
  color: #f97316;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

.rank-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.32), transparent 30%),
    linear-gradient(135deg, #111827, #1f2937 62%, #7c2d12);
}

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

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

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 88px 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: 22px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(241, 245, 249, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
  transition: all 0.25s ease;
}

.rank-section .rank-item {
  background: rgba(255, 255, 255, 0.92);
}

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

.rank-cover {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.rank-number {
  color: #f97316;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.rank-content h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #111827;
}

.rank-content p {
  display: -webkit-box;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.34), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937 70%, #9a3412);
  color: #ffffff;
}

.compact-hero {
  padding: 92px 0 78px;
}

.page-hero-content {
  max-width: 820px;
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.06em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card {
  border-radius: 24px;
  padding: 26px;
  transition: all 0.25s ease;
}

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

.category-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #111827;
}

.category-card p {
  color: #6b7280;
  line-height: 1.8;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: #475569;
  background: #f8fafc;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  padding: 20px;
}

.search-box {
  display: grid;
  gap: 10px;
  color: #111827;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px 16px;
  color: #111827;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
  background: #ffffff;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-filters button {
  border-radius: 999px;
  padding: 9px 14px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
  transition: all 0.2s ease;
}

.quick-filters button:hover,
.quick-filters button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.detail-hero {
  padding: 38px 0 10px;
  background:
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}

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

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

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.32), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.82));
  z-index: 3;
}

.player-cover[hidden] {
  display: none;
}

.play-ring {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.35);
}

.play-ring span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 24px solid #ffffff;
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.player-cover em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.detail-article {
  margin-top: 26px;
  border-radius: 28px;
  padding: 30px;
}

.detail-article h1 {
  margin-bottom: 14px;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.06em;
}

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

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #f97316;
  background: #fff7ed;
  font-weight: 800;
}

.lead-text {
  color: #334155;
  font-size: 18px;
  line-height: 1.8;
}

.detail-article h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: #111827;
  font-size: 24px;
}

.detail-article p {
  color: #4b5563;
  line-height: 1.95;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 2 / 3;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.side-card {
  border-radius: 24px;
  padding: 22px;
}

.side-card h2 {
  margin-bottom: 16px;
  color: #111827;
  font-size: 22px;
}

.side-card dl {
  display: grid;
  gap: 12px;
}

.side-card dl div {
  display: grid;
  gap: 4px;
}

.side-card dt {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.side-card dd {
  color: #334155;
}

.site-footer {
  padding: 42px 0;
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(249, 115, 22, 0.78);
  color: #ffffff;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .home-grid,
  .movie-grid,
  .category-movie-grid,
  .search-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .detail-side {
    position: static;
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

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

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

  .hero-carousel {
    min-height: 560px;
  }

  .hero-nav {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 17px;
  }

  .hero-carousel {
    min-height: 520px;
  }

  .hero-copy {
    padding-right: 16px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .category-strip {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .section-block {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .rank-number {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
  }

  .detail-article {
    padding: 22px;
  }

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

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

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
