/* YoutunerプラグインのYouTube動画表示スタイル */
.youtuner-video-container {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.youtuner-video-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    /* 固定比率を使わず、動画本来のサイズに任せる */
}

.youtuner-video-wrapper iframe {
    width: 100%;
    height: 450px; /* レスポンシブな高さ */
    border: none;
    display: block;
}

.youtuner-video-footer {
    margin: 15px 0;
    padding: 10px;
    background: #fff;
    border-left: 4px solid #ff0000;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .youtuner-video-container {
        margin: 15px 0;
        padding: 10px;
    }
    
    .youtuner-video-wrapper {
        border-radius: 8px;
        margin: 15px 0;
    }
    
    .youtuner-video-wrapper iframe {
        height: 250px; /* モバイルでは高さを小さく */
    }
    
    .youtuner-video-footer {
        padding: 8px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .youtuner-video-wrapper iframe {
        height: 200px; /* 小さなモバイルではさらに小さく */
    }
}

/* 動画説明セクション */
.youtuner-description {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.youtuner-description h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.youtuner-description p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* 動画情報セクション */
.youtuner-video-info {
    margin: 15px auto;
    max-width: 800px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.youtuner-video-info .video-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.youtuner-video-info p {
    margin: 5px 0;
    padding: 5px 0;
}

.youtuner-video-info strong {
    color: #495057;
    font-weight: 600;
}

/* アフィリエイトバナーセクション */
.youtuner-affiliate-section {
    margin: 30px auto;
    max-width: 800px;
    text-align: center;
}

.youtuner-affiliate-banner {
    display: block;
    position: relative;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    padding: 0;
    border: none;
}

.youtuner-affiliate-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    text-decoration: none;
    color: white;
}

.youtuner-affiliate-banner-content {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.youtuner-affiliate-banner-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.youtuner-affiliate-banner-text {
    flex-grow: 1;
    text-align: left;
}

.youtuner-affiliate-banner-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
}

.youtuner-affiliate-banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    color: white;
}

.youtuner-affiliate-banner-arrow {
    flex-shrink: 0;
    font-size: 24px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.youtuner-affiliate-banner:hover .youtuner-affiliate-banner-arrow {
    transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    .youtuner-affiliate-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 15px;
    }
    
    .youtuner-affiliate-banner-text {
        text-align: center;
    }
    
    .youtuner-affiliate-banner-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .youtuner-affiliate-banner-title {
        font-size: 18px;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .youtuner-video-container {
        background: #2d2d2d;
        color: #fff;
    }
    
    .youtuner-video-footer {
        background: #3d3d3d;
        color: #fff;
    }
    
    .youtuner-description {
        background: #3d3d3d;
        border-color: #555;
        color: #fff;
    }
    
    .youtuner-description h3 {
        color: #f8f9fa;
        border-bottom-color: #667eea;
    }
    
    .youtuner-description p {
        color: #e9ecef;
    }
    
    .youtuner-video-info {
        background: #3d3d3d;
        border-color: #555;
        color: #fff;
    }
    
    .youtuner-video-info strong {
        color: #f8f9fa;
    }
    
    .youtuner-affiliate-section {
        background: linear-gradient(135deg, #ff4757, #3742fa);
    }
}