:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --blue: #2563eb;
  --red: #ef4444;
  --green: #22c55e;
  --dark: #111827;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #f9fafb 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.container.narrow {
  width: min(860px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 80px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.brand.mini .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 0.9rem;
}

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

.nav-link,
.dropdown-button {
  border: 0;
  background: transparent;
  color: #374151;
  font-weight: 700;
  padding: 11px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.dropdown-button:hover {
  color: var(--amber-dark);
  background: #fffbeb;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 230px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.dropdown-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: #4b5563;
  font-weight: 650;
}

.dropdown-panel a:hover {
  background: #fffbeb;
  color: var(--amber-dark);
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search {
  position: relative;
  width: 260px;
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 46px 11px 16px;
  outline: 0;
  background: #ffffff;
}

.header-search input:focus,
.mobile-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 {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fffbeb;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 999px;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin: 0 auto 14px;
  max-width: 680px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding-inline: 18px;
  color: #ffffff;
  background: var(--amber);
}

.mobile-links,
.mobile-categories {
  width: min(680px, 100%);
  margin-inline: auto;
  display: grid;
  gap: 6px;
}

.mobile-links a,
.mobile-categories a {
  padding: 10px 6px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-weight: 650;
}

.mobile-categories {
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-categories strong {
  grid-column: 1 / -1;
  color: var(--muted);
}

.hero-section {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 26%), linear-gradient(135deg, #b45309 0%, #f59e0b 44%, #f97316 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.75) 1px, transparent 0),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  background-size: 46px 46px, 100% 100%;
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(to top, #fff7ed, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin-inline: auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 54px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #fff7ed;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-subtitle {
  margin: 0 0 20px;
  max-width: 720px;
  color: #fff7ed;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.42;
  font-weight: 750;
}

.hero-summary {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.8;
}

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

.hero-tags span,
.card-tags span,
.tag-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 700;
}

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

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

.primary-button,
.ghost-button,
.red-button,
.blue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--amber-dark);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18);
}

.cta-section .primary-button,
.search-hero .primary-button,
.detail-info-card .primary-button,
.not-found .primary-button {
  color: #ffffff;
  background: var(--amber);
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(146, 64, 14, 0.22);
  backdrop-filter: blur(10px);
}

.red-button {
  color: #ffffff;
  background: var(--red);
}

.blue-button {
  color: #ffffff;
  background: var(--blue);
}

.primary-button:hover,
.ghost-button:hover,
.red-button:hover,
.blue-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.23);
  border-radius: 34px;
  box-shadow: 0 40px 80px rgba(92, 38, 6, 0.36);
  aspect-ratio: 4 / 5;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.46), transparent 58%);
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.94);
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 74px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

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

.section {
  padding-block: 52px;
}

.stats-section {
  position: relative;
  z-index: 4;
  margin-top: -42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card,
.movie-card,
.category-card,
.line-card,
.overview-card,
.detail-info-card,
.sticky-box,
.ranking-panel,
.rank-side,
.player-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.78);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--amber-dark);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.stat-card span {
  color: var(--muted);
  font-weight: 650;
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.06em;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fef3c7, #dbeafe);
}

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

.movie-card:hover .poster-link img,
.line-card:hover .line-cover img {
  transform: scale(1.09);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 62%);
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.year-badge {
  right: 12px;
  background: var(--amber);
}

.rank-badge {
  left: 12px;
  background: var(--red);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h3 a:hover,
.line-info h3 a:hover {
  color: var(--amber-dark);
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6b7280;
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.card-tags span {
  color: #92400e;
  background: #fef3c7;
}

.category-grid,
.overview-grid,
.rank-category-grid {
  display: grid;
  gap: 20px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::after,
.overview-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.08;
}

.category-icon,
.overview-main span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.category-card strong,
.overview-main h2 {
  display: block;
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 1.28rem;
}

.category-card p,
.overview-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: start;
}

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

.line-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  border-radius: 18px;
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

.line-cover span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.4rem;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.line-card:hover .line-cover span {
  opacity: 1;
}

.line-info {
  min-width: 0;
  position: relative;
}

.line-rank {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 900;
}

.line-info h3 {
  margin: 0 0 7px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.line-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-info div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 0.82rem;
}

.ranking-panel,
.rank-side,
.sticky-box {
  border-radius: var(--radius);
  padding: 22px;
}

.line-list.small .line-card {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.line-list.small .line-info p {
  display: none;
}

.cta-section {
  margin-bottom: 64px;
  padding: 48px;
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(90deg, #fef3c7, #fff7ed, #fef3c7);
  box-shadow: var(--shadow-soft);
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.06em;
}

.cta-section p {
  max-width: 740px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.page-hero,
.search-hero {
  color: #ffffff;
  padding-block: 66px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.page-hero.category {
  background: linear-gradient(135deg, var(--accent), #f97316);
}

.page-hero h1,
.search-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  letter-spacing: -0.08em;
}

.page-hero p,
.search-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.14rem;
  line-height: 1.75;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

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

.detail-breadcrumb {
  color: #6b7280;
  margin: 28px 0 18px;
}

.detail-breadcrumb a:hover {
  color: var(--amber-dark);
}

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

.overview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 24px;
}

.overview-links {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.overview-links a {
  color: #4b5563;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f9fafb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-links a:hover {
  color: var(--amber-dark);
  background: #fffbeb;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 13px;
  outline: 0;
  background: #ffffff;
}

.filter-status {
  min-height: 24px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

.search-hero {
  text-align: center;
}

.search-hero p {
  margin-inline: auto;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.quick-tags button {
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.quick-tags button:hover {
  background: rgba(255, 255, 255, 0.32);
}

.detail-page {
  padding-bottom: 24px;
}

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

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 24px 58px rgba(17, 24, 39, 0.22);
  margin-bottom: 22px;
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  align-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: var(--amber);
  font-size: 2.1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
  font-size: 1.12rem;
}

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

.detail-info-card {
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
}

.detail-info-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.06em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.detail-meta span {
  color: #92400e;
  background: #fef3c7;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
}

.detail-info-card section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.detail-info-card h2,
.sticky-box h2 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.detail-info-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 1.02rem;
}

.review-box {
  border-left: 5px solid var(--amber);
  border-top: 0 !important;
  border-radius: 16px;
  padding: 22px !important;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.tag-row {
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.tag-row strong {
  color: #374151;
}

.tag-row a {
  color: #374151;
  background: #f3f4f6;
}

.tag-row a:hover {
  color: #92400e;
  background: #fef3c7;
}

.detail-side {
  min-width: 0;
}

.sticky-box {
  position: sticky;
  top: 104px;
}

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

.rank-page-layout {
  grid-template-columns: minmax(0, 1.15fr) 360px;
}

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

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

.rank-category-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), white 88%), #ffffff);
  border: 1px solid var(--line);
}

.rank-category-card h3 {
  margin: 0 0 12px;
  color: #1f2937;
}

.rank-category-card div {
  display: grid;
  gap: 9px;
}

.rank-category-card a {
  color: #4b5563;
  font-weight: 650;
}

.rank-category-card a:hover {
  color: var(--amber-dark);
}

.not-found {
  min-height: 66vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 18px;
}

.not-found strong {
  display: block;
  color: #e5e7eb;
  font-size: clamp(5rem, 20vw, 10rem);
  line-height: 1;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 2.3rem;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 22px;
}

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

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

.footer-brand p,
.site-footer p {
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 1.08rem;
  margin: 0 0 16px;
}

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

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

.site-footer .brand-text strong {
  color: #ffffff;
}

.site-footer .brand-text small {
  color: #9ca3af;
}

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

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

  .hero-slide,
  .detail-layout,
  .two-column-layout,
  .rank-page-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .hero-slide {
    position: relative;
  }

  .hero-slide {
    display: none;
    padding: 72px 0 120px;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-poster {
    max-width: 420px;
    margin-inline: auto;
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 70px;
  }

  .brand-text small {
    display: none;
  }

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

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 0.88rem;
  }

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

  .hero-slide {
    gap: 30px;
    padding: 50px 0 94px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 16vw, 4rem);
  }

  .hero-summary {
    display: none;
  }

  .hero-dots {
    bottom: 42px;
  }

  .stats-section,
  .movie-grid,
  .related-grid,
  .top-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .line-card,
  .line-list.small .line-card {
    grid-template-columns: 122px minmax(0, 1fr);
  }

  .line-cover {
    aspect-ratio: 4 / 3;
  }

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

  .cta-section {
    padding: 34px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mobile-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .container,
  .hero-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .line-card,
  .line-list.small .line-card {
    grid-template-columns: 1fr;
  }

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

  .primary-button,
  .ghost-button,
  .red-button,
  .blue-button {
    width: 100%;
  }
}
