/* =============================================
   mobile.css — mobile-style header up to 1499px,
   full mobile layout (feed, cards) up to 768px.
   ============================================= */

/* ===== MOBILE-STYLE HEADER (applies to phones, iPads, small laptops) ===== */
@media (max-width: 1499px) {

/* ===== HIDE MINI CAM ON MOBILE ===== */
#miniCamPlayer { display: none !important; }

/* ===== NAVBAR ===== */
#mainNavbar {
    height: 50px;
    padding: 0 12px;
}

/* Hide desktop horizontal nav on mobile */
#mainNavbar .desktop-menu { display: none !important; }
#mainNavbar .nav-right .search-wrap { display: none !important; }

/* Show right hamburger only on mobile */
#mainNavbar #openNavMenu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #f1f1f1;
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
}
#mainNavbar #openNavMenu:active { color: #ff2a2a; }

#mainNavbar .nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ===== RIGHT PANEL ===== */
#navPanel.rightPanel {
    position: fixed !important;
    top: 50px !important;
    right: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: translateY(-110%) !important;
    transition: transform 0.25s ease !important;
    background: #1a1a1a !important;
    border-bottom: 1px solid #2a2a2a !important;
    z-index: 9998 !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.6);
    overflow: hidden !important;
}
#navPanel.rightPanel.active {
    transform: translateY(0) !important;
}

body.navPanel-open #panelOverlay { display: none !important; }

#navPanel .panelContent {
    padding: 0;
    display: block;
}

/* ===== NAV ROWS ===== */
#navPanel .navPanel-row {
    display: block !important;
    padding: 10px 10px 6px !important;
    margin: 0 !important;
    line-height: 1 !important;
    border-bottom: 1px solid #242424;
}
#navPanel .navPanel-row:last-of-type {
    border-bottom: none;
}

/* Force row 1 only to be flex nowrap so all 4 items stay on one line.
   Targets the first navPanel-row inside panelContent specifically. */
#navPanel .panelContent .navPanel-row:first-child {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

#navPanel .navPanel-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #bbb !important;
    text-decoration: none !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    padding: 4px 0 !important;
    margin: 0 6px 0 0 !important;
    background: none !important;
    border: none !important;
    text-transform: none !important;
    vertical-align: middle !important;
}
#navPanel .navPanel-item:last-child {
    margin-right: 0 !important;
}

#navPanel .navPanel-item.active {
    color: #fff !important;
    font-weight: 700 !important;
}

#navPanel .navPanel-item:hover,
#navPanel .navPanel-item:active {
    color: #ff2a2a !important;
    background: none !important;
    text-decoration: none !important;
}

#navPanel .navPanel-item i,
#navPanel .navPanel-dd-toggle i:first-child {
    color: #ff2a2a !important;
    font-size: 14px !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

/* ===== BEST OF wrapper ===== */
#navPanel .navPanel-dd {
    display: inline-block !important;
    position: relative !important;
    vertical-align: middle !important;
}

#navPanel .navPanel-dd-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: #bbb !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
}
#navPanel .navPanel-dd-toggle:hover,
#navPanel .navPanel-dd-toggle:active {
    color: #ff2a2a !important;
    text-decoration: none !important;
}

#navPanel .navPanel-caret {
    color: #bbb !important;
    font-size: 10px !important;
    margin-left: 1px !important;
}

#navPanel .navPanel-dd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    min-width: 130px;
    z-index: 99999;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}
#navPanel .navPanel-dd.open .navPanel-dd-menu {
    display: block;
}
#navPanel .navPanel-dd-menu a {
    display: block !important;
    padding: 11px 16px !important;
    color: #ccc !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid #1e1e1e !important;
    white-space: nowrap !important;
}
#navPanel .navPanel-dd-menu a:last-child { border-bottom: none !important; }
#navPanel .navPanel-dd-menu a:hover,
#navPanel .navPanel-dd-menu a:active {
    background: #1a1a1a !important;
    color: #ff2a2a !important;
}

#navPanel .navPanel-tiny {
    font-size: 11px !important;
    color: #666 !important;
    font-weight: 400 !important;
}

#navPanel .navPanel-live { color: #fff !important; }
#navPanel .navPanel-live-dot {
    width: 9px;
    height: 9px;
    background: #ff0000;
    border-radius: 50%;
    flex-shrink: 0;
    animation: navPanelBlink 1s infinite;
}
@keyframes navPanelBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}

#navPanel .navPanel-search {
    display: flex;
    gap: 6px;
    padding: 8px 10px 10px;
    align-items: center;
}
#navPanel .navPanel-search input {
    flex: 1;
    background: #0d0d0d;
    border: 1px solid #333;
    color: #f1f1f1;
    padding: 9px 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    border-radius: 3px;
    outline: none;
}
#navPanel .navPanel-search input::placeholder { color: #555; }
#navPanel .navPanel-search button {
    background: #ff2a2a;
    border: 1px solid #ff2a2a;
    color: #fff;
    padding: 9px 16px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 15px;
    line-height: 1;
}
#navPanel .navPanel-search button:active { background: #cc0000; border-color: #cc0000; }

}  /* end @media (max-width: 1499px) */


/* ===== FULL MOBILE LAYOUT (phones only, single column feed, mobile cards) ===== */
@media (max-width: 768px) {

/* ===== FEED ===== */
.backend {
    display: block !important;
    width: 100% !important;
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flex-images .item {
    float: none !important;
    width: 100% !important;
    margin: 0 0 2px 0 !important;
    border: none !important;
    border-bottom: 1px solid #1a1a1a !important;
    box-sizing: border-box !important;
}

/* ===== MOBILE VIDEO CARD ===== */
html body .mob-card {
    width: 100%;
    background-color: #1e1e1e !important;
    border-bottom: 2px solid #000;
    margin-bottom: 0;
    overflow: visible;
}

/* ===== VIDEOJS ===== */
.mob-video-wrap .video-js {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3 !important;
}
.mob-video-wrap .vjs-control-bar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.7)) !important;
}
.mob-video-wrap .vjs-big-play-button { z-index: 5 !important; }
.mob-video-wrap .video-js .vjs-tech { object-fit: cover !important; }

/* ===== COMMENTS OVERLAY ===== */
#mob-comments-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0b0b0b;
    flex-direction: column;
}
#mob-comments-overlay.active { display: flex; }
#mob-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #111;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}
#mob-comments-title {
    color: #aaa;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
}
#mob-comments-title i { color: #ff2a2a; margin-right: 6px; }
#mob-comments-close {
    background: none;
    border: none;
    color: #ff2a2a;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
#mob-comments-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #0b0b0b;
}

/* ===== TAGS MENU ===== */
[id^="tags-menu-"] {
    z-index: 9999 !important;
    min-width: 170px !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    border-radius: 4px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.14) !important;
    overflow: hidden !important;
    margin-top: 2px !important;
}
[id^="tags-menu-"] a {
    display: block !important;
    padding: 4px 24px !important;
    color: #212529 !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    background: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
    text-transform: capitalize !important;
    line-height: 16px !important;
}
[id^="tags-menu-"] a:last-child { border-bottom: none !important; }
[id^="tags-menu-"] a:active,
[id^="tags-menu-"] a:hover { background: #f5f5f5 !important; color: #000 !important; }
[id^="tags-menu-"] div {
    color: #888 !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
}

/* ===== VIDEO CARD ELEMENTS ===== */
.mob-title {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 400;
    color: #eee;
    font-family: 'Oswald', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #1e1e1e;
    border-bottom: 1px solid #000;
    text-align: center;
    text-decoration: none;
    display: block;
}
.mob-title:hover { color: #fff; text-decoration: underline; }

.mob-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #1a1a1a;
    overflow: hidden;
}
.mob-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    background: #1a1a1a;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.mob-thumb.loaded { opacity: 1; }
.mob-video-wrap .source-check {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 10;
}

/* ===== META BAR ===== */
.mob-meta {
    background: transparent;
    border-top: 1px solid #1a1a1a;
    padding: 8px 10px;
}
.mob-meta-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.mob-meta-row1-left { display: flex; align-items: center; gap: 6px; }
.mob-meta-sub {
    color: #d3d3d3;
    font-size: 15px;
    font-weight: 400;
    text-decoration: underline;
    font-family: 'Oswald', sans-serif;
    transition: color .15s ease;
}
.mob-meta-sub:hover,
.mob-meta-sub:active { color: #cc0000 !important; text-decoration: none !important; }

.mob-meta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    border: 1px solid #444;
    color: #f1f1f1;
    padding: 6px 12px;
    font-size: 14px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
    line-height: 1;
}
.mob-meta-btn:active { background: #1a1a1a; color: #fff; }
.mob-meta-btn.voted,
.mob-meta-btn.voted i { color: #ff2a2a; border-color: #ff2a2a; }

.mob-meta-likes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #f1f1f1;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    background: none;
    border: none;
}
.mob-meta-likes.voted,
.mob-meta-likes.voted i { color: #ff2a2a !important; border-color: #ff2a2a !important; }

.mob-meta-row2 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }

.mob-meta-tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #000;
    border: 1px solid #444;
    color: #f1f1f1;
    padding: 6px 12px;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    margin-left: auto;
    height: 32px;
    box-sizing: border-box;
}

.mob-mp4-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #000;
    border: 1px solid #444;
    color: #f1f1f1;
    padding: 6px 12px;
    font-size: 13px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    text-decoration: none;
    height: 32px;
    box-sizing: border-box;
}

.mob-mp4-hd {
    background: #cc0000;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 2px;
    margin-left: 2px;
    vertical-align: middle;
}

.mob-meta-btn:hover,
.mob-meta-tag-btn:hover,
.mob-mp4-btn:hover,
.mob-more-btn:hover {
    background: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
    text-decoration: none !important;
}

.mob-more-btn {
    display: block;
    width: fit-content;
    margin: 0 auto 8px;
    text-align: center;
    padding: 8px 20px;
    background: #0d0d0d;
    border: 1px solid #444;
    color: #f1f1f1;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
}
.mob-more-btn:active { background: #1a1a1a; color: #fff; }

/* ===== CAM STRIP ===== */
.mob-cam-strip {
    width: 100%;
    background: #000;
    padding: 12px 0;
    margin: 0;
    overflow: hidden;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
.mob-cam-strip-inner {
    display: flex;
    gap: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 12px;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    cursor: grab;
    user-select: none;
}
.mob-cam-strip-inner::-webkit-scrollbar { display: none; }

.mob-cam-card {
    flex: 0 0 calc(100vw - 24px);
    width: calc(100vw - 24px);
    margin-right: 12px;
    background: #000;
    display: flex;
    flex-direction: column;
}
.mob-cam-card:last-child { margin-right: 0; }

.mob-cam-header { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px 16px; }
.mob-cam-live-dot {
    width: 10px; height: 10px;
    background: #ff0000;
    border-radius: 50%;
    animation: mobCamBlink 1s infinite;
    flex-shrink: 0;
}
@keyframes mobCamBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.35; }
}
.mob-cam-live-text {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
}

.mob-cam-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #0a0a0a;
    overflow: hidden;
    border-radius: 12px;
}
.mob-cam-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    background: #0a0a0a;
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}
.mob-cam-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    bottom: 44px;
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.mob-cam-info {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    height: 44px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
}
.mob-cam-username {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: underline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 45%;
}
.mob-cam-likes {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.mob-cam-likes i { color: #ff2a2a; font-size: 12px; }
.mob-cam-send {
    margin-left: auto;
    background: #ff2a2a;
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-radius: 3px;
    white-space: nowrap;
    cursor: pointer;
    z-index: 4;
}
.mob-cam-send:hover,
.mob-cam-send:active { background: #cc0000; color: #fff; }

/* ===== LIVE STRIP HEADER ===== */
#liveStrip .strip-header {
    font-size: 15px !important;
    padding: 10px 12px !important;
}


/* Hide post.php's outer #postTags on mobile (ipost.php iframe already shows tags) */
#postTags { display: none !important; }



/* ===== POST PAGE — show mobile related, hide desktop grid ===== */
#relatedSection .desktop-related { display: none !important; }
#relatedSection .mobile-related { display: block !important; }

} /* end @media */