:root {
  --honey-50: #fff7ed;
  --honey-100: #fffbeb;
  --honey-200: #fde68a;
  --honey-300: #fcd34d;
  --honey-400: #fbbf24;
  --honey-500: #f59e0b;
  --honey-600: #d97706;
  --honey-700: #b45309;
  --ink: #1f2937;
  --muted: #6b7280;
  --paper: rgba(255, 255, 255, 0.86);
  --line: rgba(251, 191, 36, 0.32);
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(251, 191, 36, 0.26), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.18), transparent 30rem),
    linear-gradient(135deg, #fffbeb 0%, #fefce8 48%, #fff7ed 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(255, 251, 235, 0.82);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.28);
}

.logo-text {
  background: linear-gradient(90deg, #b45309, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4b5563;
  font-weight: 700;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--honey-600);
}

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

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.search-form input,
.filter-input,
.filter-select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 15px;
}

.search-form input {
  width: 220px;
  padding: 8px 8px 8px 14px;
}

.search-form button,
.primary-button,
.secondary-button,
.menu-toggle,
.hero-control,
.player-action {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.search-form button,
.primary-button {
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.24);
}

.search-form button {
  padding: 9px 16px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
}

.secondary-button {
  color: #92400e;
  font-weight: 800;
  border: 1px solid rgba(251, 191, 36, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #92400e;
  border-radius: 14px;
  background: rgba(253, 230, 138, 0.55);
}

.mobile-menu {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease, transform 900ms ease;
  transform: scale(1.02);
  pointer-events: none;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 18, 4, 0.92) 0%, rgba(74, 35, 7, 0.72) 42%, rgba(74, 35, 7, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(36, 18, 4, 0.72));
}

.hero-content {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 46px;
  padding: 86px 0 112px;
}

.hero-copy {
  max-width: 720px;
}

.kicker,
.meta-pill,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.82);
}

.kicker {
  margin-bottom: 20px;
  padding: 8px 14px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 660px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.9;
}

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

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

.hero-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.hero-card-caption {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(36, 18, 4, 0.72);
  backdrop-filter: blur(10px);
}

.hero-card-caption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-control {
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  width: 34px;
  background: #fbbf24;
}

.section {
  padding: 72px 0;
}

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

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

.section-heading h2,
.page-title,
.detail-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.section-heading p,
.page-lead,
.detail-lead {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.85;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.10);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.58);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fff7ed);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.28);
}

.badge {
  left: 12px;
  top: 12px;
}

.type-badge {
  right: 12px;
  bottom: 12px;
  background: rgba(31, 41, 55, 0.72);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 17px;
}

.movie-card h3 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 40px rgba(146, 64, 14, 0.10);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.38), rgba(249, 115, 22, 0.18));
  transform: rotate(18deg);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
}

.category-card span {
  position: relative;
  z-index: 1;
  color: #d97706;
  font-weight: 900;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
}

.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 20px 0 auto;
  height: 260px;
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.30), transparent 58%);
  pointer-events: none;
}

.page-panel {
  position: relative;
  padding: 42px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.rank-num {
  color: #d97706;
  font-size: 24px;
  font-weight: 950;
}

.rank-row img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: #fde68a;
}

.rank-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

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

.detail-hero {
  min-height: 540px;
  color: #fff;
  background: #241204;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 18, 4, 0.96), rgba(36, 18, 4, 0.68), rgba(36, 18, 4, 0.94)),
    linear-gradient(180deg, transparent, rgba(255, 251, 235, 1));
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.detail-title {
  color: #fff;
  font-size: clamp(36px, 7vw, 68px);
}

.detail-lead {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.meta-pill,
.tag-chip {
  padding: 7px 12px;
}

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

.article-card,
.player-card,
.side-card {
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 45px rgba(146, 64, 14, 0.10);
}

.article-card,
.side-card {
  padding: 28px;
}

.article-card h2,
.player-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.article-card p {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.player-card {
  overflow: hidden;
  margin-bottom: 28px;
}

.player-card h2 {
  padding: 22px 24px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  margin: 22px;
  border-radius: 24px;
  background: #111827;
}

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

.player-action {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.10), rgba(17, 24, 39, 0.56));
  transition: opacity 200ms ease;
}

.player-action span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 46px rgba(217, 119, 6, 0.36);
  font-size: 32px;
  text-indent: 4px;
}

.video-shell.is-playing .player-action {
  opacity: 0;
  pointer-events: none;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.78);
}

.related-item img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: #fde68a;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.search-results {
  display: grid;
  gap: 14px;
}

.search-result {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.search-result img {
  width: 96px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: #fde68a;
}

.search-result h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.search-result p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.75;
}

.empty-state {
  padding: 34px;
  text-align: center;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.site-footer {
  margin-top: 60px;
  padding: 42px 0;
  color: #92400e;
  border-top: 1px solid rgba(251, 191, 36, 0.34);
  background: rgba(255, 251, 235, 0.72);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

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

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

  .content-grid {
    grid-template-columns: 1fr;
  }
}

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

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

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

  .hero-content {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
  }

  .hero-card {
    max-width: 360px;
  }

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

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-title,
  .detail-title {
    letter-spacing: -0.05em;
  }

  .hero-card {
    display: none;
  }

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

  .rank-row,
  .search-result {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .rank-row img,
  .search-result img {
    width: 72px;
  }

  .section-heading {
    display: block;
  }

  .page-panel,
  .article-card,
  .side-card {
    padding: 22px;
  }
}
