/* --- Aparat Embed Base Styles --- */
.h_iframe-aparat_embed_frame {
    position: relative;
    width: 100%;
}
.h_iframe-aparat_embed_frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

/* --- Main Page Container --- */
.video-page-container {
    max-width: 1280px;
    margin: 0 auto;
}

.video-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* --- Main Video Player --- */
.video-embed-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* --- NEW Playlist Scroller Styles --- */
.playlist-container {
    width: 100%;
}

.playlist-scroller {
    display: flex;
    gap: 0.75rem; /* 12px */
    padding-bottom: 1rem; /* Space for scrollbar */
    overflow-x: auto; /* Enable horizontal scrolling */

    /* This makes scrolling smooth and snap to items */
    scroll-snap-type: x mandatory;
}

/* Hide scrollbar for a cleaner look */
.playlist-scroller::-webkit-scrollbar {
    display: none;
}
.playlist-scroller {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.playlist-item {
    flex: 0 0 auto; /* Prevent items from shrinking */
    scroll-snap-align: start; /* Snap items to the start of the container */

    cursor: pointer;
    border-radius: 9999px; /* Pill shape */
    border: 1px solid #e5e7eb; /* gray-200 */
    background-color: #f9fafb; /* gray-50 */
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 1.25rem; /* 8px 20px */
}

.playlist-item:hover {
    background-color: #f3f4f6; /* gray-100 */
    border-color: #d1d5db; /* gray-300 */
}

.playlist-item.active {
    background-color: var(--brand-secondary);
    color: white;
    border-color: var(--brand-secondary);
    font-weight: 600;
}

.playlist-title {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap; /* Keep title on one line */
}