.tabo-yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.tabo-yt-item {
    cursor: pointer;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tabo-yt-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.tabo-yt-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.tabo-yt-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tabo-yt-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    margin-top: -28px;
    margin-left: -28px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
}

.tabo-yt-play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    width: 0;
    height: 0;
    margin-top: -10px;
    margin-left: -6px;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}

.tabo-yt-title {
    padding: 10px 12px;
    margin: 0;
    color: #eee;
    font-size: 14px;
    line-height: 1.3;
}

.tabo-yt-empty {
    opacity: 0.7;
}

.tabo-yt-pagination {
    margin: 16px 0;
    display: block;
}

.tabo-yt-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 36px;
    height: 36px;
    padding: 0 14px !important;
    margin: 0 6px 8px 0 !important;
    border-radius: 8px;
    border: 1px solid #333 !important;
    background: transparent !important;
    color: #eee !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 14px;
    line-height: 1;
    float: none !important;
}

.tabo-yt-pagination .page-numbers.current {
    border-color: #9147ff !important;
    color: #9147ff !important;
}

.tabo-yt-pagination .page-numbers.dots {
    border: none !important;
    padding: 0 4px !important;
}

.tabo-yt-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tabo-yt-modal[hidden] {
    display: none;
}

.tabo-yt-modal-inner {
    position: relative;
    width: min(900px, 92vw);
}

.tabo-yt-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.tabo-yt-modal-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tabo-yt-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
