.div-grab-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 10px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.input-grab {
    flex: 1 1 100%;
    width: 100%;
    min-width: 150px;
    padding: 10px 80px 10px 40px;
    line-height: 1.5;
    border: 2px solid var(--border-input);
    border-radius: 24px;
    outline: none;
    box-shadow: inset 0 1px 2px var(--shadow);
    font-size: 16px;
    background-color: var(--bg-input);
    color: var(--text-primary);
    background-image: url('data:image/svg+xml;utf8,<svg fill="%237eb980" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><g><path d="M17.5 12c0-3.04 2.46-5.5 5.5-5.5-3.04 0-5.5-2.46-5.5-5.5 0 3.04-2.46 5.5-5.5 5.5 3.04 0 5.5 2.46 5.5 5.5z"></path><path d="M15.65 11.58c.18-.5.27-1.03.31-1.58h-2c-.1 1.03-.51 1.93-1.27 2.69-.88.87-1.94 1.31-3.19 1.31C7.03 14 5 12.07 5 9.5 5 7.03 6.93 5 9.5 5c.46 0 .89.08 1.3.2l1.56-1.56C11.5 3.22 10.55 3 9.5 3 5.85 3 3 5.85 3 9.5S5.85 16 9.5 16c.56 0 2.26-.06 3.8-1.3l6.3 6.3 1.4-1.4-6.3-6.3c.4-.5.72-1.08.95-1.72z"></path></g></svg>');
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 20px 20px;
}

.dark .input-grab {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%237eb980" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><g><path d="M17.5 12c0-3.04 2.46-5.5 5.5-5.5-3.04 0-5.5-2.46-5.5-5.5 0 3.04-2.46 5.5-5.5 5.5 3.04 0 5.5 2.46 5.5 5.5z"></path><path d="M15.65 11.58c.18-.5.27-1.03.31-1.58h-2c-.1 1.03-.51 1.93-1.27 2.69-.88.87-1.94 1.31-3.19 1.31C7.03 14 5 12.07 5 9.5 5 7.03 6.93 5 9.5 5c.46 0 .89.08 1.3.2l1.56-1.56C11.5 3.22 10.55 3 9.5 3 5.85 3 3 5.85 3 9.5S5.85 16 9.5 16c.56 0 2.26-.06 3.8-1.3l6.3 6.3 1.4-1.4-6.3-6.3c.4-.5.72-1.08.95-1.72z"></path></g></svg>');
}

.div-button-get {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
}

.button-grab-get {
    font-size: 18px;
    padding: 4px 18px;
    background-color: var(--bg-button);
    color: var(--text-primary);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.5s ease, background-color 0.5s ease, color 0.5s ease, transform 0.5s ease;
}

.button-grab-get:hover {
    border-color: var(--download);
    background-color: var(--bg-button-hover);
    color: var(--text-primary);
}

.button-grab-get:active {
    transform: scale(0.9);
    background-color: rgba(76, 175, 80, 0.1);
}

.div-select-options {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    gap: 20px;
    margin: 15px auto 0;
    max-width: 700px;
    justify-content: center;
}

.select-option-label {
    padding: 4px 16px;
    white-space: nowrap;
}

.div-select-option {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 0 0 0;
    border: 1px solid var(--border-select);
    border-radius: 8px;
    background: var(--bg-select-label);
}

.div-select-option select {
    flex: 0 1 auto;
    width: 160px;
    padding: 5px 40px 5px 16px;
    font-size: 16px;

    outline: none;
    cursor: pointer;

    border: 1px solid transparent;
    border-radius: 0 8px 8px 0;

    background-color: transparent !important;
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path fill='%237eb980' d='M0 0l7 10 7-10z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    transition: border-color 0.5s ease, background-color 0.5s ease, color 0.5s ease, transform 0.5s ease;
}

select:disabled {
    color: var(--text-gray-disabled);
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
}

.div-select-option select[name="quality-codec"] {
    min-width: 150px;
    border-radius: 0;
}

.div-select-option select[name="quality-resolution"] {
    width: 110px;
    min-width: 110px;
    border-left: 1px solid var(--border-select);
}

.div-select-option select[name="format"] {
    width: 160px;
    min-width: 100px;
}

.div-select-option select:hover,
.div-select-option select:focus {
    border: 1px solid transparent;
    border-color: var(--border-input);
}


@media (max-width: 820px) {
    .div-select-option select[name="format"] {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .div-select-options {
      gap: 8px;
    }

    .select-option-label {
      padding: 4px 16px;
    }

    .div-select-option select {
      padding: 5px 20px 5px 8px;
    }
}

@media (max-width: 620px) {
    .div-select-option {
      width: 100%;
      max-width: 380px;
      justify-content: flex-start;
    }

    .div-select-option select {
      flex: 1;
      padding: 5px 40px 5px 16px;
    }

    .select-option-label {
      padding: 4px 16px;
    }
}

@media (max-width: 480px) {
    .input-grab {
        font-size: 16px;
    }

    .div-select-options {
      flex-direction: column;
      align-items: center;
      gap: 16px;
    }
}