/*
Theme Name: XxxCriticHub Dark Grid
Description: Original RetroTube child theme with a dense, modern tube-style layout.
Author: XxxCriticHub
Template: retrotube
Version: 1.0.2
Text Domain: xch-dark-grid
*/

:root {
  --xch-bg: #0f0f10;
  --xch-header: #09090a;
  --xch-surface: #1b1b1d;
  --xch-surface-2: #252528;
  --xch-border: #333337;
  --xch-text: #f5f5f6;
  --xch-muted: #a7a7ad;
  --xch-accent: #f11919;
  --xch-accent-hover: #ff3b3b;
  --xch-radius: 5px;
}

html,
body {
  background: var(--xch-bg) !important;
  color: var(--xch-text);
  font-family: Arial, Helvetica, sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--xch-text);
}

a:hover,
a:focus {
  color: var(--xch-accent-hover);
}

.site-header {
  background: var(--xch-header);
  border-bottom: 1px solid var(--xch-border);
}

.site-branding {
  min-height: 72px;
  padding: 10px 20px;
  gap: 20px;
  background: var(--xch-header);
  align-items: center;
}

.site-branding .logo {
  flex: 0 0 auto;
  width: auto;
  max-width: 210px;
}

.site-branding .logo img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 52px;
}

.site-branding .header-search {
  flex: 1 1 560px;
  max-width: 620px;
  margin: 0 auto;
}

.site-branding .header-search form,
.site-branding .header-search .search-form {
  display: flex;
  width: 100%;
}

.site-branding .header-search input[type="search"],
.site-branding .header-search input[type="text"] {
  width: calc(100% - 48px);
  min-height: 42px;
  padding: 0 18px;
  color: var(--xch-text);
  background: #050506;
  border: 1px solid #3d3d42;
  border-right: 0;
  border-radius: 22px 0 0 22px;
  box-shadow: none;
}

.site-branding .header-search input#searchsubmit,
.site-branding .header-search button,
.site-branding .header-search input[type="submit"] {
  width: 48px;
  min-height: 42px;
  color: #fff;
  background: var(--xch-accent);
  border: 1px solid var(--xch-accent);
  border-radius: 0 22px 22px 0;
}

#site-navigation {
  height: 47px;
  line-height: 47px;
  background: #0c0c0d;
  border-bottom: 3px solid var(--xch-accent);
}

#site-navigation ul {
  padding: 0 16px;
}

#site-navigation > ul > li,
#site-navigation > ul > li:first-child {
  border: 0;
}

#site-navigation > ul > li > a {
  height: 44px;
  padding: 0 14px;
  line-height: 44px;
  color: #f2f2f3;
  font-size: 15px;
  font-weight: 600;
}

#site-navigation > ul > li:hover,
#site-navigation ul li.current-menu-item {
  background: var(--xch-surface-2);
}

#site-navigation ul ul {
  background: var(--xch-surface-2);
  border: 1px solid var(--xch-border);
  border-radius: 0 0 var(--xch-radius) var(--xch-radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

#site-navigation ul ul li a {
  color: #e6e6e8;
}

.site-content,
#content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 18px;
  background: var(--xch-bg);
}

.page-header,
.widget,
.comments-area,
.entry-content {
  color: var(--xch-text);
}

.page-title,
.entry-title,
.widget-title {
  color: var(--xch-text);
  font-weight: 700;
}

.videos-list {
  display: block;
  margin: 0 -6px;
}

.videos-list::after {
  display: table;
  clear: both;
  content: "";
}

.thumb-block {
  box-sizing: border-box;
  float: left !important;
  width: 20% !important;
  max-width: 20% !important;
  min-width: 0;
  margin: 0 0 12px !important;
  padding: 0 6px !important;
  overflow: hidden;
  background-clip: content-box;
  background: var(--xch-surface);
  border: 1px solid #222225;
  border-radius: var(--xch-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.thumb-block:hover {
  z-index: 2;
  border-color: #45454b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

/* Hide RetroTube's demonstration ad blocks until real affiliate creatives replace them. */
.happy-header:has(a[href="#!"]),
.happy-header-mobile:has(a[href="#!"]),
.happy-sidebar:has(a[href="#!"]),
.happy-under-player:has(a[href="#!"]),
.happy-under-player-mobile:has(a[href="#!"]),
.happy-footer:has(a[href="#!"]),
.happy-footer-mobile:has(a[href="#!"]),
.happy-inside-player:has(a[href="#!"]),
.happy-inside-player-pause:has(a[href="#!"]) {
  display: none !important;
}

.thumb-block .post-thumbnail {
  overflow: hidden;
  background: #080809;
  border-radius: var(--xch-radius) var(--xch-radius) 0 0;
}

.thumb-block .post-thumbnail img,
.thumb-block .post-thumbnail video {
  display: block;
  width: 100%;
  transition: transform 220ms ease;
}

.thumb-block:hover .post-thumbnail img {
  transform: scale(1.025);
}

.thumb-block .entry-header {
  height: 3.45em;
  padding: 8px 10px 4px;
  color: var(--xch-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  text-align: left;
}

.thumb-block .entry-header a {
  color: inherit;
}

.thumb-block span.views,
.thumb-block span.duration,
.thumb-block span.hd-video,
span.views,
span.duration,
span.hd-video {
  padding: 3px 6px;
  color: #fff;
  background: rgba(5, 5, 6, 0.84);
  border-radius: 3px;
  font-size: 11px;
}

.rating-bar,
.thumb-block .video-views,
.thumb-block .views-number,
.thumb-block .post-meta {
  color: var(--xch-muted);
}

.play-icon-hover i {
  color: #fff;
  opacity: 0.92;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
}

.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  min-width: 36px;
  padding: 8px 11px;
  color: var(--xch-text);
  background: var(--xch-surface-2);
  border: 1px solid var(--xch-border);
  border-radius: 4px;
  text-align: center;
}

.pagination .current,
.nav-links .current {
  background: var(--xch-accent);
  border-color: var(--xch-accent);
}

.widget {
  padding: 14px;
  background: var(--xch-surface);
  border: 1px solid var(--xch-border);
  border-radius: var(--xch-radius);
}

.widget_categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.widget_categories ul li a,
a.tag-cloud-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  color: #ededee;
  background: var(--xch-surface-2);
  border: 1px solid var(--xch-border);
  border-radius: 16px;
}

.widget_categories ul li a:hover,
a.tag-cloud-link:hover {
  color: #fff;
  background: #343438;
  border-color: #4a4a50;
}

.site-footer {
  margin-top: 28px;
  color: var(--xch-muted);
  background: #0a0a0b;
  border-top: 1px solid var(--xch-border);
}

.site-footer a {
  color: #d7d7da;
}

input,
select,
textarea {
  color: var(--xch-text);
  background: var(--xch-surface);
  border: 1px solid var(--xch-border);
  border-radius: 4px;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  color: #fff;
  background: var(--xch-accent);
  border-color: var(--xch-accent);
}

@media (max-width: 1250px) {
  .thumb-block {
    width: 25% !important;
    max-width: 25% !important;
  }
}

@media (max-width: 980px) {
  .site-branding {
    flex-wrap: wrap;
  }

  .site-branding .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .thumb-block {
    width: 33.333% !important;
    max-width: 33.333% !important;
  }
}

@media (max-width: 767px) {
  .site-branding {
    min-height: auto;
    padding: 9px 12px;
  }

  .site-branding .logo img {
    max-height: 42px;
  }

  #site-navigation {
    height: auto;
    min-height: 46px;
  }

  #site-navigation ul {
    padding: 0;
  }

  .site-content,
  #content {
    padding: 12px 9px;
  }

  .videos-list {
    margin: 0 -4px;
  }

  .thumb-block {
    width: 50% !important;
    max-width: 50% !important;
    margin-bottom: 9px !important;
    padding: 0 4px !important;
  }

  .thumb-block .entry-header {
    height: 3.5em;
    padding: 7px 8px 3px;
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .site-content,
  #content {
    padding-right: 6px;
    padding-left: 6px;
  }

}
