
/* --- Основные стили --- */
.software-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
    padding-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Шапка программы --- */
.program-header {
    min-width: 0;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.program-info {
    flex: 1;
    min-width: 0;
}

.program-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.program-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.program-version {
    background: rgba(76, 194, 255, 0.15);
    color: #4cc2ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.program-rating-large {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffd166;
}

.rating-stars {
    color: #ffd166;
    font-size: 1.2rem;
}
.rating-count {
    color: #94a3b8;
    font-size: 0.9rem;
}

.program-description {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: anywhere;
}

/* --- Основной контент --- */
.program-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

@media (max-width: 980px) {
    .download-section { top: calc(var(--site-header-bottom, 98px) + 12px); }
}

@media (max-width: 900px) {
    .program-layout { grid-template-columns: 1fr; }
    .program-header { flex-direction: column; }
}

/* --- Секции --- */
.content-section {
    min-width: 0;
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Скриншоты --- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));            gap: 15px;
}

.screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.02);
    border-color: rgba(76, 194, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Выбор ОС --- */
.os-selector {
    margin-bottom: 20px;
}

.os-label {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.os-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.os-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;            align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.os-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.os-btn.active {
    background: rgba(76, 194, 255, 0.15);
    border-color: #4cc2ff;
    color: #4cc2ff;
}

/* --- Кнопка скачать --- */
.download-section {
    position: sticky;
    top: calc(var(--site-header-bottom, 58px) + 12px);
}

.download-card {
    background: linear-gradient(135deg, rgba(76, 194, 255, 0.1), rgba(76, 194, 255, 0.05));
    border: 1px solid rgba(76, 194, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
}

.download-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4cc2ff, #3a9bd5);
    border: none;
    border-radius: 12px;
    color: var(--on-accent);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.download-btn:hover {
    transform: translateY(-3px);            box-shadow: 0 10px 30px rgba(76, 194, 255, 0.4);
}

.download-info {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.download-info div {
    margin-bottom: 5px;
}

/* --- Список особенностей --- */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #ccc;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    color: #4cc2ff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- Отзывы --- */
.review-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {            display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4cc2ff, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

.review-author {
    color: #fff;
    font-weight: 600;
}

.review-rating {
    color: #ffd166;
    font-size: 0.9rem;
}

.review-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

/* --- Теги --- */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}
.game-img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    
    /* Правильное отображение картинок */
    object-fit: cover; 
    object-position: center; 
    
    /* Центрирование иконки/букв внутри заглушки */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    
    /* Защита от сжатия во Flexbox и тени */
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
