:root {
    --primary: #4a6cf7;
    --primary-dark: #3a5ae0;
    --secondary: #6c5ce7;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #ff7675;
    --dark: #2d3436;
    --light: #f7f9fc;
    --gray: #636e72;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background: linear-gradient(135deg, #1a2a6c, #2a0b45, #1a2a6c);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

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

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #4facfe;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 12px;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-container {
    flex: 1;
    display: flex;
    min-width: 300px;
}

input[type="text"] {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

input[type="text"]::placeholder {
    color: #aaa;
}

input[type="text"]:focus {
    border-color: var(--primary);
}

button {
    padding: 15px 25px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

button:hover {
    background: linear-gradient(90deg, var(--primary-dark), #5a4ae7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    border-radius: 0 8px 8px 0;
}

.btn-secondary {
    border-radius: 8px;
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-container {
    width: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary);
}

video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.info-box h3 {
    margin-bottom: 15px;
    color: #00f2fe;
    display: flex;
    align-items: center;
}

.info-box i {
    margin-right: 10px;
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.code-block {
    background: #1e1e2e;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #4facfe;
}

.copy-btn {
    padding: 8px 15px;
    background: rgba(79, 172, 254, 0.2);
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: rgba(79, 172, 254, 0.3);
}

pre {
    color: #f8f8f2;
    overflow-x: auto;
}

.format-selector {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}

.format-selector.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.format-option {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.format-option:hover {
    background: rgba(79, 172, 254, 0.2);
    transform: translateY(-3px);
}

.format-option.selected {
    background: rgba(79, 172, 254, 0.3);
    border-color: var(--primary);
}

.format-option i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    color: var(--primary);
}

.status-bar {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin: 15px 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    margin-right: 10px;
}

.status-indicator.active {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab {
    padding: 12px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-container {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}