/* --- 動画グリッド --- */
.video-platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* PC用のギャップ */
    margin-bottom: 30px;
    justify-content: center;
}

.video-wrapper {
    width: calc(25% - 20px); /* PCでは4列表示 */
    cursor: pointer;
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 8px;
    background-color: #eee;
}

.video-wrapper img.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-wrapper:hover img.thumbnail {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px 10px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    font-size: 12px;
    border-radius: 0 0 8px 8px;
}

.video-overlay .organizer-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.video-info .video-title {
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-bottom: 2px;
}

.video-info .organizer-name {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px; /* アイコンサイズを少し大きく */
    pointer-events: none;
    z-index: 1;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-wrapper:hover .play-icon-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- SP表示用メディアクエリ --- */
@media (max-width: 767px) {
    .video-platform-grid {
        gap: 12px; /* SP用のギャップ */
    }
    .video-wrapper {
        width: calc(50% - 15px); /* SPでは2列表示 */
    }
    .video-overlay {
        padding: 10px 8px 6px;
        gap: 6px;
        font-size: 10px;
    }
    .video-overlay .organizer-icon {
        width: 20px;
        height: 20px;
    }
    .video-info .video-title {
        font-size: 11px;
    }
    .video-info .organizer-name {
        font-size: 10px;
    }
    .play-icon-overlay {
        font-size: 40px;
    }
}