/*
Theme Name: getHDmovies Pro
Theme URI: https://gethdmovies.store/
Author: getHDmovies
Description: Complete bluish & dark-black movie downloading WordPress theme with crisp SVG search icon, clean empty search bar, 2-letter live search, Trending strip, 20-post Latest grid with pagination, Related Posts with poster images, extensive A-to-Z Customizer & Theme Control panel, and Adsterra ad slots.
Version: 6.0.0
Text Domain: gethdmovies
*/

:root {
  --bg-main: #060a14;
  --bg-surface: #0c1426;
  --bg-card: #101b33;
  --border-color: #1e335c;
  --accent-blue: #2563eb;
  --accent-sky: #60a5fa;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --card-radius: 10px;
  --badge-bg: #1d4ed8;
  --poster-aspect: 2 / 3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Header */
.site-header {
  background: rgba(8, 13, 26, 0.96);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
}

.site-header.not-sticky {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 12px;
}

.header-inner.logo-center {
  flex-direction: column;
  justify-content: center;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.brand-badge {
  width: 34px;
  height: 26px;
  background: #050811;
  border: 1.5px solid var(--accent-blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: var(--accent-sky);
  letter-spacing: 0.6px;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  line-height: 1.1;
}

.brand-text .red-s {
  color: var(--accent-red);
}

.menu-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-toggle-btn:hover {
  border-color: var(--accent-sky);
}

/* Full Width Search Bar with Crisp SVG Magnifier */
.header-search-bar {
  padding: 0 0 12px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  color: #fff;
  padding: 12px 44px 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.search-icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.search-icon-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

.search-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.live-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0d162c;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  z-index: 1200;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(30, 51, 92, 0.5);
}

.live-search-item:hover {
  background: rgba(37, 99, 235, 0.16);
}

.live-search-thumb {
  width: 44px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
  background: #172544;
  flex-shrink: 0;
}

.live-search-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
}

/* Slide-down Navigation Drawer */
.nav-drawer {
  display: none;
  background: #0a1122;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-drawer.open {
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links li a {
  display: inline-block;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.nav-links li a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Category Pills Bar */
.cat-strip {
  padding: 12px 0 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.cat-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-block;
  padding: 6px 13px;
  margin-right: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  transition: 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Section Headers */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--accent-blue);
  border-radius: 4px;
}

/* Trending Horizontal Strip */
.trending-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(145px, 175px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

/* Movie Cards Grid (20 per page) */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-mobile, 2), 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .movies-grid {
    grid-template-columns: repeat(var(--cols-tablet, 3), 1fr);
    gap: 14px;
  }
}

@media (min-width: 960px) {
  .movies-grid {
    grid-template-columns: repeat(var(--cols-desktop, 5), 1fr);
    gap: 16px;
  }
}

/* Related Posts Grid with Poster Images */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.movie-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-sky);
}

.card-poster {
  position: relative;
  aspect-ratio: var(--poster-aspect);
  background: #091020;
  overflow: hidden;
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 20, 0.92) 0%, rgba(6, 10, 20, 0.15) 48%, transparent 100%);
  pointer-events: none;
}

.card-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--badge-bg);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  text-transform: uppercase;
}

.card-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.pagination-wrap .page-numbers {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Single Post Page */
.single-wrap {
  max-width: 860px;
  margin: 18px auto 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
}

.breadcrumbs {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: var(--accent-sky);
}

.single-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #fff;
}

.single-meta-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.single-meta-cats a {
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: var(--accent-sky);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.single-content {
  color: #cbd5e1;
  font-size: 15px;
}

.single-content p {
  margin-bottom: 12px;
}

.related-box {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

/* Adsterra / Ad Slot */
.ad-slot-box {
  margin: 14px 0;
  text-align: center;
  overflow: hidden;
}

/* Footer */
.site-footer {
  background: #050811;
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  margin-top: 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--accent-sky);
  font-weight: 600;
}

.dmca-note {
  max-width: 760px;
  margin: 8px auto 0;
  font-size: 12px;
  color: #64748b;
}
