:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --accent-50: #fffbeb;
  --accent-100: #fef3c7;
  --accent-400: #f59e0b;
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 20px 45px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--secondary-50);
  color: var(--secondary-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: var(--white);
  font-size: 13px;
  box-shadow: 0 12px 22px rgba(2, 132, 199, 0.28);
}

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

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

.desktop-nav a,
.mobile-links a {
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--secondary-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-links a:hover,
.mobile-links a.is-active {
  color: var(--primary-700);
  background: var(--primary-50);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  height: 42px;
  border: 1px solid var(--secondary-300);
  border-radius: 14px;
  background: var(--white);
  color: var(--secondary-900);
  outline: none;
  padding: 0 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.header-search button,
.mobile-search button,
.wide-search button {
  height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  background: var(--primary-600);
  color: var(--white);
  font-weight: 750;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--secondary-200);
  border-radius: 14px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--secondary-800);
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--secondary-200);
  background: var(--white);
  padding: 14px 16px 18px;
}

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

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

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}

.hero-carousel {
  position: relative;
  height: min(80vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--secondary-900);
}

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

.hero-slide {
  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;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.66) 44%, rgba(15, 23, 42, 0.08) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.12) 46%, rgba(15, 23, 42, 0.10) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 760px;
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags a,
.card-tags span {
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-button {
  background: var(--primary-600);
  color: var(--white);
  box-shadow: 0 16px 28px rgba(2, 132, 199, 0.28);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--primary-700);
  box-shadow: 0 20px 34px rgba(2, 132, 199, 0.35);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.text-button {
  color: #e0f2fe;
  padding-inline: 4px;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--white);
}

.home-search-band,
.feature-section,
.ranking-band {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 32px;
  align-items: center;
  padding: 34px 0;
}

.search-band-inner h2,
.section-heading h2,
.story-card h2,
.footer-column h2 {
  margin: 0;
  color: var(--secondary-900);
}

.search-band-inner h2,
.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.search-band-inner p,
.section-heading p {
  margin: 8px 0 0;
  color: var(--secondary-600);
}

.wide-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.wide-search input,
.wide-search button {
  height: 52px;
}

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

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

.section-heading > a,
.inline-link {
  color: var(--primary-700);
  background: var(--primary-50);
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
  font-size: 21px;
  font-weight: 850;
  color: var(--secondary-900);
}

.category-tile p {
  margin: 12px 0 0;
  color: var(--secondary-600);
}

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

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

.video-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--secondary-200);
}

.video-card-large .card-poster {
  aspect-ratio: 16 / 9;
}

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

.video-card:hover .card-poster img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.72));
}

.poster-badge,
.poster-year,
.rank-mark {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  left: 12px;
  top: 12px;
  background: var(--primary-600);
  color: var(--white);
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--secondary-900);
}

.rank-mark {
  left: 12px;
  bottom: 12px;
  background: var(--accent-400);
  color: var(--white);
}

.card-content {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 52px;
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--secondary-900);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover {
  color: var(--primary-700);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--secondary-500);
  font-size: 13px;
}

.card-meta span {
  border-radius: 999px;
  background: var(--secondary-100);
  padding: 4px 8px;
}

.card-tags span {
  background: var(--primary-50);
  color: var(--primary-700);
}

.video-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.video-rail .video-card {
  scroll-snap-align: start;
}

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

.full-ranking {
  grid-template-columns: 1fr;
}

.video-card-horizontal {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 160px;
}

.video-card-horizontal .card-poster {
  aspect-ratio: auto;
  height: 100%;
}

.video-card-horizontal .card-title {
  min-height: auto;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.25), transparent 34%),
    linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
  color: var(--white);
}

.page-hero .container {
  padding: 86px 0 74px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-mini-links a {
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 750;
}

.filter-panel {
  display: flex;
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-panel input {
  flex: 1;
}

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--secondary-600);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--secondary-200);
}

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

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.category-cover span {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 18px;
  color: var(--white);
  font-size: 24px;
  font-weight: 850;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0 0 10px;
}

.category-card-body p {
  margin: 0 0 14px;
  color: var(--secondary-600);
}

.category-card-body ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  color: var(--secondary-700);
}

.category-card-body li a:hover {
  color: var(--primary-700);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--secondary-900);
}

.detail-backdrop,
.detail-backdrop img,
.detail-backdrop span {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px);
  transform: scale(1.06);
  opacity: 0.35;
}

.detail-backdrop span {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.78)),
    linear-gradient(0deg, rgba(15, 23, 42, 1), transparent);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 46px 0 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  background: var(--secondary-800);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e2e8f0;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  font-weight: 750;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-tags a {
  background: rgba(224, 242, 254, 0.12);
  color: #e0f2fe;
}

.player-section {
  padding-top: 44px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #020617;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15), rgba(2, 6, 23, 0.25));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.36);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 26px;
  border-left: 25px solid var(--primary-600);
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 0;
}

.story-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: var(--secondary-700);
  font-size: 16px;
}

.site-footer {
  margin-top: 40px;
  background: var(--secondary-900);
  color: #cbd5e1;
}

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

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-main p {
  margin: 0;
  max-width: 520px;
  color: #94a3b8;
}

.footer-column h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 18px;
}

.footer-column ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-column a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .category-overview-grid,
  .video-grid.feature-grid,
  .video-grid.editor-grid,
  .ranking-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-band-inner,
  .detail-grid,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel {
    height: 620px;
    min-height: 620px;
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
    margin-left: 12px;
    padding-top: 60px;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .search-band-inner,
  .wide-search,
  .filter-panel,
  .search-page-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .video-grid,
  .video-grid.feature-grid,
  .video-grid.editor-grid,
  .category-grid,
  .category-overview-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .video-card-horizontal {
    grid-template-columns: 132px 1fr;
  }

  .video-card-horizontal .card-content {
    padding: 12px;
  }

  .video-card-horizontal .card-title {
    font-size: 16px;
  }

  .video-card-horizontal .card-content p,
  .video-card-horizontal .card-tags {
    display: none;
  }

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

  .page-hero .container,
  .detail-hero-inner {
    padding: 48px 0;
  }

  .detail-meta,
  .hero-actions {
    gap: 9px;
  }

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

  .play-icon::after {
    left: 28px;
    top: 21px;
    border-left-width: 22px;
    border-top-width: 14px;
    border-bottom-width: 14px;
  }
}
