* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "SF Pro Text";
    src: local("-apple-system"), local("BlinkMacSystemFont");
    font-weight: normal;
}

@font-face {
    font-family: "SF Pro Text";
    src: local("-apple-system-bold"), local("BlinkMacSystemFont");
    font-weight: bold;
}

body {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url("Chrome.gif") center center / cover no-repeat;
    filter: blur(1px);
    z-index: -2;
    opacity: 0.6;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 700px;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px 0;
}

h1 {
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h3 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 15px;
    line-height: 1.5;
}

.drop-area {
    padding: 30px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.drop-area.active {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

#fileInput {
    display: none;
}

.hover-button {
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-block;
    margin-top: 10px;
    font-family: inherit;
    letter-spacing: -0.2px;
}

.hover-button:hover {
    background: rgba(87, 87, 87, 0.8);
    transform: scale(1.03);
}

.conversion-options {
    margin: 20px 0;
}

.file-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.file-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.file-info p:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin: 12px 0 8px;
    font-weight: 600;
    text-align: left;
    font-size: 15px;
}

select, input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    font-family: inherit;
    font-size: 15px;
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="white" d="M0 0h12L6 6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 30px;
}

optgroup {
    background: #333;
}

option {
    background: #333;
    padding: 8px;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: none;
}

.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.preview-section {
    margin: 25px 0;
}

.video-preview {
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    margin-top: 15px;
}

#videoPreview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.support-info {
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    text-align: left;
}

.support-info h3 {
    margin-bottom: 10px;
}

summary {
    cursor: pointer;
    padding: 5px;
    font-weight: 600;
    outline: none;
}

summary::-webkit-details-marker {
    color: rgba(255, 255, 255, 0.6);
}

.format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.format-group {
    flex: 1 1 30%;
    min-width: 200px;
}

.format-group h4 {
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    font-weight: 600;
    font-size: 15px;
}

.format-group ul {
    list-style-type: none;
    padding-left: 5px;
}

.format-group li {
    margin-bottom: 6px;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.note {
    font-size: 13px;
    font-style: italic;
    opacity: 0.7;
    margin-top: 15px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
        width: 95%;
    }

    .hover-button {
        padding: 12px;
        font-size: 15px;
    }

    .format-list {
        flex-direction: column;
        gap: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .drop-area {
        padding: 20px;
    }
}

.image-converter-section {
    margin-top: 25px;
    text-align: center;
}

.image-converter-button {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.image-converter-button:hover {
    background: rgba(87, 87, 87, 0.8);
    transform: scale(1.03);
}

.image-converter-button:active {
    transform: scale(0.98);
}