.insta-dw-wrapper {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
    box-sizing: border-box;
}

.insta-dw-wrapper * {
    box-sizing: border-box;
}

/* Form Elements */

.insta-glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

/* Form Elements */
.insta-input-group {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.insta-input-group .insta-icon {
    position: absolute;
    left: 1rem;
    color: #555555;
}

.insta-dw-wrapper input[type="url"] {
    width: 100%;
    padding: 1rem 4rem 1rem 3rem;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 12px;
    color: #333333;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    margin: 0;
    line-height: normal;
}

.insta-dw-wrapper input[type="url"]:focus {
    border-color: #E1306C;
    box-shadow: 0 0 0 2px rgba(225, 48, 108, 0.4);
}

.insta-dw-wrapper input[type="url"]::placeholder {
    color: #888888;
}

.insta-clear-btn, .insta-paste-btn {
    position: absolute;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #555555;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

.insta-clear-btn:hover {
    color: #ff4b4b;
    background: rgba(255, 75, 75, 0.1);
}

.insta-paste-btn:hover {
    color: #E1306C;
    background: rgba(225, 48, 108, 0.1);
}

.insta-submit-btn, .insta-primary-button, .insta-secondary-button {
    background: #E1306C;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
    margin: 0;
}

.insta-secondary-button {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
    border: 1px solid #cccccc;
}

.insta-submit-btn:hover, .insta-primary-button:hover {
    background: #c12258;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
    color: white;
}

.insta-secondary-button:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.insta-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.insta-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: insta-spin 1s ease-in-out infinite;
}

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

.insta-hidden {
    display: none !important;
}

#insta-error-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 75, 75, 0.1);
    border-left: 4px solid #ff4b4b;
    border-radius: 8px;
    color: #ffcccc;
}

.insta-error-icon {
    color: #ff4b4b;
    flex-shrink: 0;
}

/* Video Results Structure */
.insta-video-info-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #cccccc;
    margin-bottom: 1.5rem;
}

.insta-video-title {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    color: #333333;
}

.insta-video-author {
    font-size: 0.9rem;
    color: #E1306C;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.insta-video-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.insta-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #555555;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #eeeeee;
}

/* Comments Section */
.insta-comments-section {
    margin-top: 1rem;
    border-top: 1px solid #eeeeee;
    padding-top: 1rem;
}

.insta-comments-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.75rem;
}

.insta-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.insta-comments-list::-webkit-scrollbar {
    width: 6px;
}
.insta-comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.insta-comments-list::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 3px;
}

.insta-comment-item {
    background: #f9f9f9;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #eeeeee;
}

.insta-comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: #E1306C;
    margin-bottom: 0.25rem;
}

.insta-comment-text {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.3;
    word-break: break-word;
}

.insta-video-preview-wrapper {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 500px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

#insta-video-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.insta-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

