/**
 * 動画プレイヤー用CSS
 * 
 * [snaf_restriction_content] ショートコードで使用
 * 
 * @version 1.0.0
 * @since 2024-12-22
 */

/* ================================
   動画コンテナ
   ================================ */
.snaf-video-container {
    margin: 1.5rem 0;
}

.snaf-video-container.locked {
    position: relative;
}

/* ================================
   動画プレイヤー
   ================================ */
.snaf-video-player {
    margin-bottom: 1rem;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.snaf-video-player video {
    width: 100%;
    max-height: 70vh;
    display: block;
}

.snaf-video-player.sample {
    border: 3px solid var(--main-color, #ED68A1);
}

.snaf-video-player.sample::before {
    content: 'サンプル';
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--main-color, #ED68A1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
}

/* ================================
   ロック表示（非会員向け）
   ================================ */
.snaf-video-locked {
    position: relative;
    min-height: 300px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.snaf-video-locked .lock-overlay {
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.snaf-video-locked .lock-icon {
    width: 64px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.snaf-video-locked .lock-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.snaf-video-locked p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
}

.snaf-video-locked .signup-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--main-color, #ED68A1) 0%, #ff8fab 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.snaf-video-locked .signup-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 104, 161, 0.4);
}

/* ================================
   制限コンテンツ全体
   ================================ */
.restriction_content {
    margin: 1.5rem 0;
}

.restriction_content.paid-member {
    /* 有料会員向けのスタイル */
}

.restriction_content.none-member {
    /* 一般ユーザー向けのスタイル */
}

.restriction_content .locked-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

/* ================================
   レスポンシブ対応
   ================================ */
@media (max-width: 768px) {
    .snaf-video-player video {
        max-height: 50vh;
    }

    .snaf-video-locked {
        min-height: 200px;
    }

    .snaf-video-locked .lock-icon {
        width: 48px;
    }

    .snaf-video-locked .lock-text {
        font-size: 1.2rem;
    }
}
