.ygeeta-yt-grid {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ygeeta-yt-columns-1 {
    grid-template-columns: 1fr;
}

.ygeeta-yt-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ygeeta-yt-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ygeeta-yt-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .ygeeta-yt-columns-4,
    .ygeeta-yt-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ygeeta-yt-grid {
        grid-template-columns: 1fr !important;
    }
}

.ygeeta-yt-grid .ygeeta-yt-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ygeeta-yt-grid .ygeeta-yt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.ygeeta-yt-grid .ygeeta-yt-card__link,
.ygeeta-yt-grid .ygeeta-yt-card__trigger {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.ygeeta-yt-grid .ygeeta-yt-card__trigger:hover,
.ygeeta-yt-grid .ygeeta-yt-card__trigger:focus {
    background: transparent;
    box-shadow: none;
}

.ygeeta-yt-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
    overflow: hidden;
}

.ygeeta-yt-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.ygeeta-yt-card__trigger:hover .ygeeta-yt-card__thumb img {
    transform: scale(1.04);
}

.ygeeta-yt-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ygeeta-yt-card__trigger:hover .ygeeta-yt-card__play {
    transform: scale(1.08);
}

.ygeeta-yt-card__play-bg {
    transition: fill-opacity 0.2s ease;
}

.ygeeta-yt-card__trigger:hover .ygeeta-yt-card__play-bg {
    fill-opacity: 0.95;
}

.ygeeta-yt-card__duration,
.ygeeta-yt-card__badge {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 4px;
    padding: 0.35rem 0.45rem;
}

.ygeeta-yt-card__duration {
    right: 0.5rem;
    bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
}

.ygeeta-yt-card__badge {
    left: 0.5rem;
    top: 0.5rem;
    color: #fff;
}

.ygeeta-yt-card__badge--live {
    background: #dc2626;
}

.ygeeta-yt-card__badge--upcoming {
    background: #d97706;
}

.ygeeta-yt-grid .ygeeta-yt-card__body {
    padding: 0.9rem 1rem 1.1rem;
    background: #ffffff;
}

.ygeeta-yt-grid .ygeeta-yt-card__title {
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 600;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ygeeta-yt-grid .ygeeta-yt-card__trigger:hover .ygeeta-yt-card__title {
    color: #dc2626;
}

.ygeeta-yt-grid .ygeeta-yt-card__meta {
    margin: 0;
    padding: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.ygeeta-yt-empty {
    padding: 1rem;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
}

.ygeeta-yt-wrap {
    margin: 1.5rem 0;
}

.ygeeta-yt-pagination {
    margin-top: 1.5rem;
    text-align: center;
}

.ygeeta-yt-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ygeeta-yt-load-more:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.ygeeta-yt-load-more:disabled {
    cursor: wait;
    opacity: 0.85;
}

.ygeeta-yt-load-more__spinner {
    display: none;
    width: 1.05em;
    height: 1.05em;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ygeeta-yt-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.ygeeta-yt-load-more.is-loading .ygeeta-yt-load-more__spinner {
    display: inline-block;
}

@keyframes ygeeta-yt-spin {
    to {
        transform: rotate(360deg);
    }
}

.ygeeta-yt-pagination__status {
    margin: 0.75rem 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

body.ygeeta-yt-modal-open {
    overflow: hidden;
}

.ygeeta-yt-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ygeeta-yt-modal[hidden] {
    display: none;
}

.ygeeta-yt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
}

.ygeeta-yt-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ygeeta-yt-modal.is-open .ygeeta-yt-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ygeeta-yt-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ygeeta-yt-modal__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.ygeeta-yt-modal__player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.ygeeta-yt-modal__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ygeeta-yt-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem 1.2rem;
    background: #0f172a;
    color: #ffffff;
}

.ygeeta-yt-modal .ygeeta-yt-modal__title {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: #ffffff;
}

.ygeeta-yt-modal .ygeeta-yt-modal__youtube {
    flex-shrink: 0;
    color: #ff6b6b;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    box-shadow: none;
    white-space: nowrap;
}

.ygeeta-yt-modal .ygeeta-yt-modal__youtube:hover,
.ygeeta-yt-modal .ygeeta-yt-modal__youtube:focus {
    color: #ffffff;
    text-decoration: underline;
    background: transparent;
}

.ygeeta-yt-modal .ygeeta-yt-modal__close {
    color: #ffffff;
}

@media (max-width: 640px) {
    .ygeeta-yt-modal {
        padding: 0.75rem;
    }

    .ygeeta-yt-modal__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
