/* Base styles */
:root {
    --mobile-padding: 1rem;
    --mobile-break: 768px;
}

/* Responsive container adjustments */
@media (max-width: 768px) {
    .container {
        padding: var(--mobile-padding);
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

/* Loader styles */
.loader {
    width: 48px;
    height: 48px;
    margin: auto;
}

/* Video info section */
#videoInfo {
    transition: all 0.3s ease;
}

#thumbnail {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}

/* Form elements */
.form-control {
    font-size: 16px; /* Prevents iOS zoom on focus */
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.btn {
    min-height: 44px; /* Minimum touch target size */
}

.btn:focus {
    box-shadow: none;
}

/* Mobile-optimized input group */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .input-group > * {
        width: 100%;
        margin-left: 0 !important;
        border-radius: 4px !important;
    }
    
    #formatSelect {
        font-size: 16px;
        padding: 0.5rem;
    }
    
    .btn-success {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Breadcrumb styles */
.breadcrumb {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.07));
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

.breadcrumb:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.breadcrumb-item {
    font-weight: 500;
    letter-spacing: 0.2px;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary-darker, #0056b3);
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "⟩";
    color: var(--bs-primary);
    opacity: 0.6;
    margin: 0 0.5rem;
    font-size: 1.1em;
    line-height: 1;
    position: relative;
    top: 1px;
}

.breadcrumb-item.active {
    color: var(--bs-body-color);
    opacity: 0.8;
}

/* Progress bar and info styles */
.progress {
    height: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .progress {
        height: 0.75rem;
    }
    
    .small.text-muted {
        font-size: 0.85rem;
    }
}