/* ==========================================================================
   AUTOVIDEO HUB - LUXURY CYBERPUNK STYLES (UNIVERSAL PAGE)
   ========================================================================== */
:root {
    --bg-deep: #03050a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Màu thương hiệu mạng xã hội */
    --color-tiktok-1: #00f2fe;
    --color-tiktok-2: #fe0979;
    --color-youtube: #ff0000;
    --color-facebook: #1877f2;
    --color-ig: #e1306c;
    --color-x: #ffffff;

    /* Màu cho Card Universal */
    --card-bg: rgba(10, 15, 25, 0.7);
    --primary: #00f3ff;
    --primary-hover: #00c3cc;
    --secondary: #bc13fe;
    --danger: #ef4444;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; }

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(30, 40, 60, 0.4) 0%, transparent 70%),
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cyber-font { font-family: 'Orbitron', sans-serif; }

/* ÁNH SÁNG NỀN VŨ TRỤ */
.ambient-glow {
    position: absolute; border-radius: 50%; filter: blur(120px); z-index: -1; pointer-events: none; opacity: 0.4;
}
.glow-cyan { top: -20%; left: -10%; width: 50vw; height: 50vw; background: rgba(0, 243, 255, 0.2); }
.glow-purple { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: rgba(188, 19, 254, 0.2); }

/* THANH ĐIỀU HƯỚNG CAO CẤP */
.top-nav {
    width: 95%; max-width: 1400px;
    margin-top: 25px; padding: 15px 30px;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 20px;
    background: rgba(15, 20, 30, 0.4);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
.nav-brand { display: flex; align-items: center; gap: 15px; }
.brand-logo { height: 35px; width: auto; filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5)); }
.nav-brand h1 { font-size: 20px; letter-spacing: 2px; color: #fff; margin: 0; }
.text-highlight { color: #00f3ff; text-shadow: 0 0 15px rgba(0, 243, 255, 0.5); }

.btn-return {
    background: transparent; color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 30px;
    padding: 10px 20px; font-weight: 500; cursor: pointer; transition: all 0.3s;
}
.btn-return:hover { background: #fff; color: #000; box-shadow: 0 0 20px rgba(255,255,255,0.3); }

/* TIÊU ĐỀ HERO */
.hero-section { text-align: center; margin: 60px 0 40px; padding: 0 20px; max-width: 800px; }
.hero-title { font-size: 38px; font-weight: 900; letter-spacing: 3px; margin-bottom: 15px; color: #fff; }
.text-gradient {
    background: linear-gradient(to right, #00f3ff, #bc13fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(188, 19, 254, 0.3);
}
.hero-subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   KHU VỰC CHỨC NĂNG CHÍNH (UNIVERSAL CONTAINER)
   ========================================================================== */
.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px 60px;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.container::before {
    content: ''; position: absolute; top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 25px; z-index: -1; opacity: 0.2;
}

/* Các Ô Nhập Liệu */
.input-group { position: relative; margin-bottom: 25px; }

.platform-icon {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    font-size: 22px; color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2;
}

.input-url {
    width: 100%; padding: 18px 20px 18px 55px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
    border-radius: 16px; color: white; font-size: 15px; outline: none;
    transition: all 0.3s ease; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.input-url:focus {
    border-color: var(--primary);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 0 15px rgba(0, 243, 255, 0.2);
}

.input-url::placeholder { color: #475569; }

/* Tùy chọn Phân giải */
.options-group { margin-bottom: 25px; }

.select-box {
    width: 100%; padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
    border-radius: 14px; color: white; font-size: 15px; outline: none; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300f3ff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 20px center; background-size: 20px;
}
.select-box:focus { border-color: var(--primary); }
.select-box option { background: var(--bg-deep); color: white; padding: 10px; }

/* Nút Bấm */
.btn-primary {
    width: 100%; padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: none; border-radius: 14px;
    font-family: 'Orbitron', sans-serif; font-size: 16px; font-weight: 700;
    letter-spacing: 1px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px;
    transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(188, 19, 254, 0.4); text-transform: uppercase;
}

.btn-primary:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }

.btn-danger {
    padding: 16px; background: rgba(239, 68, 68, 0.1); color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 14px;
    font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 600;
    letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase;
}
.btn-danger:hover { background: var(--danger); color: white; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; background: #334155; box-shadow: none; color: #94a3b8; }

/* Màn hình Xem Trước */
.media-container {
    width: 100%; background: #000; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--border); position: relative;
}
.media-container::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05); border-radius: 16px;
}
.preview-media { width: 100%; max-height: 320px; display: block; outline: none; }
.action-buttons { display: flex; gap: 15px; margin-top: 25px; }

/* Trạng thái */
.status-area {
    margin-top: 25px; padding: 16px; border-radius: 12px; text-align: center;
    font-size: 14px; font-weight: 500; animation: fadeIn 0.4s ease; backdrop-filter: blur(10px);
}
.status-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-error { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Chuyển màu Logo Động */
.icon-youtube { color: var(--color-youtube); text-shadow: 0 0 20px rgba(255,0,0,0.8); transform: translateY(-50%) scale(1.1); }
.icon-facebook { color: var(--color-facebook); text-shadow: 0 0 20px rgba(24,119,242,0.8); transform: translateY(-50%) scale(1.1); }
.icon-tiktok { color: var(--color-tiktok-1); text-shadow: 0 0 20px rgba(0, 242, 254, 0.8); transform: translateY(-50%) scale(1.1); }
.icon-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(225,48,108,0.5)); transform: translateY(-50%) scale(1.1); }
.icon-x { color: var(--color-x); text-shadow: 0 0 20px rgba(255,255,255,0.6); transform: translateY(-50%) scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
    .top-nav { flex-direction: column; gap: 15px; padding: 15px; }
    .hero-title { font-size: 28px; }
    .action-buttons { flex-direction: column; }
}