* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0a0e1a;
  color: #f3f4f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.12), transparent 28rem),
    linear-gradient(180deg, #0a0e1a 0%, #101729 55%, #0a0e1a 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(16px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #f59e0b;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #e5e7eb;
}

.desktop-nav a,
.mobile-nav a,
.footer-grid a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-grid a:hover {
  color: #f59e0b;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #f3f4f6;
}

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

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

.mobile-nav a {
  padding: 10px 0;
  color: #f3f4f6;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #060912;
}

.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-bg,
.hero-bg img,
.hero-bg .cover-letter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  margin: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(15, 23, 42, 0.94));
}

.hero-bg img {
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-bg .cover-letter {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.12);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 900;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0a0e1a 0%, rgba(10, 14, 26, 0.72) 34%, rgba(10, 14, 26, 0.14) 100%),
    linear-gradient(90deg, rgba(10, 14, 26, 0.9), rgba(10, 14, 26, 0.28) 62%, rgba(10, 14, 26, 0.78));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 84px;
}

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

.hero-copy h1 {
  margin: 16px 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: #d1d5db;
  font-size: 18px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  cursor: pointer;
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.primary-btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  backdrop-filter: blur(12px);
}

.ghost-btn.full {
  width: 100%;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 64px 0;
}

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

.section-head.compact {
  align-items: flex-start;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.section-head p {
  margin: 8px 0 0;
  color: #9ca3af;
}

.section-more {
  flex: 0 0 auto;
  color: #f59e0b;
  font-weight: 700;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-frame,
.compact-poster,
.rank-cover,
.detail-cover,
.category-card figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(255, 255, 255, 0.06));
}

.poster-frame {
  aspect-ratio: 3 / 4;
}

.poster-frame img,
.compact-poster img,
.rank-cover img,
.detail-cover img,
.category-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-letter {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 64px;
  font-weight: 900;
}

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 12px;
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 54px;
  margin: 8px 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 18px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.movie-card:hover h2 {
  color: #f59e0b;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #9ca3af;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.tag-row a,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  font-size: 12px;
  font-weight: 700;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

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

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.rank-panel {
  padding: 22px;
  align-self: start;
}

.rank-list {
  padding: 10px;
}

.rank-item + .rank-item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-link {
  display: grid;
  grid-template-columns: 44px 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-link:hover {
  background: rgba(255, 255, 255, 0.07);
}

.mini-rank-list .rank-link {
  grid-template-columns: 34px 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.rank-number {
  color: #f59e0b;
  font-size: 22px;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.rank-info h2 {
  margin: 0;
  font-size: 18px;
}

.rank-info p {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 14px;
}

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

.category-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card.large {
  grid-template-columns: 140px minmax(0, 1fr);
}

.category-card:hover {
  border-color: rgba(245, 158, 11, 0.44);
  transform: translateY(-4px);
}

.category-card figure {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

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

.compact-card {
  display: block;
  border-radius: 16px;
  color: #f3f4f6;
}

.compact-poster {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  margin-bottom: 10px;
}

.compact-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.compact-meta {
  display: block;
  color: #6b7280;
  font-size: 13px;
}

.page-hero {
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.13)),
    radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.16), transparent 30rem);
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
}

.pagination .active {
  border-color: transparent;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #fff;
}

.pagination .disabled {
  opacity: 0.45;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 36px 0 72px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9ca3af;
  font-size: 14px;
}

.breadcrumb a {
  color: #f59e0b;
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  color: #fff;
  cursor: pointer;
}

.play-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.28);
  font-size: 28px;
}

.player-box.is-ready .play-overlay {
  display: none;
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  color: #fef3c7;
  font-size: 14px;
}

.detail-info,
.detail-section,
.side-cover,
.related-panel,
.search-panel {
  padding: 24px;
}

.detail-title-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.detail-info h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.18;
}

.detail-info p {
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  color: #9ca3af;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-section h2,
.related-panel h2,
.side-cover h2 {
  margin: 0 0 14px;
  color: #f59e0b;
  font-size: 22px;
}

.detail-section p,
.side-cover p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.85;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  margin-bottom: 18px;
}

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

.related-list .compact-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.related-list .compact-poster {
  grid-row: span 2;
  margin: 0;
  border-radius: 12px;
}

.search-panel label {
  display: block;
  margin-bottom: 10px;
  color: #f59e0b;
  font-weight: 800;
}

.search-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.search-line input,
.filter-line select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.search-line input:focus,
.filter-line select:focus {
  border-color: rgba(245, 158, 11, 0.72);
}

.filter-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.search-status {
  margin: 24px 0 18px;
  color: #9ca3af;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(10, 14, 26, 0.84);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-copy,
.footer-grid li,
.footer-grid p {
  color: #9ca3af;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #f59e0b;
  font-size: 16px;
}

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

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6b7280;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .hero-control {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

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

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

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

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

  .rank-link,
  .mini-rank-list .rank-link {
    grid-template-columns: 34px 76px minmax(0, 1fr);
  }

  .search-line,
  .filter-line {
    grid-template-columns: 1fr;
  }

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

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

  .grid-3,
  .grid-4,
  .category-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 14px;
  }

  .card-body h2 {
    min-height: auto;
  }

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

  .play-icon {
    width: 60px;
    height: 60px;
  }
}
