:root {
  --dawn-50: #fff7ed;
  --dawn-100: #ffedd5;
  --dawn-200: #fed7aa;
  --dawn-400: #fb923c;
  --dawn-500: #f97316;
  --dawn-600: #ea580c;
  --dawn-700: #c2410c;
  --morning-500: #f59e0b;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-900);
  background: var(--soft);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

img.image-hidden {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dawn-600);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dawn-500), var(--morning-500));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-700);
  font-weight: 650;
  font-size: 15px;
}

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

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--dawn-600);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form input,
.large-search input,
.filter-bar input {
  width: 260px;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  padding: 0 48px 0 18px;
  color: var(--ink-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.large-search input:focus,
.filter-bar input:focus {
  border-color: var(--dawn-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.search-form button {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--dawn-600);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--ink-700);
  background: var(--dawn-50);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-search input {
  width: 100%;
}

.hero {
  background: #0f172a;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(249, 115, 22, 0.22), transparent 32%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.25)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 48%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 88px;
  max-width: 780px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--dawn-200);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-meta span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions,
.detail-info .btn {
  display: inline-flex;
}

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

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-600), var(--morning-500));
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.44);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--dawn-500);
}

.home-search-block,
.content-section,
.breadcrumb,
.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search-block {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: -42px;
  padding: 26px;
  position: relative;
  z-index: 3;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.home-search-block h2,
.section-heading h2,
.story-card h2,
.site-footer h2 {
  margin: 0;
}

.home-search-block h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.home-search-block p,
.section-heading p,
.movie-card-body p,
.category-tile p,
.category-overview-card p,
.rank-row p,
.story-card p,
.detail-one-line,
.site-footer p {
  color: var(--ink-600);
  line-height: 1.75;
}

.large-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.large-search input {
  width: min(420px, 56vw);
  height: 50px;
}

.large-search button,
.filter-bar a {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--dawn-600);
  font-weight: 800;
  cursor: pointer;
}

.content-section {
  padding: 64px 0 0;
}

.soft-panel {
  width: min(1180px, calc(100% - 32px));
  padding: 44px 28px;
  margin-top: 64px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--dawn-50), #fff7ed 48%, #ffffff);
}

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

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
}

.section-heading > a {
  color: var(--dawn-600);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.poster-link img,
.detail-poster img,
.rank-cover img,
.compact-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
}

.type-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: rgba(234, 88, 12, 0.88);
  font-size: 12px;
}

.rank-badge {
  right: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  background: rgba(17, 24, 39, 0.78);
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h2 a:hover,
.rank-row h2 a:hover,
.category-overview-card h2 a:hover {
  color: var(--dawn-600);
}

.meta-line {
  color: var(--ink-500);
  font-size: 13px;
}

.movie-card-body p {
  margin: 10px 0 14px;
  font-size: 14px;
}

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

.tag-row span {
  color: var(--dawn-700);
  background: var(--dawn-50);
}

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

.category-tile,
.category-overview-card,
.story-card,
.rank-row {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.category-tile {
  display: block;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  height: 150px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

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

.category-tile h2 {
  margin: 14px 0 6px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  font-size: 14px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(135deg, var(--dawn-600), var(--morning-500));
}

.compact-hero {
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
}

.compact-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 18px;
}

.category-covers.large {
  height: 220px;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  font-size: 26px;
}

.category-overview-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.category-overview-card li a {
  color: var(--ink-700);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-bar input {
  width: min(420px, 100%);
}

.filter-bar a {
  display: inline-flex;
  align-items: center;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 118px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dawn-600), var(--morning-500));
  font-size: 24px;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.rank-row p {
  margin: 8px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  color: var(--ink-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--dawn-600);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: end;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 8%, rgba(249, 115, 22, 0.18), transparent 32%),
    linear-gradient(135deg, #111827, #1f2937);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.detail-info {
  color: #ffffff;
}

.detail-info h1 {
  max-width: 820px;
}

.detail-one-line {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.large-tags span {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.38);
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.42);
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.play-trigger {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dawn-600), var(--morning-500));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
  font-size: 32px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 28px;
}

.story-card h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 14px 0 0;
  font-size: 16px;
}

.search-page-form {
  margin-bottom: 28px;
}

.compact-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.compact-link:hover {
  background: var(--dawn-50);
}

.compact-link img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.compact-link strong,
.compact-link em {
  display: block;
}

.compact-link em {
  margin-top: 4px;
  color: var(--ink-500);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: #111827;
}

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

.footer-logo {
  color: var(--dawn-400);
}

.site-footer p {
  max-width: 440px;
  color: #9ca3af;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer a:hover {
  color: var(--dawn-400);
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
    font-size: 14px;
  }

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

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-content {
    bottom: 74px;
  }

  .home-search-block {
    grid-template-columns: 1fr;
  }

  .large-search {
    width: 100%;
  }

  .large-search input {
    width: 100%;
  }

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

  .category-overview-card,
  .detail-hero,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 360px;
  }

  .rank-row {
    grid-template-columns: 52px 88px 1fr;
    gap: 12px;
  }

  .rank-row h2 {
    font-size: 20px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-panel,
  .home-search-block,
  .content-section,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

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

  .hero-content {
    left: 18px;
    bottom: 70px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-summary {
    font-size: 16px;
  }

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

  .soft-panel {
    padding: 30px 16px;
  }

  .section-heading,
  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-hero {
    padding: 48px 18px;
  }

  .detail-hero {
    padding: 18px;
  }

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

  .detail-one-line {
    font-size: 17px;
  }

  .rank-row {
    grid-template-columns: 42px 72px 1fr;
    padding: 12px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 18px;
  }
}
