.main-wrapper {
    padding-top: 90px;
    padding-right: 0;
    padding-bottom: 15px;
    padding-left: 0;
    /*overflow-x: hidden;*/
    /* Uncomment if horizontal overflow persists */
    position: relative;
    /* Ensures proper containment for absolute/fixed children */
}
.shorts-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Remove padding to fit within main-wrapper; rely on wrapper paddings */
    position: relative;
    overflow: hidden;
    height: calc(100vh - 105px);
    /* Adjust for main-wrapper's top (90px) + bottom (15px) paddings */
    /* Added for consistent full-viewport on desktop, minus wrapper offsets */ }
.shorts-scroll-area {
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; }
.shorts-scroll-area::-webkit-scrollbar {
    display: none; }
.shorts-track {
    width: 100%;
    max-width: 407px;
    height: 100%;
    /* Ensure it fills the scroll area without overflowing */ }
/* Fix for perfect viewport snapping across desktop/mobile */
.short-item {
    height: 100%;
    /* Use relative height to container, not fixed 100vh, to prevent overflow */
    min-height: calc(100vh - 105px);
    /* Minimum based on container height for snapping */
    padding: 0;
    /* Remove padding to eliminate extra space */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center; }
.video-card {
    position: relative;
    width: 100vh;
    max-width: 407px;
    max-height: 100%;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
mux-player {
    width: 100%;
    height: 100%;
    --controls: none;
    /* for Contain player - preserves aspect ratio without cropping */
    --media-object-fit: contain;
    --media-object-position: center; }
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10; }
.top-controls {
    position: absolute;
    top: 0;
    right: 0;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto; }
.shorts-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600; }
.report-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.bottom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: auto;
    z-index: 6; }
.author-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*background: rgba(0, 0, 0, 0.3);
padding: 10px 16px;*/
    border-radius: 10px;
    gap: 16px;
    color: white;
    max-width: 600px; }
/* Avatar styling */
.author-avatar {
    flex-shrink: 0; }
.author-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover; }
/* Author name/date */
.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex-grow: 1; }
.author-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.author-date {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
/* Subscribe button */
/* .subscribe-btn {
    background: #FFFFFF45;
    border: 1px solid #FFFFFF;
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 400;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    z-index: 1;
} */
/* Likes section */
.likes-container {
    display: flex;
    align-items: center;
    gap: 6px; }
.heart-icon {
    font-size: 18px;
    color: red; }
.likes-count {
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px; }
/* .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #fff;
    flex-shrink: 0;
} */
.author-info {
    flex: 1;
    min-width: 0; }
.author-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.author-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.subscribe-btn {
    background: #ffffff00;
    border: 1px solid #FFFFFF;
    color: #fff;
    padding: 8px 18px 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap; }
.subscribe-btn.subscribed {
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.2s; }
.video-description {
    color: #F9F9F9;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; }
.cta-button {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s; }
.cta-button:hover {
    background: #f0f0f0; }
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 20; }
.progress-fill {
    height: 100%;
    background: #ffa500;
    width: 0%;
    transition: width 0.1s linear; }
.side-controls {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: auto;
    z-index: 15; }
.side-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s; }
.side-action:active {
    transform: scale(0.9); }
.side-icon {
    font-size: 22px;
    transition: color 0.3s ease; }
.side-action .fa-heart {
    color: #fff;
    transition: color 0.3s ease; }
.side-action.liked .fa-heart {
    color: #ff0000 !important; }
.side-action.liked .fa-heart.fas{
    color: #ff0000 !important; }
.side-text {
    color: #fff;
    transition: color 0.3s ease;}
.side-text {
    font-size: 10px;
    font-weight: 400;
    position: relative;
    top: -5px; }
.nav-arrows {
    position: absolute;
    left: calc(50% + (435px / 2) + 16px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 15; }
.nav-arrows .arrow-btn.hidden {
    display: none; }
.arrow-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0);
    transition: all 0.2s; }
.arrow-btn:hover {
    background: #fff;
    transform: scale(1.1); }
.arrow-btn:active {
    transform: scale(0.95); }
.tap-area {
    position: absolute;
    top: 60px;
    left: 0;
    right: 60px;
    bottom: 120px;
    pointer-events: auto;
    z-index: 5;
    cursor: pointer; }
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    pointer-events: none;
    z-index: 20;
    animation: fadeOut 0.5s forwards; }
.play-pause-overlay.show {
    display: flex; }
@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}
/* @media (min-width: 768px) and (max-width: 860px) {
    .nav-arrows {
        right: 12%;
    }
} */
/* Mobile Responsive */
@media (max-width: 767px) {
.header{
    display: none;}
.main-wrapper {
    padding: 0 !important;
    /* Remove all padding */}
.shorts-container {
    padding: 0;
    height: 100dvh;
    /* Full viewport height */
    margin-top: 0;
    /* Ensure no top margin */}
.shorts-scroll-area {
    height: 100dvh;
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    width: 100%;}
.short-item {
    height: 100dvh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100dvh;}
.video-card {
    max-width: 100%;
    width: 100%;
    height: 100dvh;
    aspect-ratio: unset;
    border-radius: 0;}
mux-player {
    height: 100dvh; }
/* Make sure header floats on top */
.top-controls {
    width: 100%;
    padding: 20px 16px 16px 16px;
    padding-top: calc(10px + env(safe-area-inset-top));
    /* Add space for header */ }
.bottom-controls {
    padding: 16px;
    padding-bottom: calc(16px + max(0px, env(safe-area-inset-bottom))); }
.tap-area {
    bottom: calc(120px + max(0px, env(safe-area-inset-bottom)));
    top: calc(70px + env(safe-area-inset-top));
    /* Adjust for header */ }
.side-controls {
    right: 12px;
    bottom: calc(160px + max(0px, env(safe-area-inset-bottom)));
    top: auto;
    transform: none; }
.shorts-track {
    max-width: 100%; }
.nav-arrows {
    display: none;}
.author-name {
    font-size: 12px; }
.author-date {
    font-size: 10px; }
}