/* ============================================
   TOP MONTH — css/top-month.css
   ============================================ */
.top-month-section {
  padding: 80px 0 96px;
  background: #0a0a10;
  position: relative;
  overflow: hidden;
}

.top-month-section::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(232,39,75,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.top-month-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.top-month-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 16px;
}

.top-month-header__left {
  display: flex; flex-direction: column; gap: 8px;
}

.top-month-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #e8274b;
}

.top-month-label::before {
  content: '';
  display: inline-block;
  width: 16px; height: 2px;
  background: #e8274b; border-radius: 2px;
}

.top-month-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700; color: #f0f0f2;
  letter-spacing: -0.03em; line-height: 1.1;
}

.top-month-subtitle {
  font-size: 14px; color: rgba(240,240,242,0.45); margin-top: 6px;
}

.top-month-view-all {
  font-size: 13px; color: rgba(240,240,242,0.5);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 18px; border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap; background: transparent;
}

.top-month-view-all:hover {
  color: #f0f0f2;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}

/* ============================================
   GRID
   ============================================ */
.top-month-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* ============================================
   CARD
   ============================================ */
.profile-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: #13131c;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s cubic-bezier(.22,.68,0,1.2), box-shadow 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,39,75,0.25);
  border-color: rgba(232,39,75,0.25);
}

/* ============================================
   PHOTO WRAP — контейнер для постера и видео
   ============================================ */
.profile-card__photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: #13131c;
}

/* ============================================
   ПОСТЕР — поверх видео по умолчанию,
   прячется (opacity:0) через JS после старта
   ============================================ */
.profile-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  z-index: 2;
  opacity: 1;
  transition: opacity 5.5s ease;
  pointer-events: none;
}

/* ============================================
   ВИДЕО — играет постоянно под постером,
   видно сразу после того как JS уберёт постер
   ============================================ */
.profile-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  /* Blur для live-карточек — снимается при hover */
  transition: filter 0.4s ease, transform 0.5s ease;
}

/* Live-карточки: видео слегка размыто — интрига */
.profile-card--live .profile-video {
  filter: blur(8px);
  transform: scale(1.05);
}

/* При hover на live-карточке — blur уменьшается */
.profile-card--live:hover .profile-video {
  filter: blur(3px);
  transform: scale(1.07);
}

/* Обычные карточки с видео — без blur */
.profile-card:not(.profile-card--live) .profile-video {
  filter: none;
}

/* Лёгкий зум при hover для всех карточек */
.profile-card:hover .profile-video,
.profile-card:hover .profile-poster {
  transform: scale(1.06);
  transition: transform 0.5s ease, opacity 0.5s ease, filter 0.4s ease;
}

/* Зум у live немного больше — уже задан выше */
.profile-card--live:hover .profile-video {
  transform: scale(1.07);
}

/* ============================================
   ОВЕРЛЕЙ и ТЕКСТ
   ============================================ */
.profile-card__photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,10,16,0.92) 100%);
  z-index: 3;
  pointer-events: none;
}

.profile-card__rank {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  background: rgba(10,10,16,0.7);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: #f0f0f2;
  backdrop-filter: blur(8px);
}

.profile-card__rank--1 { background: linear-gradient(135deg,#b8860b,#ffd700); border-color: rgba(255,215,0,0.4); color:#fff; }
.profile-card__rank--2 { background: linear-gradient(135deg,#7a7a7a,#c8c8c8); border-color: rgba(200,200,200,0.3); color:#fff; }
.profile-card__rank--3 { background: linear-gradient(135deg,#7c4524,#cd7f32); border-color: rgba(205,127,50,0.3); color:#fff; }

.profile-card__online-dot {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 10px; height: 10px; border-radius: 50%;
  background: #32d583; border: 2px solid #0a0a10;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(50, 213, 131, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(50, 213, 131, 0); }
}

.profile-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 4; padding: 14px 14px 16px;
}

.profile-card__name {
  font-size: 15px; font-weight: 700; color: #f0f0f2;
  letter-spacing: -0.01em; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.profile-card__stats {
  display: flex; align-items: center; justify-content: space-between;
}

.profile-card__viewers {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(240,240,242,0.6);
}

.profile-card__rating {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: #ffd166; font-weight: 600;
}

/* ============================================
   HOVER CTA
   ============================================ */
.profile-card__hover-cta {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,39,75,0.0);
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
  border-radius: 16px;
}

.profile-card:hover .profile-card__hover-cta {
  opacity: 1; background: rgba(232,39,75,0.08);
}

.profile-card__hover-cta span {
  padding: 8px 20px; border-radius: 8px;
  background: rgba(232,39,75,0.85); color: #fff;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(10px);
  transform: translateY(6px);
  transition: transform 0.25s cubic-bezier(.22,.68,0,1.2);
}

.profile-card:hover .profile-card__hover-cta span {
  transform: translateY(0);
}

/* ============================================
   LIVE BADGE
   ============================================ */
.profile-card__live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e8274b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(232, 39, 75, 0.6);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(232, 39, 75, 0.6); }
  50%       { box-shadow: 0 0 20px rgba(232, 39, 75, 1); }
}

/* ============================================
   SKELETON
   ============================================ */
.profile-card--skeleton .profile-card__photo-wrap {
  background: linear-gradient(90deg,#1a1a24 25%,#22222e 50%,#1a1a24 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .top-month-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}

@media (max-width: 900px) {
  .top-month-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 600px) {
  .top-month-section { padding: 56px 0 72px; }
  .top-month-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .top-month-header { margin-bottom: 28px; }

  /* На мобильных blur у live-карточек убираем — тяжело рендерить */
  .profile-card--live .profile-video {
    filter: blur(4px);
  }
}
