.video-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Ahang3';
}

/* بخش ویدیو و پلی‌لیست */
.video-top {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* ریسپانسیو */
}

/* ویدیو */
.video-player {
    flex: 2 1 65%;
    /* حدود دو سوم عرض */
    min-width: 250px;
}

.video-player iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* پلی‌لیست */
.video-playlist {
    flex: 1 1 30%;
    /* حدود یک سوم عرض */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;

}

.video-playlist h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #fdffce !important;
    text-align: center;
    font-family: 'VazirFont';
    border-radius: 10px;
}

.video-playlist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-playlist li {
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
}

.video-playlist li:hover {
    transform: scale(1.03);
}

.video-playlist li img {
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.video-playlist li span {
    display: block;
    padding: 5px;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

/* دکمه لایک */
.like-section {
    margin: 20px 0;
}


/* کامنت‌ها */
.comment-section {
    margin-top: 30px;
}

.comment-section textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

.comment-section button {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    background-color: #fdffce;
    color: #fff;
    cursor: pointer;
}

.comment-section #comment-list {
    margin-top: 15px;
}

.comment-section .comment {
    background: #fdffce ;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.comment-section .no-comment {
    text-align: center;
    padding: 15px;
    background: #fdffce ;
    border-radius: 10px;
    color: #fff;
    margin: 10px 0;
}

.first-login{
    background: #fdffce;
    border-radius:15px;
    padding:5px 10px;
    width:fit-content;
    margin:auto;
    font-size:10pt;
    
}

/* ریسپانسیو */
@media (max-width: 900px) {

    .video-player,
    .video-playlist {
        flex: 1 1 100%;
        max-height: none;
        margin-top: 20px;
    }

    .video-player iframe {
        height: 300px;
    }
}

/* لیست آیتم‌های پلی‌لیست کوچک و جمع‌وجور */
.video-playlist li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    background: #2c2c2c;
    /* رنگ بک‌گراند آیتم */
    border-radius: 8px;
    padding: 5px 10px;
    transition: transform 0.2s;
    cursor: pointer;
    font-family: 'VazirFont';
}

.video-playlist li:hover {
    transform: scale(1.02);
}

.video-playlist li img {
    width: 50px;
    /* تصویر کوچک */
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.video-playlist li span {
    font-size: 8pt;
    /* متن کوچک‌تر */
    font-weight: 500;
    color: #fff;
}

/* عنوان پلی‌لیست */
.video-playlist h3 {
    margin: 0;
    padding: 8px 10px;
    background-color: #29986f;
    /* رنگ متمایز */
    color: #132728;
    font-size: 0.95rem;
    /* کمی کوچک‌تر */
    font-weight: 400;
    /* سبک‌تر */
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .video-top {
        flex-direction: column;
        display: block;
    }

    .video-player,
    .video-playlist {
        flex: 1 1 100%;
        max-height: none;
    }

    .video-player iframe {
        height: 300px;
    }
}

.no-related {
    display: block !important;
    text-align: center !important;
    color: #fff;
}

.like-section {
    margin-top: 20px;
}

#like-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    min-width: 90px;
    justify-content: center;
}

#like-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

#like-btn.liked {
    background: rgba(255, 0, 0, 0.12);
    border-color: rgba(255, 0, 0, 0.3);
    color: #d32f2f;
}

#like-btn.liked .heart {
    animation: likePulse 0.5s ease-out;
}

#like-btn.liked:hover {
    background: rgba(255, 0, 0, 0.18);
}

/* انیمیشن قلب وقتی لایک میشه */
@keyframes likePulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.4); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* قلب کمی بزرگ‌تر و زیباتر */
#like-btn .heart {
    font-size: 22px;
    transition: transform 0.2s ease;
    user-select: none;
}

#like-btn .like-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    user-select: none;
}

/* حالت دارک مود (اختیاری – اگه سایتت دارک هم داره) */
@media (prefers-color-scheme: dark) {
    #like-btn {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    #like-btn:hover {
        background: rgba(0, 0, 0, 0.35);
    }
    #like-btn.liked {
        background: rgba(211, 47, 47, 0.2);
        color: #ff4d4d;
    }
}

.heart {
    font-size: 22px;
}

.like-count {
    font-weight: bold;
}

.comment-section {
    margin-top: 30px;
}

#comment-text {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    resize: vertical;
    font-size: 14px;
    font-family: "ahang2";
}

#send-comment {
    padding: 8px 20px;
    background-color: #29986f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: "ahang2";
    display: block;
    margin: 10px auto 10px auto;
    transition: 0.2s;;
}

#send-comment:hover {
    background-color: #17694b;
}

#comment-list {
    margin-top: 20px;
}

.comment {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 14px;
}

.comment strong {
    font-weight: bold;
    margin-right: 5px;
}

.comment p {
    margin: 5px 0;
    line-height: 1.4;
}

.comment small {
    color: #888;
    font-size: 12px;
    display: block;
    text-align: left;
}

.no-comment {
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 10px;
    color: #132728 !important;
}

.video-playlist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-playlist li {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.video-playlist li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.video-playlist li:hover {
    background: rgba(108, 92, 231, 0.08);
    transform: translateX(-4px);
}

/* ویدیوی فعلی که در حال پخش است */
.video-playlist li.current-video {
    background-color: #fdffce;
    border-right: 4px solid var(--primary);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.15);
}

.video-playlist li.current-video a {
    font-weight: 600;
}

.playlist-thumb {
    position: relative;
    width: 100px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playing-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.playlist-info {
    flex: 1;
    min-width: 0;
}

.playlist-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.playlist-meta {
    font-size: 11px;
    color: #636e72;
}

.video-playlist li.current-video .playlist-title,
.video-playlist li.current-video .playlist-meta {
    color: var(--primary) !important;
    font-weight: 600;
}

/* حالت موبایل */
@media (max-width: 768px) {
    .playlist-thumb {
        width: 80px;
        height: 45px;
    }

    .playing-indicator {
        width: 28px;
        height: 28px;
    }

    .playing-indicator svg {
        width: 18px;
        height: 18px;
    }
}

.like-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.view-counter {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    min-width: 90px;
    justify-content: center;
    user-select: none;
    height: 54px;
    pointer-events: none; /* چون ویو معمولاً کلیک نداره */
}

.view-counter:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.view-counter .view-icon {
    font-size: 22px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.view-counter .view-count {
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

/* حالت دارک مود – کاملاً هماهنگ با لایک */
@media (prefers-color-scheme: dark) {
    .view-counter {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    .view-counter:hover {
        background: rgba(0, 0, 0, 0.35);
    }
}
.video-description-section {
    width: 100%;
    margin: 28px auto;
    padding: 0 0px;

}

.description-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #132728;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    
}

.description-title {
    font-family: 'ahang4', sans-serif;
    font-weight: 700;
    color: #29986f;
    margin: 0;
}

.toggle-desc-btn {
    background: none;
    border: none;
    color: #29986f;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-desc-btn:hover {
    background: rgba(41, 152, 111, 0.2);
}

.toggle-desc-btn svg {
    transition: transform 0.35s ease;
    display: block;
}

.toggle-desc-btn.active svg {
    transform: rotate(180deg);
}

.description-content {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 0 0 16px 16px;
    border: 1.8px solid #ffef00;
    border-top: none;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    max-height: 500px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: inset 0 2px 10px rgba(255, 239, 0, 0.15);
}

/* وقتی بسته است */
.description-content.collapsed {
    max-height: 0;
    padding: 0 24px;
    border: none;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .description-header {
        padding: 11px 16px;
        font-size: 17px;
    }
    .description-content {
        padding: 18px 20px;
        font-size: 14.8px;
    }
}
.view-icon{
    display:flex;
    align-items:center;
    justify-content:center;
}

.view-icon svg{
    width:20px;
    height:20px;

    stroke:currentColor;
    stroke-width:2;

    fill:none;

    opacity:.9;
}