:root {
  --site-bg: #f8fafc;
  --site-text: #0f172a;
  --site-muted: #64748b;
  --site-line: #e2e8f0;
  --site-dark: #0f172a;
  --site-dark-soft: #1e293b;
  --site-accent: #059669;
  --site-accent-strong: #047857;
  --site-card: #ffffff;
  --site-rose: #e11d48;
  --site-gold: #f59e0b;
  --site-radius: 22px;
  --site-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.brand-title {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #cbd5e1;
}

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

.main-nav a,
.mobile-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
  color: #34d399;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.page-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.34), transparent 36%), linear-gradient(135deg, #020617 0%, #0f172a 46%, #064e3b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72), rgba(6, 78, 59, 0.72));
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 58px 0 64px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  animation: fadeIn 0.45s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(52, 211, 153, 0.42);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(5, 150, 105, 0.16);
  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-movie-title {
  display: block;
  margin-top: 16px;
  color: #6ee7b7;
  font-size: clamp(28px, 4.5vw, 52px);
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  margin-top: 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--site-accent);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.34);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--site-accent-strong);
  box-shadow: 0 16px 36px rgba(5, 150, 105, 0.42);
}

.btn-secondary {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(1.2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.88));
}

.hero-poster-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
}

.hero-poster-caption strong {
  display: block;
  font-size: 22px;
}

.hero-poster-caption span {
  display: block;
  margin-top: 6px;
  color: #cbd5e1;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dot,
.hero-arrow {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 22px;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: #ffffff;
}

.section.gradient {
  background: linear-gradient(135deg, #f1f5f9, #ffffff);
}

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

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

.section-title {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  margin-top: 8px;
  color: var(--site-muted);
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--site-line);
  border-radius: var(--site-radius);
  background: var(--site-card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: var(--site-shadow);
}

.movie-card a {
  color: inherit;
  text-decoration: none;
}

.poster-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #064e3b);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.quality-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.quality-badge {
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  background: var(--site-accent);
}

.year-badge {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--site-rose);
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.36);
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  color: var(--site-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #047857);
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -42px;
  bottom: -58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.category-card strong {
  position: relative;
  display: block;
  z-index: 1;
  font-size: 24px;
  font-weight: 900;
}

.category-card span {
  position: relative;
  display: block;
  z-index: 1;
  margin-top: 12px;
  color: #d1fae5;
  line-height: 1.6;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 28px;
}

.search-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--site-line);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--site-text);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  outline: none;
}

.search-input:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  border: 1px solid var(--site-line);
  border-radius: 999px;
  padding: 0 14px;
  color: #334155;
  background: #ffffff;
  font-weight: 750;
}

.filter-button.is-active {
  color: #ffffff;
  border-color: var(--site-accent);
  background: var(--site-accent);
}

.page-hero {
  color: #ffffff;
  background: radial-gradient(circle at 20% 15%, rgba(52, 211, 153, 0.28), transparent 28%), linear-gradient(135deg, #0f172a, #064e3b);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.breadcrumb a {
  color: #a7f3d0;
  text-decoration: none;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.85;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--site-line);
  border-radius: 20px;
  padding: 14px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--site-shadow);
}

.ranking-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: var(--site-accent);
  font-weight: 900;
}

.ranking-thumb {
  width: 86px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: #0f172a;
}

.ranking-title {
  font-size: 20px;
  font-weight: 900;
}

.ranking-desc {
  margin-top: 6px;
  color: var(--site-muted);
  line-height: 1.6;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--site-shadow);
  background: #0f172a;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-panel {
  border: 1px solid var(--site-line);
  border-radius: 26px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.detail-panel h2 {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 900;
}

.detail-panel p {
  color: #334155;
  line-height: 1.95;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.player-section {
  padding: 44px 0 0;
  background: #020617;
}

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

.player-title {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.14;
  font-weight: 900;
}

.video-player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease;
}

.play-layer-content {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(5, 150, 105, 0.92);
  box-shadow: 0 18px 40px rgba(5, 150, 105, 0.34);
  font-size: 18px;
  font-weight: 900;
}

.play-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #059669;
  background: #ffffff;
}

.video-player-shell.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.7fr));
  gap: 28px;
}

.footer-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-text {
  margin-top: 12px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

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

.footer-links a:hover {
  color: #34d399;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-poster {
    max-width: 420px;
    margin: 0 auto;
  }

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

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

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

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

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-wrap {
    padding: 36px 0 72px;
  }

  .hero-slide {
    gap: 30px;
  }

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

  .hero-actions,
  .section-head,
  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 54px 0;
  }

  .card-body {
    padding: 13px;
  }

  .ranking-item {
    grid-template-columns: 44px 70px minmax(0, 1fr);
  }

  .ranking-go {
    display: none;
  }

  .ranking-thumb {
    width: 70px;
  }

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