﻿/* ============================================
           VIDEO PLAYER — نسخه سفید
           ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    direction: rtl;
    padding: 20px;
    min-height: 100vh;
}

/* ============================================
           BREADCRUMB
           ============================================ */
.breadcrumb-section {
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .breadcrumb-section a {
        color: #003366;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .breadcrumb-section a:hover {
            color: #F4B400;
        }

    .breadcrumb-section .separator {
        color: #d1d5db;
    }

    .breadcrumb-section .current {
        color: #6b7280;
        font-size: 0.9rem;
    }

/* ============================================
           VIDEO PLAYER
           ============================================ */
.video-player-wrapper {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .video-player-wrapper .video-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 */
        background: #000;
    }

        .video-player-wrapper .video-container video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
        }

    /* Custom Video Controls */
    .video-player-wrapper .video-controls {
        padding: 16px 24px;
        background: #f8fafc;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
        border-top: 1px solid #f0f2f5;
    }

        .video-player-wrapper .video-controls .control-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            background: #f0f2f5;
            color: #003366;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .video-player-wrapper .video-controls .control-btn:hover {
                background: #F4B400;
                color: #003366;
                transform: scale(1.05);
            }

        .video-player-wrapper .video-controls .progress-bar {
            flex: 1;
            height: 4px;
            background: #e5e7eb;
            border-radius: 4px;
            position: relative;
            cursor: pointer;
            min-width: 100px;
        }

            .video-player-wrapper .video-controls .progress-bar .progress-fill {
                height: 100%;
                width: 0%;
                background: #F4B400;
                border-radius: 4px;
                transition: width 0.1s linear;
            }

            .video-player-wrapper .video-controls .progress-bar .progress-dot {
                position: absolute;
                top: 50%;
                right: 0%;
                transform: translate(-50%, -50%);
                width: 14px;
                height: 14px;
                background: #F4B400;
                border-radius: 50%;
                border: 2px solid #fff;
                box-shadow: 0 4px 15px rgba(244, 180, 0, 0.4);
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .video-player-wrapper .video-controls .progress-bar:hover .progress-dot {
                opacity: 1;
            }

        .video-player-wrapper .video-controls .time-display {
            font-size: 0.85rem;
            color: #6b7280;
            font-family: monospace;
            min-width: 100px;
            text-align: center;
        }

        .video-player-wrapper .video-controls .volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .video-player-wrapper .video-controls .volume-control input[type="range"] {
                width: 60px;
                height: 4px;
                -webkit-appearance: none;
                background: #e5e7eb;
                border-radius: 4px;
                outline: none;
            }

                .video-player-wrapper .video-controls .volume-control input[type="range"]::-webkit-slider-thumb {
                    -webkit-appearance: none;
                    width: 12px;
                    height: 12px;
                    border-radius: 50%;
                    background: #F4B400;
                    cursor: pointer;
                }

        .video-player-wrapper .video-controls .quality-select {
            background: #f0f2f5;
            color: #003366;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 6px 12px;
            font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
            font-size: 0.8rem;
            cursor: pointer;
            outline: none;
        }

/* ============================================
           VIDEO INFO
           ============================================ */
.video-info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

    .video-info-section .video-info {
        flex: 2;
        min-width: 280px;
        background: #ffffff;
        padding: 24px 28px;
        border-radius: 16px;
        border: 1px solid #f0f2f5;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

        .video-info-section .video-info .video-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 14px;
            border-radius: 50px;
            background: rgba(244, 180, 0, 0.12);
            color: #F4B400;
            font-size: 0.75rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .video-info-section .video-info h2 {
            font-weight: 800;
            font-size: 1.6rem;
            margin-bottom: 8px;
            color: #003366;
        }

        .video-info-section .video-info .video-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 14px;
        }

            .video-info-section .video-info .video-meta span {
                display: flex;
                align-items: center;
                gap: 6px;
                color: #6b7280;
                font-size: 0.85rem;
            }

                .video-info-section .video-info .video-meta span i {
                    color: #F4B400;
                }

        .video-info-section .video-info .video-description {
            color: #6b7280;
            font-size: 0.95rem;
            line-height: 1.8;
        }

    /* ============================================
           SIDEBAR
           ============================================ */
    .video-info-section .video-sidebar {
        flex: 1;
        min-width: 250px;
        background: #ffffff;
        padding: 20px 22px;
        border-radius: 16px;
        border: 1px solid #f0f2f5;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    }

        .video-info-section .video-sidebar .sidebar-title {
            font-weight: 700;
            font-size: 1rem;
            color: #003366;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .video-info-section .video-sidebar .sidebar-title i {
                color: #F4B400;
            }

        .video-info-section .video-sidebar .related-video {
            display: flex;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid #f0f2f5;
            cursor: pointer;
            transition: all 0.3s ease;
        }

            .video-info-section .video-sidebar .related-video:hover {
                padding-right: 8px;
            }

            .video-info-section .video-sidebar .related-video:last-child {
                border-bottom: none;
            }

            .video-info-section .video-sidebar .related-video .rv-thumb {
                width: 120px;
                height: 68px;
                border-radius: 8px;
                overflow: hidden;
                flex-shrink: 0;
                background: #f0f2f5;
                position: relative;
            }

                .video-info-section .video-sidebar .related-video .rv-thumb img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

                .video-info-section .video-sidebar .related-video .rv-thumb .rv-duration {
                    position: absolute;
                    bottom: 4px;
                    right: 4px;
                    background: rgba(0, 0, 0, 0.7);
                    color: #fff;
                    font-size: 0.6rem;
                    padding: 2px 8px;
                    border-radius: 4px;
                    font-weight: 600;
                }

            .video-info-section .video-sidebar .related-video .rv-info {
                flex: 1;
            }

                .video-info-section .video-sidebar .related-video .rv-info h6 {
                    font-weight: 600;
                    font-size: 0.85rem;
                    color: #003366;
                    margin-bottom: 2px;
                    line-height: 1.3;
                }

                .video-info-section .video-sidebar .related-video .rv-info .rv-meta {
                    font-size: 0.7rem;
                    color: #9ca3af;
                }

/* ============================================
           COMMENTS SECTION
           ============================================ */
.comments-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 30px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

    .comments-section .comments-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f2f5;
    }

        .comments-section .comments-header h4 {
            font-weight: 700;
            font-size: 1.1rem;
            color: #003366;
        }

            .comments-section .comments-header h4 i {
                color: #F4B400;
                margin-left: 8px;
            }

        .comments-section .comments-header .comments-count {
            color: #9ca3af;
            font-size: 0.85rem;
        }

    /* Comment Form */
    .comments-section .comment-form {
        display: flex;
        gap: 12px;
        margin-bottom: 24px;
    }

        .comments-section .comment-form .comment-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #003366, #0a4d8c);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            flex-shrink: 0;
        }

        .comments-section .comment-form .comment-input-wrapper {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

            .comments-section .comment-form .comment-input-wrapper input {
                flex: 1;
                min-width: 150px;
                padding: 12px 16px;
                border-radius: 12px;
                border: 2px solid #e5e7eb;
                background: #fafafa;
                color: #1a1a2e;
                font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
                font-size: 0.9rem;
                outline: none;
                transition: all 0.4s ease;
            }

                .comments-section .comment-form .comment-input-wrapper input::placeholder {
                    color: #9ca3af;
                }

                .comments-section .comment-form .comment-input-wrapper input:focus {
                    border-color: #F4B400;
                    background: #ffffff;
                    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.08);
                }

            .comments-section .comment-form .comment-input-wrapper button {
                padding: 12px 24px;
                border: none;
                border-radius: 12px;
                background: linear-gradient(135deg, #F4B400, #d49d00);
                color: #003366;
                font-weight: 700;
                font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
                font-size: 0.9rem;
                cursor: pointer;
                transition: all 0.4s cubic-bezier(.34, 1.56, .64, 1);
                white-space: nowrap;
            }

                .comments-section .comment-form .comment-input-wrapper button:hover {
                    transform: scale(1.02);
                    box-shadow: 0 4px 20px rgba(244, 180, 0, 0.3);
                }

    /* Comment Item */
    .comments-section .comment-item {
        display: flex;
        gap: 12px;
        padding: 14px 0;
        border-bottom: 1px solid #f0f2f5;
    }

        .comments-section .comment-item:last-child {
            border-bottom: none;
        }

        .comments-section .comment-item .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #7e56c6, #5a3a9e);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        .comments-section .comment-item .comment-body {
            flex: 1;
        }

            .comments-section .comment-item .comment-body .comment-header {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 10px;
                margin-bottom: 4px;
            }

                .comments-section .comment-item .comment-body .comment-header .comment-name {
                    font-weight: 700;
                    color: #003366;
                    font-size: 0.9rem;
                }

                .comments-section .comment-item .comment-body .comment-header .comment-date {
                    color: #9ca3af;
                    font-size: 0.75rem;
                }

            .comments-section .comment-item .comment-body .comment-text {
                color: #6b7280;
                font-size: 0.9rem;
                line-height: 1.7;
            }

            .comments-section .comment-item .comment-body .comment-actions {
                display: flex;
                gap: 14px;
                margin-top: 6px;
            }

                .comments-section .comment-item .comment-body .comment-actions button {
                    background: none;
                    border: none;
                    color: #9ca3af;
                    font-size: 0.8rem;
                    cursor: pointer;
                    transition: color 0.3s ease;
                    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
                    display: flex;
                    align-items: center;
                    gap: 4px;
                }

                    .comments-section .comment-item .comment-body .comment-actions button:hover {
                        color: #F4B400;
                    }

                    .comments-section .comment-item .comment-body .comment-actions button.liked {
                        color: #F4B400;
                    }

/* ============================================
           RESPONSIVE
           ============================================ */
@media (max-width: 992px) {
    .video-info-section {
        flex-direction: column;
    }

        .video-info-section .video-sidebar {
            min-width: unset;
        }

            .video-info-section .video-sidebar .related-video .rv-thumb {
                width: 100px;
                height: 56px;
            }
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .video-player-wrapper .video-controls {
        padding: 12px 16px;
        gap: 10px;
    }

        .video-player-wrapper .video-controls .control-btn {
            width: 34px;
            height: 34px;
            font-size: 0.85rem;
        }

        .video-player-wrapper .video-controls .time-display {
            font-size: 0.7rem;
            min-width: 70px;
        }

        .video-player-wrapper .video-controls .volume-control input[type="range"] {
            width: 40px;
        }

    .video-info-section .video-info {
        padding: 18px 20px;
    }

        .video-info-section .video-info h2 {
            font-size: 1.2rem;
        }

        .video-info-section .video-info .video-meta {
            gap: 10px;
        }

            .video-info-section .video-info .video-meta span {
                font-size: 0.75rem;
            }

    .comments-section {
        padding: 16px 18px;
    }

        .comments-section .comment-form {
            flex-direction: column;
        }

            .comments-section .comment-form .comment-avatar {
                display: none;
            }

            .comments-section .comment-form .comment-input-wrapper input {
                min-width: unset;
            }

            .comments-section .comment-form .comment-input-wrapper button {
                width: 100%;
                justify-content: center;
            }

    .breadcrumb-section {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .video-player-wrapper .video-controls .quality-select {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .video-player-wrapper .video-controls {
        flex-wrap: wrap;
        justify-content: center;
    }

        .video-player-wrapper .video-controls .progress-bar {
            order: 10;
            flex-basis: 100%;
            min-width: unset;
        }

        .video-player-wrapper .video-controls .time-display {
            order: 9;
            min-width: unset;
            font-size: 0.7rem;
        }

        .video-player-wrapper .video-controls .volume-control {
            order: 8;
        }

            .video-player-wrapper .video-controls .volume-control input[type="range"] {
                width: 30px;
            }

    .video-info-section .video-info {
        padding: 14px 16px;
    }

        .video-info-section .video-info h2 {
            font-size: 1rem;
        }

        .video-info-section .video-info .video-description {
            font-size: 0.85rem;
        }

    .video-info-section .video-sidebar {
        padding: 14px 16px;
    }

        .video-info-section .video-sidebar .related-video .rv-thumb {
            width: 80px;
            height: 45px;
        }

        .video-info-section .video-sidebar .related-video .rv-info h6 {
            font-size: 0.75rem;
        }

    .comments-section .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .comments-section .comment-item {
        flex-direction: column;
    }

        .comments-section .comment-item .comment-avatar {
            width: 32px;
            height: 32px;
            font-size: 0.7rem;
        }

    .breadcrumb-section {
        font-size: 0.7rem;
        padding: 8px 12px;
        gap: 6px;
    }

        .breadcrumb-section .separator {
            display: none;
        }
}

/* ============================================
           SCROLLBAR
           ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
}

::-webkit-scrollbar-thumb {
    background: #F4B400;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #d49d00;
    }
