.block-video {
    background-color: var(--color-bg-gray);
    width: 100%;
    min-width: 0;
}

.block-video .block-video__wrapper {
    box-sizing: border-box;
    margin: 2rem 5%;
    /* max-width: var(--max-size-w);
    margin: 0 auto; */
}

.block-video__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.block-video__swiper {
    /* max-width: 800px; */
    height: 100%;
    margin: auto;
    overflow: hidden;
}

.block-video__swiper .swiper-slide .swiper-slide__container {
    margin: auto;
    position: relative;
}

.block-video__title {
    margin: 0;
}

.block-video__all-link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: .9rem;
}

.block-video__all-link:hover {
    color: var(--color-accent);
}

.block-video__all-link::after {
    content: "\27A1";
    color: var(--color-accent-2);
    margin-left: 10px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.block-video__slider {
    position: relative;
    overflow: hidden;
    width: 95%;
    height: 100%;
}

.block-video__slider .swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-slide .block-video__photo {
    position: relative;
    margin: 0 auto;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #fff;
}

.swiper-slide .block-video__photo img {
    width: inherit;
    height: inherit;
}

.swiper-slide .block-video__content {
    position: relative;
    padding: 10px;
    box-sizing: border-box;
    background-color: var(--color-accent);
    color: #fff;
    text-align: left;
    margin: 0 auto;
}

.swiper-slide .block-video__content h4 {
    margin: 0;
}

.swiper-slide .block-video__content h3 {
    font-size: 13pt;
    line-height: 1.25;
    text-transform: uppercase;
    font-family: Bold, Arial, "Helvetica Neue", Helvetica, sans-serif;
    margin-bottom: 25px;

}



.swiper-slide .block-video__content a {
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: Bold, Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: white;
}

.swiper-slide .block-video__content a .arrow {
    font-size: 32px;
    font-weight: 600;
}

@media (min-width: 500px) {
    .swiper-slide .block-video__photo {
        height: 100%;
    }
}

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

    .swiper-slide .block-video__photo {
        height: 100%;
    }
}

@media (min-width: 700px) {
    .swiper-slide .block-video__photo {
        height: 100%;
    }

    .swiper-slide .block-video__content h3 {
        font-size: 16pt;
        line-height: 1.25;
        text-transform: uppercase;
        font-family: Bold, Arial, "Helvetica Neue", Helvetica, sans-serif;
        margin-bottom: 25px;
    }
}

@media (min-width: 801px) {
    .swiper-slide__container {
        width: 800px;
        height: 300px;
        margin: 0 auto;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .swiper-slide .block-video__photo {
        width: 500px !important;
        margin-left: auto;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 1;
    }

    .swiper-slide .block-video__photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .swiper-slide .block-video__content {
        width: 360px !important;
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 2;
    }

    .block-video__swiper {
        /* max-width: 800px; */
        /* height: 500px; */
    }

    .block-video .swiper-button-next,
    .block-video .swiper-button-prev {
        top: var(--swiper-navigation-top-offset, 22%);
    }
}

/* плеер */
/* ========== ИНДИКАТОРЫ ========== */
.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;
}

.video-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;
}

.video-container {
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.video-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-video .container {
    padding: 10px;
}

.block-video .header {
    padding: 15px;
}

.block-video .header h1 {
    font-size: 1.5rem;
}

@media (min-width: 481px) {
    .video-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;
    }

    .video-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;
    }

    .video-container {
        height: 400px;
    }

    .custom-controls {
        padding: 12px;
    }
}

@media (min-width: 1025px) {
    .video-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) {
    .video-container {
        height: 350px;
    }

    .custom-controls {
        padding: 8px;
    }
}

@media (min-width: 768px) {
    .block-video {}
}

@media (min-width: 1400px) {
    .block-video .block-video__wrapper {
        max-width: var(--max-size-w);
        margin: 1rem auto;
    }
}