.ytd-outer {
    max-width: 950px;
    margin: 0 auto;
    padding: 20px 10px;
    font-family: 'Inter', Arial, sans-serif;
}

#ytd-form {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#ytd-form input[type="text"] {
    flex: 1 1 350px;
    min-width: 220px;
    padding: 14px;
    font-size: 18px;
    border: 1.5px solid #ececec;
    border-radius: 7px;
    outline: none;
    box-shadow: 0 2px 8px #0001;
    transition: border 0.2s;
    background: #f7f7f7;
    margin-bottom: 0;
}
#ytd-form input[type="text"]:focus {
    border: 1.5px solid #e52d27;
}

#ytd-form button {
    padding: 14px 26px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 7px;
    border: none;
    background: linear-gradient(90deg, #e52d27 0%, #b31217 100%);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px #0001;
    transition: background 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
}

#ytd-form button:hover {
    background: linear-gradient(90deg, #b31217 0%, #e52d27 100%);
    box-shadow: 0 4px 12px #e52d2733;
}

#ytd-thumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.ytd-thumb {
    background: linear-gradient(135deg, #fff 85%, #f7fafd 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px #2a3d4d0a, 0 2px 6px #e52d2722;
    padding: 24px 18px 26px 18px;
    width: 310px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.22s, transform 0.18s;
    position: relative;
}
.ytd-thumb:hover {
    box-shadow: 0 18px 48px #e52d2728, 0 3px 8px #b3121712;
    transform: translateY(-9px) scale(1.045);
}
.ytd-thumb-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
    color: #e52d27;
    text-shadow: 0 1px 3px #b3121715;
}
.ytd-thumb img {
    margin-bottom: 16px;
    border-radius: 13px;
    max-width: 100%;
    box-shadow: 0 2px 12px #e52d2712, 0 1px 4px #0001;
    border: 2px solid #f4f4f4;
    background: #f7f7f7;
}
.ytd-thumb .button,
.ytd-thumb button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 13px 20px;
    background: linear-gradient(90deg, #e52d27, #b31217 99%);
    color: #fff;
    border: none;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
    cursor: pointer;
    box-shadow: 0 2px 8px #e52d2722;
    gap: 8px;
}
.ytd-thumb .button:hover,
.ytd-thumb button:hover {
    background: linear-gradient(90deg, #b31217 0%, #e52d27 100%);
    box-shadow: 0 6px 16px #e52d2735;
    transform: translateY(-2px) scale(1.02);
}

.ytd-error {
    color: #e52d27;
    font-weight: bold;
    margin: 12px 0;
    width: 100%;
    text-align: center;
    background: #fff0f0;
    border-radius: 7px;
    padding: 18px 0;
    box-shadow: 0 1px 4px #e52d2712;
}

/* Responsive styles */
@media (max-width: 1100px) {
    #ytd-thumbnails {
        gap: 18px;
    }
    .ytd-thumb {
        width: 28vw;
        min-width: 180px;
        max-width: 330px;
    }
}
@media (max-width: 900px) {
    #ytd-thumbnails {
        flex-wrap: wrap;
        gap: 22px;
    }
    .ytd-thumb {
        width: 45vw;
        min-width: 320px;
        max-width: 320px;
    }
}
@media (max-width: 700px) {
    #ytd-form {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    #ytd-form input[type="text"] {
        margin-bottom: 0;
        padding: 10px 12px;
        font-size: 16px;
        height: 44px;
        min-height: 44px;
        max-height: 48px;
        box-sizing: border-box;
    }
    #ytd-form button {
        width: 100%;
        margin-bottom: 0;
        margin-top: 8px;
        padding: 12px 0;
        font-size: 16px;
        height: 44px;
        min-height: 44px;
        max-height: 48px;
    }
}