* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    background: grey;
    line-height: 1.6;
}

.container {
    margin: 20px;
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
    border: 2px dashed #cbd5e1;
}

.upload-label {
    display: block;
    font-weight: 600;
    padding: 20px;
}

input[type=file] {
    font-size: 16px;
}

/* Two Column Layout */
.main-content {
    display: flex;
    justify-self:center;
    gap: 10vw;
    margin-bottom: 30px;
}

.column {
    flex: 1;
}


/* Video Details */
.video-details {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: white;
}

.video-details p {
    margin-bottom: 8px;
}

.video-details strong {
    display: inline-block;
    width: 100px;
}

/* Video Preview */
.video-preview-container {
    width: 100%;
    max-width:400px;
    background: #000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

#videoPreview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Settings Groups */
.setting-group {
    margin-bottom: 25px;
}

h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Custom Radio Buttons */
.radio-group {
    display: flex;
    flex-wrap: wrap;
}

.radio-btn {
    cursor: pointer;
    user-select: none;
}

.radio-btn input[type="radio"] {
    display: none; /* Hide standard radio */
}

.radio-btn span {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    color: black;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.radio-btn input[type="radio"]:checked + span {
    background: black;
    color:white;
}

/* Action Section */
.action-section {
    text-align: center;
}

button#compressBtn {
    width: 300px;
    height: 50px;
    border: none;
    background: black;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 25px;
}

button#compressBtn:disabled {
    display:none;
}

#status {
    font-weight: 500;
    margin-bottom: 10px;
}

progress {
    width: 100%;
    max-width: 400px;
    height: 12px;
    border-radius: 6px;
    margin: 0 auto 15px;
    display: block;
}

progress::-webkit-progress-bar {
    background-color: #e2e8f0;
    border-radius: 6px;
}

progress::-webkit-progress-value {
    background-color: #2563eb;
    border-radius: 6px;
}

#downloadLink {
    display: inline-block;
    padding: 12px 24px;
    background: darkslategrey;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}


@media screen and (max-width: 600px) {
    .container {
    margin: 10px;
}

    .main-content {
    flex-direction:column;
}

button#compressBtn{
    width:100%;
}
.radio-btn span{
    padding:8px 10px;
}
}