* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.upload-section, .video-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 15px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fdbb2d;
}

.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fdbb2d;
}

.browse-btn {
    background: #fdbb2d;
    color: #1a2a6c;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.browse-btn:hover {
    background: #ffcc44;
    transform: translateY(-2px);
}

.file-input {
    display: none;
}

.file-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: none;
}

.file-info p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.video-preview, .video-player {
    width: 100%;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
}

.upload-btn {
    width: 100%;
    background: #1a2a6c;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
    display: none;
}

.upload-btn:hover:not(:disabled) {
    background: #2a3a9c;
    transform: translateY(-2px);
}

.upload-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.progress-container {
    margin-top: 20px;
    display: none;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #fdbb2d;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.status-message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.success {
    background: rgba(46, 204, 113, 0.3);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.error {
    background: rgba(231, 76, 60, 0.3);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

.video-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.ad-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(253, 187, 45, 0.2);
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.ad-content {
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
}

.ad-content:hover {
    background: rgba(253, 187, 45, 0.05);
}