:root {
  --page-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-soft: #64748b;
  --line: #e5e7eb;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max: 1280px;
}

body {
  background: var(--page-bg);
  color: var(--text-main);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.panel-open {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.22);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong,
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a {
  color: #374151;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: var(--orange);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  background: #fff;
  color: var(--text-main);
  border-radius: 999px;
  padding: 12px 16px;
}

.header-search input {
  border: 0;
  padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.wide-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 800;
  padding: 10px 16px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--orange);
  font-size: 24px;
}

.mobile-panel {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 20px;
}

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel nav a {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search button {
  border-radius: 999px;
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - var(--max)) / 2 + 20px));
  bottom: 92px;
  width: min(720px, calc(100% - 48px));
  color: #fff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fb923c;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.03;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.hero-meta {
  margin-bottom: 30px;
}

.hero-meta span,
.hero-meta a,
.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  text-decoration: none;
  font-weight: 700;
}

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

.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 42px;
  line-height: 1;
}

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

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.quick-search-band,
.content-section,
.page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.quick-search-band {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: 36px;
  padding-top: 26px;
  padding-bottom: 26px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-search-band h2,
.section-heading h2,
.ranking-box h2,
.detail-content h1,
.page-hero h1 {
  margin: 0;
  color: #111827;
  font-weight: 900;
}

.quick-search-band h2,
.section-heading h2,
.ranking-box h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.quick-search-band p,
.section-heading p,
.page-hero p,
.category-card p,
.detail-content p,
.footer-shell p {
  color: var(--text-soft);
  line-height: 1.8;
}

.wide-search {
  display: flex;
  gap: 10px;
}

.wide-search button {
  border-radius: 999px;
  padding-left: 22px;
  padding-right: 22px;
}

.content-section {
  margin-top: 56px;
}

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

.section-heading a,
.text-link {
  color: var(--orange);
  text-decoration: none;
}

.left-only {
  align-items: start;
  justify-content: start;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.mt-24 {
  margin-top: 24px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.card-cover img,
.rank-cover img,
.category-preview img,
.detail-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover img {
  transition: transform 0.45s ease;
}

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

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 26px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.play-badge::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.play-badge {
  isolation: isolate;
}

.play-badge::before {
  z-index: -1;
}

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

.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.card-body {
  padding: 18px;
}

.card-category {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--orange);
  background: #fff7ed;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.movie-card h3,
.rank-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a,
.rank-info h3 a,
.category-card h2 a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.movie-card:hover h3 a,
.rank-card:hover h3 a,
.category-card h2 a:hover {
  color: var(--orange);
}

.movie-card p,
.rank-info p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--text-soft);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

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

.tag-row span,
.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

.movie-card-large .card-body {
  padding: 24px;
}

.movie-card-large h3 {
  font-size: 24px;
}

.movie-card-compact .card-body p,
.movie-card-compact .tag-row {
  display: none;
}

.soft-panel,
.white-panel {
  border-radius: 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

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

.white-panel {
  background: #fff;
  box-shadow: var(--shadow);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.stack-list,
.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-box {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-box h2 {
  margin-bottom: 18px;
}

.rank-card {
  display: grid;
  grid-template-columns: auto 154px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stack-list .rank-card {
  grid-template-columns: 190px minmax(0, 1fr);
}

.stack-list .rank-number {
  display: none;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.rank-number {
  width: 40px;
  color: var(--orange);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  display: block;
  height: 94px;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

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

.rank-info p {
  margin-bottom: 10px;
  -webkit-line-clamp: 2;
}

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

.category-tile {
  min-height: 145px;
  padding: 22px;
  border-radius: 22px;
  color: #374151;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 9px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  transform: translateY(-5px);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile span {
  line-height: 1.65;
}

.page-main {
  padding-top: 28px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  align-items: center;
  padding: 38px;
  border-radius: 34px;
  background: linear-gradient(135deg, #111827, #7c2d12 48%, #831843);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  color: #f8fafc;
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.category-card > div {
  padding: 22px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 150px;
  overflow: hidden;
}

.category-preview img {
  min-width: 0;
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.search-page-bar {
  grid-template-columns: 2fr repeat(4, minmax(140px, 1fr));
}

.filter-select {
  appearance: none;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
  align-items: stretch;
}

.watch-panel,
.detail-side,
.detail-content {
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.watch-panel {
  padding: 18px;
}

.watch-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #020617;
}

.watch-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2));
}

.player-start span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.player-start strong {
  font-size: 18px;
}

.watch-player.playing .player-start {
  display: none;
}

.detail-side {
  overflow: hidden;
  padding: 18px;
}

.detail-side img {
  aspect-ratio: 3 / 4;
  border-radius: 22px;
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.detail-content {
  margin-top: 28px;
  padding: 34px;
}

.detail-content h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.detail-meta {
  margin: 18px 0 24px;
}

.detail-meta span {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

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

.detail-content h2 {
  margin: 30px 0 12px;
  font-size: 26px;
  font-weight: 900;
}

.detail-content p {
  margin: 0;
  color: #475569;
  font-size: 17px;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 70px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #1e293b, #020617);
}

.footer-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-shell p {
  max-width: 620px;
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

.footer-links a {
  color: #cbd5e1;
}

.copyright {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 30px;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-search {
    width: 220px;
  }

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

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

  .detail-side {
    display: none;
  }

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

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-slider {
    height: 520px;
  }

  .hero-content {
    bottom: 80px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search-band,
  .wide-search,
  .footer-shell {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .two-cols,
  .three-cols,
  .four-cols,
  .category-grid,
  .category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar,
  .search-page-bar {
    grid-template-columns: 1fr 1fr;
  }

  .rank-card,
  .stack-list .rank-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    min-height: 66px;
    padding: 0 14px;
  }

  .logo-text small {
    display: none;
  }

  .hero-slider {
    height: 500px;
  }

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

  .hero-meta {
    gap: 8px;
  }

  .quick-search-band,
  .content-section,
  .page-main {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .two-cols,
  .three-cols,
  .four-cols,
  .category-grid,
  .category-overview,
  .filter-bar,
  .search-page-bar {
    grid-template-columns: 1fr;
  }

  .rank-card,
  .stack-list .rank-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover {
    height: 78px;
  }

  .movie-grid {
    gap: 16px;
  }

  .page-hero {
    padding: 26px;
    border-radius: 24px;
  }

  .watch-panel,
  .detail-content {
    padding: 14px;
    border-radius: 22px;
  }

  .detail-content h1 {
    font-size: 34px;
  }
}
