/* Reset dasar */
.yts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yts-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.yts-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===============================
   THUMB
=================================*/
.yts-thumb .yts-play {
    display: flex !important;
    margin: 0 !important;
}

.yts-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    /* border-radius: 12px; */
    cursor: pointer;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.yts-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.yts-card:hover .yts-thumb img {
    transform: scale(1.05);
}

.yts-card h3 {
    font-size: 16px;
    margin: 10px;
    line-height: 1.3;
}

.yts-card > span {
    display: block;
    font-size: 12px;
    color: #555;
    margin: 0 10px 10px;
}

/* Responsive spacing */
@media (max-width: 600px) {
    .yts-grid {
        gap: 15px;
    }

    .yts-card h3 {
        font-size: 14px;
    }
}


/* Modal Styles 1 */
.yts-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
}

.yts-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
}

.yts-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.yts-video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

.yts-close {
    position: absolute;
    right: -10px;
    top: -40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
/* end of modal styles 1 */

/* ===== MODAL BACKDROP ===== */
.yts-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: ytsFade .3s ease;
}

/* ===== MODAL CONTENT ===== */
.yts-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transform: scale(.9);
    animation: ytsZoom .3s ease forwards;
}

.yts-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== PREMIUM CLOSE BUTTON ===== */
.yts-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,.4);
    transition: all .2s ease;
}

.yts-close:hover {
    transform: scale(1.1);
    background: #ff0000;
    color: #fff;
}

/* ===== ANIMATION ===== */
@keyframes ytsFade {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes ytsZoom {
    to {transform: scale(1);}
}
/* END OF MODAL STYLES */

/* ===============================
   PLAY OVERLAY
=================================*/

.yts-play {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.35);
    transition: background .3s ease;
}

/* Background lebih gelap saat hover */
.yts-card:hover .yts-play {
    background: rgba(0,0,0,0.55);
}


/* ===============================
   PLAY BUTTON IMAGE
=================================*/
.yts-play img {
    width: 72px;
    height: 72px;
    padding: 18px;
    background: rgba(255,0,0,0.9);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: all .3s ease;
    animation: ytsPulse 2.5s infinite ease-in-out;
}

/* Hover effect */
.yts-card:hover .yts-play img {
    transform: scale(1.15);
    background: #ff0000;
}


/* ===============================
   PULSE ANIMATION
=================================*/
@keyframes ytsPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,0,0,.6); }
    70%  { box-shadow: 0 0 0 20px rgba(255,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

/* .yts-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
} */

.yt-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 6px;
}

.yts-meta {
    font-size: 12px;
    color: #777;
    margin: 0 10px 10px;
}

.yts-thumb img {
    opacity: 0;
    transition: opacity .5s ease;
}

.yts-thumb img.loaded {
    opacity: 1;
}

/* ==========================
   CHANNEL HEADER
========================== */

.yts-channel-header {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    background: #fff;
}

.yts-banner img {
    width: 100%;
    /* max-height: 175px; */
    display: block;
    /* aspect-ratio: 16/5; */
    object-fit: cover;
}

.yts-channel-info {
    padding: 20px;
}

.yts-channel-info h2 {
    /* margin: 0 0 8px; */
    margin-bottom: 0;
    font-size: 22px;
}

.yts-meta-channel {
    color: #666;
    font-size: 14px;
    display: flex;
    /* gap: 10px; */
    align-items: center;
}

.yts-meta-desc {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    margin-bottom: 15px;
}

.yts-banner {
    position: relative;
}

.yts-avatar {
    position: absolute;
    bottom: -45px;
    left: 30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

.yts-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yts-channel-info {
    padding: 60px 20px 20px;
}

/* .yts-channel-info-title h2 {
    color: #29294B; !important;
} */

.yts-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    margin-bottom: 20px;
    width: 18px;
    height: 18px;
    background: #aaa; /* background: #1da1f2; */
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
}

.yts-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* background: #ff0000; */
    background: linear-gradient(135deg, #ff0000, #e60000);
    color: #fff;
    padding: 10px 18px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 6px 20px rgba(255,0,0,.4);
}

.yts-subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,0,0,.5);
}

.yts-yt-icon {
    width: 18px;
    height: 18px;
    display: flex;
}

.yts-yt-icon svg {
    width: 100%;
    height: 100%;
}

.yts-meta-separator {
    margin: 0 6px;
    color: #ccc;
}

/* ===============================
   RESPONSIVE
=================================*/

.yts-channel-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-top: 14px;
    max-width: 500px;
}

.yts-meta-box {
    background: rgba(0,0,0,0.05);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    transition: all .2s ease;
}

.yts-meta-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.yts-meta-number {
    display: block;
    font-weight: 700;
    font-size: 18px;
}

.yts-meta-text {
    font-size: 12px;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .yts-channel-meta {
        grid-template-columns: 1fr 1fr;
    }

    .yts-meta-box:last-child {
        grid-column: span 2;
    }
}

.header_button-box {
    position: relative;
    height: 50px;
}

.btn-style-one {
    position: relative;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    color: var(--white-color);
    font-size: var(--font-14);
    text-transform: capitalize;
    background-color: var(--main-color);
    overflow: hidden;
    border-radius: 5px;
    padding: 14px 30px;
}

.theme-btn, .tutor-btn {
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
}

.btn-style-one .btn-wrap {
    position: relative;
    z-index: 1;
    float: left;
    display: inline-block;
    overflow: hidden;
}

.btn-style-one .btn-wrap .text-one {
    position: relative;
    display: block;
    color: var(--white-color);
    transition: 0.3s;
}

.btn-style-one .btn-wrap .text-two {
    position: absolute;
    top: 100%;
    display: block;
    color: var(--white-color);
    transition: 0.3s;
}
