:root {
  --flame: #ff6b35;
  --flame-dark: #c1440e;
  --honey: #d4a574;
  --honey-light: #fff0d1;
  --ink: #1f1209;
  --muted: #765442;
  --surface: #ffffff;
  --shadow: 0 24px 70px rgba(113, 51, 17, 0.18);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(255, 202, 40, 0.22), transparent 32rem), linear-gradient(180deg, #fff8e7 0%, #fffdf8 38%, #fff7ec 100%);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #5f220d, #ff6b35 48%, #ffbf69);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(136, 100, 47, 0.96), rgba(255, 107, 53, 0.96), rgba(255, 191, 105, 0.96));
  box-shadow: 0 14px 35px rgba(95, 34, 13, 0.22);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #fff3d1, #ffca28);
  color: var(--flame-dark);
  box-shadow: inset 0 -3px 8px rgba(255, 107, 53, 0.28), 0 8px 22px rgba(95, 34, 13, 0.2);
  animation: flicker 3s ease-in-out infinite;
}

.brand-text {
  font-size: 1.45rem;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #fff8d8;
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.page-filter-input {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  min-width: 245px;
  transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search input:focus,
.mobile-search input:focus,
.page-filter-input:focus {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.intro-actions a,
.text-button {
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button,
.intro-actions a:first-child,
.text-button {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #f4511e);
  box-shadow: 0 12px 28px rgba(244, 81, 30, 0.28);
}

.ghost-button,
.intro-actions a:last-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.intro-actions a:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #fff;
  font-size: 1.8rem;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  margin-bottom: 14px;
}

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

.mobile-nav {
  display: grid;
  gap: 12px;
}

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #180902;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 9, 2, 0.88) 0%, rgba(65, 22, 7, 0.68) 44%, rgba(24, 9, 2, 0.18) 100%), linear-gradient(0deg, rgba(24, 9, 2, 0.82), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 650px;
  margin: 0 auto;
  padding: 128px 24px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero-kicker,
.page-hero span,
.detail-copy .one-line {
  color: #ffd54f;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.95;
  font-weight: 900;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.hero-content p {
  max-width: 680px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.card-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags span,
.detail-tags span,
.card-meta span,
.mini-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-tags {
  margin-top: 24px;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}

.hero-controls > button,
.hero-dots button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
}

.hero-dots button.is-active {
  background: #ffca28;
  box-shadow: 0 0 0 5px rgba(255, 202, 40, 0.22);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 62px 24px;
}

.intro-strip {
  margin-top: -54px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-copy h1,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.ranking-panel h2 {
  font-weight: 900;
  color: var(--ink);
}

.intro-copy h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin-bottom: 14px;
}

.intro-copy p,
.section-heading p,
.category-card-body p,
.card-body p,
.compact-card p,
.detail-article p,
.page-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.intro-actions {
  display: flex;
  gap: 12px;
}

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

.section-heading h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.section-heading a {
  color: var(--flame-dark);
  font-weight: 800;
}

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

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.category-tile img,
.category-card-image img,
.compact-cover img,
.card-cover img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.category-tile::after,
.category-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08));
  z-index: -1;
}

.category-tile span {
  font-size: 1.28rem;
  font-weight: 900;
}

.category-tile small {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

.featured-grid .movie-card:nth-child(n+13) {
  display: none;
}

.movie-card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(113, 51, 17, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 70px rgba(113, 51, 17, 0.2);
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  display: block;
  overflow: hidden;
  background: #5f220d;
}

.card-cover img {
  transition: transform 0.45s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 48%);
  opacity: 0.82;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.82);
  background: var(--flame);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-badge {
  left: 12px;
  background: linear-gradient(135deg, #ffbf69, #ff6b35);
}

.card-duration {
  right: 12px;
  background: rgba(0, 0, 0, 0.62);
}

.card-body {
  padding: 18px;
}

.card-body h2,
.compact-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.card-body h2 {
  min-height: 2.7em;
  font-size: 1.08rem;
}

.card-body h2:hover,
.compact-card h3:hover,
.category-card-body h2:hover {
  color: var(--flame-dark);
}

.card-body p {
  height: 3.45em;
  overflow: hidden;
  font-size: 0.92rem;
}

.card-meta {
  margin-top: 14px;
}

.card-meta span,
.mini-meta span {
  color: var(--flame-dark);
  background: #fff3e0;
}

.ranking-panel,
.category-card-large,
.detail-article,
.player-shell,
.wide-ranking {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 224, 178, 0.75);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.ranking-panel h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.compact-cover {
  position: relative;
  height: 98px;
  border-radius: 15px;
  overflow: hidden;
}

.rank-index {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b35, #bf360c);
}

.compact-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9rem;
}

.mini-meta {
  margin-top: 8px;
  gap: 6px;
}

.mini-meta span {
  padding: 4px 8px;
  font-size: 0.72rem;
}

.site-footer {
  margin-top: 42px;
  color: #fff;
  background: linear-gradient(135deg, #5f220d, #7b2a0f 45%, #bf360c);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 560px;
  color: #ffe4a3;
  line-height: 1.75;
}

.footer-links h2 {
  margin-bottom: 16px;
  color: #ffd54f;
  font-size: 1.12rem;
  font-weight: 850;
}

.footer-link-grid {
  display: grid;
  gap: 10px;
}

.footer-link-grid a {
  color: #ffe4a3;
}

.footer-link-grid a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 18px 24px;
  text-align: center;
  color: #ffd8a3;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 18% 20%, rgba(255, 202, 40, 0.24), transparent 26rem), linear-gradient(135deg, #5f220d, #c1440e 52%, #ff6b35);
  color: #fff;
}

.page-hero > div {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 68px 24px;
}

.page-hero h1 {
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

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

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

.category-card-image {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  z-index: 1;
}

.category-card-body {
  padding: 28px;
}

.category-card-body h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-mini-links {
  margin: 18px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-mini-links a {
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff3e0;
  color: var(--flame-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-section {
  padding-top: 42px;
}

.filter-bar {
  margin-bottom: 30px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(113, 51, 17, 0.12);
}

.page-filter-input {
  width: 100%;
  min-width: 0;
  margin-bottom: 16px;
  color: var(--ink);
  background: #fff8e7;
  border-color: #ffe0b2;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-buttons button {
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--flame-dark);
  background: #fff3e0;
  font-weight: 800;
}

.filter-buttons button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff6b35, #f4511e);
}

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

.ranking-layout {
  padding-bottom: 24px;
}

.wide-ranking {
  padding: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #180902;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px);
  transform: scale(1.08);
  opacity: 0.46;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 9, 2, 0.94), rgba(95, 34, 13, 0.82));
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.poster-card {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 1.03;
}

.detail-copy .one-line {
  margin: 22px 0;
  color: #ffe4a3;
  font-size: 1.14rem;
  line-height: 1.8;
}

.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
}

.detail-meta {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-meta div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.detail-meta dd {
  margin-top: 6px;
  color: #fff;
  font-weight: 800;
}

.player-section {
  padding-bottom: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #060201;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1), rgba(0, 0, 0, 0.52));
  font-size: 1.2rem;
  font-weight: 850;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6b35, #bf360c);
  box-shadow: 0 18px 50px rgba(255, 107, 53, 0.42);
}

.article-section {
  padding-top: 26px;
}

.detail-article {
  padding: 34px;
}

.detail-article h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.detail-article p + h2 {
  margin-top: 32px;
}

.detail-article p {
  font-size: 1.05rem;
}

.movie-card.is-hidden {
  display: none;
}

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

  .menu-toggle {
    display: block;
  }

  .split-section,
  .intro-strip,
  .footer-inner,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

@media (max-width: 820px) {
  .hero,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 104px;
  }

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

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

  .category-card-image {
    min-height: 220px;
  }

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

  .poster-card {
    max-width: 260px;
  }
}

@media (max-width: 540px) {
  .header-inner,
  .content-section,
  .detail-inner,
  .page-hero > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    font-size: 1.15rem;
  }

  .hero,
  .hero-content {
    min-height: 520px;
  }

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

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

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

  .compact-cover {
    height: 88px;
  }

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

  .detail-article {
    padding: 24px;
  }
}
