/* SK YouTube Embed - Frontend Styles */

.syep-wrapper {
    margin: 20px 0;
}

.syep-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.syep-grid > .syep-card {
    box-sizing: border-box;
    width: 100%;
}

.syep-cols-2 > .syep-card {
    width: calc(50% - 10px);
}

.syep-cols-3 > .syep-card {
    width: calc(33.333% - 13.333px);
}

.syep-cols-4 > .syep-card {
    width: calc(25% - 15px);
}

.syep-cols-5 > .syep-card {
    width: calc(20% - 16px);
}

.syep-card {
    cursor: pointer;
}

.syep-card__thumbnail {
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    overflow: hidden;
}

.syep-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* List Layout */
.syep-layout-list .syep-card {
    display: flex;
    gap: 16px;
    flex-direction: row;
    width: 100% !important;
}

.syep-layout-list .syep-card__thumbnail {
    flex: 0 0 280px;
}

.syep-layout-list .syep-card__body {
    flex: 1;
}

/* Cards Layout */
.syep-layout-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.syep-layout-cards > .syep-card {
    flex: 1 1 280px;
}

.syep-card__count {
    font-size: 12px;
    color: #999;
    margin-right: 6px;
    font-weight: 600;
}

.syep-card__title {
    margin: 6px 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a2e;
}

.syep-card__description {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

/* Modal Lightbox */
.syep-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.syep-modal.active {
    display: flex;
}

.syep-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
}

.syep-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 1;
}

.syep-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.syep-modal__close:hover {
    background: rgba(255, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
    .syep-modal {
        padding: 10px;
    }
    .syep-modal__close {
        top: -38px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

.syep-modal__video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.syep-modal__video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pagination */
.syep-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e4e7;
}

.syep-page-btn,
.syep-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    cursor: pointer;
}

.syep-page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.syep-page-num.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .syep-cols-3 > .syep-card,
    .syep-cols-4 > .syep-card,
    .syep-cols-5 > .syep-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .syep-cols-2 > .syep-card,
    .syep-cols-3 > .syep-card,
    .syep-cols-4 > .syep-card,
    .syep-cols-5 > .syep-card {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .syep-cols-5 > .syep-card {
        width: calc(25% - 15px);
    }
}

@media (max-width: 1100px) {
    .syep-cols-5 > .syep-card {
        width: calc(33.333% - 13.333px);
    }
}
