/* plg_content_mxyoutuber */
.mxyt { margin: 1.25rem 0; }
.mxyt-grid { display: grid; gap: 14px; }
.mxyt-cols-2 .mxyt-grid { grid-template-columns: repeat(2, 1fr); }
.mxyt-cols-3 .mxyt-grid { grid-template-columns: repeat(3, 1fr); }
.mxyt-cols-4 .mxyt-grid { grid-template-columns: repeat(4, 1fr); }
.mxyt-cols-5 .mxyt-grid { grid-template-columns: repeat(5, 1fr); }
.mxyt-cols-6 .mxyt-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 782px) { .mxyt-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .mxyt-grid { grid-template-columns: 1fr !important; } }

.mxyt-card { cursor: pointer; }
.mxyt-title { font-size: .95rem; margin: .5rem 0 .25rem; line-height: 1.25; }
.mxyt-desc { font-size: .82rem; color: var(--gray-600, #666); margin: 0; }

/* Play badge */
.mxyt-play {
    position: absolute; inset: 0; margin: auto;
    width: 54px; height: 54px; border-radius: 50%;
    background: rgba(0,0,0,.55);
    transition: background .2s ease, transform .2s ease;
}
.mxyt-play::after {
    content: ""; position: absolute; top: 50%; left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid; border-width: 10px 0 10px 17px;
    border-color: transparent transparent transparent #fff;
}
.mxyt-card:hover .mxyt-play { background: #ff0000; transform: scale(1.06); }

/* ---------- Grid theme ---------- */
.mxyt-grid-theme {}
.mxyt-grid .mxyt-thumb, .mxyt-list .mxyt-thumb {
    position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000;
}
.mxyt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- List theme ---------- */
.mxyt-list .mxyt-grid { grid-template-columns: 1fr !important; gap: 12px; }
.mxyt-list .mxyt-card { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: center; }
.mxyt-list .mxyt-thumb { width: 220px; }
@media (max-width: 560px) { .mxyt-list .mxyt-card { grid-template-columns: 1fr; } .mxyt-list .mxyt-thumb { width: 100%; } }

/* ---------- Flipcards theme ---------- */
.mxyt-flipcards .mxyt-card { perspective: 1000px; }
.mxyt-flipcards .mxyt-inner {
    position: relative; width: 100%; aspect-ratio: 16/9;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.2,.7,.3,1);
    border-radius: 10px;
}
.mxyt-flipcards .mxyt-card:hover .mxyt-inner,
.mxyt-flipcards .mxyt-card:focus-within .mxyt-inner { transform: rotateY(180deg); }
.mxyt-flipcards .mxyt-face {
    position: absolute; inset: 0; backface-visibility: hidden;
    border-radius: 10px; overflow: hidden;
}
.mxyt-flipcards .mxyt-front { background: #000; }
.mxyt-flipcards .mxyt-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mxyt-flipcards .mxyt-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff; padding: 12px; display: flex; flex-direction: column; justify-content: center;
}
.mxyt-flipcards .mxyt-back .mxyt-title { color: #fff; margin-top: 0; }
.mxyt-flipcards .mxyt-back .mxyt-desc { color: rgba(255,255,255,.8); }
.mxyt-flipcards .mxyt-watch {
    margin-top: auto; align-self: flex-start;
    background: #ff0000; color: #fff; padding: .35rem .7rem; border-radius: 6px; font-size: .82rem;
}

/* ---------- Lightbox ---------- */
.mxyt-lb {
    position: fixed; inset: 0; z-index: 9999; display: none;
    align-items: center; justify-content: center; background: rgba(0,0,0,.9);
}
.mxyt-lb.is-open { display: flex; }
.mxyt-lb-inner { width: min(90vw, 960px); aspect-ratio: 16/9; }
.mxyt-lb-inner iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }
.mxyt-lb-close {
    position: absolute; top: 4vh; right: 4vw; background: rgba(255,255,255,.15);
    color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.mxyt-lb-close:hover { background: rgba(255,255,255,.3); }

/* ---------- Load more ---------- */
.mxyt-more { text-align: center; margin-top: 1.25rem; }
.mxyt-more-btn {
    background: #ff0000; color: #fff; border: 0; cursor: pointer;
    padding: .6rem 1.4rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.mxyt-more-btn:hover { background: #d90000; }
.mxyt-more.is-loading .mxyt-more-btn { opacity: .5; pointer-events: none; }
.mxyt-spinner {
    display: inline-block; width: 22px; height: 22px; margin-left: .5rem; vertical-align: middle;
    border: 3px solid rgba(0,0,0,.15); border-top-color: #ff0000; border-radius: 50%;
    animation: mxyt-spin .8s linear infinite;
}
.mxyt-more.is-loading .mxyt-spinner { display: inline-block; }
.mxyt-more:not(.is-loading) .mxyt-spinner { display: none; }
@keyframes mxyt-spin { to { transform: rotate(360deg); } }

/* ---------- Channel header ---------- */
.mxyt-channel { margin-bottom: 1.25rem; border: 1px solid var(--gray-200, #e5e5e5); border-radius: 12px; overflow: hidden; background: var(--white, #fff); }
.mxyt-channel-banner {
    width: 100%; aspect-ratio: 6.2 / 1; min-height: 120px;
    background-size: cover; background-position: center; background-color: #e9eef5;
}
.mxyt-channel-bar { display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
.mxyt-channel-avatar {
    width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: 0 0 88px;
    border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); margin-top: -52px; background: #fff;
}
.mxyt-channel-meta { flex: 1 1 auto; min-width: 0; }
.mxyt-channel-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mxyt-channel-name { margin: 0; font-size: 1.4rem; line-height: 1.2; }
.mxyt-channel-sub {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    background: #ff0000; color: #fff !important; text-decoration: none;
    padding: .4rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}
.mxyt-channel-sub:hover { background: #d90000; }
.mxyt-channel-sub .mxyt-sub-count { background: rgba(255,255,255,.25); padding: .05rem .45rem; border-radius: 999px; font-size: .82rem; }
.mxyt-channel-stats { display: flex; flex-wrap: wrap; gap: 18px; margin: .5rem 0; color: var(--gray-600, #666); font-size: .9rem; }
.mxyt-channel-stats strong { color: var(--gray-900, #111); }
.mxyt-channel-desc { font-size: .9rem; color: var(--gray-700, #444); line-height: 1.5; white-space: normal; }

@media (max-width: 560px) {
    .mxyt-channel-bar { flex-direction: column; align-items: center; text-align: center; }
    .mxyt-channel-avatar { margin-top: -60px; }
    .mxyt-channel-top { justify-content: center; }
    .mxyt-channel-sub { margin-left: 0; }
    .mxyt-channel-stats { justify-content: center; }
}

/* ---------- Featured theme (Bootstrap 5 row/col handles layout) ---------- */
.mxyt-feat-card { cursor: pointer; }
.mxyt-feat-card .mxyt-thumb {
    position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000;
}
.mxyt-feat-card .mxyt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mxyt-feat-card:hover .mxyt-thumb img { opacity: .92; }
.mxyt-feat-title {
    margin-top: .55rem; font-size: 1.05rem; font-weight: 600; line-height: 1.3;
    color: var(--gray-900, #111);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mxyt-feat-main .mxyt-play { width: 64px; height: 64px; }
