:root {
  --primary-900: #0b3f6e;
  --primary-800: #075285;
  --primary-700: #0064b6;
  --primary-600: #006fc6;
  --primary-500: #0c8ce8;
  --accent-600: #0d9485;
  --accent-500: #14b8a2;
  --neutral-950: #020617;
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;
  --white: #ffffff;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--primary-900), var(--primary-800));
  color: var(--white);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

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

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

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 10px 22px rgba(20, 184, 162, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
}

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

.nav-links a:hover,
.mobile-panel a:hover {
  color: #99f6e4;
  opacity: 1;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 30vw);
}

.header-search input,
.search-panel input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--neutral-900);
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

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

.header-search button,
.primary-button {
  color: var(--white);
  background: var(--accent-500);
  box-shadow: 0 10px 22px rgba(20, 184, 162, 0.22);
}

.secondary-button {
  color: var(--primary-700);
  background: var(--white);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 24px;
}

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

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.hero-section {
  padding: 32px 0 20px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 28px;
  background: var(--neutral-900);
  box-shadow: var(--shadow-card);
}

.hero-track {
  display: flex;
  height: 100%;
  min-height: 540px;
  transition: transform 0.55s ease;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  min-height: 540px;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(15, 23, 42, 0.45) 48%, rgba(15, 23, 42, 0.08));
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 76px);
  bottom: clamp(28px, 7vw, 76px);
  width: min(680px, calc(100% - 48px));
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(20, 184, 162, 0.14);
  color: #99f6e4;
  font-size: 14px;
  font-weight: 700;
}

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

.hero-content p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-control {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(2, 6, 23, 0.48);
  transform: translateY(-50%);
  cursor: pointer;
}

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

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

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 32px;
  background: var(--white);
}

main {
  padding-bottom: 46px;
}

.page-space {
  padding: 34px 0 48px;
}

.section {
  margin: 44px 0;
}

.section-card {
  padding: clamp(20px, 4vw, 34px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
  margin: 10px 0 0;
  color: var(--neutral-600);
  line-height: 1.8;
}

.view-more {
  color: var(--primary-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.video-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.video-card:hover {
  border-color: rgba(0, 111, 198, 0.25);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

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

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.72));
  opacity: 0.86;
}

.badge,
.duration,
.rating-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.badge {
  top: 12px;
  left: 12px;
  background: var(--accent-500);
}

.duration {
  right: 12px;
  bottom: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.rating-badge {
  right: 12px;
  top: 12px;
  background: rgba(245, 158, 11, 0.92);
}

.rank-number {
  left: 12px;
  bottom: 12px;
  background: var(--primary-600);
}

.play-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  color: var(--neutral-900);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--neutral-600);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  color: var(--neutral-600);
  font-size: 13px;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
  box-shadow: 0 16px 38px rgba(0, 111, 198, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  box-shadow: 0 22px 48px rgba(0, 111, 198, 0.25);
  transform: translateY(-3px);
}

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

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--neutral-600);
  font-size: 14px;
}

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

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  border: 0;
  place-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
  cursor: pointer;
}

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

.player-cover span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 184, 162, 0.92);
  font-size: 32px;
  box-shadow: 0 16px 36px rgba(20, 184, 162, 0.32);
}

.detail-panel {
  border-radius: 24px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-title h1 {
  margin-bottom: 12px;
}

.detail-title p {
  margin: 0 0 18px;
  color: var(--neutral-600);
  font-size: 16px;
  line-height: 1.8;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--neutral-700);
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--neutral-100);
  padding-bottom: 10px;
}

.info-list strong {
  color: var(--neutral-900);
}

.article-block {
  margin-top: 28px;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 900;
}

.article-block p {
  margin: 0 0 16px;
  color: var(--neutral-700);
  font-size: 16px;
  line-height: 1.9;
}

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

.tag-list span,
.tag-list a {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--primary-700);
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 22px 0 28px;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
}

.search-panel input {
  border-color: transparent;
}

.search-panel button {
  color: var(--white);
  background: var(--accent-500);
}

.no-results {
  display: none;
  border-radius: 20px;
  padding: 24px;
  background: var(--white);
  color: var(--neutral-600);
  text-align: center;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 46px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid li {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, 0.14);
  padding: 18px 0;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 460px;
  }

  .hero-slide img {
    height: 460px;
  }

  .video-grid,
  .video-grid.compact,
  .video-grid.two,
  .category-grid,
  .detail-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .logo {
    font-size: 18px;
  }

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 430px;
    border-radius: 20px;
  }

  .hero-slide img {
    height: 430px;
  }

  .hero-content {
    left: 20px;
    bottom: 34px;
    width: calc(100% - 40px);
  }

  .hero-actions,
  .search-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-control {
    display: none;
  }

  .card-body p {
    min-height: 0;
  }
}
