.rutube-player-wrapper {
    padding: 10px;
}

.rutube-segment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e7f3ff;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 15px;
    border: 1px solid #b8daff;
}

.segment-info-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.segment-current {
    font-weight: 700;
    font-size: 16px;
    color: #007bff;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
}

.segment-time {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}

.segment-duration {
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
}

.segment-status {
    background: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.rutube-segment-controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.segment-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.btn-nav {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.btn-nav:hover:not(:disabled) {
    background: #545b62;
}

.btn-nav:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.segment-quick-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    margin: 0 10px;
}

.segment-quick-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: white;
    color: #495057;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.segment-quick-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-2px);
}

.segment-quick-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.segment-auto-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-primary {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #218838;
}

.rutube-player-container {
    text-align: center;
    margin: 0 auto;
    max-width: 720px;
}

.rutube-simple-info {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.rutube-simple-info p {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.rutube-segments-list {
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.segment-list-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.segment-list-item:last-child {
    border-bottom: none;
}

.segment-list-item.active {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
}

.segment-list-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #6c757d;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    font-size: 14px;
}

.segment-list-item.active .segment-list-number {
    background: #007bff;
}

.segment-list-time {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
}

.segment-list-duration {
    color: #666;
    font-size: 13px;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
}

.rutube-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.footer-info {
    color: #6c757d;
    font-size: 13px;
}

.footer-info a {
    color: #007bff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .rutube-segment-info {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .segment-info-content {
        justify-content: center;
        text-align: center;
    }
    
    .segment-status {
        text-align: center;
    }
    
    .segment-nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-nav {
        min-width: 100%;
    }
    
    .segment-quick-nav {
        order: -1;
        margin: 10px 0;
    }
    
    .segment-auto-controls {
        flex-direction: column;
    }
    
    .segment-auto-controls .btn {
        width: 100%;
        justify-content: center;
    }
    
    .segment-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .segment-list-time {
        order: 2;
    }
    
    .segment-list-duration {
        order: 3;
        align-self: flex-start;
    }
}


.segment-progress {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 1s linear;
}

.progress-time {
    text-align: center;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* Адаптивность для прогресс-бара */
@media (max-width: 768px) {
    .segment-progress {
        padding: 8px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-time {
        font-size: 13px;
    }
}


/* Макет с плеером и боковой панелью */
.player-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.player-main {
    flex: 1;
    min-width: 0;
}

.player-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

/* Панель статуса */
.player-status-panel {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.player-status-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 16px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 0;
}

.status-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 14px;
}

.status-value {
    font-weight: 600;
    color: #495057;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Прогресс-бар по времени */
.time-progress {
    width: 100%;
}

.time-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.time-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.3s ease;
}

/* Адаптивность */
@media (max-width: 992px) {
    .player-layout {
        flex-direction: column;
    }
    
    .player-sidebar {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 768px) {
    .player-status-panel {
        padding: 10px;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
