:root {
    --primary: #ff0050;
    --secondary: #00f2fe;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #0f172a;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background animated circles */
.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}
.circle-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 0, 80, 0.4);
    top: -100px;
    left: -100px;
}
.circle-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 242, 254, 0.3);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}
.circle-3 {
    width: 200px;
    height: 200px;
    background: rgba(138, 43, 226, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

.watermark {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    z-index: 10;
    color: #e2e8f0;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.watermark i {
    color: var(--secondary);
    margin-right: 8px;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    margin: 20px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}
.header h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary), #ff8a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header p {
    color: #94a3b8;
    font-size: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}
input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

button {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, var(--primary), #ff4b2b);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 80, 0.2);
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 80, 0.4);
}
button i {
    margin-right: 8px;
}

.hidden {
    display: none !important;
}

.loader {
    text-align: center;
    margin-top: 30px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-container {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}
.result-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #e2e8f0;
    font-size: 18px;
    font-weight: 600;
}

.format-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iframe-wrapper {
    width: 100%;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.iframe-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .container {
        padding: 25px;
    }
    .header h1 {
        font-size: 26px;
    }
    .watermark {
        font-size: 12px;
        top: 10px;
    }
}
