:root {
    --shorts-bg: #000;
    --shorts-text: #fff;
    --nav-height: 60px;
    --accent-color: #ff0000;
}

body.page-template-page-shorts {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--shorts-bg);
    color: var(--shorts-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.shorts-container {
    width: 100%;
    height: 100dvh;
    padding-bottom: var(--nav-height);
    box-sizing: border-box;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.yt-player, 
.video-placeholder iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
    /* transform: scale(1.2); */
}

.yt-player.loaded,
.video-placeholder iframe.loaded {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.video-overlay * {
    pointer-events: auto;
}

.video-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    max-width: 85%;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-controls {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.video-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
}

.video-controls button:active {
    background: rgba(255, 255, 255, 0.4);
}

/* Mask to capture Swiper events and prevent Iframe UI interaction */
.video-interaction-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Above the player, below the controls */
    background: transparent;
}

.shorts-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: #000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    border-top: 1px solid #222;
}

.shorts-footer-nav .nav-item {
    color: #aaa; /* Lighter gray for visibility */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.shorts-footer-nav .nav-item:hover {
    color: #ddd;
}

.shorts-footer-nav .nav-item.active {
    color: #fff;
}

.shorts-footer-nav .nav-item.active .dashicons {
    color: var(--accent-color);
}

.shorts-footer-nav .nav-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    /* margin-bottom: 4px; */
}

@media (min-width: 768px) {
    .shorts-container {
        max-width: 450px;
        margin: 0 auto;
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }
}
