/* Base Layout */
.yt-gallery-wrap {
    position: relative;
    width: 100%;
    margin: 40px auto;
    box-sizing: border-box;
}

/* Card Styling (Shared) */
.yt-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.yt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Player Styling */
.youtube-player {
    width: 100%;
    height: 210px;
    background-color: #000;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}
.youtube-player::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 40px;
    background-color: #ff0000;
    border-radius: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    transition: transform 0.2s ease;
    pointer-events: none;
}
.youtube-player:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
}
.youtube-player.playing::after {
    display: none;
}

/* Content Styling */
.yt-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.yt-meta-wrap {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.yt-name-wrap {
    display: flex;
    flex-direction: column;
}
.yt-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #333;
}
.yt-status {
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

/* --- SLIDER LAYOUT --- */
.yt-layout-slider {
    padding: 0 50px;
    overflow: hidden;
}
.yt-layout-slider .yt-gallery-container {
    display: flex;
    transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px;
    padding: 10px 0;
}
.yt-layout-slider .yt-card {
    flex: 0 0 320px;
}
.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #e62117;
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(230, 33, 23, 0.4);
    transition: background 0.3s, transform 0.2s;
    z-index: 10;
}
.slider-button:hover {
    background: #c21c13;
    transform: translateY(-50%) scale(1.1);
}
.slider-button.prev { left: 0; }
.slider-button.next { right: 0; }

/* --- GRID LAYOUT --- */
.yt-layout-grid {
    padding: 0;
}
.yt-layout-grid .yt-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Responsive */
@media (max-width:760px) {
    .yt-layout-slider { padding: 0 10px; }
    .yt-layout-slider .yt-card { flex: 0 0 280px; }
    .youtube-player { height: 160px; }
    .slider-button { width: 32px; height: 32px; font-size: 16px; }
    .slider-button.prev { left: -10px; }
    .slider-button.next { right: -10px; }
    
    /* Grid on mobile */
    .yt-layout-grid .yt-gallery-container {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}
