/* YouTube チャンネル ページスタイル - START TRUST カスタム */

/* コントロール */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.sort-box {
    min-width: 200px;
}

/* ローディング */
.loading {
    min-height: 200px;
}

/* 動画グリッド */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 アスペクト比 */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .play-icon {
    opacity: 1;
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #4A90E2;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.video-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #282828;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #606060;
}

.video-views::before {
    content: '👁 ';
}

.video-date::before {
    content: '📅 ';
}

/* Bootstrap Modal カスタマイズ */
#video-modal .modal-dialog {
    max-width: 90%;
}

#video-modal .modal-body {
    background: #000;
}

#video-modal .modal-footer {
    background: #f8f9fa;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .controls {
        flex-direction: column;
    }

    .search-box,
    .sort-box {
        width: 100%;
    }

}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

