/* tutorial-movie.css - チュートリアル動画再生ページ専用CSS */

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

.tutorial-movie-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: 60px;
}

.container {
    max-width: 1900px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   BREADCRUMB - パンくずリスト
   ========================================================================== */

.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb li::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: #008b5d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #52c7a6;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #666;
    font-weight: 500;
}

/* ==========================================================================
   MOVIE LAYOUT - メインレイアウト
   ========================================================================== */

.movie-container {
    padding: 0;
}

.movie-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ==========================================================================
   MOVIE MAIN - 左側メインコンテンツ
   ========================================================================== */

.movie-main {
    flex: 1;
    min-width: 0;
}

/* 動画プレイヤー */
.movie-player-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.movie-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.movie-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 動画情報 */
.movie-info {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.movie-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.movie-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #008b5d;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.view-count,
.date {
    color: #666;
    font-size: 14px;
}

/* 動画説明 */
.movie-description {
    margin-bottom: 30px;
}

.movie-description h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.movie-description h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.movie-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.movie-description ul {
    list-style: none;
    padding-left: 0;
}

.movie-description ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.movie-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #008b5d;
    font-weight: bold;
}

/* 動画コントロール */
.movie-controls {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.movie-controls button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.movie-controls button:hover {
    background: #f8f9fa;
    border-color: #008b5d;
    color: #008b5d;
}

.movie-controls button .icon {
    font-size: 18px;
}

.btn-bookmark.bookmarked {
    background: #008b5d;
    color: #fff;
    border-color: #008b5d;
}

/* チャプター */
.movie-chapters {
    margin-top: 30px;
}

.movie-chapters h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.chapter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-list li {
    margin-bottom: 2px;
}

.chapter-list a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.chapter-list a:hover {
    background: #e8f5e8;
    transform: translateX(5px);
}

.chapter-list .time {
    font-weight: 600;
    color: #008b5d;
    font-size: 14px;
    min-width: 50px;
}

.chapter-list .title {
    color: #333;
    font-size: 15px;
}

/* ==========================================================================
   MOVIE SIDEBAR - 右側サイドバー
   ========================================================================== */

.movie-sidebar {
    width: 400px;
    flex-shrink: 0;
}

.movie-sidebar h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
}

/* 関連動画 */
.related-videos {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.related-video-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.related-video-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.related-video-item .thumbnail {
    position: relative;
    width: 140px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
}

.related-video-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-video-item .duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.related-video-item .info {
    flex: 1;
    min-width: 0;
}

.related-video-item h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-video-item .meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

/* 次の動画 */
.next-video-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.next-video-card a {
    text-decoration: none;
    color: inherit;
}

.next-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #333;
}

.next-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.next-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-next {
    width: 100%;
    padding: 12px;
    background: #008b5d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-next:hover {
    background: #52c7a6;
}

/* ==========================================================================
   COMMENTS SECTION - コメントセクション
   ========================================================================== */

.comments-section {
    margin-top: 40px;
}

.comments-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.comment-form {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #008b5d;
}

.btn-submit {
    padding: 12px 30px;
    background: #008b5d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #52c7a6;
}

.comments-list {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.comment-author .name {
    font-weight: 600;
    color: #333;
}

.comment-author .date {
    color: #999;
    font-size: 14px;
    margin-left: auto;
}

.comment-content p {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .movie-layout {
        flex-direction: column;
    }
    
    .movie-sidebar {
        width: 100%;
    }
    
    .related-videos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-video-item {
        flex-direction: column;
    }
    
    .related-video-item .thumbnail {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .movie-title {
        font-size: 22px;
    }
    
    .movie-info {
        padding: 20px;
    }
    
    .movie-meta {
        gap: 15px;
    }
    
    .movie-controls {
        flex-direction: column;
    }
    
    .movie-controls button {
        width: 100%;
        justify-content: center;
    }
    
    .chapter-list a {
        padding: 12px 15px;
    }
    
    .related-videos {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .movie-title {
        font-size: 20px;
    }
    
    .movie-description h2 {
        font-size: 18px;
    }
    
    .movie-description h3 {
        font-size: 16px;
    }
    
    .chapter-list .time {
        min-width: 40px;
        font-size: 12px;
    }
    
    .chapter-list .title {
        font-size: 14px;
    }
    
    .comment-form textarea {
        min-height: 100px;
    }
}