:root {
  --site-orange: #f97316;
  --site-red: #dc2626;
  --site-dark: #111827;
  --site-muted: #6b7280;
  --site-soft: #fff7ed;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #f9fafb;
  color: #1f2937;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(153, 27, 27, 0.22);
}

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

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

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.logo-mark::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
  margin-left: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
}

.main-nav a,
.mobile-panel a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: #fed7aa;
}

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

.search-box {
  position: relative;
}

.search-box input {
  width: 260px;
  border-radius: 999px;
  border: 0;
  outline: 0;
  padding: 10px 44px 10px 18px;
  color: #1f2937;
  box-shadow: 0 0 0 0 rgba(253, 186, 116, 0);
  transition: box-shadow 0.2s ease;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(253, 186, 116, 0.55);
}

.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #6b7280;
}

.search-box button::before {
  content: "⌕";
  font-size: 22px;
  line-height: 1;
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

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

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hero {
  position: relative;
  height: 620px;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.50) 46%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 80px;
  z-index: 2;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--site-orange);
  color: #ffffff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1,
.hero h2 {
  max-width: 850px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 720px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--site-orange);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.78);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--site-orange);
}

.section {
  padding: 54px 0;
}

.section-tight {
  padding: 34px 0;
}

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

.section-title-row h2,
.page-hero h1,
.detail-title h1 {
  color: #1f2937;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-title-row h2 {
  font-size: 34px;
}

.section-title-row p {
  color: var(--site-muted);
  margin-top: 7px;
}

.view-more {
  color: #ea580c;
  font-weight: 800;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.14);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
}

.movie-card.featured .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

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

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.featured .card-body h3 {
  font-size: 20px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  margin: 8px 0 10px;
}

.card-desc {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-panel {
  border-radius: 28px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  padding: 32px;
}

.category-strip + .category-strip {
  margin-top: 30px;
}

.category-strip h3 {
  font-size: 22px;
  font-weight: 900;
  color: #374151;
  margin-bottom: 16px;
}

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

.category-tile {
  display: block;
  min-height: 154px;
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.13);
}

.category-tile h2,
.category-tile h3 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-tile p {
  color: #6b7280;
  line-height: 1.7;
}

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

.latest-item,
.rank-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.latest-item:hover,
.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.latest-item img,
.rank-item img {
  width: 160px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.latest-item h3,
.rank-item h3 {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
}

.latest-item p,
.rank-item p {
  color: #4b5563;
  line-height: 1.7;
}

.page-hero {
  padding: 62px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--site-orange), var(--site-red));
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 52px);
}

.page-hero p {
  max-width: 780px;
  color: #ffedd5;
  line-height: 1.8;
  margin-top: 12px;
  font-size: 18px;
}

.filter-panel {
  margin: 32px 0;
  border-radius: 22px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
}

.filter-panel input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 14px 18px;
  outline: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus {
  border-color: #fdba74;
  box-shadow: 0 0 0 4px rgba(253, 186, 116, 0.22);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  margin: 24px 0;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 700;
}

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

.detail-main,
.detail-side {
  border-radius: 24px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.08);
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.detail-title p {
  color: #4b5563;
  line-height: 1.8;
  margin-top: 12px;
  font-size: 17px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tag-row span {
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  margin: 24px 0;
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.38);
}

.player-cover.is-hidden {
  display: none;
}

.player-play {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-play:hover {
  transform: scale(1.05);
  background: #ea580c;
}

.player-play::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #ffffff;
  margin-left: 7px;
}

.content-block h2 {
  font-size: 24px;
  color: #111827;
  font-weight: 900;
  margin: 24px 0 12px;
}

.content-block p {
  color: #374151;
  line-height: 1.9;
  margin-bottom: 14px;
}

.side-card + .side-card {
  margin-top: 14px;
}

.side-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-card img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.side-card h3 {
  color: #111827;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.side-card p {
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
}

.rank-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-red));
  font-weight: 900;
}

.rank-content {
  display: flex;
  gap: 16px;
}

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

.site-footer {
  margin-top: 60px;
  padding: 40px 0;
  color: #e5e7eb;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-grid p,
.footer-grid a {
  color: #d1d5db;
  line-height: 1.8;
}

.footer-grid a:hover {
  color: #fdba74;
}

@media (max-width: 1024px) {
  .main-nav,
  .header-actions .search-box {
    display: none;
  }

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

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

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

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

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

@media (max-width: 700px) {
  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-control {
    display: none;
  }

  .section-title-row {
    display: block;
  }

  .section-title-row h2 {
    font-size: 28px;
  }

  .grid-featured,
  .grid-cards,
  .grid-medium,
  .category-card-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .latest-item img,
  .rank-item img {
    width: 110px;
    height: 76px;
  }

  .latest-item h3,
  .rank-item h3 {
    font-size: 16px;
  }

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

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

  .grid-featured,
  .grid-cards,
  .grid-medium,
  .category-card-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-main,
  .detail-side,
  .category-panel {
    padding: 18px;
    border-radius: 18px;
  }
}
