* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #ffffff;
  position: relative;
  overflow-x: hidden;

  /* ТВОЙ ФОН */
  background: url("images/background.png") no-repeat center center fixed;
  background-size: cover;
}

/* Затемнение поверх фона */
.page-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 8, 12, 0.45), rgba(8, 8, 12, 0.72)),
    radial-gradient(circle at top, rgba(255, 0, 140, 0.14), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

/* Верхняя панель */
.topbar {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 26px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.top-actions {
  display: flex;
  gap: 10px;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.top-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.top-btn-accent {
  background: linear-gradient(135deg, #ff3d9a, #ff8a00);
  border: none;
  box-shadow: 0 10px 28px rgba(255, 61, 154, 0.28);
}

.top-btn-accent:hover {
  background: linear-gradient(135deg, #ff4ca4, #ff971f);
}

/* Основной блок */
.content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 26px 34px;
}

.hero {
  text-align: center;
  margin: 12px 0 28px;
}

.hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow:
    0 0 22px rgba(255, 75, 168, 0.4),
    0 4px 18px rgba(0, 0, 0, 0.42);
}

.hero p {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
}

/* Сетка видео */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(4px);
}

.video-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 95, 170, 0.18);
}

.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.03);
  transition: filter 0.22s ease, transform 0.22s ease;
}

.video-card:hover video {
  filter: blur(0);
  transform: scale(1.01);
}

/* затемнение поверх видео */
.video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.18)),
    linear-gradient(to bottom, rgba(255, 0, 128, 0.08), transparent 30%);
  pointer-events: none;
}

/* текст по центру */
.video-hover-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  transition: background 0.18s ease, transform 0.18s ease;
}

.video-card:hover .video-hover-text {
  background: rgba(255, 255, 255, 0.16);
  transform: translate(-50%, -50%) scale(1.03);
}

/* время справа снизу */
.video-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

/* кнопка снизу */
.bottom-action {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 220px;
  padding: 15px 24px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #ff3d9a, #ff8a00);
  box-shadow:
    0 14px 34px rgba(255, 61, 154, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.show-more-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.04);
  box-shadow:
    0 18px 38px rgba(255, 61, 154, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* адаптив */
@media (max-width: 1100px) {
  .hero h1 {
    font-size: 44px;
  }

  .videos-grid {
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 18px 18px 8px;
  }

  .content {
    padding: 16px 18px 28px;
  }

  .hero h1 {
    font-size: 36px;
  }

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

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

@media (max-width: 560px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    text-align: center;
    font-size: 20px;
  }

  .top-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .content {
    padding: 12px 14px 24px;
  }

  .hero {
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 30px;
  }

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

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .video-hover-text {
    font-size: 14px;
    padding: 9px 14px;
  }

  .show-more-btn {
    width: 100%;
    max-width: 320px;
  }
}