/* ===== BASE ===== */
html, body { height:100%; }
body{
  margin:0;
  background:#000;
  color:#eee;
  overflow-x:hidden;
  font-family: 'Oswald', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* FlexImages core */
.flex-images{ overflow:hidden; }

.flex-images .item{
  float:left;
  box-sizing:content-box;
  overflow:hidden;
  position:relative;
  border:1px solid #d4d4d4;
  margin:3px;
  background:#000;
}

/* Media */
.flex-images .item img,
.flex-images .item video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  background:#000;
}

.flex-images .item video{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
}

/* Keep if you still have container-fluid px-2 */
.container-fluid.px-2{
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Optional: keep your .video wrapper */
.video{
  position:relative;
  background:#000;
  width:100%;
  height:100%;
}

/* Modal */
#JPO .popup_content{
  width:100vw;
  height:100vh;
  margin:0;
  border-radius:0;
  overflow:hidden;
  background:#000;
  position:fixed;
  inset:0;
}
#JPO .popup_background{
  background:rgba(0,0,0,.95) !important;
}
.bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,0));
  color: #fff;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: opacity .2s ease;
}

.flex-images .item:hover .bottom {
  opacity: 1;
}

.meta-right {
  display: flex;
  gap: 12px;
}

.sub {
  font-weight: 600;
}

.hover-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .3px;

  color: #fff;
  background: rgba(0,0,0,0.55);

  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.video:hover .hover-title {
  opacity: 1;
}

.video,
.video video,
.openVideo {
  cursor: pointer;
}
.video:hover video {
  filter: brightness(0.85);
}

#videoTooltip {
  position: fixed;

  background: rgba(0, 0, 0, 0.88);
  color: #fff;

  padding: 3px 7px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;

  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 4px;

  box-shadow: 0 3px 8px rgba(0,0,0,0.35);

  white-space: nowrap;   
  width: auto;              
  max-width: none;           

  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;

  z-index: 30000;
}

/* NAVBAR */
#mainNavbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10000;
}

/* LEFT SIDE */
.nav-left{
  display:flex;
  align-items:center;
  gap:20px;
}

/* CENTER LOGO */
.nav-center{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}

/* RIGHT SIDE */
.nav-right{
  display:flex;
  align-items:center;
}

/* DESKTOP MENU */
.desktop-menu{
  display:flex;
  gap:20px;
}

.desktop-menu a{
  color:#ccc;
  text-decoration:none;
  font-size:14px;
}

.desktop-menu a:hover{
  color:#fff;
}

/* DROPDOWN */
.dropdown{
  position:relative;
}

.dropdown-menu{
  display:none;
  position:absolute;
  top:35px;
  background:#1a1a1a;
  padding:10px;
  flex-direction:column;
}

.dropdown:hover .dropdown-menu{
  display:flex;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #f80000;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
}

/* PAGE OFFSET */
#page {
    padding-top: 70px;
}

/* OVERLAY */
#panelOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 15000;
}

#panelOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* SIDE PANELS */
.sidePanel {
    position: fixed;
    top: 0;
    width: 85%;
    max-width: 350px;
    height: 100%;
    background: #0d0d0d;
    z-index: 20000;
    overflow-y: auto;
    transition: 0.3s ease;
}

.leftPanel {
    left: 0;
    transform: translateX(-100%);
}

.leftPanel.active {
    transform: translateX(0);
}

.rightPanel {
    right: 0;
    transform: translateX(100%);
}

.rightPanel.active {
    transform: translateX(0);
}
.panelHeader {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #222;
    font-weight: 600;
}

.panelContent a {
    display: block;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
}

.panelContent a:hover {
    color: #f80000;
}

hr {
    border-color: #222;
}
.sidePanel {
    -webkit-overflow-scrolling: touch;
}
.no-scroll {
    overflow: hidden;
}
#openCategories i{
    transform: rotate(180deg);
}

/* SUBREDDIT ROWS */
.subredditList a{
    display:flex;
    align-items:center;
    padding:8px 14px;
    border-bottom:1px solid #111;
    text-decoration:none;

    font-size:15px;
    color:#858585;
}

/* subreddit name */
.subName{
    font-weight:400;
}

/* total videos */
.subScore{
    color:#a6a6a6;
    font-size:13px;     /* bigger */
    margin-left:12px;
}

/* videos today */
.subChange{
    color:#28a745;
    font-size:13px;     /* bigger */
    margin-left:4px;
}

/* trending icon */
.subHot{
    font-size:12px;
    margin-left:3px;
}

/* spacing between rows */
.subredditElement{
    margin-top:20px;
    margin-bottom:20px;
}

/* FIX hover turning red */
.subredditList a:hover{
    color:#f1f1f1;
}

.subredditList a:hover .subScore{
    color:#a6a6a6;
}

.subredditList a:hover .subChange{
    color:#28a745;
}
/* VIDEO PREVIEW SYSTEM */

.video-wrapper{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}

.thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pcVideo{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}
/* ===== NAVBAR LINKS ===== */

.desktop-menu{
    display:flex;
    align-items:center;
    gap:25px;
}

.desktop-menu > a{
    color:#9aa0a6;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:600;
}

.desktop-menu > a i{
    color:#7d848a;
}

/* active menu item */
.desktop-menu > a.active{
    color:#fff;
}

.desktop-menu > a.active i{
    color:#ff2a2a;
}


/* ===== DROPDOWN ===== */

.dropdown{
    position:relative;
    display:flex;
    align-items:center;
}

/* make trigger match other menu links */
.dropdown > a{
    display:flex;
    align-items:center;
    gap:6px;
    color:#9aa0a6;
    text-decoration:none;
    font-weight:600;
}

/* dropdown panel */

.dropdown-menu{
    position:absolute;
    top:100%;
    left:0;

    display:none;

    min-width:160px;
    padding:0;

    background:#ffffff;
    border-radius:3px;
    overflow:hidden;

    box-shadow:0 4px 10px rgba(0,0,0,.25);
}

/* invisible hover bridge */
.dropdown-menu::before{
    content:"";
    position:absolute;
    top:-10px;
    left:0;
    width:100%;
    height:10px;
}

/* show dropdown */
.dropdown:hover .dropdown-menu{
    display:block;
}

/* dropdown items */

.dropdown-menu a{
    display:block;
    padding:11px 18px;

    color:#2f2f2f;
    text-decoration:none;

    font-weight:600;
    font-size:14px;
}

/* separators */

.dropdown-menu a + a{
    border-top:1px solid #d0d0d0;
}

/* hover */

.dropdown-menu a:hover{
    background:#bfbfbf;
    color:#2f2f2f;
}
.live-cam{
    position: relative;
    overflow: hidden;
}

.live-cam .video{
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.live-cam iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;   /* make iframe taller */
    transform: translateY(-20%);
    border: 0;
}

@media (max-width:768px){

  .desktop-menu{
    display:none;
  }

  .nav-right{
    display:none;
  }

}
