.block-goods {
    background-color: var(--color-bg-gray);
    width: 100%;
    min-width: 0;
}
.block-goods .block-goods__wrapper {
    box-sizing: border-box;
    margin: 2rem 5%;
    /* max-width: var(--max-size-w);
    margin: 0 auto; */
}
.block-goods__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.block-goods__swiper {
    /* max-width: 800px; */
    height: 100%;
    margin: auto;
    overflow: hidden;
}
.block-goods__swiper .swiper-slide .swiper-slide__container {
    width: 800px;
    max-width: 100%;
    margin: auto;
}
.block-goods__title {
    margin: 0;
}
.block-goods__all-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: .9rem;
}
.block-goods__all-link:hover {
    color: var(--color-accent);
}
.block-goods__all-link::after {
    content: "\27A1";
    color: var(--color-accent-2);
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}
.block-goods__slider {
    position: relative;
    overflow: hidden;
    width: 95%;
    height: 100%;
}
.blick-goods__slider .swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-slide .block-goods__photo {
    position: relative;
    margin: 0 auto;
    left: initial !important;
    right: initial !important;
    top: initial !important;
    bottom: initial !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #fff;
}
.swiper-slide .block-goods__photo img {
    width: inherit;
    height: inherit;
    object-fit: contain;
}

.swiper-slide .block-goods__content {
    padding: 30px 30px 70px 30px;
    box-sizing: border-box;

}
.swiper-slide .block-goods__content a {
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: Bold, Arial, "Helvetica Neue", Helvetica, sans-serif;
    position: absolute;
    bottom: 40px;
    left: 30px;
    color: var(--color-accent);
}
.swiper-slide .block-goods__content a .arrow {
    font-size: 32px;
    font-weight: 600;
}


@media (min-width: 600px) {
    .block-goods__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

}
@media (min-width: 700px) {

}
@media (min-width: 801px) {
    .swiper-slide .block-goods__photo {
        position: relative;
        right: -300px;
        top: 40px;
        width: 380px !important;
        height: 300px;
        margin: auto;
        left: initial !important;
        bottom: initial !important;
    }
    .swiper-slide .block-goods__content {

    }
    .block-goods__swiper {
        /* max-width: 800px; */
        height: 700px;
    }
    .block-goods .swiper-button-next,
    .block-goods .swiper-button-prev {
        top: var(--swiper-navigation-top-offset, 35%);
    }
}

/* плеер */
/* ========== ИНДИКАТОРЫ ========== */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* ========== АНИМАЦИИ ========== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
/* ========== АДАПТИВНОСТЬ ========== */
.main-content {
    flex-direction: column;
}
.goods-list,
.upload-section,
.uploads-history {
    max-width: 100%;
    width: 100%;
}
.flowplayer {
    height: 300px;
}
.form-actions {
    flex-direction: column;
}
.btn {
    width: 100%;
}
.uploads-history {
    max-height: none;
}
.hls-info-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hls-info-icon {
    margin-right: 0;
    margin-bottom: 10px;
}
.hls-profiles li {
    flex-direction: column;
    align-items: flex-start;
}
.profile-badge {
    margin-bottom: 5px;
    margin-right: 0;
}
.hls-quality-selector {
    bottom: 60px;
    right: 10px;
    left: 10px;
    max-width: none;
    justify-content: center;
}
.quality-buttons {
    justify-content: center;
}
.quality-btn {
    padding: 8px 16px;
    font-size: 14px;
}
.quality-notification {
    left: 20px;
    right: 20px;
    text-align: center;
}

.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    opacity: 1;
    transition: opacity 0.3s;
    z-index: 100;
}
.goods-container {
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.goods-container:hover .custom-controls {
    opacity: 1;
}

.control-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.control-btn:hover {
    background: rgba(255,255,255,0.1);
}
.control-btn svg {
    width: 18px;
    height: 18px;
}
.progress-container {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #3498db;
    border-radius: 3px;
    width: 0%;
}
.progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    width: 0%;
}
.time {
    font-size: 11px;
    color: white;
    font-family: monospace;
}
/* ============= ГРОМКОСТЬ ============= */
.volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}
.volume-slider {
    width: 40px;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.volume-level {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #3498db;
    border-radius: 3px;
    width: 100%;
}
.volume-percent {
    display: none;
}
/* ============= МЕНЮ КАЧЕСТВА ============= */
.quality-container {
    position: relative;
}
.quality-menu {
    position: absolute;
    bottom: 100%;
    right: -10px;
    background: rgba(0,0,0,0.9);
    border-radius: 4px;
    padding: 8px 0;
    margin-bottom: 10px;
    min-width: 120px;
    display: none;
    border: 1px solid rgba(255,255,255,0.1);
}
.quality-item {
    padding: 6px 12px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}
.quality-item:hover {
    background: rgba(255,255,255,0.1);
}
.quality-item.active {
    background: #3498db;
    color: white;
}
.quality-label {
    display: none;
}
.quality-btn svg {
    margin-left: 0;
}
/* ============= СТАТУС КОНТЕЙНЕР ============= */
.status-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.status-container h3 {
    font-size: 1.2rem;
}
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #3498db;
    border-radius: 5px;
    transition: width 0.3s ease;
}
.block-goods .container {
    padding: 10px;
}
.block-goods .header {
    padding: 15px;
}
.block-goods .header h1 {
    font-size: 1.5rem;
}

@media (min-width: 481px) {
    .goods-container {
        height: 300px;
    }
    .custom-controls {
        padding: 10px;
        gap: 8px;
    }
    .control-btn svg {
        width: 20px;
        height: 20px;
    }
    .time {
        font-size: 12px;
    }
    .volume-container {
        gap: 8px;
    }
    .volume-slider {
        width: 50px;
    }
    .quality-item {
        padding: 6px 12px;
        font-size: 12px;
    }
}
@media (min-width: 769px) {
    .main-content {
        flex-direction: initial;
    }
    .goods-list,
    .upload-section,
    .uploads-history {
        max-width: initial;
        width: initial;
    }
    .flowplayer {
        height: initial;
    }
    .form-actions {
        flex-direction: initial;
    }
    .btn {
        width: initial;
    }
    .uploads-history {
        max-height: initial;
    }
    .hls-info-card {
        flex-direction: initial;
        align-items: initial;
        text-align: initial;
    }
    .hls-info-icon {
        margin-right: initial;
        margin-bottom: initial;
    }
    .hls-profiles li {
        flex-direction: initial;
        align-items: initial;
    }
    .profile-badge {
        margin-bottom: initial;
        margin-right: initial;
    }
    .hls-quality-selector {
        bottom: initial;
        right: initial;
        left: initial;
        max-width: initial;
        justify-content: initial;
    }
    .quality-buttons {
        justify-content: initial;
    }
    .quality-btn {
        padding: initial;
        font-size: initial;
    }
    .quality-notification {
        left: initial;
        right: initial;
        text-align: initial;
    }

    .goods-container {
        height: 400px;
    }
    .custom-controls {
        padding: 12px;
    }
}
@media (min-width: 1025px) {
    .goods-container {
        height: 500px;
    }
    .custom-controls {
        padding: 15px;
        gap: 15px;
        opacity: 0;
        background: linear-gradient(transparent, rgba(0,0,0,0.8));
    }
    .control-btn {
        padding: 8px;
    }
    .control-btn svg {
        width: initial;
        height: initial;
    }
    .time {
        font-size: 14px;
    }
    .volume-slider {
        width: 80px;
    }
    .quality-menu {
        min-width: 140px;
        right: 0;
    }
    .quality-item {
        padding: 8px 16px;
        font-size: 13px;
    }
    .status-container {
        padding: 20px;
    }
    .progress-bar {
        height: 10px;
    }
}
@media (max-width: 768px) and (orientation: landscape) {
    .goods-container {
        height: 350px;
    }

    .custom-controls {
        padding: 8px;
    }
}
@media (min-width: 768px) {
    .block-goods {}
}
@media (min-width: 1400px) {
    .block-goods .block-goods__wrapper {
        max-width: var(--max-size-w);
        margin: 1rem auto;
    }
}