/*
Theme Name: GetHDMovie
Theme URI: https://gethdmovie.com/
Author: GetHDMovie Team
Description: Simple, Fast, Clean & Google SEO-Friendly Blue Movie Downloading WordPress Theme. Zero clutter, instant 3-letter live search, 20 movies per page with Load More, clean single download page, and JSON-LD Movie Schema.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gethdmovie
*/

:root {
  --bg-body: #070d19;
  --bg-surface: #0e172a;
  --bg-hover: #16233e;
  --blue: #0ea5e9;
  --blue-dark: #2563eb;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --border: #1e293b;
  --radius: 8px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

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

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

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

/* Simple Clean Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
}

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

.brand-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-logo span {
  color: var(--blue);
}

/* Search Box */
.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
  min-width: 230px;
}

.search-box form {
  display: flex;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.search-box form:focus-within {
  border-color: var(--blue);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  background: var(--blue-dark);
  color: #fff;
  border: none;
  padding: 0 15px;
  font-weight: 600;
  cursor: pointer;
}

.live-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
  z-index: 100;
  display: none;
  max-height: 340px;
  overflow-y: auto;
}

.live-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.live-item:last-child {
  border-bottom: none;
}

.live-item:hover {
  background: var(--bg-hover);
}

.live-item img {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
}

.live-item h4 {
  font-size: 13px;
  color: #fff;
  line-height: 1.3;
}

.live-item span {
  font-size: 11px;
  color: var(--blue);
}

/* Simple Horizontal Category Bar */
.cat-nav {
  background: #0a1222;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

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

.cat-menu {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 8px 0;
}

.cat-menu li a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: 5px;
}

.cat-menu li a:hover,
.cat-menu li.current-cat a,
.cat-menu li.current-menu-item a {
  background: var(--blue-dark);
  color: #fff;
}

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

/* Top Featured Strip (Simple 5-item row) */
.featured-strip {
  margin: 16px 0 20px;
}

.block-heading {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid var(--blue);
}

/* Clean 5-Column Movie Grid */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

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

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

.poster-box {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #050914;
}

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

.tag-quality {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--blue-dark);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-imdb {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(7, 13, 25, 0.85);
  color: #fbbf24;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-info {
  padding: 9px 10px;
}

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.movie-card:hover .card-title {
  color: var(--blue);
}

.card-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
}

/* Load More & Pagination */
.load-more-area {
  text-align: center;
  margin: 24px 0;
}

.btn-more {
  background: var(--blue-dark);
  color: #fff;
  border: none;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.btn-more:hover {
  background: var(--blue);
}

.pagination-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 28px;
  flex-wrap: wrap;
}

.pagination-links .page-numbers {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
}

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

/* Single Movie Page (Clean & Focused - No Heavy Sidebar Clutter) */
.single-wrap {
  max-width: 880px;
  margin: 20px auto 34px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.crumb {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.crumb a {
  color: var(--blue);
}

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

.movie-top {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}

.movie-top img {
  border-radius: 6px;
  width: 100%;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.info-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.info-table td:first-child {
  font-weight: 700;
  color: var(--blue);
  width: 125px;
}

.story-box {
  background: var(--bg-body);
  padding: 14px;
  border-radius: 6px;
  border-left: 3px solid var(--blue);
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.story-box h2 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.ss-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 20px;
}

.ss-grid img {
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Download Box */
.dl-box {
  background: var(--bg-body);
  border: 1px solid var(--blue-dark);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin: 18px 0;
}

.dl-box h2 {
  font-size: 17px;
  color: var(--blue);
  margin-bottom: 12px;
}

.dl-row {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.dl-row:last-child {
  border-bottom: none;
}

.dl-row-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dl-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  margin: 3px;
}

.dl-btn:hover {
  opacity: 0.9;
}

/* Simple Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-cats a {
  background: var(--bg-body);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.footer-cats a:hover {
  border-color: var(--blue);
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .movie-top {
    grid-template-columns: 1fr;
  }
  .movie-top img {
    max-width: 170px;
    margin: 0 auto;
  }
  .ss-grid {
    grid-template-columns: 1fr;
  }
  .post-title {
    font-size: 18px;
  }
}
