/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* ================================
   🔷 Global Styles
================================= */
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Arial', sans-serif;
}

/* 🔸 Default all links: white */
a,
a:link,
a:visited {
  color: #fff !important;
  text-decoration: none !important;
}

/* 🔸 Hover style for regular links */
a:hover,
a:focus,
a:active {
  color: #fff !important;
  text-decoration: none !important;
}

/* 🔸 Taxonomy blocks: always yellow */
.highlight-tax a,
.highlight-tax {
  color: #f9d442 !important;
  text-decoration: none !important;
}

/* 🔸 Taxonomy hover: same yellow */
.highlight-tax a:hover {
  color: #f9d442 !important;
  text-decoration: none !important;
}





/* ================================
   🔷 Header
================================= */
.custom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: #111;
  position: relative;
  z-index: 1000;
}



.header-left,
.header-right {
  flex: 0 0 auto;
}

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-logo img {
  height: 40px;
}

.menu-toggle,
.search-toggle {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}


/* 🔻 Dropdown Menu from Top-Left */
.menu-dropdown {
  position: absolute;
  top: 60px;
  left: 15px;
  background: #111;
  border: 1px solid #333;
  border-radius: 5px;
  display: none;
  z-index: 1000;
  padding: 10px 0;
  min-width: 180px;
}

.menu-dropdown.show {
  display: block;
}

.dropdown-nav a {
  display: flex;
  align-items: center;
  gap: 10px; /* spacing between icon and text */
  color: #fff;
  padding: 10px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.dropdown-nav a svg {
  flex-shrink: 0; /* prevent icon from shrinking */
}

.dropdown-nav a:hover {
  background: #222;
}


/* 🔹 Search Form Styling */
.search-form {
  max-width: 400px;
  margin: auto;
  display: flex;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 10px;
  border: none;
  background: #222;
  color: #fff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  border-radius: 4px 0 0 4px;
}

.search-form input[type="submit"] {
  padding: 10px 15px;
  background: #444;
  border: none;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}




/* 🔍 Search Slide-out */
.search-slideout {
  position: absolute;
  top: 60px;
  right: 15px;
  background: #111;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #333;
  display: none;
  z-index: 1000;
  min-width: 220px;
}

.search-slideout.show {
  display: block;
}

.search-slideout input[type="search"] {
  flex: 1;
  padding: 8px;
  border: none;
  background: #222;
  color: #fff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  border-radius: 4px 0 0 4px;
}

.search-slideout input[type="submit"] {
  padding: 8px 12px;
  background: #444;
  border: none;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* 🔧 Force white text on typing (including focus, autofill, invalid) */
input[type="search"]:focus,
input[type="search"]:active,
input[type="search"]:valid,
input[type="search"]:invalid {
  color: #fff !important;
  background-color: #222 !important;
  border: none !important;
  outline: none !important;
  font-family: 'Segoe UI', Roboto, sans-serif !important;
}

/* 🔧 Fix Chrome autofill background/text color */
input[type="search"]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #222 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  font-family: 'Segoe UI', Roboto, sans-serif !important;
}

/* 🔧 Ensure placeholder is styled white-ish */
input[type="search"]::placeholder {
  color: #aaa !important;
  font-style: italic;
}


/* 🔹 Fullscreen Overlay Menu */
.menu-overlay,
.search-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  padding-top: 100px;
  text-align: center;
}

.menu-overlay.show,
.search-overlay.show {
  display: block;
}

.overlay-nav a {
  display: block;
  color: #fff;
  font-size: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #333;
}

.overlay-nav a:hover {
  background: #222;
}




/* ================================
   🔷 Post Title
================================= */
.post-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ================================
   🔷 Video Wrapper
================================= */
.video-wrapper {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  margin-bottom: 20px;
  background: #000;
}

.video-wrapper iframe {
  width: 100% !important;
  height: 100% !important;
}

.video-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .play-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* ================================
   🔷 Engagement Section
================================= */
.post-engagement {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-engagement span.actions button {
  background: #111;
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 14px;
  margin-right: 6px;
}

.post-engagement span.actions button:hover {
  background: #222;
}

/* ================================
   🔷 Related Posts Grid
================================= */
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 100%;
}

/* Mobile breakpoint: stack full width */
@media (max-width: 767px) {
  .related-posts-grid {
    display: block; /* or flex; flex-direction: column; */
  }

  .related-posts-grid .video-card {
    width: 100% !important;
    margin-bottom: 16px;
  }
}

.related-post {
  background: #111;
  padding: 10px;
  border-radius: 5px;
  transition: transform 0.2s;
  min-width: 0;
}

.related-post:hover {
  transform: scale(1.02);
}

.related-post h4 {
  font-size: 14px;
  margin-top: 5px;
  color: #fff;
  line-height: 1.4em;
  height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-post img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  object-fit: cover;
}



/* ================================
   🔷 View More Button
================================= */


.view-more-wrapper {
  margin-top: 10px; /* small spacing from posts */
  text-align: center;
}

.view-more-button {
  display: block;               /* full width */
  width: 100%;                  /* full width of container */
  max-width: 100%;              /* prevent overflow */
  background-color: #111;       /* slightly lighter than page black */
  color: #fff;                  /* white text */
  padding: 8px 0;               /* less height than before */
  border: 1px solid #fff;       /* white border */
  border-radius: 6px;           /* slightly rounded corners */
  font-weight: bold;
  font-size: 14px;              /* slightly smaller text */
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.view-more-button:hover {
  background-color: #222;       /* slightly lighter black on hover */
  color: #fff;                  /* keep text white */
}


/* ================================
   🔷 Ads
================================= */
.grid-ad {
  background: #111;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
}
/* 🔹 Ad Container Scroll */
.ad-block-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 🔹 Each Ad Unit Style */
.ad-unit img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 0 4px rgba(255, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.ad-unit img:hover {
  transform: scale(1.02);
}

.sidebar-ad-unit {
  margin-bottom: 20px;
   margin-top: 20px;
}

.sidebar-ad-unit img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 🔹 Ad Unit inside video */

.ad-overlay {
  position: absolute;
  top: 30%;                  /* vertical center */
  left: 50%;                 /* horizontal center */
  transform: translate(-50%, -50%);  /* center both vertically & horizontally */
  color: #fff;
  padding: 15px 15px 10px;      /* extra space for button if needed */
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: center;
}

/* Close button at top center */
.ad-close-btn {
  position: absolute;
  top: -12px;          /* slightly above the ad block */
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: red;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
  z-index: 5;
}

/* Ad image */
.ad-overlay img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin-top: 20px; /* space below the close button */
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .ad-overlay {
    padding: 8px 8px 6px;   /* smaller padding */
    max-width: 90%;
    top: 20%;               /* slightly higher on mobile */
    transform: translate(-50%, -50%); /* center correctly */
  }
  .ad-overlay img {
    max-height: 120px;      /* smaller image */
    margin-top: 12px;       /* less spacing below close button */
  }
  .ad-close-btn {
    padding: 4px 8px;       /* smaller button */
    font-size: 11px;
    top: -8px;              /* adjust position above ad */
  }
}





/* ================================
   🔷 Details Block
================================= */
.details-heading {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-line {
  width: 25px;
  height: 3px;
  background-color: #f44336;
  border-radius: 3px;
}

.details-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, #f44336 60px, #444 60px);
  margin-bottom: 20px;
  border-radius: 2px;
}

.post-details p {
  margin: 6px 0;
  font-size: 14px;
  color: #ccc;
}

.highlight-tax,
.highlight-tax a {
  color: #f9d442;
  text-decoration: none;
}

.highlight-tax a:hover {
  text-decoration: underline;
}

/* ================================
   🔷 Description
================================= */
.post-description {
  margin-top: 30px;
}

.post-description h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* ================================
   🔷 Section Heading & Button
================================= */
.section-heading-with-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  margin: 0 0 15px 0;
}

.recent-heading {
  font-size: 20px;
  color: #fff;
  margin: 0;
}


/* ================================
   🔷 Home Page / Pagination
================================= */
.pagination {
  text-align: center;
  margin: 30px auto;
}

.pagination a,
.pagination span {
  color: #fff;
  background: #333;
  padding: 8px 14px;
  margin: 0 4px;
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;
}

.pagination .current {
  background-color: #f39c12;
  color: #000;
}

/* ================================
   🔷 video container 
================================= */
.video-card {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #111;                        /* Slight background to separate block */
  overflow: hidden;
  box-shadow: 0 0 4px rgba(255, 0, 0, 0.1); /* Optional soft glow */
  padding-bottom: 5px;                    /* Padding inside the block below image */
}



.video-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
  overflow: hidden;
  border-radius: 8px;
}

.video-container img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-title {
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: left;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


.dvd-id-overlay,
.runtime-overlay {
  position: absolute;
  bottom: 8px;
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  pointer-events: none;
  background: none;         /* 🔸 Remove background */
  text-shadow: 1px 1px 3px #000; /* Optional: for contrast on light images */
}

.dvd-id-overlay {
  left: 10px;
}

.runtime-overlay {
  right: 10px;
}

.sidebar-related-videos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-video-card a {
  text-decoration: none;
  color: #fff;
  display: block;
}

.sidebar-video-thumb {
  position: relative;
  width: 100%;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* DVD ID Overlay */
.sidebar-video-thumb .dvd-id-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  color: #fff;
}

/* Runtime Overlay */
.sidebar-video-thumb .runtime-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  color: #fff;
}

/* Truncated title */
.sidebar-video-title {
  font-size: 13px;
  line-height: 1.4em;
  margin-top: 8px;
  color: #ccc;
}

.subbed-overlay {
    position: absolute;
    top: 4px;
    left:4px;
    background: rgba(0, 0, 0, 0.7); /* transparent red */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}



.video-buttons {
    display: flex;
    justify-content: center;  /* center horizontally */
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.server-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 25px;                 /* pill width */
    background-color: rgba(255, 0, 0, 0.3); /* transparent red */
    color: #fff;                        /* white text */
    border: 2px solid #fff;             /* optional white outline */
    border-radius: 50px;                /* fully rounded pill shape */
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.server-btn:hover {
    background-color: rgba(255, 0, 0, 0.5); /* slightly darker red on hover */
    transform: scale(1.05);                 /* subtle hover effect */
}



/* ================================
   🔷 Layout Full Width
================================= */
.full-width-wrapper,
body,
#main,
.site-content,
.page-content,
.blocksy-container,
.page-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  background: #000 !important;
}

/* ================================
   🔷 Full Width Posts
================================= */

.full-posts-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 0 20px 0; /* Only bottom padding */
}
.full-post {
  background: #111;
  padding: 20px;
  border-radius: 6px;
}
.full-post h2 {
  font-size: 14px;
  margin-top: 5px;
  color: #fff;
  line-height: 1.4em;
  height: 2.8em; /* 2 lines max */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.full-post img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ================================
   🔷 Filter Bar: Layout & Style
================================= */
.filter-form {
  display: flex;
  flex-wrap: nowrap;           /* ✅ keep in same row */
  align-items: center;
  gap: 15px;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.filter-form .custom-select {
  flex: 0 1 260px;
  width: 260px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  background: #111;
}


.filter-bar-right {
  display: flex;
  justify-content: flex-end;
  padding: 0 0px;
  }

.filter-bar-right .filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  
}

.filter-bar-right h3.details-heading {
flex: 1;
font-size: 15px;
font-weight: 600;
}


.sort-label {
  color: #fff;
  font-size: 4px;
}




/* ================================
   🔷 Native <select> Styling
================================= */
select.custom-select {
  background-color: #000 !important;   /* black background */
  color: #fff !important;              /* white text */
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px 40px 8px 12px;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg fill='%23ffffff' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); /* white arrow */
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
}

/* Dropdown options */
select.custom-select option {
  background-color: #000 !important;   /* black dropdown list */
  color: #fff !important;              /* white text */
}

select.custom-select option,
.custom-select option,
.custom-select option:checked,
.custom-select option:hover,
.custom-select option:focus {
  background-color: #222 !important;
  color: #fff !important;
}

/* ================================
   🔷 choices
================================= */



.choices__inner {
  background-color: #000 !important;
  color: #fff !important;
  padding: 8px 12px !important;
  min-height: 38px;
  border: none;
  border-radius: 8px;
}

/* Dropdown container */
.choices__list--dropdown {
  background-color: #000 !important;
  border: 1px solid #333 !important;
}

/* Each option inside the dropdown */
.choices__item--choice {
  background-color: #000 !important;
  color: #fff !important;
  padding: 8px 12px;
  border-bottom: 1px solid #222;
}

/* On hover or focus */
.choices__item--choice.is-highlighted {
  background-color: #222 !important;
  color: #fff !important;
}




/* ================================
   🔷 Responsive Layout (Cleaned)
================================= */

  @media (max-width: 540px) {
  .filter-form {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .filter-form .custom-select {
    flex: 1 1 48% !important;
    width: 48% !important;
    min-width: 0;
  }
}

/* ================================
   🔷 No Results
================================= */

.no-results-message {
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 600px;
}

.no-results-message h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #f9d442; /* yellow highlight for heading */
}

.no-results-message p {
  font-size: 16px;
  color: #ccc;
}



/* ================================
   🔷 Universal Layout (Desktop)
================================= */
.three-column-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
}

/* ================================
   🔷 Left Sidebar (Narrower)
================================= */
.left-sidebar {
  width: 100px;                             /* Slightly wider */
  background: #111;
  color: #fff;
  border-radius: 0 10px 10px 0;             /* Only right corners rounded */
  padding: 10px 0;
  padding-top: 20px;
  flex-shrink: 0;
  position: fixed;                          /* 🔥 KEY CHANGE: stick to screen */
  top: 0;                                   /* Touch top of screen */
  left: 0;                                  /* Touch left of screen */
  height: 100vh;                            /* Full height of viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1001;                            /* Sit above background elements */
  }



.left-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.left-sidebar li {
  margin: 15px 0;
  text-align: center;
}

.left-sidebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.left-sidebar a:hover {
  color: #e50914;
}

.left-sidebar svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  fill: currentColor;
}

.first-sidebar-item + li {
  margin-top: 60px;
}



/* ================================
   🔷 Main Content
================================= */
.site-main.container {
  flex: 1;
  max-width: 100%;
}

@media (min-width: 769px) {
  .site-main.container {
    margin-left: 100px; /* Sidebar width */
  }
}



/* ================================
   🔷 Right Sidebar (Wider)
================================= */
.right-sidebar {
  width: 300px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  flex-shrink: 0;
  top: 80px;
  height: fit-content;
}

.right-sidebar .ad-block-container .ad-unit {
  margin-bottom: 15px;
}

.right-sidebar img {
  width: 100%;
  border-radius: 6px;
}


/* ================================
   🔷 Responsive (Mobile)
================================= */
@media (max-width: 1024px) {
  .three-column-layout {
    flex-direction: column;
  }

  .left-sidebar,
  .right-sidebar {
    display: none;
  }
}

/* ================================
   🔷 Hide menu
================================= */


@media (min-width: 1025px) {
  #menuDropdown {
    display: none !important;
  }
}

/* ================================
   🔷 Footer
================================= */

footer {
    background: #111;
    color: #ccc;
    padding: 0px 20px; /* reduce top/bottom padding */
    text-align: center;
}

footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* horizontal padding for mobile */
}

footer p {
    margin: 5px 0; /* reduce paragraph spacing */
    line-height: 1.4;
}

footer .footer-nav {
    margin: 5px 0; /* reduce nav spacing */
}

