:root {
  --bg: #0a1929;
  --bg-2: #102a43;
  --panel: #243b53;
  --panel-2: #334e68;
  --line: #486581;
  --text: #f8fafc;
  --muted: #b8c4d1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --amber-2: #fbbf24;
  --amber-3: #d97706;
  --red: #ef4444;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.14), transparent 34rem),
    radial-gradient(circle at 84% 12%, rgba(59, 130, 246, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-2), var(--amber-3));
  color: #111827;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.26);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(51, 78, 104, 0.84);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.18);
}

.text-link {
  color: var(--amber-2);
  font-weight: 700;
}

.text-link:hover {
  color: #fde68a;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(16, 42, 67, 0.9);
  border-bottom: 1px solid rgba(72, 101, 129, 0.6);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-2);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.brand-text {
  font-size: 24px;
}

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

.nav-link,
.dropdown-panel a {
  color: #d7e1ea;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-active {
  color: var(--amber-2);
}

.nav-dropdown {
  position: relative;
}

.dropdown-trigger {
  padding: 0;
  border: 0;
  background: transparent;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 210px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(36, 59, 83, 0.98);
  border: 1px solid rgba(72, 101, 129, 0.76);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: #d7e1ea;
}

.dropdown-panel a:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-2);
}

.top-search {
  display: flex;
  align-items: center;
  width: 300px;
  background: rgba(10, 25, 41, 0.75);
  border: 1px solid rgba(72, 101, 129, 0.84);
  border-radius: 999px;
  overflow: hidden;
}

.top-search input,
.wide-search input,
.filter-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

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

.top-search button {
  border: 0;
  color: #111827;
  background: var(--amber-2);
  padding: 10px 15px;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 13px;
  background: rgba(36, 59, 83, 0.7);
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

main {
  padding-top: 74px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg-2);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.22), transparent 24rem),
    linear-gradient(135deg, #0a1929, #102a43 50%, #111827);
}

.hero-backdrop img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.05) contrast(1.08);
}

.hero-backdrop::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 25, 41, 0.96), rgba(10, 25, 41, 0.72) 46%, rgba(10, 25, 41, 0.18)),
    linear-gradient(0deg, var(--bg), transparent 38%);
}

.hero-content {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding: 64px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0;
  color: #d7e1ea;
  font-size: 18px;
}

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

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  border: 1px solid rgba(251, 191, 36, 0.18);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  color: var(--amber-2);
  background: rgba(16, 42, 67, 0.72);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto;
}

.hero-dot {
  width: 28px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.32);
}

.hero-dot.is-active {
  background: var(--amber-2);
}

.search-panel {
  position: relative;
  z-index: 2;
  margin-top: -54px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(72, 101, 129, 0.78);
  border-radius: var(--radius);
  background: rgba(36, 59, 83, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.wide-search,
.inline-filter {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(72, 101, 129, 0.78);
  border-radius: 999px;
  background: rgba(10, 25, 41, 0.65);
}

.wide-search input,
.filter-input {
  padding: 10px 14px;
}

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

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

.section-title {
  margin: 0;
  color: var(--amber-2);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

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

.category-chip,
.category-overview-card,
.article-card,
.player-card {
  border: 1px solid rgba(72, 101, 129, 0.76);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(36, 59, 83, 0.92), rgba(16, 42, 67, 0.92));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

.category-chip {
  min-height: 132px;
  padding: 20px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-chip:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-chip span,
.category-title {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-2);
  font-size: 20px;
  font-weight: 900;
}

.category-chip small,
.category-overview-card p {
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(72, 101, 129, 0.66);
  border-radius: 20px;
  background: rgba(36, 59, 83, 0.78);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 28% 18%, rgba(251, 191, 36, 0.22), transparent 12rem),
    linear-gradient(135deg, #102a43, #0f172a);
}

.detail-poster {
  aspect-ratio: 2 / 3;
  width: min(300px, 100%);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.video-card-image,
.poster-frame img,
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.image-missing {
  opacity: 0 !important;
}

.movie-card:hover .video-card-image,
.poster-frame:hover img {
  transform: scale(1.05);
}

.play-mask {
  position: absolute;
  inset: auto 14px 14px auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #111827;
  background: var(--amber-2);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: rgba(245, 158, 11, 0.94);
  color: #111827;
  font-weight: 900;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--amber-2);
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.3;
}

.movie-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-main {
  padding-bottom: 70px;
}

.page-hero {
  padding: 70px 0 20px;
}

.compact-hero {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-2);
}

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

.category-overview-card {
  padding: 24px;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.category-samples a {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 120px 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(72, 101, 129, 0.72);
  border-radius: 20px;
  background: rgba(36, 59, 83, 0.76);
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 15px;
  background: linear-gradient(135deg, #102a43, #0f172a);
}

.rank-number {
  color: var(--amber-2);
  font-size: 28px;
  font-weight: 950;
}

.rank-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-copy p {
  margin: 0 0 10px;
  color: var(--muted);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--soft);
  font-size: 13px;
}

.rank-meta a,
.rank-meta strong {
  color: var(--amber-2);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1929, #102a43 55%, #111827);
}

.detail-hero-inner {
  position: relative;
  padding: 68px 0 54px;
}

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

.detail-copy h1 {
  font-size: clamp(36px, 5vw, 64px);
}

.detail-meta {
  margin: 22px 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #000;
}

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

.player-center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: rgba(251, 191, 36, 0.94);
  font-size: 30px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-card.is-playing .player-center-button {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  pointer-events: none;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding-top: 28px;
}

.article-card {
  padding: 26px;
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--amber-2);
  font-size: 24px;
}

.article-card p {
  margin: 0;
  color: #d7e1ea;
  font-size: 17px;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(72, 101, 129, 0.68);
  background: rgba(16, 42, 67, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--amber-2);
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--amber-2);
}

.footer-bottom {
  padding: 18px 0 26px;
  text-align: center;
  color: var(--soft);
  border-top: 1px solid rgba(72, 101, 129, 0.34);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s ease both;
}

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

  .top-search {
    width: 240px;
  }

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

@media (max-width: 920px) {
  .mobile-menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(72, 101, 129, 0.78);
    border-radius: 22px;
    background: rgba(16, 42, 67, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .nav-dropdown:focus-within .dropdown-panel,
  .nav-dropdown:hover .dropdown-panel {
    display: block;
  }

  .top-search {
    width: 100%;
  }

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

  .search-panel,
  .detail-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .home-rank-list,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: 240px;
  }
}

@media (max-width: 680px) {
  .container-custom {
    width: min(100% - 24px, 1280px);
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-copy {
    padding: 44px 0;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .search-panel {
    padding: 20px;
  }

  .wide-search,
  .inline-filter {
    flex-direction: column;
    border-radius: 20px;
  }

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

  .rank-item {
    grid-template-columns: 92px 44px 1fr;
    gap: 12px;
  }

  .rank-copy p {
    display: none;
  }

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