
:root {
  --bg: #fff7ed;
  --bg-soft: #fffbf5;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 6%, rgba(251, 146, 60, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(245, 158, 11, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  background: rgba(255, 251, 245, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, #ea580c, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.2);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 237, 213, 0.86);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #9a3412;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.26);
}

.hero-glow {
  position: absolute;
  inset: -35% -20% auto auto;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.36);
  filter: blur(70px);
  z-index: 2;
}

.hero-slider,
.hero-slide,
.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 40px;
  padding: 76px;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

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

.hero-backdrop {
  z-index: -2;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.48;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.76) 45%, rgba(17, 24, 39, 0.35)),
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 34rem);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 670px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.hero-content .eyebrow,
.detail-info .eyebrow,
.page-hero .eyebrow {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.26);
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  margin: 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin: 20px 0 0;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 900;
  transition: 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.28);
}

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

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

.hero-poster {
  position: relative;
  z-index: 3;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.5), rgba(245, 158, 11, 0.34));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.hero-poster img,
.detail-poster img,
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.is-missing {
  opacity: 0;
}

.hero-controls {
  position: absolute;
  left: 76px;
  bottom: 36px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

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

.hero-dot {
  width: 9px !important;
  height: 9px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.36) !important;
}

.hero-dot.is-active {
  width: 26px !important;
  background: #ffffff !important;
}

.hero-strip {
  position: absolute;
  right: 34px;
  bottom: 30px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, 190px);
  gap: 12px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-mini-card img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 237, 213, 0.2);
}

.hero-mini-card strong,
.hero-mini-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-mini-card small {
  color: rgba(255, 255, 255, 0.68);
}

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

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

.intro-block {
  padding-top: 36px;
}

.intro-card,
.page-hero,
.detail-hero,
.article-section,
.search-panel,
.category-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: clamp(26px, 4vw, 46px);
}

.intro-card h2,
.section-title h2,
.page-hero h1,
.article-section h2 {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.intro-card p,
.section-title p,
.page-hero p,
.article-section p,
.category-panel p {
  color: var(--muted);
}

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

.section-title h2 {
  margin: 0;
}

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

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #c2410c;
  background: #ffedd5;
  font-weight: 900;
}

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

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

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

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

.movie-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(146, 64, 14, 0.08);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.35), transparent 12rem),
    linear-gradient(135deg, #fed7aa, #fb923c 55%, #f59e0b);
}

.poster-wrap em {
  position: absolute;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.24);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.movie-card-body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.movie-card-body small,
.card-line {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  min-height: 26px;
}

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

.category-tile,
.category-panel-head {
  display: block;
  padding: 22px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.08);
  transition: 0.25s ease;
}

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

.category-tile strong,
.category-panel-head span {
  display: block;
  margin-bottom: 8px;
  color: #9a3412;
  font-size: 20px;
  font-weight: 900;
}

.category-tile span,
.category-panel p {
  color: var(--muted);
  font-size: 14px;
}

.category-panel {
  padding: 0 0 18px;
  overflow: hidden;
}

.category-panel p {
  margin: 16px 18px;
}

.category-panel-head {
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

.category-panel-head small {
  color: #ea580c;
  font-weight: 900;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px;
}

.category-sample-links a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.ranking-block .rank-list,
.rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 94px 1fr;
  align-items: stretch;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: auto;
  min-height: 138px;
}

.movie-card-compact .card-line {
  -webkit-line-clamp: 2;
}

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

.page-main {
  padding-top: 34px;
}

.page-hero {
  padding: clamp(30px, 5vw, 56px);
  background:
    radial-gradient(circle at 90% 12%, rgba(251, 146, 60, 0.22), transparent 22rem),
    linear-gradient(135deg, #1f2937, #111827);
  color: #ffffff;
}

.slim-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #c2410c;
  font-weight: 800;
}

.search-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.search-label {
  display: block;
  margin-bottom: 10px;
  color: #9a3412;
  font-weight: 900;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
}

.search-row input,
.search-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 15px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
}

.search-row input:focus,
.search-row select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #9a3412;
  background: #ffedd5;
  cursor: pointer;
  font-weight: 900;
}

.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.detail-main {
  width: min(1180px, calc(100% - 32px));
}

.detail-hero {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  padding: clamp(22px, 4vw, 38px);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.34), transparent 28rem),
    linear-gradient(135deg, #111827, #1f2937);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #fed7aa, #fb923c);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  padding-top: 28px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.18);
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.72));
  cursor: pointer;
}

.video-frame.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.36);
  font-size: 32px;
  text-indent: 4px;
}

.play-layer strong {
  font-size: 20px;
}

.article-section {
  padding: clamp(22px, 4vw, 36px);
}

.article-section h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.article-section p {
  font-size: 17px;
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.meta-table div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.meta-table span,
.meta-table strong {
  display: block;
}

.meta-table span {
  color: var(--muted);
  font-size: 13px;
}

.meta-table strong {
  margin-top: 4px;
  color: #9a3412;
}

.site-footer {
  margin-top: 72px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.footer-logo .brand-text {
  color: #ffffff;
  background: none;
}

.footer-brand p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

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

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

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

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

  .hero-strip {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .hero-carousel {
    min-height: 720px;
    border-radius: 26px;
  }

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

  .hero-poster {
    width: min(230px, 70vw);
    margin: 0 auto;
  }

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

  .movie-grid,
  .featured-grid,
  .catalogue-grid,
  .related-grid,
  .category-grid,
  .category-panel-grid,
  .rank-list,
  .full-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(260px, 70vw);
  }

  .search-row,
  .footer-shell,
  .meta-table {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .hero-carousel {
    width: min(100% - 20px, 1180px);
    min-height: 690px;
    margin-top: 18px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .content-section,
  .page-main,
  .detail-main {
    width: min(100% - 20px, 1180px);
  }

  .movie-grid,
  .featured-grid,
  .catalogue-grid,
  .related-grid,
  .category-grid,
  .category-panel-grid,
  .rank-list,
  .full-rank-list {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 92px 1fr;
  }

  .section-title {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }
}
