:root {
  --sunset: #f97316;
  --sunset-dark: #ea580c;
  --twilight: #ef4444;
  --golden: #eab308;
  --ocean: #0ea5e9;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --paper: #ffffff;
  --night: #111827;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f9fafb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.32);
}

.logo-text {
  font-size: 18px;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #374151;
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sunset-dark);
  background: #ffedd5;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--line);
}

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

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.mobile-cats a {
  padding: 8px 10px;
  border-radius: 999px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 13px;
}

.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: 34px 20px 70px;
}

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

.hero-stage {
  position: relative;
  min-height: 620px;
}

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

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

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.hero-media.image-empty {
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.45), transparent 30%), radial-gradient(circle at 80% 10%, rgba(239, 68, 68, 0.38), transparent 34%), linear-gradient(135deg, #111827, #7c2d12 48%, #111827);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 42%, rgba(17, 24, 39, 0.18)), linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  min-height: 620px;
  margin: 0 auto;
  padding: 96px 20px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 670px;
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  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: linear-gradient(135deg, var(--sunset), var(--twilight));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.btn-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero-search {
  display: flex;
  max-width: 560px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 16px;
  font-size: 15px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #ffffff;
  background: var(--sunset);
  font-weight: 800;
  cursor: pointer;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.hero-panel .poster-frame {
  aspect-ratio: 16 / 10;
  border-radius: 22px;
}

.hero-panel-title {
  margin: 18px 0 8px;
  font-size: 22px;
  font-weight: 850;
}

.hero-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}

.section-head h2,
.page-title h1,
.filter-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
}

.section-head p,
.page-title p,
.filter-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--sunset-dark);
  font-weight: 800;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.featured-layout .poster-frame {
  aspect-ratio: 16 / 11;
  border-radius: 20px;
}

.featured-content h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
}

.featured-content p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

.meta-row,
.detail-meta,
.rank-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span,
.detail-meta span,
.rank-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
}

.section-block {
  margin-top: 52px;
}

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

.movie-card {
  min-width: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(17, 24, 39, 0.14);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 33%), radial-gradient(circle at 80% 20%, rgba(239, 68, 68, 0.22), transparent 34%), #111827;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.movie-card:hover .poster-image,
.rank-item:hover .poster-image {
  transform: scale(1.06);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.70), transparent 58%);
  pointer-events: none;
}

.poster-year,
.poster-type {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  left: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.poster-type {
  right: 12px;
  background: rgba(239, 68, 68, 0.9);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-line {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-tags,
.tag-list,
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.tag-list span,
.footer-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  min-height: 150px;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border: 1px solid #fed7aa;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  margin: 30px 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 150px;
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  font: inherit;
  background: #f9fafb;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--sunset);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.page-title {
  padding: 38px;
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.46), transparent 30%), linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: var(--shadow);
}

.page-title p {
  color: rgba(255, 255, 255, 0.84);
  max-width: 800px;
}

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

.rank-item {
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.13);
}

.rank-link {
  display: grid;
  grid-template-columns: 70px 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-number {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  font-weight: 900;
  font-size: 20px;
}

.rank-poster {
  border-radius: 16px;
}

.rank-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--twilight);
  font-size: 13px;
}

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

.breadcrumb a {
  color: var(--sunset-dark);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 30px;
  align-items: stretch;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.detail-cover .poster-frame {
  height: 100%;
  min-height: 330px;
  border-radius: 24px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.player-card {
  position: relative;
  margin-top: 34px;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-button {
  pointer-events: auto;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset), var(--twilight));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
}

.player-card.is-playing .play-layer {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.article-block {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 28px;
}

.content-card,
.side-card {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

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

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-block li {
  color: #d1d5db;
  line-height: 1.8;
}

.footer-block h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 20px;
  text-align: center;
  color: #9ca3af;
}

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

@media (max-width: 1040px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-content,
  .featured-layout,
  .detail-hero,
  .article-block,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero,
  .hero-stage,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 70px 20px 86px;
    gap: 24px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-search {
    border-radius: 22px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-search input {
    padding: 12px 14px;
  }

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

  .card-body h3 {
    font-size: 16px;
  }

  .card-line {
    min-height: auto;
  }

  .rank-link {
    grid-template-columns: 46px 100px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }

  .rank-content h3 {
    font-size: 17px;
  }

  .rank-content p {
    display: none;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  .page-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .detail-hero,
  .featured-layout,
  .content-card,
  .side-card,
  .filter-panel,
  .page-title {
    padding: 18px;
    border-radius: 20px;
  }
}
