/* Layout */
.sss-layout {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    font-family: 'Arial', sans-serif;
}

/* Sidebar */
.sss-sidebar {
    width: 300px;
    max-height: 480px;
    overflow-y: auto;
    border-right: 2px solid #ddd;
    padding-right: 1rem;
    scroll-behavior: smooth;
}

.sss-sidebar h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.sss-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sss-sidebar li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.sss-sidebar li:hover {
    background: #f0f0f0;
}

.sss-sidebar li.active {
    background: #e5f3ff;
    font-weight: bold;
}

/* Thumbnail images */
.sss-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Main video panel */
.sss-main {
    flex: 1;
    min-width: 0;
}

.sss-video-container {
    margin-bottom: 2rem;
}

.sss-video-container h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.sss-video-container p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #555;
}

/* Placeholder styling */
#sss-placeholder {
    padding: 2rem;
    font-style: italic;
    color: #888;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sss-layout {
        flex-direction: column;
    }

    .sss-sidebar {
        width: 100%;
        max-height: 200px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border-right: none;
        border-bottom: 2px solid #ddd;
    }

    .sss-sidebar ul {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 0 10px;
    }

    .sss-sidebar li {
        flex-direction: column;
        align-items: center;
        min-width: 100px;
        padding: 0.5rem;
        text-align: center;
    }

    .sss-thumb {
        width: 100%;
        height: auto;
        max-height: 80px;
    }
}
