/* ==========================================================================
   MyDownlods - Modern Glassmorphic Cyber Dark Design System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-primary: #0a0c14;
    --bg-secondary: #111422;
    --bg-card: rgba(23, 27, 44, 0.7);
    --bg-card-hover: rgba(29, 34, 56, 0.85);
    --bg-input: rgba(14, 17, 30, 0.8);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.4);
    
    --accent-yt: #ff0033;
    --accent-yt-glow: rgba(255, 0, 51, 0.3);
    
    --accent-tt: #00f2fe;
    --accent-tt-pink: #fe2c55;
    --accent-tt-glow: rgba(254, 44, 85, 0.3);
    
    --primary-indigo: #6366f1;
    --primary-purple: #a855f7;
    --primary-cyan: #06b6d4;
    --primary-rose: #f43f5e;
    --primary-green: #10b981;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 32px rgba(99, 102, 241, 0.25);
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glow Backgrounds */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 70%);
    top: -100px;
    left: -50px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.35), transparent 70%);
    top: 25%;
    right: -100px;
    animation-delay: -5s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
    bottom: 50px;
    left: 20%;
    animation-delay: -8s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(10, 12, 20, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.08);
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #ff0033 0%, #fe2c55 50%, #00f2fe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-badges {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.badge-item {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

.yt-badge { color: #ff4d6d; }
.tt-badge { color: #38bdf8; }
.pic-badge { color: #a78bfa; }

.btn-icon {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.25s ease;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.history-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-rose);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Container */
.main-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 0 3.5rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

/* Downloader Card & Input */
.downloader-card {
    max-width: 820px;
    margin: 0 auto;
}

.url-input-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.6rem 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.url-input-wrapper:focus-within {
    border-color: var(--primary-indigo);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), var(--shadow-card);
    background: var(--bg-card-hover);
}

.platform-indicator {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.platform-indicator.youtube {
    background: rgba(255, 0, 51, 0.15);
    color: #ff0033;
}

.platform-indicator.tiktok {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
}

.url-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1.05rem;
    padding: 0.6rem 0;
    min-width: 0;
}

.url-input-wrapper input::placeholder {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-subtle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-subtle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-indigo), var(--primary-purple));
    color: #fff;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* Quick Samples */
.quick-samples {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.samples-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sample-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.sample-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--primary-indigo);
}

/* Alert Box */
.alert-box {
    max-width: 820px;
    margin: 1.5rem auto 0;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fecdd3;
    animation: slideDown 0.3s ease;
}

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

.alert-close {
    background: transparent;
    border: none;
    color: #fecdd3;
    cursor: pointer;
    margin-left: auto;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-close:hover { opacity: 1; }

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

/* Result Section */
.result-section {
    margin-top: 2.5rem;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.media-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
}

/* Media Preview Left Column */
.media-preview-container {
    background: #000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    min-height: 360px;
}

.preview-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-wrapper video {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #000;
}

.preview-wrapper img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #000;
}

.carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 12, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    z-index: 10;
}

.carousel-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.carousel-btn:hover {
    color: var(--accent-tt);
}

.slide-counter {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Media Info Right Column */
.media-info-container {
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.platform-chip {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.platform-chip.tiktok {
    background: rgba(254, 44, 85, 0.15);
    color: #ff4d6d;
    border: 1px solid rgba(254, 44, 85, 0.3);
}

.platform-chip.youtube {
    background: rgba(255, 0, 51, 0.15);
    color: #ff0033;
    border: 1px solid rgba(255, 0, 51, 0.3);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-highlight);
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.author-handle {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.media-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stats-bar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-item i {
    color: var(--primary-indigo);
}

/* Download Groups */
.download-groups {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.group-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.group-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-accent-zip {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-accent-zip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.options-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.download-btn-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.download-btn-card:hover {
    border-color: var(--primary-indigo);
    background: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.btn-card-left {
    display: flex;
    flex-direction: column;
}

.btn-card-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.btn-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-indigo);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.download-btn-card:hover .btn-card-icon {
    background: var(--primary-indigo);
    color: #fff;
    transform: scale(1.1);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.3rem;
}

.photo-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    background: #000;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-download-btn {
    background: var(--primary-indigo);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.photo-download-btn:hover {
    transform: scale(1.15);
}

/* Features Section */
.features-section {
    margin-top: 6rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.tiktok-glow { background: rgba(254, 44, 85, 0.15); color: #fe2c55; }
.photos-glow { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.yt-glow { background: rgba(255, 0, 51, 0.15); color: #ff0033; }
.speed-glow { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* How Section */
.how-section {
    margin-top: 5rem;
    text-align: center;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    text-align: center;
    position: relative;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-indigo);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.step-arrow {
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* History Drawer */
.history-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.drawer-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
    animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.drawer-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-danger-subtle {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-subtle:hover {
    background: rgba(244, 63, 94, 0.2);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.empty-history {
    margin: auto;
    text-align: center;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
}

.empty-history i {
    font-size: 2.5rem;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--primary-indigo);
    background: var(--bg-card-hover);
}

.history-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #000;
    flex-shrink: 0;
}

.history-info {
    flex: 1;
    min-width: 0;
}

.history-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e293b;
    border: 1px solid var(--border-highlight);
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-icon {
    color: var(--primary-green);
    font-size: 1.1rem;
}

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

/* Footer */
.footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 12, 20, 0.9);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .media-card {
        grid-template-columns: 1fr;
    }
    
    .media-preview-container {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

@media (max-width: 600px) {
    .nav-badges {
        display: none;
    }
    
    .url-input-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem;
    }
    
    .input-actions {
        margin-top: 0.5rem;
        justify-content: space-between;
    }
    
    .btn-primary {
        flex: 1;
    }
}
