:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --blue: #3b82f6;
  --yellow: #facc15;
  --danger: #ef4444;
  --shadow: 0 22px 70px rgba(8, 145, 178, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: white;
  font-size: 14px;
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #e5e7eb;
  font-size: 15px;
}

.desktop-nav a,
.nav-dropdown > a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown:hover > a {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
  padding: 21px 0;
}

.dropdown-panel {
  position: absolute;
  top: 62px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  min-width: 280px;
  padding: 10px;
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown-panel a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #d1d5db;
}

.dropdown-panel a:hover {
  background: rgba(30, 41, 59, 0.9);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 240px;
  border-radius: 999px;
  background: #1e293b;
  border: 1px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--cyan);
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-input,
.search-panel select {
  width: 100%;
  border: 0;
  outline: none;
  color: white;
  background: #1e293b;
}

.header-search input {
  padding: 10px 12px 10px 16px;
}

.header-search button {
  width: 42px;
  align-self: stretch;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-search button:hover {
  color: var(--cyan);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

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

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mobile-search input {
  border-radius: 999px;
  padding: 12px 16px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  background: var(--cyan-dark);
}

.mobile-panel nav {
  display: grid;
  gap: 4px;
}

.mobile-panel nav a {
  padding: 10px 4px;
  color: #d1d5db;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.2), transparent 35%), var(--bg);
}

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

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(2, 6, 23, 0.75) 45%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 76px;
}

.hero-copy {
  width: min(660px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--yellow);
  font-size: 15px;
  font-weight: 800;
}

.eyebrow::before {
  content: "★";
}

.hero h1 {
  margin: 0 0 18px;
  color: white;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.65);
}

.hero p {
  margin: 0 0 26px;
  max-width: 620px;
  color: #d1d5db;
  font-size: 19px;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: var(--cyan-dark);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #06b6d4;
}

.btn-soft {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-soft:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(34, 211, 238, 0.6);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--cyan);
}

.section {
  padding: 64px 0;
}

.section-tight {
  padding-top: 36px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
  white-space: nowrap;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #1e293b;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow), 0 0 0 2px rgba(34, 211, 238, 0.8);
}

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

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .card-shade {
  opacity: 1;
}

.card-hover-text {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .card-hover-text {
  opacity: 1;
  transform: translateY(0);
}

.type-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: block;
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: white;
  font-size: 16px;
  line-height: 1.48;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title-large {
  font-size: 20px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.category-pill,
.info-tag,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #334155;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.feature-panel {
  position: relative;
  min-height: 372px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 372px;
  object-fit: cover;
}

.feature-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 34px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0));
}

.feature-content h2 {
  margin: 8px 0 10px;
  font-size: 34px;
  font-weight: 950;
}

.feature-content p {
  max-width: 680px;
  color: #d1d5db;
  line-height: 1.75;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.mini-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.65);
}

.mini-card img {
  width: 118px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: #1e293b;
}

.mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

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

.category-card {
  display: block;
  padding: 24px;
  min-height: 164px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 122px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.7), var(--shadow);
}

.rank-num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--danger), #f97316);
  color: white;
  font-weight: 950;
}

.rank-item img {
  width: 122px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: #1e293b;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 6px;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-side {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.page-hero {
  padding: 54px 0 28px;
  background: radial-gradient(circle at 25% 0%, rgba(34, 211, 238, 0.16), transparent 38%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 24px;
}

.filter-input,
.search-panel input,
.search-panel select {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) 190px 190px auto;
  padding: 18px;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 0 0 1px var(--line);
}

.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--cyan-dark);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.video-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.52));
  color: white;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-button {
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 46px rgba(34, 211, 238, 0.35);
  font-size: 32px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

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

.movie-detail-title {
  margin: 26px 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #d1d5db;
  background: #0f172a;
  box-shadow: 0 0 0 1px var(--line);
}

.content-box {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 20px;
  background: #0f172a;
  box-shadow: 0 0 0 1px var(--line);
}

.content-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.content-box p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.9;
}

.side-panel {
  position: sticky;
  top: 88px;
  padding: 18px;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 0 0 1px var(--line);
}

.side-cover {
  overflow: hidden;
  border-radius: 18px;
  background: #1e293b;
}

.side-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.side-panel h2 {
  margin: 18px 0 12px;
  font-size: 20px;
  font-weight: 900;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.site-footer {
  margin-top: 48px;
  padding: 46px 0 0;
  background: #0f172a;
  color: #d1d5db;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 18px;
}

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

.site-footer a:hover {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 34px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.empty-state {
  padding: 52px 24px;
  border-radius: 22px;
  background: #0f172a;
  color: var(--muted);
  text-align: center;
}

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

  .mobile-toggle {
    display: block;
  }

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

  .feature-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    min-height: 560px;
    height: 78vh;
  }

  .hero-inner {
    padding-bottom: 82px;
  }

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

  .hero-control {
    display: none;
  }

  .section {
    padding: 44px 0;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .card-body {
    padding: 12px;
  }

  .rank-item {
    grid-template-columns: 42px 90px minmax(0, 1fr);
  }

  .rank-side {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .rank-item img {
    width: 90px;
    height: 58px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .feature-content {
    padding: 24px;
  }

  .feature-content h2 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .logo {
    font-size: 18px;
  }

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

  .mini-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .mini-card img {
    width: 96px;
    height: 62px;
  }

  .page-title {
    font-size: 34px;
  }
}

.category-preview {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.category-preview img {
  width: 31%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
  background: #1e293b;
}
