/* YouTube Playlist Styles */
.hatch-yt-playlist {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 0;
}

.hatch-yt-featured {
    display: block;
    border: none;
    background: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
    margin-top: 45px;
}

.hatch-yt-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 7px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 14px rgba(0,0,0,0.15);
    background: #000;
}

.hatch-yt-thumb {
    width: 100%;
    height: 115%; /* zoom moderado para eliminar barras */
    object-fit: cover;
    object-position: center 22%;
    display: block;
    transform: translateY(-10%);
    border-radius: 7px !important;
    position: relative;
    z-index: 1;
}

.hatch-yt-play-btn {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    z-index: 2;
    pointer-events: none;
    display: grid;
    place-items: center;
}

.hatch-yt-play-btn::after {
    content: '';
    width: 36px;
    height: 36px;
    background: #000;
    clip-path: polygon(38% 30%, 38% 70%, 72% 50%);
    display: block;
}

.hatch-yt-title {
    position: relative;
    top: -30px;
    margin: 0 !important;
    padding-left: 10px !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #fff !important;
    text-align: left !important;
    display: block;
}

.hatch-yt-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hatch-yt-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 8px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hatch-yt-item .thumb {
    display: block;
    width: 100%;
    padding-top: 56%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: #f1f1f1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hatch-yt-item .thumb-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 25.6px;
    height: 25.6px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    pointer-events: none;
    z-index: 3;
    display: grid;
    place-items: center;
}

.hatch-yt-item .thumb-play::after {
    content: '';
    width: 21px;
    height: 21px;
    background: #000;
    clip-path: polygon(38% 30%, 38% 70%, 72% 50%);
    display: block;
    position: relative;
    left: 1px;
}

.hatch-yt-item .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    clip-path: polygon(38% 30%, 38% 70%, 72% 50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 2;
}

.hatch-yt-item .text {
    margin: 0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

.hatch-yt-item:hover {
    border-color: #f26122;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
    .hatch-yt-playlist { grid-template-columns: 1fr; }
    .hatch-yt-item { grid-template-columns: 100px 1fr; }
}

@media (max-width: 640px) {
    .hatch-yt-featured {
        margin-top: 0;
    }
    .hatch-yt-thumb {
        height: 110%;
        transform: translateY(-5%);
    }
    .hatch-yt-title {
        position: static;
        margin-top: 6px;
        padding-left: 0;
        font-size: 14px;
    }
    .hatch-yt-list {
        gap: 12px;
    }
}

/* Modal / Lightbox */
.hatch-yt-modal[hidden] { display: none; }
.hatch-yt-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hatch-yt-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hatch-yt-modal__dialog {
    position: relative;
    width: min(880px, 90vw);
    background: #111;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.hatch-yt-modal__embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.hatch-yt-modal__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hatch-yt-modal__title { display: none; }

.hatch-yt-modal__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    display: grid;
    place-items: center;
    z-index: 10;
}

.hatch-yt-no-scroll { overflow: hidden; }
