.pd-container {
    max-width: 600px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pd-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 30px;
    text-align: center;
}

.pd-title {
    margin: 0 0 10px;
    color: #e60023;
    font-size: 28px;
    font-weight: 800;
}

.pd-subtitle {
    margin: 0 0 25px;
    color: #666;
    font-size: 16px;
}

.pd-form {
    margin-bottom: 30px;
}

.pd-input-group {
    display: flex;
    gap: 10px;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.pd-input-group:focus-within {
    border-color: #e60023;
}

.pd-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: 16px;
    outline: none;
    width: 100%;
}

.pd-input-group button {
    background: #e60023;
    color: white !important;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pd-input-group button:hover {
    background: #ad081b;
}

.pd-error {
    color: #e60023;
    margin-top: 15px;
    font-size: 14px;
}

.pd-result {
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 30px;
    display: none; /* Controlled by JS */
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.5s ease;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.pd-media-preview {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pd-media-preview img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.pd-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 50%;
    padding: 10px;
}

.pd-media-info h3 {
    margin: 0 0 5px;
    font-size: 20px;
}

.pd-media-res {
    color: #666;
    margin-bottom: 20px;
}

.pd-download-btn {
    display: inline-block;
    background: #00875a;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
}

.pd-download-btn:hover {
    background: #006644;
    transform: scale(1.05);
    color: white;
}

/* Loader Animation */
.pd-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
    .pd-input-group {
        flex-direction: column;
        border-radius: 16px;
    }
    .pd-input-group button {
        width: 100%;
    }
}
