:root {
  --primary: #2563eb;
  --primary-light: #38bdf8;
  --accent: #06b6d4;
  --dark: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: rgba(148, 163, 184, 0.24);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body {
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 45%, #ffffff 100%);
  color: #1f2937;
}

img {
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: #475569;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #2563eb;
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  filter: blur(14px) scale(1.08);
  opacity: 0.62;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(56, 189, 248, 0.35), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72) 52%, rgba(15, 23, 42, 0.28)),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.88));
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 420px;
  gap: 56px;
  min-height: 680px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  color: #ffffff;
  animation: fadeIn 0.58s ease-out;
}

.hero-kicker,
.section-kicker {
  margin-bottom: 12px;
  color: #06b6d4;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 680px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 28px;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.82);
}

.movie-tags span {
  color: #2563eb;
  background: #eff6ff;
}

.detail-tags span {
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.16);
}

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

.btn-primary,
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35);
}

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

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.btn-glass.dark {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.hero-poster {
  display: block;
  height: 560px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  height: 100%;
}

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

.hero-dot {
  width: 32px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: all 0.2s ease;
}

.hero-dot.active {
  width: 56px;
  background: #38bdf8;
}

.quick-search-section {
  margin-top: -62px;
  position: relative;
  z-index: 10;
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.quick-search-card h2,
.section-title-row h2,
.page-hero h1,
.content-card h2 {
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.quick-search-card h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.quick-search-card p,
.page-hero p,
.content-card p {
  color: #64748b;
  line-height: 1.9;
}

.home-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.home-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  outline: none;
  background: transparent;
}

.home-search input {
  padding: 0 18px;
}

.home-search button {
  flex-shrink: 0;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

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

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

.section-title-row h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-title-row a,
.text-link {
  color: #2563eb;
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 16px 38px rgba(37, 99, 235, 0.18);
  transition: all 0.2s ease;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(37, 99, 235, 0.25);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile small {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e0f2fe;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

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

.movie-badge,
.movie-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.movie-badge {
  left: 12px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
}

.movie-score {
  right: 12px;
  color: #111827;
  background: rgba(250, 204, 21, 0.95);
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.85);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: all 0.2s ease;
}

.movie-card:hover .movie-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-meta-line {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.movie-card h3 a:hover {
  color: #2563eb;
}

.movie-desc {
  min-height: 46px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.75;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags {
  margin-top: 12px;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.ranking-thumb {
  display: block;
  height: 110px;
  overflow: hidden;
  border-radius: 16px;
}

.ranking-thumb img {
  width: 100%;
  height: 100%;
}

.ranking-info h3 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.ranking-info p {
  color: #64748b;
  line-height: 1.75;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ranking-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.page-shell {
  padding: 46px 0 88px;
}

.page-hero {
  overflow: hidden;
  margin-bottom: 36px;
  border-radius: 34px;
  padding: 58px;
  background:
    radial-gradient(circle at 88% 0%, rgba(56, 189, 248, 0.34), transparent 30%),
    linear-gradient(135deg, #ffffff, #e0f2fe);
  box-shadow: var(--shadow);
}

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

.page-hero p {
  max-width: 760px;
  font-size: 17px;
}

.inline-actions {
  margin-top: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  border-radius: 16px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

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

.category-card-large {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

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

.category-preview img {
  width: 100%;
  height: 100%;
}

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

.category-card-large h2 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 27px;
  font-weight: 900;
}

.category-card-large p {
  margin-bottom: 16px;
  color: #64748b;
  line-height: 1.85;
}

.detail-page {
  padding-top: 0;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: #020617;
}

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  filter: blur(16px) scale(1.08);
  opacity: 0.48;
}

.detail-shade {
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.35), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78) 54%, rgba(15, 23, 42, 0.45));
}

.detail-hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 44px;
  padding-bottom: 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #38bdf8;
}

.detail-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-cover img {
  width: 100%;
  height: 100%;
}

.detail-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-intro {
  max-width: 850px;
  margin-bottom: 24px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.detail-meta-list div {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-meta-list dt {
  margin-bottom: 6px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta-list dd {
  color: #ffffff;
  font-weight: 800;
}

.player-section {
  scroll-margin-top: 96px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 16 / 9;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.42);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.detail-content-grid,
.static-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.static-content {
  grid-template-columns: 1fr;
  max-width: 980px;
}

.content-card {
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.site-footer {
  margin-top: 24px;
  padding: 56px 0 0;
  color: #cbd5e1;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  margin-bottom: 16px;
  color: #ffffff;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.85;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 44px;
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.filter-item.hidden {
  display: none;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .hero-poster {
    height: 460px;
  }
}

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

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

  .hero-carousel,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
  }

  .hero-poster {
    display: none;
  }

  .quick-search-card,
  .detail-grid,
  .detail-content-grid,
  .footer-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

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

  .compact-ranking {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 28px;
  }

  .detail-cover {
    max-width: 320px;
  }

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

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

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

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 650px;
  }

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

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

  .quick-search-section {
    margin-top: -34px;
  }

  .quick-search-card,
  .page-hero,
  .content-card {
    padding: 24px;
    border-radius: 24px;
  }

  .home-search {
    border-radius: 22px;
    flex-direction: column;
  }

  .home-search input {
    min-height: 44px;
  }

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

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

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

  .movie-desc {
    min-height: 42px;
  }

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

  .ranking-row {
    grid-template-columns: 44px 74px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .ranking-rank {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .ranking-thumb {
    height: 98px;
  }

  .ranking-info p {
    display: none;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-top: 24px;
  }

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

  .player-box {
    border-radius: 20px;
  }

  .play-circle {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
