:root {
  --primary-50: #f0f9f4;
  --primary-100: #dcf0e3;
  --primary-200: #b9dfca;
  --primary-400: #63a47e;
  --primary-500: #3f8b61;
  --primary-600: #2a724c;
  --primary-700: #225d3f;
  --primary-800: #1d4933;
  --accent-50: #f5f8fa;
  --accent-100: #e8eef3;
  --accent-600: #6083b5;
  --accent-800: #475d88;
  --secondary-50: #fdf8f3;
  --secondary-100: #f9ede0;
  --night-50: #f4f6f8;
  --night-100: #e3e8ed;
  --night-300: #aeb9c5;
  --night-400: #8593a4;
  --night-700: #3b4c61;
  --night-900: #2e3946;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 18px 45px rgba(17, 24, 39, 0.16);
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, var(--primary-50), #ffffff 34%, var(--accent-50));
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 18px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.section-inner,
.detail-layout,
.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(42, 114, 76, 0.25);
  font-size: 14px;
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #374151;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 12px 10px 16px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 10px 16px;
  background: var(--primary-600);
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-link {
  display: block;
  padding: 10px 0;
}

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

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

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 100%;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 82px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-badge,
.movie-badge,
.detail-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--primary-600);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.hero-badge {
  margin-bottom: 18px;
  padding: 8px 13px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  display: -webkit-box;
  max-width: 860px;
  margin: 0 0 28px;
  overflow: hidden;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.btn,
.btn-light,
.btn-ghost,
.filter-clear,
.player-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn,
.filter-clear {
  padding: 12px 22px;
  background: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(42, 114, 76, 0.22);
}

.btn:hover,
.filter-clear:hover {
  transform: translateY(-1px);
  background: var(--primary-700);
  box-shadow: 0 16px 28px rgba(42, 114, 76, 0.26);
}

.btn-light {
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-light:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.28);
}

.btn-ghost {
  padding: 10px 16px;
  background: var(--primary-100);
  color: var(--primary-700);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 28px;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section {
  padding: 68px 0;
}

.content-section.tint {
  background: linear-gradient(90deg, var(--primary-50), var(--accent-50));
}

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

.section-heading h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--night-100);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 62%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
}

.movie-year {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}

.movie-card-body {
  display: block;
  padding: 18px;
}

.movie-card h2,
.movie-card h3 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h2,
.movie-card:hover h3 {
  color: var(--primary-600);
}

.movie-one-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-meta {
  display: block;
  margin-top: 12px;
  color: #4b5563;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card {
  display: block;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff, var(--accent-50));
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  color: var(--primary-600);
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 40px;
  background: linear-gradient(90deg, var(--primary-600), var(--primary-800));
  color: #ffffff;
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  opacity: 0.9;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 32px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: 0;
  padding: 8px 11px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(42, 114, 76, 0.16);
}

.filter-clear {
  min-height: 42px;
  padding: 8px 18px;
}

.filter-count {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.rank-number {
  color: var(--primary-600);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.rank-item img {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
  background: var(--night-100);
}

.rank-copy strong,
.rank-copy em,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  color: #111827;
  font-size: 18px;
  font-style: normal;
  font-weight: 850;
}

.rank-copy em {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-copy small {
  margin-top: 8px;
  color: #4b5563;
}

.rank-action {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--primary-100);
  color: var(--primary-700);
  font-weight: 850;
}

.detail-hero {
  padding: 40px 0 30px;
  background: linear-gradient(135deg, var(--night-900), var(--primary-800));
  color: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: var(--night-100);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-title {
  color: #ffffff;
}

.detail-intro {
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-meta li,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
}

.detail-badge {
  margin-bottom: 16px;
  padding: 8px 13px;
}

.watch-panel {
  padding: 48px 0 24px;
  background: #0b1118;
}

.video-player {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.26));
  color: #ffffff;
  text-align: center;
}

.player-cover .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: var(--primary-600);
  box-shadow: 0 16px 36px rgba(42, 114, 76, 0.38);
  font-size: 30px;
}

.player-cover strong {
  max-width: min(760px, calc(100% - 40px));
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.2;
}

.player-cover em {
  color: #e5e7eb;
  font-style: normal;
  font-weight: 750;
}

.player-message {
  position: absolute;
  inset: auto 24px 24px;
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  text-align: center;
}

.body-content {
  padding: 52px 0;
}

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

.article-card,
.side-card {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-card {
  padding: 30px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 900;
}

.article-card p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  background: var(--primary-100);
  color: var(--primary-700);
}

.side-card {
  padding: 22px;
}

.mini-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.mini-card img {
  width: 92px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  background: var(--night-100);
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card strong {
  overflow: hidden;
  color: #111827;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.search-empty {
  padding: 30px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 42px;
  background: var(--night-900);
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  padding: 46px 0;
}

.footer-about p {
  max-width: 560px;
  color: var(--night-300);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.footer-links h3 {
  margin: 0 0 14px;
}

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

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: var(--night-300);
}

.footer-links a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--night-700);
  color: var(--night-400);
  text-align: center;
  font-size: 13px;
}

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

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

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

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

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

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

  .hero-content {
    padding-bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .filter-clear {
    grid-column: 1 / -1;
  }

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

@media (max-width: 680px) {
  .header-inner,
  .footer-inner,
  .section-inner,
  .detail-layout,
  .page-shell,
  .mobile-nav {
    width: min(100% - 24px, 1280px);
  }

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

  .hero {
    min-height: 500px;
  }

  .hero-content {
    width: min(100% - 24px, 1280px);
  }

  .content-section {
    padding: 48px 0;
  }

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

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

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

  .rank-item {
    grid-template-columns: 48px 88px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item img {
    width: 88px;
  }

  .rank-action {
    display: none;
  }

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

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