﻿/* استایل‌های عمومی */
body {
    background-color: #1a1a1a;
    color: #fff;
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
}

.content-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .section-header h2 {
        font-size: 1.8rem;
    }

/* ======== ۱. استایل بخش پلیر ======== */
.main-player-section {
    background-color: #242424;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background-position: center;
    background-blend-mode: overlay;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .player-header h1 {
        font-size: 1.5rem;
        margin: 0;
    }

.back-button {
    color: #fff;
    font-size: 1.5rem;
}

.media-display {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

    .media-display img, .media-display video {
        width: 100%;
        display: block;
    }

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

    .icon-button:hover {
        color: #fff;
    }

.main-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.play-pause-button {
    background-color: #ffc107;
    color: #121212;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

    .play-pause-button:hover {
        transform: scale(1.05);
    }

    .play-pause-button .bi-play-fill {
        margin-right: -4px;
    }
/* Center the icon */

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.progress-bar {
    flex-grow: 1;
    height: 5px;
    background-color: #444;
    border-radius: 5px;
    cursor: pointer;
}

.progress {
    width: 35%; /* Example progress */
    height: 100%;
    background-color: #ffc107;
    border-radius: 5px;
}

/* ======== ۲. استایل بخش اطلاعات و تب‌ها ======== */
.content-info-section {
    margin-bottom: 3rem;
}

.info-tabs {
    border-bottom: 1px solid #444;
    margin-bottom: 1.5rem;
}

.tab-button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

    .tab-button.active, .tab-button:hover {
        color: #fff;
        border-bottom-color: #ffc107;
    }

.info-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: #ccc;
}


/* ======== ۳. استایل بخش محتوای مرتبط (Carousel) ======== */
.carousel-nav .nav-arrow {
    background-color: #333;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 0.25rem;
}

.related-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem; /* برای فضای اسکرول‌بار */
    /* مخفی کردن اسکرول‌بار برای ظاهر تمیزتر */
    scrollbar-width: none; /* Firefox */
}

    .related-carousel::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.related-card {
    flex: 0 0 180px; /* هر کارت عرض ثابتی دارد و کوچک نمی‌شود */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

    .related-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .related-card .card-title {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        padding: 1.5rem 0.75rem 0.75rem;
        font-size: 1rem;
    }

/* ======== طراحی ریسپانسیو ======== */
@media (max-width: 600px) {
    .content-page-container {
        padding: 0.5rem;
    }

    .main-player-section {
        padding: 1rem;
    }

    .player-header h1 {
        font-size: 1.2rem;
    }

    /* کوچک کردن دکمه‌های کناری و بزرگ کردن دکمه اصلی */
    .track-actions, .extra-controls {
        transform: scale(0.9);
    }

    .main-controls {
        gap: 0.5rem;
    }

    .related-card {
        flex-basis: 150px;
    }
    /* کوچک‌تر کردن کارت‌ها در موبایل */
    .section-header h2 {
        font-size: 1.5rem;
    }
}
.playback-speed-container {
    position: relative;
}

.speed-menu {
    position: absolute;
    bottom: 120%; /* نمایش در بالای دکمه */
    right: -65px;
    background-color: #333;
    color: white;
    border-radius: 5px;
    padding: 5px;
    width: 120px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(0);
}

    .speed-menu.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
    }

.speed-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 3px;
}

    .speed-option:hover {
        background-color: #555;
    }

    .speed-option.active {
        background-color: var(--accent-color, #0d6efd);
        font-weight: bold;
    }