:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --line: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #f97316;
  --accent-2: #dc2626;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.08), transparent 34rem), var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #fff;
  background: rgba(249, 115, 22, 0.18);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: #fff;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

.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;
  filter: saturate(1.08) contrast(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, #020617 1%, rgba(2, 6, 23, 0.36) 42%, transparent 100%);
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  transform: translateY(-50%);
  width: min(680px, calc(100vw - 48px));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.28);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.hero p,
.page-hero p {
  max-width: 760px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 22px);
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.hero-search button {
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button,
.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.32);
}

.primary-button:hover,
.hero-search button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.45);
}

.ghost-button {
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.9);
}

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(226, 232, 240, 0.34);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 62px;
  background: var(--accent);
}

.hero-search-wrap,
.featured-panel,
.content-section,
.category-strip,
.page-main,
.ranking-list {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-search-wrap {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search {
  display: flex;
  gap: 12px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  color: var(--text);
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(249, 115, 22, 0.74);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.quick-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-channels a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-size: 13px;
  font-weight: 800;
}

.featured-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.featured-text h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.featured-text p,
.compact-hero p,
.detail-article p,
.rank-info p,
.footer-about p {
  color: var(--muted);
}

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

.content-section,
.category-strip,
.ranking-list {
  margin-top: 64px;
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
}

.section-icon {
  color: var(--accent);
  font-size: 26px;
}

.section-more {
  color: #fed7aa;
  font-weight: 900;
}

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

.movie-grid.large-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.76));
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(249, 115, 22, 0.44);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 54%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.82);
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  left: 10px;
  color: #fff;
  background: var(--accent);
}

.type-badge {
  right: 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 10px;
  top: 44px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.breadcrumb a:hover,
.detail-side a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.heat-badge {
  display: inline-flex;
  margin-top: 12px;
  color: #fed7aa;
  font-size: 12px;
  font-weight: 900;
}

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

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

.category-tile {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.76));
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.42);
}

.category-tile span {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  color: #cbd5e1;
  font-size: 14px;
}

.category-tile small {
  color: var(--muted-2);
}

.page-main {
  padding: 48px 0 76px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.compact-hero h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.search-box input {
  padding-left: 42px;
}

.empty-state {
  padding: 56px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.75);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 88px 1fr 92px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.rank-number {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 20px;
  font-weight: 1000;
}

.rank-cover {
  display: block;
  width: 74px;
  height: 100px;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.rank-info p {
  margin: 0 0 10px;
}

.rank-heat {
  justify-self: end;
  color: #fed7aa;
  font-size: 24px;
}

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

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

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

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: #000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-poster,
.player-mask {
  position: absolute;
  inset: 0;
}

.player-poster {
  background-size: cover;
  background-position: center;
  filter: blur(3px) scale(1.04) brightness(0.62);
}

.player-mask {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), rgba(2, 6, 23, 0.58));
}

.player-start {
  position: relative;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 38px rgba(249, 115, 22, 0.38);
  font-size: 34px;
  transform: translateX(2px);
}

.detail-article,
.side-card {
  margin-top: 24px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-article h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-article h2 {
  margin: 30px 0 12px;
  font-size: 24px;
}

.lead-text {
  font-size: 18px;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.detail-side > img {
  width: 100%;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.side-card h2 {
  margin: 0 0 16px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted-2);
}

.side-card dd {
  margin: 0;
  color: #e2e8f0;
}

.site-footer {
  margin-top: 72px;
  background: linear-gradient(180deg, #0f172a, #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 28px;
  color: var(--muted-2);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
  }

  .side-card {
    margin-top: 0;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-copy {
    top: 54%;
  }

  .hero-actions,
  .hero-search {
    flex-direction: column;
  }

  .hero-search-wrap,
  .featured-panel,
  .content-section,
  .category-strip,
  .page-main,
  .ranking-list,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, 1280px);
  }

  .featured-list,
  .movie-grid,
  .movie-grid.large-list,
  .category-grid,
  .category-grid.wide,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 54px 72px 1fr;
  }

  .rank-heat {
    grid-column: 3;
    justify-self: start;
    font-size: 18px;
  }

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

@media (max-width: 520px) {
  .nav-shell {
    height: 66px;
    padding: 0 14px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero {
    min-height: 580px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    left: 18px;
    width: calc(100vw - 36px);
  }

  .page-hero,
  .featured-panel,
  .detail-article,
  .side-card {
    padding: 22px;
    border-radius: 20px;
  }

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

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

  .movie-card p,
  .heat-badge {
    display: none;
  }

  .rank-row {
    gap: 12px;
    padding: 12px;
  }

  .rank-info h2 {
    font-size: 16px;
  }

  .rank-info p {
    display: none;
  }
}
