body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a2e0a, #2d8c2d);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-y: auto;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease-in-out;
    margin: 20px 0;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.description {
    color: #555;
    font-size: 16px;
    margin-bottom: 25px;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(10, 46, 10, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-info span {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #005a30;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-button:hover {
    background: rgba(0, 90, 48, 0.1);
    transform: scale(1.1);
}

.copy-button:active {
    transform: scale(0.95);
}

.upload-section input[type="file"] {
    padding: 12px;
    border: 2px dashed #0a2e0a;
    border-radius: 8px;
    background: rgba(10, 46, 10, 0.1);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.upload-section input[type="file"]:hover {
    border-color: #2d8c2d;
    background: rgba(45, 140, 45, 0.1);
}

.upload-section input[type="number"],
.upload-section input[type="text"] {
    padding: 12px;
    border: 2px solid #0a2e0a;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.upload-section input[type="number"]:focus,
.upload-section input[type="text"]:focus {
    border-color: #2d8c2d;
    box-shadow: 0 0 8px rgba(45, 140, 45, 0.5);
    outline: none;
}

.button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #008a4d, #005a30);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 90, 48, 0.1);
    text-align: center;
}

.button:hover {
    background: linear-gradient(to right, #00aa60, #008a4d);
    box-shadow: 0 4px 8px rgba(0, 90, 48, 0.15);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 90, 48, 0.1);
}

.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.4s ease;
}

.button:hover::after {
    left: 150%;
}

.format-selection {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.format-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.format-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #005a30;
    width: 18px;
    height: 18px;
}

.format-option label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.download-section {
    margin-top: 25px;
    display: none;
    gap: 15px;
    animation: fadeIn 0.5s ease-in-out;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.download-files-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.download-section .file-group {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-section .file-group h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-section .download-btn {
    padding: 12px;
    background: linear-gradient(135deg, #005a30, #008a4d);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    width: 100%;
}

.download-section .download-btn:hover {
    background: linear-gradient(135deg, #008a4d, #00aa60);
    box-shadow: 0 6px 12px rgba(0, 90, 48, 0.2);
    transform: translateY(-2px);
}

.download-section .download-btn:active {
    transform: translateY(0);
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #005a30, #008a4d);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    background: linear-gradient(135deg, #008a4d, #00aa60);
    box-shadow: 0 4px 8px rgba(0, 90, 48, 0.2);
    transform: translateY(-2px);
}

.back-button:active {
    transform: translateY(0);
}

.ad-container {
    width: 100%;
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.ad-container.top {
    margin-bottom: 30px;
}

.ad-container.bottom {
    margin-top: 30px;
}

.ad-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ad-content {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-style: italic;
}

.video-guide {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-guide h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid #005a30;
    margin-left: 5px;
}

.video-placeholder:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .download-files-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .upload-section {
        flex-direction: column;
    }
    
    .download-files-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        max-width: 95%;
    }
}