/* =========================================
   LigoGame Custom Player - Pastel Purple
   کادر بنفش پاستلی + کنسول روشن
========================================= */

.tv-section-container {
    max-width: 850px;
    margin: 30px auto 60px;
    padding: 0 15px;
    direction: rtl;
    font-family: "Vazirmatn", sans-serif;
}

.tv-section-header {
    text-align: center;
    margin-bottom: 25px;
}

.tv-header-title {
    font-size: 24px;
    font-weight: 900;
    color: #4c1d95;
    margin: 0 0 6px;
}

.tv-header-desc {
    font-size: 14px;
    color: #6d28d9;
    margin: 0;
    font-weight: 600;
}

/* ----------------- قاب کل دستگاه (بنفش پاستلی روشن) ----------------- */
.ligo-player-device {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: 24px;
    padding: 14px;
    box-shadow:
        0 15px 35px rgba(139, 92, 246, 0.12),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd6fe;
}

/* ----------------- صفحه نمایش ----------------- */
.ligo-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
    border: 2px solid #c4b5fd;
}

.ligo-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ligo-live-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ----------------- کنسول پایین (روشن و ملایم) ----------------- */
.ligo-console {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
    border-radius: 16px;
    margin-top: 14px;
    padding: 16px 20px;
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.9),
        0 6px 15px rgba(139, 92, 246, 0.08);
    border: 1px solid #ddd6fe;
}

/* نوار زمان (تایم‌لاین) */
.ligo-timeline-wrapper {
    margin-bottom: 14px;
}

.ligo-timeline {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.ligo-timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8b5cf6; /* دکمه بنفش توپر */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    border: 2px solid #fff;
}

/* دکمه‌های کنترلی */
.ligo-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ligo-left-controls {
    display: flex;
    gap: 10px;
}

/* دکمه‌های معمولی (پلی) */
.ligo-btn {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    border: 1px solid #7c3aed;
    color: #fff;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    box-shadow: 0 4px 0 #5b21b6;
}

.ligo-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    transform: translateY(-1px);
}

.ligo-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #5b21b6;
}

/* ⭐ دکمه تمام‌صفحه (طلایی شیک) */
#ligo-fullscreen-btn {
    min-width: 54px;
    height: 44px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: 1px solid #d97706;
    color: #78350f;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 4px 0 #b45309;
    padding: 0 10px;
}

#ligo-fullscreen-btn:hover {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    color: #451a03;
}

#ligo-fullscreen-btn:active {
    box-shadow: 0 0 0 #b45309;
}

/* ----------------- لیست کشویی (رو به بالا) ----------------- */
.ligo-playlist-dropdown {
    position: relative;
    width: 60%;
    max-width: 320px;
}

.ligo-btn-primary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: 1px solid #5b21b6;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 0 #4c1d95;
    transition: all 0.15s;
}

.ligo-btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #4c1d95;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: right;
}

/* منوی رو به بالا */
.ligo-playlist-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 -12px 30px rgba(139, 92, 246, 0.15);
    border: 2px solid #ddd6fe;
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
}

.ligo-playlist-menu.show {
    display: flex;
    animation: menuUp 0.2s ease;
}

@keyframes menuUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.ligo-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f3e8ff;
    transition: background 0.15s;
}

.ligo-playlist-item:last-child {
    border-bottom: none;
}

.ligo-playlist-item:hover {
    background: #f5f3ff;
}

.ligo-playlist-item.active {
    background: #ede9fe;
}

.pl-num {
    background: #ddd6fe;
    color: #5b21b6;
    font-size: 11px;
    font-weight: 900;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.ligo-playlist-item.active .pl-num {
    background: #8b5cf6;
    color: #fff;
}

.pl-title {
    font-size: 12px;
    font-weight: 800;
    color: #1e293b;
}

.ligo-playlist-item.active .pl-title {
    color: #5b21b6;
}

@media (max-width: 600px) {
    .ligo-playlist-dropdown {
        width: 55%;
    }

    .ligo-btn-primary {
        font-size: 11px;
        padding: 10px 12px;
    }

    #ligo-fullscreen-btn {
        min-width: 48px;
        font-size: 12px;
        padding: 0 8px;
    }
}