:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --amber: #f59e0b;
  --orange: #ea580c;
  --red: #ef4444;
  --slate: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

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

img {
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--slate);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.35);
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  background: #ffedd5;
}

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 16px;
  outline: none;
  transition: 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.header-search button,
.mobile-search button,
.wide-search button,
.primary-button,
.ghost-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
}

.header-search button,
.mobile-search button,
.wide-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.25);
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--slate);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--slate);
  font-weight: 800;
}

.hero-wrap {
  padding: 32px 0 0;
}

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

.hero-stage {
  min-height: 590px;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 54%, #431407);
  box-shadow: var(--shadow);
}

.hero-glow {
  position: absolute;
  inset: auto -80px -80px auto;
  width: 360px;
  height: 360px;
  background: rgba(245, 158, 11, 0.25);
  filter: blur(80px);
  border-radius: 999px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 24px;
  align-items: center;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-copy {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  color: #fcd34d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--orange);
}

.hero-copy h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.08em;
  margin-bottom: 22px;
}

.hero-copy p {
  max-width: 620px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-tags span {
  color: #9a3412;
  background: #ffedd5;
}

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

.hero-media {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  transform: rotate(2deg);
}

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

.hero-media:hover img {
  transform: scale(1.06);
}

.play-float {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.9);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.hero-controls {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 30px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  width: 30px;
  background: #fbbf24;
}

.hero-side {
  padding: 24px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.side-heading span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.side-heading h2,
.section-head h2,
.search-panel h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.trend-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  transition: 0.2s ease;
}

.trend-card:hover {
  background: #fff7ed;
  transform: translateY(-2px);
}

.trend-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
}

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

.trend-number,
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
}

.trend-body h3 {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 6px;
}

.trend-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 8px;
}

.search-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 72px;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.wide-search input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border-radius: 18px;
}

.wide-search button {
  height: 54px;
  border-radius: 18px;
}

.content-section {
  margin-bottom: 78px;
}

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

.section-head p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 760px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffedd5;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.movie-card {
  display: block;
  min-width: 0;
}

.movie-poster {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 2 / 3;
  background: #e2e8f0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
}

.rating-pill {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 12px;
  font-weight: 900;
}

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

.movie-card-body h3 {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: var(--orange);
}

.movie-card-meta,
.movie-card-desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.movie-card-desc {
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 120px;
  background: #e2e8f0;
}

.category-thumbs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.category-info {
  padding: 22px;
}

.category-info h3 {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.category-info p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.sub-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.28), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b 50%, #431407);
}

.sub-hero {
  padding: 72px 0;
}

.sub-hero h1,
.detail-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.sub-hero p,
.detail-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.85;
}

.filter-panel {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.45fr));
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 16px;
}

.empty-state {
  padding: 44px;
  border-radius: 28px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-overview-block {
  margin-top: 56px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.detail-hero {
  padding: 26px 0 64px;
}

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

.breadcrumb a:hover {
  color: #fcd34d;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 35px 95px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.player-shell video,
.play-cover,
.play-cover img,
.play-cover-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-shell video {
  z-index: 1;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  z-index: 2;
  cursor: pointer;
}

.play-cover.is-hidden {
  display: none;
}

.play-cover img {
  object-fit: cover;
  filter: saturate(1.05);
}

.play-cover-overlay {
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.32));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 24px 60px rgba(234, 88, 12, 0.42);
  font-size: 34px;
  line-height: 1;
}

.player-title-block {
  margin-top: 34px;
}

.detail-main {
  padding: 56px 0 72px;
}

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

.detail-poster-card,
.detail-content-card,
.detail-info-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-poster-card {
  position: sticky;
  top: 104px;
  padding: 16px;
}

.detail-poster-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.full-width {
  width: 100%;
  margin-top: 16px;
}

.detail-content-card {
  padding: 30px;
}

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

.detail-title-row h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.detail-title-row p {
  margin-top: 10px;
  color: var(--muted);
}

.big-rating {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 950;
}

.detail-content-card section {
  margin-top: 28px;
}

.detail-content-card h3,
.detail-info-card h3 {
  font-size: 22px;
  font-weight: 950;
  margin-bottom: 12px;
}

.detail-content-card p {
  color: #334155;
  line-height: 1.9;
}

.review-box {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.detail-info-card {
  padding: 24px;
}

.detail-info-card dl {
  display: grid;
  gap: 16px;
}

.detail-info-card dt {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 4px;
}

.detail-info-card dd {
  color: var(--slate);
  font-weight: 800;
}

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

.site-footer {
  padding: 56px 0 28px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.38);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1180px) {
  .hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .detail-poster-card {
    position: static;
  }

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

  .side-heading {
    grid-column: 1 / -1;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-media {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-controls {
    left: 34px;
    right: 34px;
  }

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

  .wide-search {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-wrap {
    padding-top: 18px;
  }

  .hero-stage,
  .sub-hero,
  .detail-hero,
  .player-shell,
  .category-tile,
  .detail-poster-card,
  .detail-content-card,
  .detail-info-card {
    border-radius: 22px;
  }

  .hero-stage {
    min-height: 680px;
  }

  .hero-slide {
    padding: 26px;
  }

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

  .hero-controls {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .hero-side {
    grid-template-columns: 1fr;
    padding: 16px;
  }

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

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

  .section-head,
  .detail-title-row {
    display: grid;
  }

  .play-button {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }

  .detail-content-card,
  .detail-info-card {
    padding: 22px;
  }
}
