:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(20, 22, 35, 0.7);
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.3);
    --secondary: #4facfe;
    --accent: #ff007a;
    --text-main: #ffffff;
    --text-muted: #a0a0b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

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

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 50px); }
}

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo span span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Search Box */
.search-box-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.input-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.link-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

#videoUrl {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.1rem;
    flex: 1;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    padding: 15px 35px;
    border-radius: 40px;
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.6);
}

/* Result Section */
.result-section {
    padding: 40px 0;
    animation: fadeIn 0.5s ease-out;
}

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

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.result-card {
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.video-info {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.thumbnail-wrapper {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.thumbnail-wrapper img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.info-text h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.author-tag {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.05);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    background: var(--gradient);
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Quality Grid */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.quality-item {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    border: 1px solid transparent;
}

.quality-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--glass-border);
    transform: scale(1.02);
}

.q-label {
    display: flex;
    flex-direction: column;
}

.q-res {
    font-weight: 700;
    font-size: 1.1rem;
}

.q-ext {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.q-size {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.btn-download {
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--gradient);
    color: #000;
    transform: rotate(-15deg);
}

/* Loader */
.loader-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden { display: none; }

/* Platforms */
.platforms-section {
    padding: 60px 0;
    text-align: center;
}

.platforms-section h3 {
    margin-bottom: 30px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    transition: 0.3s;
}

.platform-item i {
    font-size: 2rem;
}

.platform-item:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer i {
    color: #ff4d4d;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .video-info { flex-direction: column; }
    .thumbnail-wrapper { width: 100%; }
    .nav-links { display: none; }
    .btn-primary span { display: none; }
    .btn-primary { padding: 15px 20px; }
}
