:root {
    --bg: #3a023e;
    --card-bg: #1c1c1e;
    --accent: #34c759; /* Apple Green */
    --radius: 18px;
}

#sl-app {
    background-color: var(--bg);
    padding: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.sl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Заголовок в стиле Apple */
.sl-title-main {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Сетка: 2 колонки на мобильном, 4 на десктопе */
.sl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .sl-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (min-width: 1024px) {
    .sl-grid { grid-template-columns: repeat(4, 1fr); gap: 25px; }
}

/* Карточка */
.sl-apple-card {
    text-decoration: none;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
}

/* Эффект нажатия (Scale down) */
.sl-apple-card:active {
    transform: scale(0.96);
}

.sl-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1.3 / 1;
    overflow: hidden;
    background: #111;
}

.sl-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.sl-apple-card:hover .sl-img {
    transform: scale(1.1);
}

/* Кнопка "Play" - минимализм App Store */
.sl-content {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sl-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sl-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    transition: 0.2s;
}

.sl-apple-card:hover .sl-btn {
    background: var(--accent);
    color: #fff;
}

/* Glass Badge HOT */
.sl-badge-glass {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(255, 59, 48, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* Анимация Блеска (Shimmer) */
.sl-shimmer {
    position: absolute;
    top: 0; left: -150%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.sl-apple-card:hover .sl-shimmer {
    animation: sl-shine 1.5s infinite;
}

@keyframes sl-shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Убираем синее выделение при тапе на мобилках */
* { -webkit-tap-highlight-color: transparent; }