:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --orange: #f97316;
  --red: #ef4444;
  --pink: #ec4899;
  --blue: #2563eb;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--red), var(--pink));
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.24);
}

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

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

.nav-link {
  padding: 10px 14px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 9px 14px;
  color: #111827;
  font-weight: 700;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.mobile-panel a {
  display: block;
  padding: 10px 12px;
  color: #374151;
  font-weight: 700;
  border-radius: 12px;
}

.mobile-panel a:hover {
  background: #fff7ed;
  color: #ea580c;
}

.mobile-category-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #f97316 0%, #ef4444 52%, #ec4899 100%);
  color: #ffffff;
  min-height: 660px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.28));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.25);
}

.hero-glow.one {
  left: -80px;
  top: 120px;
}

.hero-glow.two {
  right: 6%;
  bottom: -90px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 420px);
  gap: 54px;
  align-items: center;
  padding: 76px 0 92px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeInUp 0.52s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 900;
  text-shadow: 0 18px 48px rgba(127, 29, 29, 0.32);
}

.hero-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 23px);
  margin: 0 0 22px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

.tag-row.large span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  color: #ea580c;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(127, 29, 29, 0.22);
}

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

.btn.small {
  min-height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.hero-poster {
  position: relative;
  display: block;
  min-height: 510px;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 78px rgba(127, 29, 29, 0.38);
  transform: rotate(2deg);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(17, 24, 39, 0.28));
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  padding: 0;
  opacity: 0.75;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
  opacity: 1;
}

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

.quick-search-card {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: center;
  gap: 20px;
  margin: -44px 0 48px;
  position: relative;
  z-index: 5;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.quick-search-card h2,
.section-head h2,
.panel-title h2,
.content-card h2,
.player-card h2,
.footer-grid h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.quick-search-card p,
.section-head p,
.category-overview-card p,
.content-card p,
.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-search,
.site-kind-filter,
#global-search {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  outline: none;
  padding: 0 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.site-search:focus,
.site-kind-filter:focus,
#global-search:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.page-section {
  padding: 54px 0;
}

.soft-bg {
  width: 100%;
  max-width: none;
  background: linear-gradient(180deg, #ffffff, #fff7ed 52%, #ffffff);
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-more,
.text-link,
.panel-title a {
  color: #ea580c;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(229, 231, 235, 0.75);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.12;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fecdd3);
}

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

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

.score-pill,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.68);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.card-body {
  padding: 17px;
}

.card-body.compact {
  padding: 15px;
}

.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.card-body h2 {
  min-height: 54px;
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.card-body p {
  min-height: 58px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-body.compact h2 {
  min-height: 48px;
  font-size: 17px;
}

.card-body.compact p {
  min-height: 46px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 26px;
  color: #ffffff;
  box-shadow: var(--soft-shadow);
  background: #111827;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.07);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 18%, rgba(17, 24, 39, 0.84));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile span {
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.rank-panel {
  padding: 22px;
  border-radius: 26px;
  background: #111827;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.sticky-panel,
.detail-side {
  position: sticky;
  top: 92px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-title a {
  color: #fed7aa;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rank-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-num {
  color: #fed7aa;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-meta {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.inner-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #f97316, #ef4444 50%, #ec4899);
}

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

.inner-hero h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.inner-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: #ea580c;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.category-overview-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-cover {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: #fed7aa;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.category-samples a {
  padding: 6px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 700;
}

.global-search-box {
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.movie-detail-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 70px;
}

.movie-detail-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.66);
}

.movie-detail-hero .breadcrumb a {
  color: #fed7aa;
}

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

.detail-cover {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 5.8vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.content-card {
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.player-card h2,
.content-card h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.76));
  border: 0;
  font-weight: 900;
  font-size: 18px;
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.content-card p {
  font-size: 17px;
  color: #374151;
}

.compact-head {
  margin-bottom: 18px;
}

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

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

.footer-brand {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

  .split-layout,
  .detail-content-section {
    grid-template-columns: 1fr;
  }

  .sticky-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-shell {
    min-height: auto;
  }

  .hero-slide,
  .hero-slide.is-active {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 58px 0 96px;
  }

  .hero-poster {
    min-height: 420px;
    transform: none;
  }

  .hero-poster img {
    min-height: 420px;
  }

  .quick-search-card,
  .toolbar,
  .detail-grid,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 320px;
  }
}

@media (max-width: 680px) {
  .movie-grid,
  .movie-grid.tight,
  .category-list,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .page-section {
    padding: 38px 0;
  }

  .soft-bg {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .rank-row {
    grid-template-columns: 34px 44px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

  .inner-hero {
    min-height: 250px;
  }

  .detail-shell {
    padding: 36px 0 48px;
  }

  .player-card,
  .content-card,
  .rank-panel {
    padding: 18px;
    border-radius: 22px;
  }
}
