/*
Theme Name: StreamTube Child
Description: Video WordPress Theme.
Author: phpface
Theme URI: https://1.envato.market/qny3O5
Author URI: https://1.envato.market/mgXE4y
Version: 1.0.0
Requires at least: 5.3
Tested up to: 5.8
Requires PHP: 5.6
License: Themeforest Licence
License URI: http://themeforest.net/licenses
Text Domain: streamtube-child
Template:  streamtube
Tags: two-columns, one-column, custom-menu, custom-logo, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/
#pmpro_user_fields .pmpro_form_field-password,
.pmpro_section #loginform .login-password {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	grid-template-areas: none !important;
	grid-template-columns: none !important;
}

#pmpro_user_fields .pmpro_form_field-password-toggle,
.pmpro_section #loginform .pmpro_form_field-password-toggle {
	margin-top: 0.3rem;
	justify-self: start;
}

/* ========== SPABIE Live Stream Section ========== */
.spabie-live-streams {
    padding: 30px 10px;
    background: #111;
    text-align: center;
}

.spabie-live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 per row */
    gap: 20px;
    justify-content: start; /* align items to top-left instead of center */
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .spabie-live-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive on tablet+ */
    }
}

.spabie-live-card {
    position: relative;
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.spabie-live-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.spabie-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 2;
}

.spabie-live-caption {
    padding: 12px;
    font-size: 14px;
    color: #fff;
}

.spabie-live-watch {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #e93b9b;
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 2;
}

.spabie-live-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
/* Animation keyframes */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOutSlide {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* Animation classes */
.fade-in {
    animation: fadeInSlide 0.3s ease forwards;
}

.fade-out {
    animation: fadeOutSlide 0.3s ease forwards;
}

.hidden {
    display: none !important;
}
/* Responsive live card grid (placeholders + real live cards) */
.spabie-live-streams-placeholder,
.spabie-live-streams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    justify-content: start; /* align items to top-left instead of center */
    max-width: 900px; /* optional: limit max width */
    margin: 0 auto; /* center block horizontally */
}

/* Optional: live card styling for consistency */
.spabie-live-card {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.spabie-live-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slide in from right */
.spabie-live-card.slide-in {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Slide out to right */
.spabie-live-card.slide-out {
    animation: slideOutRight 0.6s ease-in forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/** Site Main content  */
.content-container-fluid.header-template-1 .site-main {
    margin-top: 70px;
}

/** Site Main content  */
body.home.content-container-fluid.header-template-1 .site-main {
    margin-top: 10px;
}