:root {
  --peach-50: #fff5f0;
  --peach-100: #ffe9dd;
  --peach-300: #ffbd99;
  --peach-400: #ffa777;
  --peach-500: #ff9155;
  --peach-600: #ff7b44;
  --peach-700: #e8622d;
  --coral-50: #fff0ee;
  --coral-500: #ff6450;
  --text-900: #111827;
  --text-700: #374151;
  --text-600: #4b5563;
  --text-500: #6b7280;
  --line: rgba(255, 145, 85, 0.22);
  --shadow: 0 4px 20px rgba(255, 145, 85, 0.10);
  --shadow-xl: 0 24px 50px rgba(255, 100, 80, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-900);
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 48%, #fff0ee 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(255, 145, 85, 0.08);
}

.nav-shell {
  width: min(1200px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--peach-400), var(--coral-500));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(255, 100, 80, 0.24);
}

.brand-name,
.gradient-text,
.section-head h2,
.footer-logo {
  background: linear-gradient(90deg, var(--peach-600), var(--coral-500), var(--peach-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.nav-link {
  color: var(--text-700);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--peach-600);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  color: var(--text-700);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 210px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--peach-400);
  box-shadow: 0 0 0 3px rgba(255, 167, 119, 0.28);
}

.header-search button,
.mobile-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--peach-500), var(--coral-500));
  box-shadow: 0 10px 24px rgba(255, 100, 80, 0.22);
}

.secondary-button {
  color: var(--peach-700);
  background: #fff;
  border: 1px solid var(--line);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: var(--peach-100);
  color: var(--text-700);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel.open {
  display: block;
  animation: slideDown 0.28s ease both;
}

.mobile-search input {
  flex: 1;
}

.mobile-links {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  margin-left: max(16px, calc((100% - 1200px) / 2));
  animation: fadeIn 0.6s ease both;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker span {
  color: #fff;
  background: var(--peach-500);
  padding: 6px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.hero-kicker em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.76);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: translateY(-50%) scale(1.04);
}

.hero-arrow.prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-arrow.next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

.hero-dot.active {
  width: 32px;
  background: #fff;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  color: var(--text-600);
  font-size: 18px;
  line-height: 1.75;
  max-width: 760px;
}

.section {
  padding: 60px 0;
}

.section.light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 245, 240, 0.78));
}

.section.coral {
  background: linear-gradient(180deg, rgba(255, 240, 238, 0.92), rgba(255, 255, 255, 0.88));
}

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

.section-head h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.12;
}

.section-head p {
  margin: 0;
  color: var(--text-600);
}

.section-more {
  color: var(--peach-700);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

.movie-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 145, 85, 0.10);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--peach-100), var(--coral-50));
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.46));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.card-badge {
  top: 10px;
  left: 10px;
  background: var(--peach-500);
}

.card-duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-900);
  font-weight: 800;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.card-title:hover {
  color: var(--peach-600);
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--text-600);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.6;
  font-size: 14px;
}

.card-meta,
.card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-500);
  font-size: 13px;
}

.card-meta span,
.card-foot span,
.detail-chip span,
.tag-cloud span {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--peach-50);
  color: var(--peach-700);
  border: 1px solid rgba(255, 145, 85, 0.14);
}

.card-foot {
  justify-content: space-between;
  margin-top: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--peach-400), var(--coral-500));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 116px;
  height: 116px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-tile strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

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

.rank-list,
.sidebar-card,
.detail-card,
.filter-bar {
  border: 1px solid rgba(255, 145, 85, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
}

.rank-list {
  display: grid;
  overflow: hidden;
}

.compact-card {
  display: grid;
  grid-template-columns: auto 96px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 145, 85, 0.12);
  transition: background 0.2s ease;
}

.compact-card:hover {
  background: var(--peach-50);
}

.compact-card:last-child {
  border-bottom: 0;
}

.rank-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--peach-500), var(--coral-500));
  font-weight: 800;
}

.compact-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: var(--peach-100);
}

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

.compact-info strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-900);
  line-height: 1.45;
}

.compact-info em {
  display: block;
  margin-top: 6px;
  color: var(--text-500);
  font-size: 13px;
  font-style: normal;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 170px 170px 170px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.empty-state {
  display: none;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-600);
}

.empty-state.show {
  display: block;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-500);
  font-size: 14px;
  padding-top: 24px;
}

.breadcrumb a {
  color: var(--peach-700);
  font-weight: 700;
}

.detail-card {
  overflow: hidden;
}

.player-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.player-video {
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-poster {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-poster img {
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 100, 80, 0.86);
  box-shadow: 0 20px 48px rgba(255, 100, 80, 0.35);
  transform: translate(-50%, -50%);
}

.play-ring span {
  margin-left: 5px;
  font-size: 34px;
}

.player-card.is-playing .player-poster {
  opacity: 0;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-card:hover .player-controls,
.player-card.is-playing .player-controls {
  opacity: 1;
  pointer-events: auto;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-control {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.20);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player-control:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
}

.player-state {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.detail-body {
  padding: 26px;
}

.detail-body h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.detail-chip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-lead {
  color: var(--text-700);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 20px;
}

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

.detail-section h2 {
  margin: 0 0 10px;
  color: var(--text-900);
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--text-600);
  line-height: 1.85;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 26px;
  align-items: start;
}

.footer-logo {
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 8px;
}

.footer-grid p {
  margin: 0;
  color: var(--text-600);
  line-height: 1.7;
}

.footer-links,
.footer-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-tags a {
  color: var(--text-600);
  background: var(--peach-50);
  border: 1px solid rgba(255, 145, 85, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover,
.footer-tags a:hover {
  color: var(--peach-700);
  background: var(--peach-100);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-button {
    display: block;
  }

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

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

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

@media (max-width: 680px) {
  .container,
  .nav-shell {
    width: min(100% - 24px, 1200px);
  }

  .brand-name {
    font-size: 18px;
  }

  .hero {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    width: calc(100% - 48px);
    margin-left: 24px;
    max-width: calc(100% - 48px);
  }

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

  .hero-arrow {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

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

  .compact-card {
    grid-template-columns: auto 86px 1fr;
  }

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

  .detail-body {
    padding: 20px;
  }

  .play-ring {
    width: 70px;
    height: 70px;
  }
}
