.vt-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
}

.vt-card:hover {
    transform: translateY(-5px);
}

.vt-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.vt-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    transition: background-color 0.4s ease, opacity 0.4s ease;
    z-index: 2;
}

.vt-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    pointer-events: none; /* Let clicks pass through to vt-card */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vt-play-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.vt-play-symbol {
    color: #111;
    font-size: 16px;
    margin-left: 3px;
}

.vt-card:hover .vt-play-icon {
    transform: scale(1.1);
    background-color: #ffffff;
}

.vt-info {
    width: 100%;
}

.vt-name {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.vt-role {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.vt-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-style: italic;
}

/* Custom Controls Bar */
.vt-custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 5;
    padding: 10px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.vt-card.is-playing .vt-custom-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Progress bar scrubber */
.vt-progress-container {
    height: 5px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: center;
}

.vt-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.vt-progress-filled {
    height: 100%;
    width: 0%;
    background-color: #ff0000; /* YouTube Red color */
    border-radius: 3px;
    position: relative;
}

.vt-progress-filled::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: #ff0000;
    border-radius: 50%;
    transition: transform 0.1s ease;
}

.vt-progress-container:hover .vt-progress-filled::after {
    transform: translateY(-50%) scale(1);
}

.vt-controls-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vt-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.vt-btn:hover {
    transform: scale(1.1);
}

.vt-play-pause-btn {
    font-size: 14px;
    width: 25px;
}

.vt-time-display {
    color: #ddd;
    font-size: 12px;
    font-family: monospace;
    flex-grow: 1;
    user-select: none;
}

.vt-fullscreen-btn {
    margin-left: auto;
}

.vt-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 6;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Playing State styling */
.vt-card.is-playing {
    cursor: default;
}

.vt-card.is-playing .vt-overlay {
    background-color: rgba(0, 0, 0, 0) !important;
}

.vt-card.is-playing .vt-content {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.vt-card.is-playing .vt-close-btn {
    opacity: 1;
    transform: scale(1);
}

.vt-card.is-playing .vt-video {
    object-fit: contain; /* Full video presentation when playing with sound */
    background: #000;
}

.vt-error-msg {
    padding: 20px;
    background: #fff8f8;
    border: 1px solid #ffcccc;
    color: #d00;
    text-align: center;
    border-radius: 4px;
}
