:root {
  --page-bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --slate: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

body {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #1d4ed8;
  background: #eff6ff;
}

.header-search {
  margin-left: auto;
  min-width: 220px;
  max-width: 320px;
  flex: 1;
}

.search-input,
.select-input {
  width: 100%;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  outline: none;
  color: #0f172a;
  transition: all 0.2s ease;
}

.search-input:focus,
.select-input:focus {
  border-color: #60a5fa;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.hero-section {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 78% 32%, rgba(6, 182, 212, 0.35), transparent 28%),
    linear-gradient(135deg, #1e3a8a 0%, #1e293b 48%, #164e63 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(59, 130, 246, 0.95), rgba(15, 23, 42, 0.1));
  animation: heroPulse 5s ease-in-out infinite;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

@keyframes heroPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.18;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.32;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 86px 16px 140px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.hero-title {
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  max-width: 700px;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-badges,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-soft {
  color: #1d4ed8;
  background: #eff6ff;
}

.hero-visual {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 18px;
  align-items: stretch;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-poster {
  min-height: 430px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.42);
}

.hero-poster img,
.poster-frame img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-img.is-missing {
  opacity: 0;
}

.hero-card-info {
  align-self: end;
  padding: 26px;
  border-radius: 28px;
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.28);
}

.hero-card-info h2 {
  font-size: 30px;
  line-height: 1.22;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-card-info p {
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 18px;
}

.slider-dots {
  position: absolute;
  right: 24px;
  bottom: -34px;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: all 0.2s ease;
}

.slider-dot.is-active {
  width: 28px;
  background: #22d3ee;
}

.container-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.lift-grid {
  position: relative;
  z-index: 10;
  margin-top: -82px;
}

.section-block {
  padding: 54px 0;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.16);
}

.section-heading h2,
.page-title {
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-desc,
.page-desc {
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0));
}

.card-rating,
.card-type,
.card-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.card-rating {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.72);
}

.card-type {
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(37, 99, 235, 0.84);
}

.card-rank {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.card-title {
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.card-line {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.panel-gradient {
  border-radius: 32px;
  padding: 34px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-card {
  position: relative;
  min-height: 190px;
  border-radius: 28px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -48px;
  bottom: -48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 8px;
}

.category-card p,
.category-card span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.page-hero {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border-bottom: 1px solid #dbeafe;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 16px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 170px;
  gap: 12px;
  margin: 26px 0 0;
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.stat-chip,
.tag-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
}

.stat-chip {
  color: #1d4ed8;
  background: #dbeafe;
}

.tag-chip {
  color: #475569;
  background: #f1f5f9;
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 75% 10%, rgba(34, 211, 238, 0.28), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #164e63 100%);
  color: #fff;
}

.detail-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 16px 54px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

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

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

.detail-title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.detail-one-line {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
  margin: 18px 0 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.78));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-shell.is-playing .video-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-start {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  transition: transform 0.2s ease;
}

.player-start:hover {
  transform: scale(1.07);
}

.player-status {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
}

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

.article-panel,
.sidebar-panel {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.article-panel h2,
.sidebar-panel h2,
.sidebar-panel h3 {
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 16px;
}

.article-panel p {
  color: #334155;
  line-height: 2;
  margin-bottom: 18px;
}

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

.recommend-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.recommend-item:hover {
  background: #eff6ff;
}

.recommend-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #dbeafe;
}

.recommend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.rank-no {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-title {
  font-weight: 900;
  color: #111827;
}

.rank-meta {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 28px;
  background: #fff;
  color: #64748b;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.footer-inner p {
  line-height: 1.8;
}

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

.footer-links a {
  color: #e0f2fe;
  font-weight: 700;
}

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

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

  .hero-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .header-search {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .hero-inner {
    padding-top: 54px;
    padding-bottom: 118px;
  }

  .hero-slide {
    grid-template-columns: 0.9fr 1fr;
  }

  .hero-card-info {
    padding: 18px;
  }

  .hero-card-info h2 {
    font-size: 22px;
  }

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

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

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

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    min-height: 320px;
  }

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

  .movie-grid,
  .movie-grid.grid-4,
  .movie-grid.grid-8,
  .search-results,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
