body {
    margin: 0;
    background: #141414;
    font-family: Arial, sans-serif;
}

/* VIEWPORT */
.tube-viewport {
    width: 330px;
    height: 210px;
    overflow: hidden;
    position: relative;
}

/* TRACK */
.tube-track {
    position: absolute;
    top: 0;
    left: 0;
}

/* SLIDE */
.tube-slide {
    width: 330px;
    padding: 6px;
    box-sizing: border-box;
}

.tube-thumb {
    position: relative;
}

.tube-thumb img {
    width: 100%;
    display: block;
    border: 0;
}

/* TITLE (default vertical) */
.tube-title {
    margin-top: 4px;
    font-size: 12px;
    line-height: 14px;
}

.tube-title a {
    color: #ffffff;
    text-decoration: none;
}

.tube-title a:hover {
    text-decoration: underline;
}

/* OVERLAY TITLE (horizontal) */
.tube-title.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: rgba(0,0,0,0.65);
    font-size: 12px;
}

/* VERTICAL MODE */
.tube-viewport.vertical .tube-track {
    animation: slide-vertical 40s linear infinite;
}

@keyframes slide-vertical {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* HORIZONTAL MODE */
.tube-viewport.horizontal .tube-track {
    display: flex;
    animation: slide-horizontal 40s linear infinite;
}

@keyframes slide-horizontal {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
