/* Релизы и новинки — вкладки и прокручиваемая полоса карточек */
.releases-new-block {
    margin-bottom: 12px;
    background: var(--color-bg-box);
    border-radius: 12px;
    padding: 6px;
    border: var(--color-box-border);
    box-shadow: var(--box-shadow-externa);
}

.releases-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.releases-new-block .catalog-main-header {
    margin-bottom: 0;
    padding-left: 8px;
    display: flex;
    align-items: center;
}

.releases-new-block .catalog-main-title {
    margin-bottom: 0;
    color: #000000;
}

.releases-new-block .releases-new-title {
    margin: 0;
    color: #000000;
}

.releases-tabs {
    display: flex;
    gap: 4px;
}

.releases-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #e6d9a8 0%, #ffd4b0 100%);
    box-shadow: 0px 2px 8px rgba(200, 160, 100, 0.3);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #5a4a38;
    opacity: 1;
    transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.releases-tab:hover {
    background: linear-gradient(180deg, #ddd09a 0%, #ffc899 100%);
    box-shadow: 0px 2px 8px rgba(200, 160, 100, 0.4);
}

.releases-tab.releases-tab-active {
    background: linear-gradient(180deg, #d9b44e 0%, #ff8b1a 100%);
    box-shadow: 0px 4px 14px rgba(184, 150, 46, 0.5), inset 0 1px 0 rgba(255,255,255,0.25);
    border: none;
    color: #000;
    opacity: 1;
    transform: scale(1.03);
}

.releases-tab:not(.releases-tab-active) {
    color: #555;
}

.releases-tab span.releases-tab-text-full,
.releases-tab span.releases-tab-text-short {
    color: inherit;
    opacity: 1;
    transition: color 0.25s ease;
}

.releases-tab:not(.releases-tab-active) span.releases-tab-text-full,
.releases-tab:not(.releases-tab-active) span.releases-tab-text-short {
    color: #5a4a38;
}

.releases-tab.releases-tab-active span.releases-tab-text-full,
.releases-tab.releases-tab-active span.releases-tab-text-short {
    color: #000;
}

.releases-tab-text-short {
    display: none;
}

@media (max-width: 768px) {
    .releases-tab-text-full {
        display: none;
    }
    .releases-tab-text-short {
        display: inline;
    }
}

.releases-panels {
    position: relative;
    min-height: 120px;
}

.releases-panel {
    display: none;
}

.releases-panel.releases-panel-active {
    display: block;
}

.releases-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
    background: var(--color-bg-box-secondary);
    border: var(--color-box-border);
    box-shadow: var(--box-shadow-interna);
    border-radius: 6px;
}

.releases-scroll::-webkit-scrollbar {
    height: 8px;
}

.releases-scroll::-webkit-scrollbar-track {
    background: var(--color-bg-box-secondary, #f3f4f6);
    border-radius: 4px;
}

.releases-scroll::-webkit-scrollbar-thumb {
    background: #c4b896;
    border-radius: 4px;
}

.releases-cards {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    width: max-content;
}

.releases-card {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: var(--color-bg-box-secondary);
}

.releases-card:hover {
    transform: scale(1.03);
    transition: transform 0.2s;
}

.releases-card-img-wrap {
    position: absolute;
    inset: 0;
}

.releases-card img {
    width: 100%;
    height: 100%;
    max-width: 160px;
    max-height: 100px;
    object-fit: cover;
    object-position: center;
}

.releases-card-date {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    padding: 0 10px;
    color: cornsilk;
    font-size: 12px;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.releases-card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    color: cornsilk;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.releases-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0), rgba(14,14,14,0.95) 70%);
    border-radius: 8px;
    pointer-events: none;
}

.releases-empty {
    padding: 24px 16px;
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}
