:root {
  color-scheme: light;
  --site-bg: #fff7ed;
  --site-card: #ffffff;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-line: #fed7aa;
  --site-orange: #ea580c;
  --site-orange-soft: #ffedd5;
  --site-orange-strong: #c2410c;
  --site-shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 30%), var(--site-bg);
  color: var(--site-text);
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.top-strip {
  background: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
  color: #ffffff;
  text-align: center;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(254, 215, 170, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(124, 45, 18, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

.logo-title {
  display: block;
  color: #9a3412;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
}

.logo-subtitle {
  color: #f97316;
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 700;
  color: #374151;
}

.nav-links a:hover,
.mobile-panel a:hover {
  color: var(--site-orange);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-input {
  width: 16rem;
  border: 2px solid var(--site-line);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  outline: none;
  background: #ffffff;
  color: var(--site-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.search-button,
.primary-button,
.secondary-button,
.mobile-toggle,
.play-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-button,
.primary-button,
.play-button {
  background: linear-gradient(135deg, #f97316, #ea580c, #fb923c);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.22);
}

.search-button {
  border-radius: 999px;
  padding: 0.62rem 1rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
}

.secondary-button {
  color: #9a3412;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(254, 215, 170, 0.85);
}

.search-button:hover,
.primary-button:hover,
.secondary-button:hover,
.play-button:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: var(--site-orange-soft);
  color: var(--site-orange-strong);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--site-line);
  padding: 1rem;
  background: #ffffff;
}

.mobile-panel.is-open {
  display: grid;
  gap: 0.75rem;
}

.mobile-panel form {
  display: flex;
  gap: 0.5rem;
}

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

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

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(67, 20, 7, 0.93), rgba(124, 45, 18, 0.68), rgba(255, 237, 213, 0.1));
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 680px;
  margin: 0 auto;
  padding: 6rem 1rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 3rem;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.18);
  border: 1px solid rgba(255, 237, 213, 0.32);
  padding: 0.45rem 0.85rem;
  color: #ffedd5;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 1.2rem 0 1rem;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 760px;
  color: #ffedd5;
  font-size: 1.12rem;
  line-height: 1.9;
}

.hero-meta,
.card-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.hero-meta span,
.card-meta span,
.detail-meta span,
.rank-meta span,
.tag-chip {
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.85);
  color: #9a3412;
  padding: 0.35rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-meta span {
  background: rgba(255, 255, 255, 0.17);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2rem;
  padding: 1rem;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.22);
}

.hero-cover {
  aspect-ratio: 3 / 4;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 3;
}

.hero-dot {
  width: 2.3rem;
  height: 0.35rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

.section-narrow {
  max-width: 960px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
  color: #1f2937;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-desc {
  color: var(--site-muted);
  margin-top: 0.5rem;
  line-height: 1.8;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  background: var(--site-card);
  border: 1px solid rgba(254, 215, 170, 0.85);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--site-shadow);
  border-color: #fb923c;
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ffedd5, #fed7aa);
  overflow: hidden;
}

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

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

.card-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: rgba(234, 88, 12, 0.94);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-title {
  color: #1f2937;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
}

.card-title:hover {
  color: var(--site-orange);
}

.card-desc {
  color: var(--site-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-tile {
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 1.35rem;
  padding: 1.35rem;
  box-shadow: 0 12px 36px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.category-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: var(--site-orange-soft);
  color: var(--site-orange);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.category-title {
  font-weight: 900;
  font-size: 1.15rem;
  color: #1f2937;
}

.category-desc {
  margin-top: 0.5rem;
  color: var(--site-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.rank-list {
  display: grid;
  gap: 1rem;
}

.rank-item {
  display: grid;
  grid-template-columns: 4rem 7rem 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 1.25rem;
  padding: 0.85rem;
  box-shadow: 0 12px 36px rgba(124, 45, 18, 0.08);
}

.rank-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--site-orange);
  text-align: center;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffedd5;
}

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

.rank-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1f2937;
}

.rank-desc {
  color: var(--site-muted);
  line-height: 1.7;
  margin-top: 0.4rem;
}

.page-hero {
  background: linear-gradient(135deg, #7c2d12, #ea580c, #fdba74);
  color: #ffffff;
  padding: 5rem 1rem;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin-top: 1rem;
  color: #ffedd5;
  line-height: 1.9;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #fed7aa;
  font-weight: 800;
  margin-bottom: 1rem;
}

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

.filter-bar {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 12px 36px rgba(124, 45, 18, 0.08);
  margin-bottom: 2rem;
}

.filter-bar .search-input {
  width: 100%;
  border-radius: 1rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.42fr);
  gap: 2rem;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.88);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--site-shadow);
}

.player-wrap {
  position: relative;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111827;
}

.player-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.2s, visibility 0.2s;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.18), rgba(17, 24, 39, 0.78));
}

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

.play-button {
  position: relative;
  z-index: 2;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 999px;
  font-size: 1.05rem;
}

.detail-content {
  padding: 1.5rem;
}

.detail-content h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #1f2937;
}

.detail-content h2,
.side-card h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #1f2937;
  margin-bottom: 1rem;
}

.detail-content p {
  color: #4b5563;
  line-height: 2;
  margin-top: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.side-card {
  padding: 1rem;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-item {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 1rem;
  background: #fff7ed;
}

.related-cover {
  aspect-ratio: 3 / 4;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffedd5;
}

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

.related-title {
  font-weight: 900;
  color: #1f2937;
  line-height: 1.35;
}

.related-meta {
  color: var(--site-muted);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.site-footer {
  margin-top: 3rem;
  background: #431407;
  color: #fed7aa;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.footer-brand {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #ffffff;
}

.empty-state {
  display: none;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.9);
  color: var(--site-muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

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

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
    gap: 2rem;
  }

  .hero-panel {
    max-width: 320px;
  }

  .section-head,
  .footer-inner {
    display: grid;
  }

  .rank-item {
    grid-template-columns: 3rem 5.5rem 1fr;
  }

  .rank-item .primary-button {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .card-body {
    padding: 0.85rem;
  }

  .card-meta span {
    font-size: 0.72rem;
  }

  .rank-item {
    grid-template-columns: 2.5rem 4.5rem 1fr;
    gap: 0.7rem;
  }

  .rank-desc {
    display: none;
  }

  .play-button {
    width: 5rem;
    height: 5rem;
  }
}
