/* ==========================================================================
   Homepage V2 - Theme-Consistent Layout (Sorozat.cc / Vuesy Palette)
   Maintains structure from reference, but uses native theme colors & cards
   ========================================================================== */

:root {
  --hp-primary: #776acf;
  --hp-primary-hover: #6559b3;
  --hp-primary-dark: #564ab1;
  --hp-primary-soft: rgba(119, 106, 207, 0.12);
  --hp-primary-soft-hover: rgba(119, 106, 207, 0.2);
  --hp-card-bg: var(--bs-card-bg, #ffffff);
  --hp-card-border: var(--bs-card-border-color, var(--bs-border-color, #eff0f2));
  --hp-text-main: var(--bs-body-color, #1a1823);
  --hp-text-muted: var(--bs-text-muted, #74788d);
  --hp-text-dim: #959396;
  --hp-bg-subtle: var(--bs-tertiary-bg, #f8f9fa);
  --hp-bg-hover: rgba(119, 106, 207, 0.05);
  --hp-gold: #f8d24a;
  --hp-radius-sm: 6px;
  --hp-radius-md: 10px;
  --hp-radius-lg: 12px;
}

/* Base Homepage Wrapper */
.homepage-v2 {
  color: var(--hp-text-main);
  font-family: inherit;
}

.homepage-v2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

/* Card Foundations */
.hp-card {
  background: var(--hp-card-bg);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-card-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hp-card-border);
  background: transparent;
}

.hp-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.hp-card-title i {
  color: var(--hp-primary);
  font-size: 18px;
}

.hp-card-link {
  font-size: 12.5px;
  color: var(--hp-text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hp-card-link:hover {
  color: var(--hp-primary);
}

.hp-card-link i {
  font-size: 14px;
  transition: transform 0.18s ease;
}

.hp-card-link:hover i {
  transform: translateX(3px);
}

.hp-card-footer {
  padding: 12px 18px;
  text-align: center;
  border-top: 1px solid var(--hp-card-border);
  background: var(--hp-bg-subtle);
}

/* Badges */
.hp-badge-gold,
.hp-badge-primary {
  background: var(--hp-primary);
  color: #fff !important;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.hp-badge-counter {
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

.hp-badge-channel {
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   1. HERO CAROUSEL SECTION
   ========================================================================== */
.hp-hero-carousel {
  position: relative;
  height: 400px;
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hp-card-border);
  background: #1a1823;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hp-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  background-size: cover;
  background-position: center top;
  z-index: 1;
}

.hp-hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hp-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(26, 24, 35, 0.95) 0%,
      rgba(26, 24, 35, 0.82) 45%,
      rgba(26, 24, 35, 0.25) 100%
    ),
    linear-gradient(
      0deg,
      rgba(26, 24, 35, 0.98) 0%,
      rgba(26, 24, 35, 0.4) 50%,
      transparent 100%
    );
}

.hp-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 620px;
}

.hp-hero-badge-wrap {
  margin-bottom: 12px;
}

.hp-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hp-hero-meta {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hp-hero-meta .rating-star {
  color: var(--hp-gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hp-hero-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hp-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hp-btn-primary {
  background: var(--hp-primary);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--hp-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(119, 106, 207, 0.35);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hp-btn-primary:hover {
  background: var(--hp-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(119, 106, 207, 0.5);
}

.hp-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--hp-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.hp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

.hp-hero-nav {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-hero-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.hp-hero-btn:hover {
  background: var(--hp-primary);
  color: #fff;
  border-color: var(--hp-primary);
}

.hp-hero-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hp-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hp-hero-dot.active {
  width: 24px;
  background: var(--hp-primary);
}

/* ==========================================================================
   2. TODAY'S EPISODES LIST (HERO SIDEBAR)
   ========================================================================== */
.hp-today-list {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  height: calc(400px - 53px);
  overflow-y: auto;
}

.hp-today-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--hp-radius-sm);
  transition: background 0.18s ease;
}

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

.hp-today-thumb {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hp-today-item:hover .hp-today-thumb {
  transform: scale(1.05);
  border-color: var(--hp-primary);
  box-shadow: 0 4px 12px rgba(119, 106, 207, 0.25);
}

.hp-today-info {
  flex-grow: 1;
  min-width: 0;
}

.hp-today-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hp-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.hp-today-item:hover .hp-today-title {
  color: var(--hp-primary);
}

.hp-today-sub {
  font-size: 12px;
  color: var(--hp-text-muted);
}

/* ==========================================================================
   3. STATS BAR & NEWSLETTER ROW
   ========================================================================== */
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 18px 24px;
  align-items: center;
}

.hp-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--hp-card-border);
  padding-right: 12px;
}

.hp-stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.hp-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hp-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--hp-text-main);
  line-height: 1.1;
}

.hp-stat-lbl {
  font-size: 11.5px;
  color: var(--hp-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Newsletter Box */
.hp-newsletter-card {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.hp-newsletter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hp-newsletter-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.hp-newsletter-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text-main);
  line-height: 1.35;
}

.hp-newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.hp-newsletter-input {
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--hp-text-main);
  width: 190px;
  outline: none;
  transition: border-color 0.18s ease;
}

.hp-newsletter-input:focus {
  border-color: var(--hp-primary);
  background: var(--hp-card-bg);
}

.hp-newsletter-btn,
a.hp-newsletter-btn {
  background: var(--hp-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--hp-radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hp-newsletter-btn:hover,
a.hp-newsletter-btn:hover {
  background: var(--hp-primary-hover);
  color: #ffffff !important;
}

/* ==========================================================================
   4. TABS & FILTER PILLS
   ========================================================================== */
.hp-tabs {
  display: flex;
  gap: 4px;
  background: var(--hp-bg-subtle);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--hp-card-border);
}

.hp-tab-btn {
  background: transparent;
  border: none;
  color: var(--hp-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hp-tab-btn:hover {
  color: var(--hp-primary);
}

.hp-tab-btn.active {
  background: var(--hp-primary);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(119, 106, 207, 0.25);
}

/* ==========================================================================
   5. COLUMN 1: LATEST EPISODES LIST
   ========================================================================== */
.hp-latest-list {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
}

.hp-latest-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 10px;
  border-radius: var(--hp-radius-sm);
  border-bottom: 1px solid var(--hp-card-border);
  transition: background 0.18s ease;
}

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

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

.hp-latest-thumb {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hp-latest-item:hover .hp-latest-thumb {
  transform: scale(1.05);
  border-color: var(--hp-primary);
  box-shadow: 0 4px 12px rgba(119, 106, 207, 0.25);
}

.hp-latest-info {
  flex-grow: 1;
  min-width: 0;
}

.hp-latest-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hp-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.hp-latest-item:hover .hp-latest-title {
  color: var(--hp-primary);
}

.hp-latest-meta {
  font-size: 12px;
  color: var(--hp-text-muted);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-latest-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-latest-time {
  font-size: 11.5px;
  color: var(--hp-text-dim);
}

/* ==========================================================================
   5.5. LATEST EPISODES GRID (FULL-WIDTH SECTION)
   ========================================================================== */
.hp-episodes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 20px;
}

.hp-episode-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius-md);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
}

.hp-episode-card:hover {
  transform: translateY(-4px);
  border-color: var(--hp-primary) !important;
  box-shadow: 0 10px 24px rgba(119, 106, 207, 0.22);
}

.hp-episode-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #10141a;
  flex-shrink: 0;
}

.hp-episode-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.hp-episode-card:hover .hp-episode-thumb {
  transform: scale(1.06);
}

.hp-episode-badge-ep {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hp-episode-badge-ch {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(119, 106, 207, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.hp-episode-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hp-episode-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-main);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.hp-episode-card:hover .hp-episode-title {
  color: var(--hp-primary);
}

.hp-episode-meta {
  font-size: 11.5px;
  color: var(--hp-text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-episode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--hp-text-dim);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

/* ==========================================================================
   6. COLUMN 2: POPULAR SERIES & MOVIES TOP 10 GRID
   ========================================================================== */
.hp-popular-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 12px;
  padding: 16px 20px;
  align-items: start;
}

.hp-poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  text-decoration: none !important;
}

.hp-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--hp-radius-sm);
  overflow: hidden;
  background: var(--hp-bg-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--hp-card-border);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  flex-shrink: 0;
}

.hp-poster-card:hover .hp-poster-wrap {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(119, 106, 207, 0.22), 0 4px 10px rgba(0, 0, 0, 0.12);
  border-color: var(--hp-primary);
}

.hp-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.hp-poster-card:hover .hp-poster-img {
  transform: scale(1.06);
}

.hp-rank-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, var(--hp-primary) 0%, var(--hp-primary-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hp-rating-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(33, 37, 41, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--hp-gold);
  font-weight: 700;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hp-poster-title {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-text-main);
  line-height: 1.3;
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  height: 31px;
  word-break: break-word;
  transition: color 0.18s ease;
}

.hp-poster-card:hover .hp-poster-title {
  color: var(--hp-primary);
}

/* ==========================================================================
   7. COLUMN 3: POPULAR MOVIES TOP 5 LIST
   ========================================================================== */
.hp-movie-list {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
}

.hp-movie-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: var(--hp-radius-sm);
  border-bottom: 1px solid var(--hp-card-border);
  transition: background 0.18s ease;
}

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

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

.hp-movie-rank {
  font-size: 18px;
  font-weight: 900;
  color: var(--hp-primary);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.hp-movie-thumb {
  width: 46px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-card-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hp-movie-item:hover .hp-movie-thumb {
  transform: scale(1.05);
  border-color: var(--hp-primary);
  box-shadow: 0 4px 12px rgba(119, 106, 207, 0.25);
}

.hp-movie-info {
  flex-grow: 1;
  min-width: 0;
}

.hp-movie-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hp-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.hp-movie-item:hover .hp-movie-title {
  color: var(--hp-primary);
}

.hp-movie-meta {
  font-size: 12px;
  color: var(--hp-text-muted);
}

.hp-movie-rating {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--hp-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: var(--hp-primary-soft);
  border: 1px solid rgba(119, 106, 207, 0.2);
  padding: 3px 8px;
  border-radius: 6px;
}

.hp-movie-rating i {
  color: #f59e0b;
  font-size: 12px;
}

/* ==========================================================================
   7.5. LATEST BLOG POSTS GRID & CARDS
   ========================================================================== */
.hp-blogs-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 20px;
}

.hp-blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-card-border);
  border-radius: var(--hp-radius-md);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
  text-decoration: none !important;
}

.hp-blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--hp-primary) !important;
  box-shadow: 0 10px 24px rgba(119, 106, 207, 0.25);
}

.hp-blog-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #10141a;
  flex-shrink: 0;
}

.hp-blog-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.hp-blog-card:hover .hp-blog-thumb {
  transform: scale(1.06);
}

.hp-blog-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(119, 106, 207, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hp-blog-body {
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hp-blog-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 35px;
  word-break: break-word;
  transition: color 0.18s ease;
}

.hp-blog-card:hover .hp-blog-title {
  color: var(--hp-primary);
}

.hp-blog-excerpt {
  font-size: 12px;
  color: var(--hp-text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--hp-text-dim);
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.hp-blog-read-more {
  color: var(--hp-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: transform 0.18s ease;
}

.hp-blog-card:hover .hp-blog-read-more {
  transform: translateX(2px);
}

/* ==========================================================================
   8. BOTTOM ROW: TRENDING TAGS & CALENDAR
   ========================================================================== */
.hp-trending-box {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 72px;
}

.hp-trending-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hp-text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-right: 4px;
}

.hp-tag-pill {
  background: var(--hp-bg-subtle);
  border: 1px solid var(--hp-card-border);
  color: var(--hp-text-main);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  transition: all 0.18s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.hp-tag-pill:hover {
  background: var(--hp-primary);
  color: #fff !important;
  border-color: var(--hp-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(119, 106, 207, 0.3);
}

.hp-calendar-box {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  min-height: 72px;
}

.hp-calendar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-calendar-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--hp-primary-soft);
  color: var(--hp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hp-calendar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hp-text-main);
  line-height: 1.2;
}

.hp-calendar-sub {
  font-size: 11.5px;
  color: var(--hp-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1400px) {
  .hp-episodes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .hp-popular-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hp-blogs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .hp-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .hp-stat-item {
    border-right: none;
  }
  .hp-newsletter-card {
    flex-direction: column;
    align-items: stretch;
  }
  .hp-newsletter-input {
    width: 100%;
  }
  .hp-popular-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hp-hero-carousel {
    height: 360px;
  }
  .hp-hero-content {
    padding: 20px 16px;
    max-width: 100%;
  }
  .hp-hero-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }
  .hp-hero-meta {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .hp-hero-desc {
    display: none;
  }
  .hp-hero-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
  }
  .hp-btn-primary,
  .hp-btn-secondary {
    flex: 1 1 50%;
    padding: 9px 12px;
    font-size: 13px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }
  .hp-hero-nav {
    top: 14px;
    bottom: auto;
    right: 14px;
    z-index: 5;
    gap: 6px;
    background: rgba(15, 13, 29, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  .hp-hero-btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
  }
  .hp-hero-dots {
    gap: 4px;
  }
  .hp-hero-dot {
    width: 5px;
    height: 5px;
  }
  .hp-hero-dot.active {
    width: 14px;
  }
  .hp-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hp-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hp-episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hp-blogs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hp-today-list {
    height: auto;
    max-height: 320px;
  }
}

@media (max-width: 480px) {
  .hp-hero-carousel {
    height: 350px;
  }
  .hp-hero-title {
    font-size: 1.25rem;
  }
  .hp-btn-primary,
  .hp-btn-secondary {
    padding: 8px 10px;
    font-size: 12.5px;
    gap: 5px;
  }
  .hp-episodes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hp-blogs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
