/* Fantasy Block Styles */
.fantasy-block {
  margin-bottom: 2rem;
}

.fantasy-header-wrapper {
  margin-bottom: 1rem;
}

.fantasy-header {
  background: linear-gradient(135deg, rgba(112, 44, 249, 1), rgba(112, 44, 249, 0.8));
  padding: 0.5rem 1rem;
  text-align: center;
  border-radius: 8px;
}

.fantasy-title {
  margin: 0;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Premier League Layout для Fantasy */
.fantasy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 1200px) {
  .fantasy-layout {
    grid-template-columns: 1.4fr 1.4fr 1.2fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

/* Featured Player Block */
.fantasy-featured {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  min-height: 240px;
  position: relative;
}

.fantasy-featured-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.fantasy-featured-link:hover {
  text-decoration: none;
  color: inherit;
}

.fantasy-featured-link:hover .fantasy-featured-image img {
  transform: scale(1.05);
}

.fantasy-featured-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  border-radius: 12px;
}

.fantasy-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fantasy-featured-image .fantasy-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fantasy-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 60%, transparent 100%);
}

.fantasy-featured-name-price {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.featured-post-title {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.2;
  color: #ffffff;
  flex: 1;
  min-width: 0;
}

.fantasy-featured-price-main {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4ade80;
  white-space: nowrap;
}

.fantasy-category-compact {
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.fantasy-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(112, 44, 249, 0.8), rgba(0, 123, 255, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
}

.fantasy-avatar-placeholder span {
  color: white;
  font-size: 6rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
  letter-spacing: 2px;
}

.fantasy-avatar-placeholder-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(112, 44, 249, 0.8), rgba(0, 123, 255, 0.8));
  border: 2px solid rgba(112, 44, 249, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fantasy-avatar-placeholder-small span {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fantasy-featured-stats {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.fantasy-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fantasy-stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fantasy-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.fantasy-stat-value.positive {
  color: #4ade80;
}

/* Expensive Players Block */
.fantasy-expensive-block {
  background: white;
  border-radius: 12px;
  padding: 0.95rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.fantasy-expensive-header {
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(112, 44, 249, 0.1);
}

.fantasy-expensive-header h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fantasy-expensive-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fantasy-expensive-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid rgba(112, 44, 249, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.4rem;
}

.fantasy-expensive-item:hover {
  background: linear-gradient(135deg, rgba(112, 44, 249, 0.08), rgba(112, 44, 249, 0.04));
  border-color: rgba(112, 44, 249, 0.3);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(112, 44, 249, 0.15);
  text-decoration: none;
  color: inherit;
}

.fantasy-expensive-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(112, 44, 249, 0.25);
  box-shadow: 0 2px 4px rgba(112, 44, 249, 0.12);
}

.fantasy-expensive-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fantasy-expensive-info {
  flex: 1;
  min-width: 0;
}

.fantasy-expensive-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fantasy-expensive-team {
  font-size: 0.75rem;
  color: #555;
  font-weight: 500;
}

.fantasy-expensive-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.fantasy-points-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(112, 44, 249, 1);
  line-height: 1.2;
}

.fantasy-points-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(112, 44, 249, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 0.05rem;
}

/* Fantasy News Block */
.fantasy-news-block {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.fantasy-news-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(112, 44, 249, 0.1);
}

.fantasy-news-header h6 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fantasy-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fantasy-news-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.fantasy-news-item:hover {
  background: rgba(112, 44, 249, 0.05);
  text-decoration: none;
  color: inherit;
}

.fantasy-news-image {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.fantasy-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fantasy-news-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fantasy-news-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fantasy-news-date {
  font-size: 0.7rem;
  color: #999;
}

/* Responsive */
@media (max-width: 1199px) {
  .fantasy-layout {
    grid-template-columns: 1fr;
  }

  .fantasy-featured {
    min-height: 260px;
  }

  .fantasy-featured-image {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .fantasy-header {
    padding: 0.75rem 1rem;
  }

  .fantasy-title {
    font-size: 1.1rem;
  }

  .fantasy-featured {
    min-height: auto;
  }

  .fantasy-featured-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Квадратное соотношение 1:1 */
    min-height: 0;
    height: 0;
  }

  .fantasy-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fantasy-featured-image .fantasy-avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .fantasy-featured-overlay {
    padding: 0.85rem;
  }

  .fantasy-featured-name-price {
    margin-bottom: 0.35rem;
    gap: 0.5rem;
  }

  .featured-post-title {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .fantasy-featured-price-main {
    font-size: 0.9rem;
  }

  .fantasy-category-compact {
    font-size: 0.65rem;
    margin-bottom: 0.6rem;
  }

  .fantasy-featured-stats {
    gap: 0.85rem;
    margin-top: 0.5rem;
  }

  .fantasy-stat-label {
    font-size: 0.65rem;
  }

  .fantasy-stat-value {
    font-size: 0.85rem;
  }

  .fantasy-avatar-placeholder span {
    font-size: 4rem;
  }

  .fantasy-featured-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .fantasy-stat-value {
    font-size: 1rem;
  }

  .fantasy-expensive-block,
  .fantasy-news-block {
    padding: 1rem;
  }
}

