/* 動画ページ用レイアウト */
.video-page-main {
    padding: 88px 16px 32px;
    max-width: 1400px;
    /* 動画がたくさん入るため広めに確保 */
    margin: 0 auto;
}

/* 4列のグリッドレイアウト (指定された |動画|動画|動画|動画| の枠組み) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* 動画ごとの枠 (Cards) */
.video-card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
        0 2px 2px 0 rgba(0, 0, 0, 0.14),
        0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
        0 8px 10px 1px rgba(0, 0, 0, 0.14),
        0 3px 14px 2px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    z-index: 1;
}

/* 動画部分のコンテナ保持(16:9) */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #000;
}

/* タイトルエリア */
.video-title-area {
    padding: 12px 16px;
}

.video-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    /* 長いタイトルを省略(...)するための設定 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* iframeの絶対配置設定 */
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* レスポンシブ対応 - 画面幅が狭い場合の列数自動調整 */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   インライン再生用サイバースタイル
   =================================================== */

/* 再生中のカード発光 */
.video-card.is-playing {
    border: 1px solid var(--neon-cyan, #00ffff);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* インライン再生プレースホルダー */
.inline-player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #110e20;
    background-size: cover;
    background-position: center;
    transition: all 0.25s ease;
}

.inline-player-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 25, 0.65);
    backdrop-filter: blur(2px);
    transition: background 0.25s ease;
}

.inline-player-placeholder:hover::before {
    background: rgba(10, 5, 25, 0.45);
}

/* プラットフォームバッジ (YouTube / Twitch) */
.platform-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-mono, monospace);
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    pointer-events: none;
}

.platform-badge.youtube {
    border-color: rgba(255, 0, 0, 0.5);
    color: #ff5252;
}

.platform-badge.twitch {
    border-color: rgba(191, 148, 255, 0.5);
    color: #bf94ff;
}

/* 中央のネオン再生ボタン */
.inline-play-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inline-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-cyan, #00ffff);
    color: var(--neon-cyan, #00ffff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inline-player-placeholder:hover .inline-play-btn {
    transform: scale(1.12);
    background: rgba(0, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

.inline-play-label {
    font-size: 0.75rem;
    font-family: var(--font-display, monospace);
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 10px;
    border-radius: 10px;
}

/* タイトル行レイアウト */
.video-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.video-ext-btn {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.video-ext-btn:hover {
    color: var(--neon-cyan, #00ffff);
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}