/* Video Downloader Tool Styles v2.0 */
.vdt-card {
    --vdt-accent: #dc2626;
    max-width: 820px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #111827;
    box-sizing: border-box;
}

.vdt-demo-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.vdt-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vdt-heading {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
}

.vdt-subheading {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.vdt-input-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.vdt-url-input {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
}

.vdt-url-input:focus {
    border-color: var(--vdt-accent);
}

.vdt-primary-btn {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--vdt-accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.vdt-primary-btn:hover {
    opacity: 0.92;
}

.vdt-primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vdt-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 1rem;
}

.vdt-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid #d1d5db;
    border-top-color: var(--vdt-accent);
    border-radius: 50%;
    animation: vdt-spin 0.75s linear infinite;
}

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

.vdt-result-card {
    margin-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.vdt-media-summary {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.vdt-thumb-wrap {
    position: relative;
    width: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.vdt-thumb {
    width: 100%;
    height: auto;
    display: block;
}

.vdt-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.vdt-video-title {
    margin: 0 0 0.35rem 0 !important;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
}

.vdt-video-author {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.vdt-formats-table-wrap {
    overflow-x: auto;
}

.vdt-formats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.vdt-formats-table th,
.vdt-formats-table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.vdt-formats-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.vdt-badge {
    display: inline-block;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.vdt-badge-4k, .vdt-badge-2k {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.vdt-badge-hd {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.vdt-badge-sd, .vdt-badge-audio {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.vdt-dl-btn {
    display: inline-block;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff !important;
    background: var(--vdt-accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
}

.vdt-dl-btn:hover {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .vdt-input-row {
        flex-direction: column;
    }
    .vdt-media-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .vdt-thumb-wrap {
        width: 100%;
    }
}
