:root {
  --hd-bg: #f2f2f2;
  --hd-bg-card: #ffffff;
  --hd-bg-input: #f8f8f8;
  --hd-header-bg: #1a1a2e;
  --hd-header-border: #2a2a45;
  --hd-primary: #1565c0;
  --hd-primary-hover: #0d47a1;
  --hd-primary-dim: rgba(21,101,192,0.12);
  --hd-text: #1a1a2e;
  --hd-text-secondary: #555;
  --hd-text-muted: #888;
  --hd-border: #e3e3e3;
  --hd-border-light: #ebebeb;
  --hd-orange: #1565c0;
  --hd-navy: #1a1a2e;
  --hd-danger: #e53e3e;
  --hd-success: #38a169;
  --hd-radius: 6px;
  --hd-radius-card: 5px;
  --hd-radius-lg: 12px;
  --hd-shadow: 0 2px 10px rgba(0,0,0,0.10);
  --hd-shadow-card: 0 1px 4px rgba(0,0,0,0.08);
  --hd-transition: 0.18s ease;
  --hd-header-h: 54px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--hd-bg);
  color: var(--hd-text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

.hd-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── HEADER ────────────────────────────────────── */
.hd-header {
  position: sticky; top: 0; z-index: 200;
  background: #0e2d5b;
  border-bottom: none;
  height: var(--hd-header-h);
}
/* Fully transparent on index + home pages */
body.hd-page-index .hd-header,
body.hd-page-home .hd-header {
  background: transparent;
  position: absolute;
  width: 100%;
  z-index: 20;
}
.hd-header-inner {
  display: flex; align-items: center; height: 100%;
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
}
.hd-nav {
  flex: 1; display: flex; justify-content: center;
}
.hd-logo {
  display: flex; align-items: center; gap: 0; flex-shrink: 0; text-decoration: none; margin-right: 4px;
}
.hd-logo-img { height: 34px; width: auto; display: block; }
.hd-logo-hd {
  background: var(--hd-primary);
  color: #fff;
  font-size: 16px; font-weight: 900;
  padding: 3px 7px; border-radius: 3px 0 0 3px;
  letter-spacing: 0.5px;
}
.hd-logo-today {
  background: #fff;
  color: var(--hd-navy);
  font-size: 16px; font-weight: 900;
  padding: 3px 7px; border-radius: 0 3px 3px 0;
  letter-spacing: 0.5px;
}

.hd-nav-home { margin-left: 8px; margin-right: 4px; }
.hd-nav { flex: 1; }
.hd-nav-list {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center; margin: 0 auto;
}
.hd-nav-item { position: relative; }
.hd-nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 4px;
  color: #fff; font-size: 13px; font-weight: 700;
  transition: color var(--hd-transition), background var(--hd-transition);
  white-space: nowrap;
}
.hd-nav-link:hover, .hd-nav-link.active { color: #fff; background: rgba(255,255,255,0.15); }
.hd-nav-link svg { flex-shrink: 0; }

.hd-mega-dropdown {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: #fff; border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 400; min-width: 680px;
  border: 1px solid #e3e3e3;
}
.hd-nav-item.open .hd-mega-dropdown,
.hd-hero-nav-item.open .hd-mega-dropdown { display: block; }
.hd-mega-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 12px 8px;
}
.hd-mega-inner a {
  display: block; padding: 7px 14px;
  font-size: 13px; color: #222;
  transition: color var(--hd-transition), background var(--hd-transition);
  border-radius: 4px; white-space: nowrap;
}
.hd-mega-inner a:hover { color: var(--hd-primary); background: #f0f5ff; }

.hd-header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Header search form */
.hd-header-search { display: flex; align-items: center; }
.hd-header-search-wrap {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px; overflow: hidden;
  transition: background var(--hd-transition), border-color var(--hd-transition);
}
.hd-header-search-wrap:focus-within {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}
.hd-header-search-input {
  background: none; border: none; outline: none;
  color: #fff; font-size: 13px;
  padding: 6px 12px; width: 160px;
  transition: width var(--hd-transition);
}
.hd-header-search-input::placeholder { color: rgba(255,255,255,0.6); }
.hd-header-search-btn {
  background: none; border: none; color: #fff;
  padding: 6px 10px; display: flex; align-items: center;
  cursor: pointer; opacity: 0.8; transition: opacity var(--hd-transition);
}
.hd-header-search-btn:hover { opacity: 1; }

@media (max-width: 860px) {
  .hd-header-search-input { width: 100px; }
}
@media (max-width: 640px) {
  .hd-header-search { display: none; }
}
.hd-login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--hd-radius);
  background: #fff; color: #1565c0;
  border: 1.5px solid #fff;
  font-size: 13px; font-weight: 600;
  transition: background var(--hd-transition), color var(--hd-transition);
  white-space: nowrap;
}
.hd-login-btn:hover { background: #e3f0ff; color: #0d47a1; }

.hd-hamburger {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px; cursor: pointer; border-radius: 4px;
  transition: background var(--hd-transition);
}
.hd-hamburger:hover { background: rgba(255,255,255,0.08); }
.hd-hamburger span {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform var(--hd-transition), opacity var(--hd-transition);
}

/* Mobile nav drawer */
.hd-mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 400;
}
.hd-mobile-nav.open { display: block; }
.hd-mobile-nav-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
}
.hd-mobile-nav-drawer {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 280px; background: var(--hd-navy);
  padding: 20px 0; overflow-y: auto;
  transform: translateX(-100%); transition: transform 0.28s ease;
}
.hd-mobile-nav.open .hd-mobile-nav-drawer { transform: translateX(0); }
.hd-mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--hd-header-border);
}
.hd-mobile-nav-close {
  color: #aaa; padding: 4px; border-radius: 4px;
  transition: color var(--hd-transition);
}
.hd-mobile-nav-close:hover { color: #fff; }
.hd-mobile-nav-links { padding: 12px 0; }
.hd-mobile-nav-links a {
  display: block; padding: 11px 20px;
  color: #ccc; font-size: 14px;
  transition: all var(--hd-transition);
}
.hd-mobile-nav-links a:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* Home page — header is always visible now */

/* Index page — uses same header as all pages */

/* ── NOTIFICATION BAR ──────────────────────────── */
.hd-notification-bar {
  background: var(--hd-primary); color: #fff;
  text-align: center; padding: 8px 40px;
  font-size: 13px; position: relative;
}
.hd-notification-bar a { color: #fff; text-decoration: underline; }
.hd-notification-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.7); padding: 4px;
  transition: color var(--hd-transition);
}
.hd-notification-close:hover { color: #fff; }

/* ── BREADCRUMBS ───────────────────────────────── */
.hd-breadcrumbs { padding: 12px 0; margin-bottom: 6px; position: relative; z-index: 3; }
.hd-breadcrumb-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.hd-breadcrumb-list a { color: rgba(255,255,255,0.85); font-weight: 500; transition: color var(--hd-transition); }
.hd-breadcrumb-list a:hover { color: #fff; text-decoration: underline; }
.hd-breadcrumb-sep { color: rgba(255,255,255,0.35); font-size: 12px; }
.hd-breadcrumb-current { color: rgba(255,255,255,0.55); font-weight: 500; }

/* ── AD BANNER ─────────────────────────────────── */
.hd-ad-banner { text-align: center; padding: 10px 0; }
.hd-ad-banner-inner { display: inline-block; max-width: 100%; overflow: hidden; }

/* ── MAIN ──────────────────────────────────────── */
.hd-main { min-height: calc(100vh - var(--hd-header-h) - 200px); padding-bottom: 40px; }

/* ── SEARCH HERO (home page) ───────────────────── */
.hd-search-hero {
  background: url('/templates/hdtoday/assets/images/header-bg.jpg') center top/cover no-repeat;
  padding: 0 0 52px; position: relative;
}

/* In-hero nav bar */
.hd-hero-nav {
  position: relative; z-index: 10;
}
.hd-hero-nav-inner {
  display: flex; align-items: center; gap: 4px;
  height: var(--hd-header-h);
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
}
.hd-hero-nav-home {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 4px;
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 400;
  font-family: 'Roboto', Arial, sans-serif;
  white-space: nowrap; margin-left: 8px; margin-right: 4px;
  transition: color var(--hd-transition), background var(--hd-transition);
}
.hd-hero-nav-home:hover { color: #fff; background: rgba(255,255,255,0.1); }
.hd-hero-nav-links {
  display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center;
}
.hd-hero-nav-links > a,
.hd-hero-nav-item > a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 4px;
  color: rgba(255,255,255,0.9); font-family: 'Roboto', Arial, sans-serif; font-size: 13px; font-weight: 400;
  white-space: nowrap; transition: color var(--hd-transition), background var(--hd-transition);
}
.hd-hero-nav-links > a:hover,
.hd-hero-nav-item > a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.hd-hero-nav-item { position: relative; }
.hd-hero-nav-item .hd-genre-dropdown { top: calc(100% + 4px); }
.hd-hero-nav-item.open .hd-genre-dropdown { display: block; }
.hd-hero-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Hero body (heading + search) */
.hd-hero-body {
  position: relative; z-index: 1;
  text-align: center; padding: 80px 16px 0;
}
.hd-search-heading {
  color: #fff; font-size: 28px; font-weight: 600; margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.hd-search-form {
  display: inline-flex; align-items: center; gap: 14px;
  max-width: 780px; width: 100%;
}
.hd-search-wrap {
  display: flex; align-items: center; flex: 1;
  background: #fff; border-radius: 50px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
}
.hd-search-icon { color: #999; flex-shrink: 0; margin-left: 18px; }
.hd-search-input {
  flex: 1; border: none; outline: none; background: none;
  padding: 14px 14px; font-size: 15px; color: #333;
}
.hd-search-input::placeholder { color: #aaa; }
.hd-search-btn {
  background: #1565c0; color: #fff;
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background var(--hd-transition);
  box-shadow: 0 2px 14px rgba(13,71,161,0.5);
}
.hd-search-btn:hover { background: #0d47a1; }

/* ── SECTIONS ──────────────────────────────────── */
.hd-section { margin-top: 28px; }
.hd-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.hd-section-title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: 'Roboto', Arial, sans-serif; font-size: 16px; font-weight: 300;
  color: var(--hd-text); margin-bottom: 14px;
}
.hd-section-title svg { flex-shrink: 0; }
.hd-section-title .hd-tabs { margin-left: 4px; }
.hd-view-all {
  font-size: 13px; color: var(--hd-primary); font-weight: 500; white-space: nowrap;
  transition: color var(--hd-transition);
}
.hd-view-all:hover { color: var(--hd-primary-hover); }

/* ── TABS ──────────────────────────────────────── */
.hd-tabs { display: flex; gap: 6px; }
.hd-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; border: 1px solid var(--hd-border);
  font-size: 12px; font-weight: 500; color: var(--hd-text-secondary);
  background: var(--hd-bg-card); transition: all var(--hd-transition);
}
.hd-tab.active { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-tab:hover:not(.active) { border-color: var(--hd-primary); color: var(--hd-primary); }

/* ── GRID ──────────────────────────────────────── */
.hd-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 16px; align-items: start; }
.hd-grid-6 { grid-template-columns: repeat(6, 1fr) !important; }

/* ── CARD ──────────────────────────────────────── */
.hd-card { position: relative; display: block; min-width: 0; overflow: hidden; }
.hd-card-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 2/3;
  overflow: hidden; background: #e8e8e8; border-radius: 8px;
}
.hd-card-poster img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 8px; transition: opacity 0.2s;
}
.hd-card:hover .hd-card-poster img { opacity: 0.85; }
.hd-card-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); transition: background 0.25s ease;
  border-radius: 8px;
}
.hd-card:hover .hd-card-overlay { background: rgba(0,0,0,0.35); }
.hd-card-play-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--hd-primary); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7); transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(21,101,192,0.5);
}
.hd-card:hover .hd-card-play-btn { opacity: 1; transform: scale(1); }

.hd-card-body { padding: 8px 2px 0; }
.hd-card-title {
  font-size: 13px; font-weight: 500; color: var(--hd-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px; line-height: 1.3;
}
.hd-card-title a { color: inherit; }
.hd-card-title a:hover { color: var(--hd-primary); }
.hd-card-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--hd-text-muted);
}
.hd-card-type {
  display: inline-block; padding: 1px 8px;
  border: 1px solid var(--hd-border); border-radius: 3px;
  font-size: 11px; color: var(--hd-text-muted); line-height: 1.5;
}

/* ── SLIDER ────────────────────────────────────── */
.hd-slider-wrap { position: relative; overflow: hidden; }
.hd-slider {
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.hd-slider::-webkit-scrollbar { display: none; }
.hd-slider .hd-card { flex: 0 0 calc(16.666% - 14px); scroll-snap-align: start; min-width: 0; }
.hd-slider-prev, .hd-slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 30px; height: 50px; background: rgba(0,0,0,0.55); color: #fff;
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  transition: background var(--hd-transition);
}
.hd-slider-prev:hover, .hd-slider-next:hover { background: rgba(0,0,0,0.8); }
.hd-slider-prev { left: 0; }
.hd-slider-next { right: 0; }

/* ── TRENDING SLIDER (grid on desktop, slider on mobile) ── */
.hd-trending-slider {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px 16px; align-items: start;
}
.hd-trending-slider .hd-card { min-width: 0; }
.hd-trending-arrow { display: none; }
@media (max-width: 1100px) {
  .hd-trending-slider { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  .hd-trending-slider {
    display: flex; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; padding-bottom: 4px;
  }
  .hd-trending-slider::-webkit-scrollbar { display: none; }
  .hd-trending-slider .hd-card { flex: 0 0 calc(33.333% - 8px); scroll-snap-align: start; min-width: 0; }
  .hd-trending-arrow { display: flex; }
}
@media (max-width: 420px) {
  .hd-trending-slider .hd-card { flex: 0 0 calc(33.333% - 8px); }
}

/* ── FILTER PANEL ──────────────────────────────── */
.hd-filter-panel {
  background: #fff; border-radius: 8px;
  border: 1px solid var(--hd-border);
  padding: 18px 20px; margin-bottom: 20px;
}
.hd-filter-row {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
}
.hd-filter-row:last-child { margin-bottom: 0; }
.hd-filter-label {
  font-size: 11px; font-weight: 700; color: var(--hd-text-secondary);
  min-width: 72px; padding-top: 6px; letter-spacing: 0.8px; flex-shrink: 0; text-transform: uppercase;
}
.hd-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.hd-filter-pill {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  border: 1.5px solid var(--hd-border); font-size: 12px;
  color: var(--hd-text-secondary); background: var(--hd-bg);
  transition: all var(--hd-transition); white-space: nowrap;
}
.hd-filter-pill:hover { border-color: var(--hd-primary); color: var(--hd-primary); background: var(--hd-primary-dim); }
.hd-filter-pill.active {
  border-color: var(--hd-primary); color: #fff;
  background: var(--hd-primary);
}

/* ── LIST PAGE ─────────────────────────────────── */
.hd-listpage { padding-top: 20px; }
.hd-listpage-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px;
}
.hd-listpage-title { font-size: 20px; font-weight: 700; }
.hd-filter-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 50px;
  border: 1.5px solid var(--hd-border); background: #fff;
  font-size: 13px; color: var(--hd-text-secondary); transition: all var(--hd-transition);
}
.hd-filter-toggle:hover { border-color: var(--hd-primary); color: var(--hd-primary); background: #fff; }

/* ── PAGINATION ────────────────────────────────── */
.hd-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 20px 0; }
.hd-page-btn, .hd-page-link {
  min-width: 34px; height: 34px; border-radius: var(--hd-radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; padding: 0 8px;
  border: 1px solid var(--hd-border); background: var(--hd-bg-card);
  color: var(--hd-text-secondary); transition: all var(--hd-transition);
}
.hd-page-btn:hover, .hd-page-link:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.hd-page-link.active { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── EMPTY STATE ───────────────────────────────── */
.hd-empty { text-align: center; padding: 60px 20px; color: var(--hd-text-secondary); }
.hd-empty svg { margin: 0 auto 16px; opacity: 0.4; }
.hd-empty h3 { font-size: 18px; margin-bottom: 8px; color: var(--hd-text); }
.hd-empty p { margin-bottom: 20px; }
.hd-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ───────────────────────────────────── */
.hd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--hd-radius);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all var(--hd-transition); white-space: nowrap;
  border: 2px solid transparent;
}
.hd-btn-primary { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-btn-primary:hover { background: var(--hd-primary-hover); border-color: var(--hd-primary-hover); }
.hd-btn-outline { background: none; color: var(--hd-text-secondary); border-color: var(--hd-border); }
.hd-btn-outline:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.hd-btn-play { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); padding: 10px 22px; font-size: 14px; }
.hd-btn-play:hover { background: var(--hd-primary-hover); }

/* ── TYPE TABS (search) ────────────────────────── */
.hd-type-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.hd-type-tab {
  padding: 6px 16px; border-radius: 20px; border: 1px solid var(--hd-border);
  font-size: 13px; font-weight: 500; color: var(--hd-text-secondary); background: var(--hd-bg-card);
  transition: all var(--hd-transition);
}
.hd-type-tab.active { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-type-tab:hover:not(.active) { border-color: var(--hd-primary); color: var(--hd-primary); }

/* ── SEARCH PAGE ───────────────────────────────── */
.hd-search-head { margin-bottom: 16px; }
.hd-search-h1 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.hd-search-h1 em { color: var(--hd-primary); font-style: normal; }
.hd-search-count { font-size: 13px; color: var(--hd-text-muted); }
.hd-search-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 16px;
  align-items: start;
  justify-content: start;
}
.hd-search-grid .hd-card { width: 100%; min-width: 0; }
@media (max-width: 1100px) { .hd-search-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 768px)  { .hd-search-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .hd-search-grid { grid-template-columns: repeat(2, 1fr); } }
.hd-search-empty-page { display: flex; justify-content: center; padding: 60px 20px; }
.hd-search-empty-inner { text-align: center; max-width: 500px; width: 100%; }
.hd-search-empty-icon { color: var(--hd-text-muted); margin-bottom: 16px; display: flex; justify-content: center; }
.hd-search-empty-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.hd-search-empty-sub { color: var(--hd-text-muted); margin-bottom: 20px; }
.hd-search-page-form {
  display: flex; max-width: 480px; margin: 0 auto 20px;
  background: var(--hd-bg-card); border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius); overflow: hidden;
}
.hd-search-page-input {
  flex: 1; border: none; outline: none; background: none;
  padding: 12px 14px; font-size: 14px; color: var(--hd-text);
}
.hd-search-page-input::placeholder { color: var(--hd-text-muted); }
.hd-search-page-btn {
  background: var(--hd-primary); color: #fff; padding: 0 18px;
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  transition: background var(--hd-transition);
}
.hd-search-page-btn:hover { background: var(--hd-primary-hover); }
.hd-search-empty-browse { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── DETAIL PAGE ───────────────────────────────── */
.hd-detail-top {
  position: relative; overflow: hidden;
  background: var(--hd-navy); padding-bottom: 30px;
}
.hd-detail-backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.18;
}
.hd-detail-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,26,46,0.5) 0%, rgba(26,26,46,0.95) 100%);
  pointer-events: none;
}
.hd-detail-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 190px 1fr;
  gap: 28px; padding-top: 28px;
}
.hd-detail-poster { flex-shrink: 0; position: relative; }
.hd-detail-poster img { width: 100%; border-radius: var(--hd-radius); box-shadow: 0 8px 30px rgba(0,0,0,0.5); }
.hd-detail-qual-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--hd-primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px;
}
.hd-detail-info { color: #fff; }
.hd-detail-title { font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.hd-detail-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 12px;
}
.hd-meta-imdb {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f5c518; color: #000; font-weight: 700;
  padding: 4px 10px; border-radius: 4px; font-size: 14px;
}
.hd-meta-sep { color: rgba(255,255,255,0.3); }
.hd-meta-type { color: var(--hd-primary); font-weight: 600; }
.hd-meta-status { background: rgba(255,255,255,0.12); padding: 1px 8px; border-radius: 20px; }
.hd-detail-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hd-genre-pill {
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.85); font-size: 12px;
  transition: all var(--hd-transition);
}
.hd-genre-pill:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.hd-detail-overview { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 16px; max-width: 640px; }
.hd-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hd-detail-actions .hd-btn-outline { border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); }
.hd-detail-actions .hd-btn-outline:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.hd-info-table { margin-bottom: 16px; }
.hd-info-row { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 13px; }
.hd-info-key { color: rgba(255,255,255,0.5); min-width: 90px; flex-shrink: 0; }
.hd-info-val { color: rgba(255,255,255,0.85); }
.hd-info-val a { color: rgba(255,255,255,0.85); transition: color var(--hd-transition); }
.hd-info-val a:hover { color: var(--hd-primary); }

/* ── SHARE BUTTONS ─────────────────────────────── */
.hd-share-btns { display: flex; align-items: center; gap: 7px; margin-top: 16px; }
.hd-share-label { font-size: 12px; color: rgba(255,255,255,0.5); }
.hd-share-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--hd-transition);
}
.hd-share-fb { background: #1877f2; color: #fff; }
.hd-share-fb:hover { background: #1664d8; }
.hd-share-tw { background: #1da1f2; color: #fff; }
.hd-share-tw:hover { background: #1a91da; }
.hd-share-tg { background: #0088cc; color: #fff; }
.hd-share-tg:hover { background: #007ab8; }
.hd-share-copy { background: rgba(255,255,255,0.15); color: #fff; }
.hd-share-copy:hover { background: rgba(255,255,255,0.25); }

/* ── PLAYER ────────────────────────────────────── */
.hd-player-section { padding: 0 0 16px; }
.hd-server-notice {
  display: flex; align-items: center; gap: 8px;
  background: var(--hd-primary-dim); color: var(--hd-primary);
  border-left: 3px solid var(--hd-primary);
  border-radius: var(--hd-radius); padding: 10px 14px;
  font-size: 13px; font-weight: 500; margin-top: 12px;
}
.hd-server-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 10px; }
.hd-server-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 50px;
  border: 1.5px solid var(--hd-border); background: var(--hd-bg-card);
  font-size: 13px; font-weight: 500; color: var(--hd-text-secondary);
  transition: all var(--hd-transition);
}
.hd-server-pill:hover { border-color: var(--hd-primary); color: var(--hd-primary); background: var(--hd-primary-dim); }
.hd-server-pill.is-on { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-player-wrap { position: relative; width: 100%; background: #000; border-radius: var(--hd-radius); overflow: hidden; }
.hd-player-placeholder {
  aspect-ratio: 16/9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; cursor: pointer;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
  color: rgba(255,255,255,0.7);
}
.hd-player-placeholder p { font-size: 14px; }
.hd-play-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--hd-primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--hd-transition), background var(--hd-transition);
}
.hd-player-placeholder:hover .hd-play-circle { transform: scale(1.1); background: var(--hd-primary-hover); }
.hd-player-iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }

/* ── EPISODE SECTION ───────────────────────────── */
.hd-ep-section { padding: 20px 0 8px; }
.hd-ep-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hd-season-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-season-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 18px; border-radius: 50px; border: 1.5px solid var(--hd-border);
  background: var(--hd-bg-card); font-size: 13px; font-weight: 600; color: var(--hd-text-secondary);
  transition: all var(--hd-transition);
}
.hd-season-pill.active { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-season-pill:hover:not(.active) { border-color: var(--hd-primary); color: var(--hd-primary); background: var(--hd-primary-dim); }
.hd-season-count {
  background: rgba(0,0,0,0.08); border-radius: 50px;
  padding: 1px 7px; font-size: 11px; font-weight: 500;
}
.hd-season-pill.active .hd-season-count { background: rgba(255,255,255,0.25); }
.hd-ep-nav { display: flex; gap: 6px; flex-shrink: 0; }
.hd-ep-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--hd-border); background: var(--hd-bg-card);
  color: var(--hd-text-secondary);
  display: flex; align-items: center; justify-content: center; transition: all var(--hd-transition);
}
.hd-ep-arrow:hover { border-color: var(--hd-primary); color: var(--hd-primary); background: var(--hd-primary-dim); }
.hd-episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.hd-ep-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--hd-radius); border: 1.5px solid var(--hd-border);
  background: var(--hd-bg-card); font-size: 13px; text-align: left; transition: all var(--hd-transition);
}
.hd-ep-btn:hover, .hd-ep-btn.active { background: var(--hd-primary); color: #fff; border-color: var(--hd-primary); }
.hd-ep-play {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--hd-primary-dim);
  display: flex; align-items: center; justify-content: center;
}
.hd-ep-btn.active .hd-ep-play, .hd-ep-btn:hover .hd-ep-play { background: rgba(255,255,255,0.25); }
.hd-ep-info { display: flex; flex-direction: column; min-width: 0; }
.hd-ep-num { font-weight: 700; font-size: 13px; }
.hd-ep-name { font-size: 11px; opacity: 0.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }

/* ── SEO LINKS ─────────────────────────────────── */
.hd-seo-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 16px; }
.hd-seo-links a {
  padding: 4px 12px; border-radius: 20px; border: 1px solid var(--hd-border);
  font-size: 11px; color: var(--hd-text-muted); background: var(--hd-bg-card);
  transition: all var(--hd-transition);
}
.hd-seo-links a:hover { border-color: var(--hd-primary); color: var(--hd-primary); }

/* ── COMMENTS ──────────────────────────────────── */
.hd-comments { background: var(--hd-bg-card); border-radius: var(--hd-radius); padding: 20px; }
.hd-comments-off { color: var(--hd-text-muted); font-size: 13px; text-align: center; padding: 20px 0; }

/* ── INTERSTITIAL ──────────────────────────────── */
.hd-interstitial {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center;
}
.hd-interstitial-inner {
  background: var(--hd-bg-card); border-radius: var(--hd-radius-lg);
  padding: 32px 40px; text-align: center; max-width: 380px; box-shadow: var(--hd-shadow);
}
.hd-interstitial-inner p { margin-bottom: 16px; font-size: 15px; }
.hd-interstitial-close { display: block; margin-top: 12px; color: var(--hd-text-muted); font-size: 13px; transition: color var(--hd-transition); }
.hd-interstitial-close:hover { color: var(--hd-text); }

/* ── HERO BANNER (category/country/person) ─────── */
.hd-hero-banner {
  padding: 14px 0; margin-bottom: 16px; width: 100%;
  border-bottom: 1px solid var(--hd-border);
}
.hd-hero-banner .hd-container {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ── GENRE / COUNTRY LISTING GRID ──────────────── */
.hd-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 40px;
}
.hd-list-item {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 10px; border-radius: var(--hd-radius);
  background: var(--hd-bg-card); border: 1px solid var(--hd-border);
  font-size: 13px; font-weight: 500; color: var(--hd-text);
  text-align: center; transition: all var(--hd-transition);
}
.hd-list-item:hover {
  background: var(--hd-primary); color: #fff;
  border-color: var(--hd-primary); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.3);
}
.hd-hero-badge {
  display: inline-block; background: var(--hd-primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.hd-hero-title { font-size: 18px; font-weight: 700; margin-bottom: 0; color: var(--hd-text); }
.hd-hero-sub { color: var(--hd-text-muted); font-size: 13px; margin-bottom: 0; }

/* ── REPORT MODAL ──────────────────────────────── */
.hd-modal { display: none; position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.hd-modal.open { display: flex; }
.hd-modal-box { background: var(--hd-bg-card); border-radius: var(--hd-radius-lg); padding: 24px; width: 100%; max-width: 440px; box-shadow: var(--hd-shadow); }
.hd-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hd-modal-title { font-size: 16px; font-weight: 700; }
.hd-modal-close { color: var(--hd-text-muted); padding: 4px; border-radius: 4px; transition: color var(--hd-transition); }
.hd-modal-close:hover { color: var(--hd-text); }
.hd-modal-context { font-size: 12px; color: var(--hd-text-muted); margin-bottom: 14px; }
.hd-form-group { margin-bottom: 14px; }
.hd-form-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; color: var(--hd-text-secondary); }
.hd-form-input, .hd-form-textarea, .hd-form-select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius);
  background: var(--hd-bg-input); color: var(--hd-text); font-size: 13px; outline: none;
  transition: border-color var(--hd-transition);
}
.hd-form-input:focus, .hd-form-textarea:focus, .hd-form-select:focus { border-color: var(--hd-primary); }
.hd-form-textarea { resize: vertical; min-height: 80px; }
.hd-form-submit {
  width: 100%; padding: 10px; background: var(--hd-primary); color: #fff;
  border: none; border-radius: var(--hd-radius); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background var(--hd-transition);
}
.hd-form-submit:hover { background: var(--hd-primary-hover); }

/* ── SUBSCRIBE POPUP ───────────────────────────── */
.hd-subscribe-popup {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 400;
  background: var(--hd-bg-card); border-radius: var(--hd-radius-lg); padding: 20px;
  max-width: 300px; width: 100%; box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  border-top: 3px solid var(--hd-primary);
}
.hd-subscribe-popup.visible { display: block; }
.hd-subscribe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hd-subscribe-title { font-size: 15px; font-weight: 700; }
.hd-subscribe-close { color: var(--hd-text-muted); padding: 2px; transition: color var(--hd-transition); }
.hd-subscribe-close:hover { color: var(--hd-text); }
.hd-subscribe-text { font-size: 13px; color: var(--hd-text-secondary); margin-bottom: 14px; }
.hd-subscribe-form { display: flex; gap: 6px; }
.hd-subscribe-input {
  flex: 1; padding: 8px 10px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius);
  font-size: 12px; outline: none; background: var(--hd-bg-input); transition: border-color var(--hd-transition);
}
.hd-subscribe-input:focus { border-color: var(--hd-primary); }
.hd-subscribe-btn {
  background: var(--hd-primary); color: #fff; padding: 8px 14px; border-radius: var(--hd-radius);
  font-size: 12px; font-weight: 600; transition: background var(--hd-transition);
}
.hd-subscribe-btn:hover { background: var(--hd-primary-hover); }

/* ── TOAST ─────────────────────────────────────── */
.hd-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a2e; color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: 13px; z-index: 700; opacity: 0;
  transition: opacity 0.2s, transform 0.2s; pointer-events: none; white-space: nowrap;
}
.hd-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── ALERTS ────────────────────────────────────── */
.hd-alert { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--hd-radius); font-size: 13px; margin-bottom: 16px; }
.hd-alert-success { background: #f0fff4; color: var(--hd-success); border: 1px solid #c6f6d5; }
.hd-alert-error { background: #fff5f5; color: var(--hd-danger); border: 1px solid #fed7d7; }

/* ── STATIC PAGES ──────────────────────────────── */
.hd-static-wrap { max-width: 740px; margin: 0 auto; padding-top: 28px; }
.hd-static-page { padding-top: 28px; max-width: 800px; margin: 0 auto; }
.hd-static-hero { margin-bottom: 28px; }
.hd-static-title { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.hd-static-meta { color: var(--hd-text-muted); font-size: 13px; }
.hd-static-sub { color: var(--hd-text-secondary); font-size: 14px; margin-bottom: 24px; }
.hd-static-body h2 { font-size: 17px; font-weight: 700; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--hd-border); }
.hd-static-body p { margin-bottom: 12px; color: var(--hd-text-secondary); line-height: 1.7; }
.hd-static-body ul, .hd-static-body ol { margin: 0 0 12px 20px; color: var(--hd-text-secondary); line-height: 1.7; }
.hd-static-body ul { list-style: disc; }
.hd-static-body ol { list-style: decimal; }
.hd-static-body a { color: var(--hd-primary); }
.hd-static-body a:hover { text-decoration: underline; }

/* ── 404 PAGE ──────────────────────────────────── */
.hd-404 { display: flex; align-items: center; justify-content: center; min-height: 60vh; text-align: center; }
.hd-404-inner { padding: 40px 20px; }
.hd-404-code { font-size: 100px; font-weight: 900; line-height: 1; color: var(--hd-primary); margin-bottom: 10px; opacity: 0.8; }
.hd-404-title { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.hd-404-text { color: var(--hd-text-secondary); margin-bottom: 24px; font-size: 15px; }
.hd-404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── INDEX PAGE ────────────────────────────────── */
body.hd-page-index { background: #143d80; color: #fff; }
body.hd-page-index .hd-main { padding-bottom: 0; }
.hd-index {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  background: url('/templates/hdtoday/assets/images/homesearchbg.jpg') center top / cover no-repeat;
  position: relative;
}
.hd-index::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(10, 20, 50, 0.65);
  pointer-events: none; z-index: 0;
}
.hd-index-hero {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 20px 44px; text-align: center; width: 100%; position: relative; z-index: 1;
}
.hd-index-logo-link { display: inline-block; margin-bottom: 14px; }
.hd-index-logo-img { height: 90px; width: auto; display: block; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5)); }
.hd-index-site-name { color: rgba(255,255,255,0.9); font-size: 20px; font-weight: 600; margin-bottom: 28px; letter-spacing: 0.5px; }
.hd-index-search {
  display: flex; width: 100%; max-width: 580px;
  background: #fff; border-radius: 6px; overflow: hidden;
  margin-bottom: 24px; box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hd-index-search-input { flex: 1; background: none; border: none; outline: none; padding: 14px 20px; color: #333; font-size: 14px; }
.hd-index-search-input::placeholder { color: #aaa; }
.hd-index-search-btn {
  background: #1a6fc4; color: #fff; padding: 0 22px;
  display: flex; align-items: center; justify-content: center; transition: background var(--hd-transition);
  border-radius: 0;
}
.hd-index-search-btn:hover { background: #155fa8; }
.hd-index-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; border-radius: 50px;
  background: #4a7fe0; color: #fff;
  font-size: 16px; font-weight: 700;
  border: 3px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 20px rgba(74,127,224,0.45);
  transition: all var(--hd-transition);
  letter-spacing: 0.2px;
}
.hd-index-cta:hover {
  background: #3a6fd0; border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(74,127,224,0.6);
}
.hd-index-cta .hd-cta-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hd-index-article {
  max-width: 720px; width: 100%; margin: 0 auto; padding: 36px 24px 48px;
  color: #fff; font-size: 14px; line-height: 1.75;
  text-align: center; position: relative; z-index: 1;
}
.hd-index-article p { margin-bottom: 10px; }
.hd-index-article ul { list-style: none; margin: 10px 0 14px; padding: 0; }
.hd-index-article ul li { margin-bottom: 4px; }
.hd-index-article ul li::before { content: '- '; }
.hd-index-article h2 { font-size: 17px; font-weight: 700; color: #fff; margin: 28px 0 10px; }
.hd-index-cta-mid, .hd-index-cta-bottom { display: flex; justify-content: center; margin: 24px 0; }

/* ── FOOTER ────────────────────────────────────── */
.hd-footer { background: #111; color: rgba(255,255,255,0.7); padding: 0; }
.hd-footer-inner { max-width: 1240px; margin: 0 auto; padding: 28px 16px; }
.hd-footer-cols { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start; }
.hd-footer-col-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hd-footer-logo-link { display: inline-block; }
.hd-footer-logo-img { height: 40px; width: auto; display: block; }
.hd-footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.hd-footer-col-info { min-width: 0; }
.hd-footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.hd-footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.hd-footer-links a { color: rgba(255,255,255,0.6); transition: color var(--hd-transition); }
.hd-footer-links a:hover { color: #fff; }
.hd-footer-links span { color: rgba(255,255,255,0.25); }
.hd-footer-col-notice {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 14px 16px; max-width: 260px;
  font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.4);
}
@media (max-width: 860px) {
  .hd-footer-cols { grid-template-columns: 1fr; gap: 20px; }
  .hd-footer-col-logo { flex-direction: row; align-items: center; gap: 12px; }
  .hd-footer-col-notice { max-width: 100%; }
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1100px) {
  .hd-grid { grid-template-columns: repeat(5, 1fr); }
  .hd-slider .hd-card { flex: 0 0 calc(20% - 13px); }
}
@media (max-width: 860px) {
  .hd-grid { grid-template-columns: repeat(4, 1fr); }
  .hd-slider .hd-card { flex: 0 0 calc(25% - 12px); }
  .hd-nav-list { display: none; }
  .hd-hamburger { display: flex; }
  .hd-login-btn { display: none; }
  .hd-detail-grid { grid-template-columns: 150px 1fr; gap: 16px; }
  .hd-detail-title { font-size: 20px; }
}
@media (max-width: 640px) {
  .hd-grid { grid-template-columns: repeat(3, 1fr); }
  .hd-slider .hd-card { flex: 0 0 calc(33.333% - 11px); }
  .hd-detail-grid { grid-template-columns: 1fr; }
  .hd-detail-poster { max-width: 200px; margin: 0 auto; }
  .hd-detail-info { text-align: center; }
  .hd-detail-genres { justify-content: center; }
  .hd-detail-actions { justify-content: center; }
  .hd-search-heading { font-size: 18px; }
  .hd-static-title { font-size: 22px; }
  .hd-404-code { font-size: 70px; }
}
@media (max-width: 420px) {
  .hd-grid { grid-template-columns: repeat(2, 1fr); }
  .hd-slider .hd-card { flex: 0 0 calc(50% - 8px); }
}

/* ── PAGINATION (paginationHtml helper output) ─── */
nav.pagination { display: flex; justify-content: center; padding: 20px 0; }
.pagination__list { display: flex; align-items: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.pagination__item { display: flex; }
.pagination__link {
  min-width: 34px; height: 34px; border-radius: var(--hd-radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; padding: 0 8px;
  border: 1px solid var(--hd-border); background: var(--hd-bg-card);
  color: var(--hd-text-secondary); transition: all var(--hd-transition);
  text-decoration: none;
}
.pagination__link:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.pagination__link--active { background: var(--hd-primary); color: #fff !important; border-color: var(--hd-primary); }
.pagination__ellipsis {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--hd-text-muted); font-size: 13px;
}


/* ── CHECK GROUP (report modal) ────────────────── */
.hd-check-group { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.hd-check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--hd-text-secondary); cursor: pointer;
}
.hd-check-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--hd-primary); cursor: pointer; flex-shrink: 0; }

/* ── MISC MISSING ──────────────────────────────── */
.hd-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hd-ad { text-align: center; padding: 10px 0; }
.hd-btn-sm { padding: 6px 12px !important; font-size: 12px !important; }

/* ── INDEX PAGE: SEO SECTIONS ──────────────────── */
.hd-index-intro {
  text-align: center; padding: 0 20px 10px; position: relative; z-index: 1;
}
.hd-index-h1 {
  font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.hd-index-subtitle {
  color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 700px;
  margin: 0 auto; line-height: 1.65;
}
.hd-index-section {
  max-width: 800px; width: 100%; margin: 0 auto; padding: 24px 20px 0;
  position: relative; z-index: 1;
}
.hd-index-section-title {
  text-align: center; font-size: 1.25rem; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.hd-index-trending-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
}
.hd-index-trending-chip {
  color: rgba(255,255,255,0.85); font-size: 0.88rem; padding: 5px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px; transition: all 0.2s; text-decoration: none;
}
.hd-index-trending-chip:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2);
}
.hd-index-trending-year { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.hd-index-genre-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px;
}
.hd-index-genre-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 5px;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; text-decoration: none;
  transition: all 0.2s;
}
.hd-index-genre-item:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2);
}
.hd-index-genre-name { font-weight: 500; }
.hd-index-genre-count { color: rgba(255,255,255,0.35); font-size: 0.78rem; }
.hd-index-mostwatched {
  list-style: none; max-width: 600px; margin: 0 auto;
}
.hd-index-mw-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hd-index-mw-rank {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border-radius: 4px;
  color: #fff; font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.hd-index-mw-link {
  color: rgba(255,255,255,0.85); font-size: 0.9rem; text-decoration: none;
  transition: color 0.2s;
}
.hd-index-mw-link:hover { color: #fff; }
.hd-index-mw-rating { color: #f5c518; font-size: 0.78rem; margin-left: 6px; }
.hd-index-faq { padding-bottom: 40px; }
.hd-index > .hd-index-section:last-of-type { padding-bottom: 60px; }
.hd-index-faq-sub {
  text-align: center; color: rgba(255,255,255,0.5); font-size: 0.92rem;
  margin-bottom: 24px;
}
.hd-index-faq-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 18px 20px; margin-bottom: 12px;
}
.hd-index-faq-q {
  font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 8px;
}
.hd-index-faq-a {
  font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.7;
}
@media (max-width: 640px) {
  .hd-index-h1 { font-size: 1.15rem; }
  .hd-index-genre-grid { grid-template-columns: repeat(2, 1fr); }
}
