/* S3 Video Public Styles */
.s3-video-container {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

.s3-video-container video {
    width: 100%;
    height: auto;
    max-width: 100%;
    background: #000;
}

.s3-video-gallery {
    margin: 20px 0;
}

.s3-video-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.s3-video-item {
    padding: 0 15px;
    margin-bottom: 30px;
}

.s3-video-col-1 {
    width: 100%;
}

.s3-video-col-2 {
    width: 50%;
}

.s3-video-col-3 {
    width: 33.333%;
}

.s3-video-col-4 {
    width: 25%;
}

.s3-video-thumbnail {
    position: relative;
    margin-bottom: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.s3-video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.s3-video-placeholder {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #e0e0e0;
    position: relative;
}

.s3-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s3-video-play-button:before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

.s3-video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 12px;
}

.s3-video-title {
    font-size: 16px;
    margin: 0 0 5px 0;
}

.s3-video-title a {
    color: #333;
    text-decoration: none;
}

.s3-video-title a:hover {
    color: #0073aa;
}

.s3-video-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.s3-video-error {
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Filter styles */
.s3-video-filters {
    margin-bottom: 20px;
}

.filter-label {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.s3-video-categories {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.s3-video-categories li {
    display: inline-block;
    margin-right: 10px;
}

.s3-video-categories a {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.s3-video-categories a:hover,
.s3-video-categories a.active {
    background: #0073aa;
    color: #fff;
}

/* Single video page */
.s3-video-meta {
    margin: 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.s3-video-tags {
    margin: 15px 0;
}

.s3-related-videos {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.s3-related-videos h2 {
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .s3-video-col-3, .s3-video-col-4 {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .s3-video-col-2, .s3-video-col-3, .s3-video-col-4 {
        width: 100%;
    }
}