* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  color: #111827;
  background: #f9fafb;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
  font-size: 15px;
}

.desktop-nav,
.category-shortcut {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 650;
}

.desktop-nav a,
.category-shortcut a,
.mobile-nav a {
  color: #374151;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.category-shortcut a:hover,
.mobile-nav a:hover {
  color: #f97316;
}

.category-shortcut {
  color: #6b7280;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff7ed;
  color: #f97316;
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 16px 16px;
  background: #ffffff;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f9fafb;
}

.mobile-nav.is-open {
  display: grid;
}

.main-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 42%, #ef4444 100%);
}

.visual-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.visual-layer.is-active {
  opacity: 1;
}

.visual-bg {
  position: absolute;
  inset: 0;
}

.visual-bg img {
  filter: saturate(1.04);
  opacity: 0.55;
}

.visual-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(249, 115, 22, 0.62), rgba(239, 68, 68, 0.44));
}

.visual-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
  min-height: 560px;
  padding: 74px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
  color: #fff7ed;
}

.visual-copy h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.04;
  letter-spacing: -1.8px;
}

.visual-copy p {
  margin: 0 0 26px;
  color: #fff7ed;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.visual-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

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

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

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: #f97316;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.visual-poster {
  position: relative;
  max-width: 460px;
  justify-self: end;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.38);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.16);
}

.visual-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.58));
}

.visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.visual-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.visual-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.visual-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.visual-dots button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.visual-dots button.is-active {
  width: 30px;
  background: #ffffff;
}

.section {
  padding: 56px 0;
}

.section-white {
  background: #ffffff;
}

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

.section-title {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-subtitle {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
  max-width: 760px;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 174px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #ef4444);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.22);
  overflow: hidden;
  position: relative;
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #ef4444, #fb7185);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  font-size: 14px;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

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

.movie-poster img {
  transition: transform 0.36s ease;
}

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

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.36;
}

.movie-title a:hover {
  color: #f97316;
}

.movie-meta {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-one-line {
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.58;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.movie-tags span,
.detail-tags span {
  color: #c2410c;
  background: #fff7ed;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 72px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff7ed;
}

.rank-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-title a:hover {
  color: #f97316;
}

.rank-desc {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
}

.rank-heat {
  justify-self: end;
  border-radius: 999px;
  padding: 8px 12px;
  color: #c2410c;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.search-box {
  display: grid;
  gap: 8px;
  color: #374151;
  font-weight: 800;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #f9fafb;
  font-size: 15px;
  outline: none;
}

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

.filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.page-hero {
  padding: 58px 0 36px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.75;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mini-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #fff7ed;
}

.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.76));
}

.mini-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a {
  color: #f97316;
  font-weight: 700;
}

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

.detail-main,
.detail-side {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.detail-main {
  padding: 24px;
}

.detail-side {
  padding: 20px;
  position: sticky;
  top: 88px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(17, 24, 39, 0.42);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
  opacity: 0.74;
  filter: saturate(1.05);
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.player-start span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  padding: 15px 22px;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.28);
}

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

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  background: #f3f4f6;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.side-poster {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  margin-bottom: 18px;
  background: #fff7ed;
}

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

.side-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #f9fafb;
}

.side-link:hover {
  background: #fff7ed;
}

.side-link img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #fed7aa;
}

.side-link strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.35;
}

.side-link span {
  color: #6b7280;
  font-size: 12px;
}

.empty-state {
  display: none;
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 16px;
  color: #92400e;
  background: #fffbeb;
  font-weight: 700;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.2fr;
  gap: 28px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.7;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-columns {
  columns: 2;
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .category-shortcut {
    display: none;
  }

  .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;
  }

  .detail-side {
    position: static;
  }
}

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

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

  .brand {
    font-size: 20px;
  }

  .visual-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 54px 0 86px;
  }

  .visual-poster {
    justify-self: stretch;
    max-width: none;
    max-height: 420px;
  }

  .movie-grid,
  .category-grid,
  .category-preview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .rank-heat {
    grid-column: 3;
    justify-self: start;
  }

  .footer-columns {
    columns: 1;
  }
}
