/* ========== БЛОК АНАЛИТИКИ ========== */
.analytics-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    margin: 40px 0;
    color: white;
}

.analytics-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.analytics-main-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-main-title i {
    font-size: 2rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.analytics-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.analytics-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.analytics-link:hover {
    opacity: 1;
}

.top-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: background 0.2s;
}

.top-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.top-number {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.top-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.top-info {
    flex: 1;
}

.top-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.top-stats {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    opacity: 0.8;
}

.top-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.genres-list {
    margin-bottom: 20px;
}

.genre-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.genre-name {
    font-weight: 500;
}

.genre-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.total-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.total-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.total-label {
    opacity: 0.8;
}

.total-value {
    font-weight: 700;
}

.empty-small {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== БЛОК РЕЦЕНЗИЙ ========== */
.reviews-section {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 20px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.reviews-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviews-title i {
    color: #e94560;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.review-media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.review-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.review-card:hover .review-poster {
    transform: scale(1.05);
}

.review-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0,0,0,0.7);
    color: white;
    z-index: 2;
}

.review-type.movie-badge {
    background: #e94560;
}

.review-type.series-badge {
    background: #8b5cf6;
}

.review-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-item-title {
    margin: 0 0 5px;
    font-size: 0.9rem;
}

.review-item-title a {
    color: #7f8c8d;
    text-decoration: none;
}

.review-item-title a:hover {
    color: #e94560;
}

.review-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #2c3e50;
    line-height: 1.3;
}

.review-excerpt {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 0 15px;
    flex: 1;
}

.review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #95a5a6;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.review-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e94560;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    transition: gap 0.2s;
}

.review-readmore:hover {
    gap: 12px;
    color: #c0392b;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
    .analytics-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .analytics-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}