/* ---------------------------------------------------------------
   Safehouse Auto Discography - Video Archive Additions
   Loaded on top of single-artist.css on the /videolar/ page.
   --------------------------------------------------------------- */

/* 16:9 video thumbnails */
.sad-video-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #141418;
}

.sad-video-thumb-wrapper .sad-graffiti-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Badge (top-left) and year (top-right) overlaid on the thumbnail */
.sad-video-thumb-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sad-video-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 3px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: rgba(255, 0, 0, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.sad-video-thumb-year {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 9px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Bottom card area: title only */
.sad-video-card-meta {
    padding: 14px 16px;
}

.sad-video-card-meta .sad-graffiti-card-title {
    margin: 0 !important;
}

.sad-video-card:hover .sad-video-thumb-wrapper .sad-graffiti-thumb-img {
    transform: scale(1.08);
}

/* Placeholder for items without a featured image */
.sad-video-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #141418 0%, #1e1e24 100%);
}

.sad-video-ph-title {
    font-family: 'Anton', sans-serif !important;
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    padding: 20px;
    letter-spacing: 1px;
}

/* Hover overlay with play button */
.sad-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(11, 11, 13, 0.88) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.sad-video-card:hover .sad-video-overlay {
    opacity: 1;
}

.sad-video-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff0000;
    color: #ffffff;
    font-family: 'Cousine', monospace !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.sad-video-card:hover .sad-video-play-btn {
    transform: translateY(0);
}

.sad-video-play-btn svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
}

/* ---------------------------------------------------------------
   Video Player Modal
   --------------------------------------------------------------- */

.sad-video-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sad-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.sad-video-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sad-video-dialog {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: #0b0b0d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    transform: translateY(16px);
    transition: transform 0.3s ease;
}

.sad-video-modal.active .sad-video-dialog {
    transform: translateY(0);
}

.sad-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.sad-video-close:hover {
    background: #ff0000;
    border-color: #ff0000;
    transform: scale(1.08);
}

.sad-video-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.sad-video-frame-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border: 0;
    display: block;
}

.sad-video-caption {
    display: none;
    padding: 14px 20px;
    font-family: 'Cousine', monospace !important;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: #141418;
    border-top: 1px solid rgba(255, 0, 0, 0.35);
}

@media (max-width: 600px) {
    .sad-video-modal {
        padding: 16px;
    }
}