:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --green: #10b981;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.28);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand {
  font-size: 24px;
  flex: 0 0 auto;
}

.brand-icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--orange-dark);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  padding: 22px 0;
  font-weight: 650;
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffedd5;
  opacity: 1;
}

.top-search {
  position: relative;
  width: 260px;
}

.top-search input,
.mobile-menu input {
  width: 100%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px 44px 10px 18px;
  backdrop-filter: blur(14px);
}

.top-search input::placeholder,
.mobile-menu input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.top-search button {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mobile-menu form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-menu form button {
  border: 0;
  border-radius: 999px;
  color: var(--orange-dark);
  background: #ffffff;
  padding: 0 18px;
  font-weight: 700;
}

.mobile-menu nav,
.mobile-category-links {
  display: grid;
  gap: 10px;
}

.mobile-menu a {
  padding: 8px 0;
  font-weight: 650;
}

.site-main {
  min-height: 70vh;
  background: #f9fafb;
}

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

.hero-carousel {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: #000000;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 54px;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.hero-tags,
.hero-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tags span:first-child,
.hot-pill {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.hero-tags span,
.hero-meta span,
.pill-row span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span:not(:first-child),
.hero-meta span {
  color: #fdba74;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.hero-actions {
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.hero-search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.hero-search-form button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.26);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search-form button:hover {
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: max(32px, calc((100% - 1280px) / 2));
  bottom: 54px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.quick-search-panel,
.home-section,
.category-preview,
.filter-panel,
.detail-card,
.side-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
  padding: 30px;
}

.quick-search-panel h2,
.home-section h2,
.category-preview h2,
.filter-heading h2,
.detail-card h1,
.page-hero h1 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.quick-search-panel p,
.category-preview p,
.page-hero p,
.movie-card-body p,
.detail-card p,
.side-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-search-form {
  display: flex;
  gap: 12px;
}

.hero-search-form input {
  flex: 1;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
}

.home-section,
.category-preview,
.filter-panel {
  margin: 34px 0;
  padding: 30px;
}

.soft-panel {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.section-title-row,
.filter-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #ffedd5;
}

.text-link {
  color: var(--orange-dark);
  font-weight: 800;
}

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

.category-card {
  min-height: 126px;
  padding: 18px;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, #fb923c, #ef4444 52%, #ec4899);
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #111827;
}

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

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

.poster-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.poster-overlay span {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.year-badge,
.rank-badge,
.play-bubble {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  top: 10px;
  left: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  padding: 5px 10px;
}

.rank-badge {
  top: 10px;
  right: 10px;
  color: #ffffff;
  background: #dc2626;
  padding: 5px 10px;
}

.play-bubble {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--orange);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-bubble {
  opacity: 1;
  transform: scale(1.04);
}

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

.movie-card-body h3 {
  overflow: hidden;
  display: -webkit-box;
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--orange-dark);
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.tag-row,
.detail-tags,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  color: var(--orange-dark);
  background: #fff7ed;
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card-body p {
  overflow: hidden;
  display: -webkit-box;
  margin: 10px 0 0;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  padding: 76px 0;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.category-hero,
.search-hero {
  background: linear-gradient(110deg, #f97316, #ef4444, #ec4899);
}

.ranking-hero {
  background: linear-gradient(110deg, #111827, #ef4444, #f97316);
}

.gradient-asian-selection {
  background: linear-gradient(110deg, #f97316, #ef4444);
}

.gradient-curated-list {
  background: linear-gradient(110deg, #ec4899, #f43f5e);
}

.gradient-hot-library {
  background: linear-gradient(110deg, #ef4444, #f97316);
}

.gradient-drama-story {
  background: linear-gradient(110deg, #2563eb, #06b6d4);
}

.gradient-suspense-action {
  background: linear-gradient(110deg, #334155, #111827);
}

.gradient-romance-healing {
  background: linear-gradient(110deg, #f472b6, #fb923c);
}

.gradient-comedy-life {
  background: linear-gradient(110deg, #f59e0b, #f97316);
}

.gradient-wonder-world {
  background: linear-gradient(110deg, #8b5cf6, #4f46e5);
}

.gradient-family-music {
  background: linear-gradient(110deg, #10b981, #14b8a6);
}

.gradient-yearly-new {
  background: linear-gradient(110deg, #06b6d4, #2563eb);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 0 12px;
  color: #111827;
  background: #ffffff;
}

.filter-controls input:focus,
.filter-controls select:focus,
.hero-search-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 30px;
}

.player-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  background: #000000;
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  font-size: 30px;
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.36);
}

.detail-card,
.side-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 18px 0;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  color: #1f2937;
  font-size: 22px;
  font-weight: 900;
}

.lead-text {
  color: #374151 !important;
  font-size: 19px;
  font-weight: 700;
}

.pill-row span,
.detail-tags span {
  color: var(--orange-dark);
  background: #fff7ed;
}

.pill-row .hot-pill {
  color: #ffffff;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.poster-side img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #111827;
}

.poster-side dl {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.poster-side dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.poster-side dt {
  color: var(--muted);
}

.poster-side dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.side-link {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  color: var(--orange-dark);
  background: #fff7ed;
  border-radius: 12px;
  font-weight: 800;
}

.related-section {
  margin-bottom: 48px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
  margin-top: 50px;
}

.footer-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 20px;
}

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

.site-footer p,
.site-footer li {
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #1f2937;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.32);
  cursor: pointer;
}

.back-top.is-visible {
  display: grid;
}

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

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

  .filter-controls {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .quick-search-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    bottom: 82px;
  }

  .hero-dots {
    left: 16px;
    right: auto;
    bottom: 32px;
  }

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

@media (max-width: 640px) {
  .nav-shell,
  .content-shell,
  .footer-shell,
  .mobile-menu {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 19px;
  }

  .hero-carousel {
    height: 540px;
  }

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

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

  .hero-actions,
  .hero-search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .home-section,
  .category-preview,
  .filter-panel,
  .quick-search-panel,
  .detail-card,
  .side-card {
    padding: 20px;
    border-radius: 16px;
  }

  .section-title-row,
  .filter-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .page-hero {
    padding: 52px 0;
  }

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