.yvi-video-selection-container {
    padding: 20px;
}

.yvi-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns */
    gap: 15px;
    list-style: none;
    padding: 0;
}

.yvi-video-item {
    border: 1px solid #000000;
    border-radius: 10px;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yvi-video-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.yvi-video-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    display: block; /* Prevent extra space below image */
}

.yvi-video-title {
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.yvi-select-button {
    /* Removed redundant styles - Bootstrap classes will handle styling */
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    align-self: center; /* Center button in flex container */
}

.yvi-select-button:hover {
    /* Removed redundant styles - Bootstrap hover effect will apply */
}

.yvi-youtube-button {
    display: inline-flex; /* Use flex to align logo and text */
    align-items: center; /* Vertically align items */
    /* padding-left: 15px;  Adjust padding to accommodate logo - can be handled by icon margin instead */
    /* padding-right: 15px; */
}

.youtube-logo-icon {
    width: 20px; /* Adjust logo size as needed */
    height: 20px;
    margin-right: 8px; /* Space between logo and text */
    vertical-align: middle; /* Align logo with text */
    display: inline-block; /* Make sure icon is inline-block for margin to work correctly */
}

.video-duration {
    font-style: italic;
    color: #777;
    margin-top: 10px;
}

/* Unique Plugin Button Styling */
.yvi-plugin-button { /* General plugin button styles */
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem; /* Default padding - you can adjust this */
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin-bottom: 0; /* Reset default bottom margin */
}

.yvi-plugin-button-primary { /* Primary button style */
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding-left: 15px; /* Add padding for the whole button, including logo */
    padding-right: 15px;
}

.yvi-plugin-button-primary:hover { /* Primary button hover style */
    color: #fff;
    background-color: #0b5ed7;
    border-color: #ca0a0a;
}

.yvi-plugin-button-success { /* Success button style */
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.yvi-plugin-button-success:hover { /* Success button hover style */
    color: #fff;
    background-color: #157347;
    border-color: #146c43;
}