/**
 * HDHub4u Theme Stylesheet
 */

:root {
  --hdhub-bg: #0c0c0c;
  --hdhub-card-bg: #151515;
  --hdhub-border: #222222;
  --hdhub-yellow: #ffd000;
  --hdhub-orange: #ff5e00;
  --hdhub-red: #e84118;
  --hdhub-text: #e0e0e0;
  --hdhub-text-muted: #888888;
  --hdhub-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hdhub-font-heading: 'Oswald', sans-serif;
}

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

body {
  background-color: var(--hdhub-bg);
  color: var(--hdhub-text);
  font-family: var(--hdhub-font);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

/* ─────────────────────────────────────────────────
   1. TOP MINI BAR
   ───────────────────────────────────────────────── */
.hdhub-top-bar {
  background: #000000;
  border-bottom: 1px solid #1c1c1c;
  padding: 6px 0;
  font-size: 11.5px;
}

.hdhub-top-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.hdhub-top-links a {
  color: #a0a0a0;
  font-weight: 500;
  transition: color 0.2s;
}

.hdhub-top-links a:hover {
  color: #ffffff;
}

/* ─────────────────────────────────────────────────
   2. LOGO BAR
   ───────────────────────────────────────────────── */
.hdhub-logo-bar {
  background: #080808;
  padding: 14px 0;
}

.hdhub-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hdhub-brand-logo {
  font-family: var(--hdhub-font-heading);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.hdhub-logo-hd {
  color: #ffffff;
  background: var(--hdhub-orange);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 2px;
}

.hdhub-logo-hub {
  color: #ffffff;
}

.hdhub-logo-4u {
  color: var(--hdhub-orange);
}

/* ─────────────────────────────────────────────────
   3. TOP TRENDING STRIP
   ───────────────────────────────────────────────── */
.hdhub-top-strip {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  padding: 6px 0;
  overflow: hidden;
}

.hdhub-strip-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 10px;
}

.hdhub-strip-track::-webkit-scrollbar {
  display: none;
}

.hdhub-strip-item {
  flex: 0 0 82px;
  height: 115px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.2s;
}

.hdhub-strip-item:hover {
  transform: scale(1.05);
  border-color: var(--hdhub-orange);
  z-index: 2;
}

.hdhub-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hdhub-strip-title {
  display: none;
}

/* ─────────────────────────────────────────────────
   4. MAIN NAV & SEARCH
   ───────────────────────────────────────────────── */
.hdhub-main-nav {
  background: #121212;
  border-bottom: 2px solid #1e1e1e;
  padding: 8px 0;
}

.hdhub-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hdhub-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hdhub-btn-4k {
  background: var(--hdhub-yellow);
  color: #000000;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.hdhub-btn-4k:hover {
  opacity: 0.9;
}

.hdhub-menu-list {
  display: flex;
  list-style: none;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hdhub-menu-list li a {
  color: #dcdcdc;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s;
}

.hdhub-menu-list li a:hover,
.hdhub-menu-list li a.active {
  color: var(--hdhub-yellow);
}

.hdhub-search-form {
  position: relative;
}

.hdhub-search-input {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  color: #111;
  width: 190px;
  outline: none;
}

.hdhub-search-input:focus {
  border-color: var(--hdhub-orange);
  box-shadow: 0 0 5px rgba(255, 94, 0, 0.4);
}

/* ─────────────────────────────────────────────────
   5. NOTICE BAR
   ───────────────────────────────────────────────── */
.hdhub-notice-bar {
  background: #1c1408;
  border: 1px solid #704d09;
  color: var(--hdhub-yellow);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
}

/* ─────────────────────────────────────────────────
   6. SECTION HEADERS & LATEST RELEASES FEED
   ───────────────────────────────────────────────── */
.hdhub-feed-section {
  margin-bottom: 30px;
}

.hdhub-section-bar {
  background: #181818;
  border-left: 4px solid var(--hdhub-orange);
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 0 4px 4px 0;
}

.hdhub-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--hdhub-font-heading);
  letter-spacing: 0.3px;
}

/* Vertical Movie Grid (Pure Up-Down Scroll) */
.hdhub-movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

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

.hdhub-card:hover {
  transform: translateY(-4px);
  border-color: var(--hdhub-orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.hdhub-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #202020;
  overflow: hidden;
}

.hdhub-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hdhub-card:hover .hdhub-thumb-img {
  transform: scale(1.04);
}

.hdhub-badge-star {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffd700;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.hdhub-card-body {
  padding: 10px 8px 12px 8px;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.hdhub-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hdhub-card:hover .hdhub-card-title {
  color: var(--hdhub-yellow);
}

/* Pagination */
.hdhub-pagination-wrap {
  margin: 30px 0;
  text-align: center;
}

.hdhub-pagination-wrap .page-numbers {
  display: inline-block;
  background: #181818;
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  padding: 7px 14px;
  margin: 0 3px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.15s;
}

.hdhub-pagination-wrap .page-numbers.current,
.hdhub-pagination-wrap .page-numbers:hover {
  background: var(--hdhub-orange);
  color: #ffffff;
  border-color: var(--hdhub-orange);
}

/* ─────────────────────────────────────────────────
   7. SINGLE MOVIE DETAILS & SCREENSHOTS
   ───────────────────────────────────────────────── */
.hdhub-single-article {
  background: #111111;
  border: 1px solid var(--hdhub-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.hdhub-single-header {
  border-bottom: 1px solid #222;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.hdhub-single-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.hdhub-single-meta {
  font-size: 12px;
  color: var(--hdhub-text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hdhub-info-card {
  display: flex;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hdhub-poster-column {
  width: 240px;
  flex-shrink: 0;
}

.hdhub-main-poster {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hdhub-details-column {
  flex: 1;
  min-width: 280px;
}

.hdhub-info-table {
  background: #171717;
  border: 1px solid #242424;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.hdhub-info-row {
  padding: 6px 0;
  border-bottom: 1px solid #202020;
  font-size: 13px;
}

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

.hdhub-info-row strong {
  color: #ffffff;
  display: inline-block;
  min-width: 110px;
}

.hdhub-info-row a {
  color: var(--hdhub-yellow);
}

.hdhub-storyline {
  background: #171717;
  border: 1px solid #242424;
  border-radius: 6px;
  padding: 14px 16px;
}

.hdhub-storyline h3 {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
}

.hdhub-storyline p {
  color: #bbb;
  font-size: 13px;
  line-height: 1.6;
}

/* 📸 SCREENSHOTS GALLERY (BEFORE DOWNLOAD BUTTONS) */
.hdhub-screenshots-section {
  margin: 28px 0;
}

.hdhub-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.hdhub-shot-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #000;
}

.hdhub-shot-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
  display: block;
}

.hdhub-shot-img:hover {
  transform: scale(1.02);
}

/* ⚡ DOWNLOAD BUTTONS */
.hdhub-download-section {
  margin: 28px 0;
}

.hdhub-links-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.hdhub-ep-title {
  background: #202020;
  color: var(--hdhub-yellow);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 4px;
  border-left: 3px solid var(--hdhub-orange);
  margin-top: 6px;
}

.hdhub-dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #d63031, #b71540);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(214, 48, 49, 0.3);
  transition: all 0.2s ease;
}

.hdhub-dl-btn:hover {
  background: linear-gradient(135deg, #e84118, #c23616);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 5px 15px rgba(232, 65, 24, 0.4);
}

.hdhub-dl-btn-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdhub-dl-btn-badge {
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────────
   8. FOOTER & BACK TO TOP
   ───────────────────────────────────────────────── */
.hdhub-main-footer {
  background: #080808;
  border-top: 1px solid #1c1c1c;
  padding: 24px 0;
  margin-top: 40px;
  text-align: center;
}

.hdhub-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hdhub-footer-links a {
  color: #aaa;
  font-size: 12px;
  font-weight: 500;
}

.hdhub-footer-links a:hover {
  color: #fff;
}

.hdhub-footer-copyright {
  font-size: 11.5px;
  color: #666;
}

.hdhub-scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--hdhub-orange);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.hdhub-scroll-top.visible {
  display: flex;
}

/* ─────────────────────────────────────────────────
   9. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hdhub-movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hdhub-movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .hdhub-top-links {
    justify-content: center;
  }
  .hdhub-logo-wrap {
    justify-content: center;
  }
  .hdhub-nav-container {
    flex-direction: column;
    align-items: stretch;
  }
  .hdhub-search-input {
    width: 100%;
  }
  .hdhub-info-card {
    flex-direction: column;
    align-items: center;
  }
  .hdhub-poster-column {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .hdhub-movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hdhub-card-title {
    font-size: 11.5px;
    -webkit-line-clamp: 3;
  }
}
