/*
 * VAST Video Player — stylesheet
 * File: assets/css/player.css
 */

/* Wrapper */
.vvp-wrapper {
    position: relative;
    width: 100%;
    margin: 0 0 1.5rem;
}

/* Make video-js fluid by default */
.vvp-player {
    width: 100% !important;
    height: auto !important;
}

/* Skip button */
.vvp-skip-btn {
    position: absolute;
    bottom: 60px;
    right: 12px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s;
}
.vvp-skip-btn:disabled {
    opacity: 0.7;
    cursor: default;
}
.vvp-skip-btn:not(:disabled):hover {
    background: rgba(0,0,0,0.95);
}

/* Playlist */
.vvp-playlist {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}
.vvp-playlist-item {
    flex: 0 0 140px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.15s;
    background: #111;
}
.vvp-playlist-item:hover {
    border-color: #aaa;
}
.vvp-playlist-item.vvp-active {
    border-color: #e00;
}
.vvp-playlist-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}
.vvp-playlist-item span {
    display: block;
    font-size: 11px;
    color: #eee;
    padding: 5px 6px;
    line-height: 1.3;
    max-height: 38px;
    overflow: hidden;
}

/* Related videos grid */
.vvp-related {
    margin-top: 2rem;
}
.vvp-related h3 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}
.vvp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.vvp-related-card {
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}
.vvp-related-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.vvp-related-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.vvp-related-card-title {
    font-size: 12px;
    padding: 6px 8px;
    line-height: 1.4;
}
.vvp-related-views {
    font-size: 11px;
    color: #666;
    padding: 0 8px 6px;
}

/* Error message */
.vvp-error {
    color: #c00;
    font-size: 13px;
    padding: 8px;
    border: 1px solid #fcc;
    border-radius: 4px;
    background: #fff5f5;
}
