/* ==========================================================================
   SCTV Advertising — Broadcast Editorial Design System
   Inspired by FOX Advertising (foxadvertising.com & /insights)
   Typography: Oswald (Display/Stats) + DM Sans & Be Vietnam Pro (Body/UI)
   Palette: Nexus Blue (#030063) + Warm Paper (#f5f5e6) + Fan Blue (#3e51ff) + Kinetic Blue (#70b1ff)
   ========================================================================== */

:root {
  --nexus-blue: #003875;
  --nexus-deep: #00244d;
  --off-white: #f7f9fc;
  --off-white-card: #ffffff;
  --fan-blue: #005bb5;
  --fan-blue-hover: #00478f;
  --kinetic-blue: #cfe4ff;
  --hype-blue: #004b97;
  --fox-gold: #f3aa1c;
  --sctv-red: #e60000;

  --text-dark: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-on-dark: #ffffff;

  --line-dark: rgba(0, 75, 151, 0.14);
  --line-strong: rgba(0, 75, 151, 0.28);
  --line-light: rgba(255, 255, 255, 0.2);

  --radius-sharp: 24px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-arch: 28px 76px 28px 28px;
  --radius-arch-alt: 76px 28px 28px 28px;
  --radius-pill: 999px;

  --font-display: 'Montserrat', 'Roboto', Arial, sans-serif;
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --transition: 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-dark);
  background-color: var(--off-white);
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

section,
.main-content,
.main-content-2,
.tab-inner,
.search-container {
  min-width: 0;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--fan-blue);
  outline-offset: 2px;
}

button, a, select, input {
  font-family: inherit;
}

/* ==========================================================================
   1. FLOATING GLASS PILL NAVIGATION (FOX .nav-primary style)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 18px 24px;
  pointer-events: none;
  transition: padding 0.3s ease;
}

nav.nav {
  pointer-events: all;
  width: 100%;
  max-width: 1220px;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 35px;
  padding: 8px 14px 8px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 10px 24px;
}

header.scrolled nav.nav {
  max-width: 1080px;
  background: rgba(3, 0, 99, 0.94);
  border-color: rgba(255, 255, 255, 0.18);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  cursor: pointer;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 265px;
  background: var(--off-white);
  border: 2px solid var(--nexus-blue);
  border-radius: 22px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-link[data-dropdown]:hover .nav-dropdown,
.nav-link[data-dropdown]:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 14px;
  color: var(--nexus-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 14px;
  transition: background var(--transition), color var(--transition);
}

.dropdown-link:hover {
  background: var(--kinetic-blue);
  color: var(--nexus-blue);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.nav-search-btn:hover {
  background: var(--fan-blue);
  transform: scale(1.06);
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--fan-blue);
  color: #ffffff;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   2. HERO SECTION (FULL-BLEED NEXUS BLUE + OSWALD CONDENSED)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 24px 84px;
  background-color: var(--nexus-blue);
  overflow: hidden;
}

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('/header.png');
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 0, 99, 0.55) 0%,
    rgba(3, 0, 99, 0.86) 68%,
    rgba(3, 0, 99, 0.98) 100%
  );
}

.hero-lockup {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  color: var(--off-white);
}

.hero-lockup h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 960px;
  color: var(--off-white);
}

.hero-lockup h1 em {
  font-style: normal;
  color: var(--kinetic-blue);
}

.hero-lockup p {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(245, 245, 230, 0.9);
  max-width: 680px;
  margin-bottom: 32px;
}

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

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--fan-blue);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--fan-blue-hover);
  transform: translateY(-2px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid rgba(245, 245, 230, 0.45);
  color: var(--off-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), border-color var(--transition);
}

.hero-cta-secondary:hover {
  background: rgba(245, 245, 230, 0.12);
  border-color: var(--off-white);
}

/* ==========================================================================
   3. PORTFOLIO / NETWORK STRIP (NEXUS BLUE TRANSITION BAND)
   ========================================================================== */
.portfolio-strip {
  background: var(--nexus-blue);
  border-top: 2px solid var(--line-light);
  border-radius: 0 0 48px 48px;
  padding: 48px 24px 68px;
}

.portfolio-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-headline {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--kinetic-blue);
  margin-bottom: 4px;
}

.portfolio-sub {
  font-size: 0.95rem;
  color: rgba(245, 245, 230, 0.65);
  margin-bottom: 24px;
}

.portfolio-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: center;
}

.portfolio-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px 22px 22px 4px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.portfolio-logo-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--kinetic-blue);
  transform: translateY(-2px);
}

.portfolio-logo-link img {
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   4. MEDIA PLANNER (FOX /INSIGHTS FLAT PLACARD GRID ON WARM PAPER)
   ========================================================================== */
#media-planner {
  padding: 76px 24px !important;
  background: var(--off-white) !important;
  border-bottom: 2px solid var(--line-dark) !important;
}

.planner-bento-shell {
  max-width: 1200px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.planner-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.planner-widget {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-arch) !important;
  padding: 38px 34px !important;
  margin-bottom: 0 !important;
  min-width: 0 !important;
  box-shadow: none !important;
  transition: transform var(--transition);
}

.planner-widget--tv {
  background: var(--nexus-blue) !important;
  color: var(--off-white) !important;
  border-radius: var(--radius-arch) !important;
}

.planner-widget--ott {
  background: var(--kinetic-blue) !important;
  color: var(--nexus-blue) !important;
  border-radius: var(--radius-arch-alt) !important;
}

.planner-widget h3 {
  font-family: var(--font-display);
  text-align: left !important;
  font-size: 2rem !important;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 8px !important;
}

.planner-widget--tv h3 {
  color: var(--off-white) !important;
}

.planner-widget--ott h3 {
  color: var(--nexus-blue) !important;
}

.planner-widget > p {
  text-align: left !important;
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 24px !important;
}

.planner-widget--tv > p {
  color: rgba(245, 245, 230, 0.82) !important;
}

.planner-widget--ott > p {
  color: rgba(3, 0, 99, 0.82) !important;
}

.planner-field-card {
  padding: 16px 0 !important;
  border-top: 2px solid currentColor;
  border-radius: 0 !important;
  background: transparent !important;
}

.planner-widget--tv .planner-field-card {
  border-top-color: rgba(245, 245, 230, 0.2);
}

.planner-widget--ott .planner-field-card {
  border-top-color: rgba(3, 0, 99, 0.18);
}

.planner-field-card h4 {
  font-size: 0.92rem !important;
  font-weight: 700;
  margin-bottom: 10px !important;
  color: inherit !important;
}

.planner-field-card select,
.planner-field-card input {
  width: 100%;
  padding: 13px 16px !important;
  border-radius: var(--radius-sharp) !important;
  border: 2px solid transparent !important;
  background: var(--off-white);
  color: var(--nexus-blue) !important;
  font-size: 0.96rem !important;
  font-weight: 600;
}

.planner-field-card select:focus,
.planner-field-card input:focus {
  outline: none;
  border-color: var(--fan-blue) !important;
}

.planner-cta-btn {
  width: 100%;
  padding: 15px 26px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  cursor: pointer;
  border: none;
  box-shadow: none !important;
  transition: transform var(--transition), filter var(--transition);
}

.planner-widget--tv .planner-cta-btn {
  background: var(--fox-gold) !important;
  color: var(--nexus-blue) !important;
}

.planner-widget--ott .planner-cta-btn {
  background: var(--nexus-blue) !important;
  color: var(--off-white) !important;
}

.planner-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

#planResult, #ottResult {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  background: #ffffff !important;
  border: 2px solid var(--nexus-blue) !important;
  border-radius: var(--radius-sharp) !important;
  padding: 28px !important;
  box-shadow: none !important;
}

/* ==========================================================================
   4B. INSIGHTS & BROADCAST BULLETINS (TVAd + FOX /insights style)
   ========================================================================== */
.insights-section {
  padding: 76px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.insights-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--line-dark);
  margin-bottom: 28px;
}

.insights-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--nexus-blue);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.insights-header p {
  font-size: 1.02rem;
  color: var(--text-muted);
}

.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.insights-pill {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--nexus-blue);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.insights-pill:hover {
  border-color: var(--nexus-blue);
  background: rgba(3, 0, 99, 0.06);
}

.insights-pill.active {
  background: var(--fan-blue);
  border-color: var(--fan-blue);
  color: #ffffff;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* VTVADD-inspired 2-Column Portal Layout (Main News + Right Side Posters) */
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.hd-aside {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aside-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--nexus-blue);
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--nexus-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aside-heading span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fan-blue);
}

.side-poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 22px;
  border-radius: 24px 56px 24px 24px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  border: 2px solid rgba(3, 0, 99, 0.14);
  transition: transform var(--transition), border-color var(--transition);
}

.side-poster-card:hover {
  transform: translateY(-4px);
  border-color: var(--fan-blue);
}

.side-poster-card--img {
  padding: 0;
  background: #ffffff;
}

.side-poster-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.side-poster-card--tvb {
  background: linear-gradient(160deg, #1e0b3b 0%, #5b1865 48%, #030063 100%);
}

.side-poster-card--laliga {
  background: linear-gradient(160deg, #0b132b 0%, #1d3557 50%, #e63946 100%);
  border-radius: 56px 24px 24px 24px;
}

.side-poster-card--news {
  background: linear-gradient(160deg, #030063 0%, #004b97 55%, #0ea5e9 100%);
  border-radius: 24px 24px 56px 24px;
}

.side-poster-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  z-index: 2;
}

.side-poster-badge {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.side-poster-logo {
  height: 34px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 8px;
  border-radius: 10px;
}

.side-poster-body {
  z-index: 2;
  margin-top: auto;
  padding-top: 24px;
}

.side-poster-slot {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fox-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.side-poster-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 8px;
}

.side-poster-desc {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(245, 245, 230, 0.88);
  margin-bottom: 14px;
}

.side-poster-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--nexus-blue);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.insight-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 34px 30px;
  border-radius: 28px 64px 28px 28px;
  transition: transform var(--transition);
}

.insight-card:hover {
  transform: translateY(-3px);
}

.insight-card.is-hidden {
  display: none;
}

.insight-card--navy {
  background: var(--nexus-blue);
  color: var(--off-white);
}

.insight-card--kinetic {
  background: var(--kinetic-blue);
  color: var(--nexus-blue);
  border-radius: 64px 28px 28px 28px;
}

.insight-card--gold {
  background: var(--fox-gold);
  color: var(--nexus-blue);
  border-radius: 28px 28px 64px 28px;
}

.insight-card--paper {
  background: var(--off-white-card);
  color: var(--nexus-blue);
  border: 2px solid var(--nexus-blue);
  border-radius: 28px;
}

.insight-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.insight-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.insight-channel-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--sctv-red);
  color: #ffffff;
}

.insight-thumb-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 56, 117, 0.08);
  margin-bottom: 14px;
  border: 1px solid rgba(0, 56, 117, 0.12);
}

.insight-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#nrmBody,
#nrmBody p,
#nrmBody span,
#nrmBody div,
#nrmBody strong,
#nrmBody em,
#nrmBody li {
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

#nrmBody img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px;
  margin: 10px 0;
  display: block;
}

/* VTVADD-style Horizontal Filter Bar on thong-tin-phim.html */
.vtv-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 56, 117, 0.04);
  margin-bottom: 24px;
  align-items: flex-end;
}

.vtv-filter-item {
  flex: 1 1 0;
  min-width: 0;
}

.vtv-filter-item--search {
  flex: 1.5 1 0;
}

.vtv-filter-item--date {
  flex: 0 0 165px;
}

.vtv-filter-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.vtv-filter-control {
  display: block;
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--nexus-blue);
}

.vtv-filter-reset {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--nexus-blue);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition);
}

.vtv-filter-reset:hover {
  background: #e2e8f0;
}

@media (max-width: 960px) {
  .vtv-filter-bar {
    flex-wrap: wrap;
  }
  .vtv-filter-item,
  .vtv-filter-item--search,
  .vtv-filter-item--date {
    flex: 1 1 180px;
  }
}

/* Global Search Overlay & Global Scroll-to-Top */
#scrollToTopBtn { display: none !important; }

.global-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--nexus-blue);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 36, 77, 0.28);
}
.global-scroll-top.show {
  opacity: 1;
  visibility: visible;
}
.global-scroll-top:hover {
  background: var(--fan-blue);
  transform: translateY(-3px);
}

.global-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 36, 77, 0.62);
  backdrop-filter: blur(6px);
  z-index: 10060;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 94px 16px 24px;
}
.global-search-box {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border: 2px solid var(--nexus-blue);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 36, 77, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.global-search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.global-search-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  font-size: 0.96rem;
  color: var(--nexus-blue);
}
.global-search-input:focus {
  outline: none;
  border-color: var(--fan-blue);
}
.global-search-submit {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: var(--fan-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.global-search-close {
  width: 38px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #f1f5f9;
  color: var(--nexus-blue);
  font-size: 1.35rem;
  cursor: pointer;
  flex-shrink: 0;
}
.global-search-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.global-search-tags button {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--nexus-blue);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.global-search-tags button:hover {
  background: var(--kinetic-blue);
  border-color: var(--fan-blue);
}
.global-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
  max-height: 280px;
  overflow-y: auto;
}
.global-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  text-decoration: none;
  color: var(--nexus-blue);
  font-weight: 600;
  font-size: 0.9rem;
}
.global-search-item:hover {
  background: #eff6ff;
}
.global-search-item-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lang-switcher { margin: 0 auto; }
  .global-scroll-top {
    bottom: 68px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .global-search-form { flex-wrap: wrap; }
  .global-search-input { flex: 1 1 100%; }
  .global-search-submit { flex: 1; }
}
   ========================================================================== */
.sched-wrap { display: flex; flex-direction: column; gap: 20px; }
.sched-controls-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sched-chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sched-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--nexus-blue);
  text-transform: uppercase;
  flex-shrink: 0;
}
.sched-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}
.sched-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--nexus-blue);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.sched-chip:hover { border-color: var(--fan-blue); background: #eff6ff; }
.sched-chip.active { background: var(--fan-blue); border-color: var(--fan-blue); color: #ffffff; }

.sched-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.sched-days { display: flex; gap: 8px; flex-wrap: wrap; }
.sched-day-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--nexus-blue);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.sched-day-btn.active { background: var(--nexus-blue); border-color: var(--nexus-blue); color: #ffffff; }

.sched-legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.sched-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.sched-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.sw--past { background: #cbd5e1; }
.sw--current { background: var(--sctv-red); box-shadow: 0 0 0 3px rgba(230,0,0,0.2); }
.sw--future { background: var(--fan-blue); }

.onair-banner {
  background: linear-gradient(135deg, var(--nexus-blue) 0%, var(--hype-blue) 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 22px 26px;
}
.onair-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.onair-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.14);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.onair-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  animation: pulseLive 1.4s infinite;
}
@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.65; }
}
.onair-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; margin-bottom: 12px; }
.onair-bar { height: 6px; background: rgba(255,255,255,0.22); border-radius: 999px; overflow: hidden; }
.onair-bar-fill { height: 100%; background: var(--fox-gold); border-radius: 999px; }

.sched-list-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  overflow: hidden;
}
.sched-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 130px;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
}
.sched-row:last-child { border-bottom: none; }
.sched-row--past { opacity: 0.58; background: #f8fafc; }
.sched-row--current { background: #eff6ff; border-left: 4px solid var(--sctv-red); }
.sched-time {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--nexus-blue);
  display: flex;
  flex-direction: column;
}
.sched-time span { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); }
.sched-name { font-weight: 700; font-size: 0.98rem; color: var(--nexus-blue); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }
.sched-hot { background: var(--sctv-red); color: #fff; font-size: 0.68rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.sched-status-col { text-align: right; }
.sched-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.sched-badge--current { background: #fee2e2; color: #b91c1c; }
.sched-badge--past { background: #e2e8f0; color: #475569; }
.sched-badge--future { background: #dbeafe; color: #1d4ed8; }

@media (max-width: 768px) {
  .sched-row { grid-template-columns: 1fr; gap: 8px; }
  .sched-status-col { text-align: left; }
}

/* ==========================================================================
   HTV-STYLE SCHEDULE BAR & TIMELINE
   ========================================================================== */
.htv-sched-wrap {
  display: flex;
  flex-direction: column;
}
.htv-date-bar {
  background: linear-gradient(90deg, #1e4b94 0%, #2b63bd 100%);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  padding: 0 12px;
}
.htv-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
}
.htv-date-cell {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 14px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: background 0.16s, color 0.16s;
}
.htv-date-cell:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.htv-date-cell.active {
  background: #4285f4;
  color: #ffffff;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.htv-day-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.htv-day-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.htv-channel-bar {
  background: #eef2f7;
  border: 1px solid #dbe3ee;
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.htv-channel-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.htv-ch-tab {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #475569;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.htv-ch-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--nexus-blue);
}
.htv-ch-tab.active {
  background: #d8dee6;
  color: var(--nexus-blue);
  box-shadow: inset 0 -3px 0 var(--fan-blue);
}
.htv-channel-tools {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #dbe3ee;
}

.htv-feed-container {
  max-width: 780px;
  width: 100%;
  margin: 28px auto 0;
}
.htv-timeline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
}
.htv-row {
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.htv-row:last-child { border-bottom: none; }
.htv-row--past { opacity: 0.62; }
.htv-row--current {
  background: #eff6ff;
  border-left: 4px solid var(--sctv-red);
}
.htv-row-time {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}
.htv-row-title {
  font-size: 0.96rem;
  font-weight: 500;
  color: #334155;
}
.htv-row-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 3px;
}

@media (max-width: 768px) {
  /* Navigation bar compact mobile fit */
  header { padding: 10px 12px; }
  nav.nav {
    padding: 6px 10px 6px 14px;
    min-height: 54px;
    gap: 8px;
    border-radius: 28px;
  }
  .logo img { height: 30px; }
  .nav-search-btn { width: 34px; height: 34px; }
  .lang-switcher { padding: 3px 6px; }
  .lang-btn { font-size: 0.72rem; padding: 4px 7px; }
  .mobile-menu-toggle { min-width: 38px; min-height: 38px; padding: 5px 8px; }
  .nav-links {
    max-height: 75vh;
    overflow-y: auto;
    padding: 12px;
    border-radius: 20px;
  }

  /* Hero & Sections */
  .hero-section { min-height: 70vh; padding: 96px 16px 52px; }
  .hero-lockup h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); margin-bottom: 16px; }
  .hero-lockup p { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-actions { width: 100%; }
  .hero-cta, .hero-cta-secondary { width: 100%; justify-content: center; padding: 13px 20px; font-size: 0.94rem; }

  .portfolio-strip { padding: 32px 16px 40px; border-radius: 0 0 28px 28px; }
  .portfolio-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portfolio-logo-link { height: 64px; padding: 10px; border-radius: 14px; }

  #media-planner,
  .insights-section,
  #bao-gia-chi-tiet,
  #bao-gia-chi-tiet-ott,
  .process-section {
    padding: 44px 16px !important;
  }

  /* Cards & Planners */
  .planner-widget { padding: 24px 18px !important; border-radius: 20px !important; }
  .planner-widget h3 { font-size: 1.35rem !important; }
  .insight-card { padding: 18px !important; border-radius: 20px !important; gap: 14px; }
  .insight-card h3 { font-size: 1.15rem; }
  .insight-actions { flex-direction: column; }
  .insight-btn, .insight-btn-outline { width: 100%; justify-content: center; }

  .side-poster-card { min-height: 250px; padding: 18px; border-radius: 20px !important; }
  .side-poster-img { min-height: 250px; }

  /* Filter Bars & Tabs */
  .main-tabs, .main-tabs-2 { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .main-tab, .main-tab-2 { padding: 9px 14px; font-size: 0.82rem; }
  .vtv-filter-bar { padding: 14px; gap: 10px; border-radius: 16px; }
  .vtv-filter-item, .vtv-filter-item--search, .vtv-filter-item--date { flex: 1 1 100%; min-width: 0; }
  .vtv-filter-reset { width: 100%; }

  /* HTV Schedule Mobile */
  .htv-date-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 6px; border-radius: 14px 14px 0 0; }
  .htv-date-grid { grid-template-columns: repeat(7, minmax(74px, 1fr)); }
  .htv-date-cell { padding: 10px 4px; }
  .htv-day-num { font-size: 1.05rem; }
  .htv-date-cell.active { clip-path: none; border-radius: 10px; }
  .htv-channel-bar { padding: 10px 12px; border-radius: 0 0 14px 14px; }
  .htv-channel-strip { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .htv-ch-tab { flex-shrink: 0; padding: 8px 12px; font-size: 0.84rem; }
  .htv-channel-tools { flex-direction: column; align-items: stretch; }
  .htv-channel-tools select, .htv-channel-tools input, .htv-channel-tools a { width: 100% !important; justify-content: center; }
  .htv-row { padding: 14px 16px; }

  /* Contact & Footer */
  #lien-he { padding: 48px 16px; border-radius: 28px 28px 0 0; }
  .contact-form-box { padding: 22px 18px; border-radius: 18px; }
  footer.container-fluid { padding: 32px 16px 88px; }

  /* Floating Cart & Scroll-to-Top: Bottom pill so it doesn't overlap text */
  .floating-cart-btn {
    top: auto !important;
    bottom: 16px !important;
    right: 16px !important;
    transform: none !important;
    flex-direction: row !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
  #scrollToTopBtn {
    bottom: 68px !important;
    right: 16px !important;
    width: 42px;
    height: 42px;
  }
}

.vtv-filter-control:focus {
  outline: none;
  border-color: var(--fan-blue);
  background: #ffffff;
}

.insight-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1.5px solid currentColor;
}

.insight-date {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.78;
}

.insight-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.24;
  margin-bottom: 10px;
}

.insight-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.9;
}

.insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1.5px solid rgba(3, 0, 99, 0.16);
}

.insight-card--navy .insight-actions {
  border-top-color: rgba(245, 245, 230, 0.2);
}

.insight-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), filter var(--transition);
}

.insight-card--navy .insight-btn {
  background: var(--fan-blue);
  color: #ffffff;
}

.insight-card--kinetic .insight-btn,
.insight-card--gold .insight-btn,
.insight-card--paper .insight-btn {
  background: var(--nexus-blue);
  color: var(--off-white);
}

.insight-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.insight-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid currentColor;
  color: inherit;
  transition: background var(--transition);
}

.insight-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   5. PRICING SECTIONS, PILL FILTERS (/insights style) & INPUTS
   ========================================================================== */
#bao-gia-chi-tiet,
#bao-gia-chi-tiet-ott {
  padding: 76px 24px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  background: transparent !important;
}

.section-header {
  text-align: left;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line-dark);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--nexus-blue);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* /insights Filter Pill Bar */
.main-tabs, .main-tabs-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: transparent;
  padding: 0;
  border: none;
  margin-bottom: 28px;
}

.main-tab, .main-tab-2 {
  padding: 11px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--nexus-blue);
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.main-tab:hover, .main-tab-2:hover {
  border-color: var(--nexus-blue);
  background: rgba(3, 0, 99, 0.06);
}

.main-tab.active, .main-tab-2.active {
  color: #ffffff;
  background: var(--fan-blue);
  border-color: var(--fan-blue);
}

.main-content, .main-content-2 {
  display: none;
  animation: fadeIn 0.25s ease;
}

.main-content.active, .main-content-2.active {
  display: block;
}

.tab-inner {
  padding: 4px 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-container {
  background: var(--off-white-card);
  border: 2px solid var(--line-dark);
  border-radius: var(--radius-sharp);
  padding: 28px;
  margin: 0 auto;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nexus-blue);
  margin-bottom: 8px;
}

.input-group select,
.input-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sharp);
  border: 1.5px solid var(--line-strong);
  background: #ffffff;
  color: var(--nexus-blue);
  font-size: 0.96rem;
  font-weight: 600;
  transition: border-color var(--transition);
}

.input-group select:focus,
.input-group input:focus {
  outline: none;
  border-color: var(--fan-blue);
}

.result-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--line-dark);
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--kinetic-blue);
  color: var(--nexus-blue);
  border-radius: var(--radius-sharp);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.result-header h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--nexus-blue);
}

.result-header p {
  font-size: 0.95rem;
  color: var(--nexus-blue);
  line-height: 1.6;
}

.result-header p span {
  font-weight: 700;
}

/* ==========================================================================
   6. PRICING TABLES (CRISP EDITORIAL GRID + TABULAR NUMS)
   ========================================================================== */
.table-responsive,
.results-box {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
  border: 2px solid var(--nexus-blue);
  background: #ffffff;
  margin-bottom: 20px;
}

table.tablepress,
table.dataTable,
table.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-variant-numeric: tabular-nums;
}

table.tablepress thead,
table.dataTable thead,
table.custom-table thead {
  background: var(--nexus-blue);
}

table.tablepress thead th,
table.dataTable thead th,
table.custom-table thead th {
  background: var(--nexus-blue);
  color: var(--off-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 15px 16px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  vertical-align: middle;
}

table.tablepress thead th:last-child,
table.dataTable thead th:last-child,
table.custom-table thead th:last-child {
  border-right: none;
}

table.tablepress tbody td,
table.dataTable tbody td,
table.custom-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
  font-size: 0.94rem;
  color: var(--text-body);
  vertical-align: middle;
}

table.tablepress tbody td:last-child,
table.custom-table tbody td:last-child {
  border-right: none;
}

table.tablepress tbody tr:nth-child(even),
table.custom-table tbody tr:nth-child(even) {
  background: var(--off-white-card);
}

table.tablepress tbody tr:hover,
table.custom-table tbody tr:hover {
  background: rgba(112, 177, 255, 0.22);
}

.section-sub-title {
  background: var(--kinetic-blue) !important;
  color: var(--nexus-blue) !important;
  padding: 12px 16px !important;
  font-family: var(--font-display);
  font-weight: 600 !important;
  font-size: 1.05rem;
  text-align: center !important;
  text-transform: uppercase;
  border-top: 2px solid var(--nexus-blue) !important;
  border-bottom: 2px solid var(--nexus-blue) !important;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 28px;
  background: var(--nexus-blue);
  color: var(--off-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
}

.btn-download:hover {
  background: var(--fan-blue);
  transform: translateY(-2px);
}

.tgt-note,
.general-price-note {
  background: var(--off-white) !important;
  border: 2px solid var(--line-dark) !important;
  border-left: 5px solid var(--fan-blue) !important;
  border-radius: var(--radius-sharp) !important;
  padding: 16px 20px !important;
  color: var(--nexus-blue) !important;
}

/* ==========================================================================
   7. REGISTRATION PROCESS (EDITORIAL STEPS + KINETIC CALLOUT)
   ========================================================================== */
.process-section {
  background: var(--off-white);
  border-top: 2px solid var(--line-dark) !important;
  padding: 76px 24px !important;
}

.process-section .search-container {
  background: transparent;
  border: none;
  padding: 0;
}

.process-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--nexus-blue);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.timeline {
  position: relative;
  padding-left: 0;
  margin: 36px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.timeline::before {
  display: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 0;
  background: var(--off-white-card);
  border: 2px solid var(--line-dark);
  border-radius: 28px 56px 28px 28px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-icon {
  position: static;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.9;
  color: var(--fan-blue);
  background: transparent;
  width: auto;
  height: auto;
  border: none;
  display: block;
}

.timeline-content {
  background: transparent;
  border: none;
  padding: 0;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--nexus-blue);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
}

.notes-box {
  background: var(--kinetic-blue);
  color: var(--nexus-blue);
  border: none;
  border-radius: 28px 64px 28px 28px;
  padding: 34px;
}

.notes-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--nexus-blue);
  margin-bottom: 14px;
}

.notes-box ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
  color: var(--nexus-blue);
}

/* ==========================================================================
   8. CONTACT & FOOTER (FOX BROADCAST CLOSING BAND)
   ========================================================================== */
#lien-he {
  background: var(--hype-blue);
  color: var(--off-white);
  border-radius: 48px 48px 0 0;
  padding: 84px 24px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 1.05rem;
  color: rgba(245, 245, 230, 0.9);
  line-height: 1.5;
  max-width: 540px;
}

.contact-form-box {
  background: var(--off-white);
  color: var(--nexus-blue);
  padding: 32px;
  border-radius: var(--radius-sharp);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--nexus-blue);
  margin-bottom: 4px;
}

.contact-form-box input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sharp);
  border: 1.5px solid var(--line-strong);
  background: #ffffff;
  color: var(--nexus-blue);
  font-size: 0.96rem;
  font-weight: 600;
}

.contact-form-box input:focus {
  outline: none;
  border-color: var(--fan-blue);
}

.btn-submit {
  background: var(--fan-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: var(--fan-blue-hover);
  transform: translateY(-1px);
}

footer.container-fluid,
.sctv-site-footer {
  background: var(--nexus-deep);
  color: rgba(245, 245, 230, 0.88);
  padding: 44px 24px;
  font-size: 0.92rem;
  border-top: 2px solid var(--line-light);
}

.sctv-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.sctv-footer-logo {
  max-height: 76px;
  width: auto;
  display: block;
}

.sctv-footer-info {
  flex: 1;
  min-width: 260px;
}

.sctv-footer-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.sctv-footer-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.65;
}

.sctv-footer-text a {
  color: #66b2ff;
  text-decoration: none;
  font-weight: 600;
}

.sctv-footer-copy {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-header {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 6px;
}

.footer_text {
  color: rgba(245, 245, 230, 0.72);
  line-height: 1.6;
}

/* ==========================================================================
   9. CART SIDEBAR, FLOATING CART & SCROLL-TO-TOP
   ========================================================================== */
.floating-cart-btn {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--sctv-red);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  z-index: 9998;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  transition: background var(--transition), padding-right var(--transition);
}

.floating-cart-btn:hover {
  background: #c50000;
  padding-right: 18px;
}

.cart-badge {
  background: #ffffff;
  color: var(--sctv-red);
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: var(--off-white);
  border-left: 2px solid var(--nexus-blue);
  transition: right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  background: var(--nexus-blue);
  color: var(--off-white);
  padding: 18px 20px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-close {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-content {
  padding: 18px;
  flex: 1;
  overflow-y: auto;
  background: var(--off-white);
}

.cart-footer {
  padding: 18px 20px;
  background: #ffffff;
  border-top: 2px solid var(--nexus-blue);
}

.cart-item {
  background: #ffffff;
  padding: 14px 16px;
  border-radius: var(--radius-sharp);
  border: 1.5px solid var(--line-dark);
  margin-bottom: 12px;
  position: relative;
}

.cart-item-title {
  font-weight: 700;
  color: var(--nexus-blue);
  margin-bottom: 4px;
  padding-right: 26px;
}

.cart-item-detail {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 800;
  color: var(--fan-blue);
  margin-top: 6px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cart-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.cart-item-remove:hover {
  color: var(--sctv-red);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nexus-blue);
  border-top: 2px dashed var(--line-strong);
  padding-top: 12px;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--nexus-blue);
  color: var(--off-white);
  border: 1.5px solid rgba(245, 245, 230, 0.35);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  background: var(--fan-blue);
  transform: translateY(-3px);
}

#scrollToTopBtn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   10. RESPONSIVE & REDUCED MOTION
   ========================================================================== */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .lang-switcher {
    margin: 0 auto;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--nexus-blue);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 14px;
    border-radius: 22px;
    gap: 4px;
    z-index: 1050;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 14px;
    white-space: normal;
  }

  .nav-link .nav-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
  }

  .nav-dropdown,
  .nav-link[data-dropdown]:hover .nav-dropdown,
  .nav-link[data-dropdown]:focus-within .nav-dropdown {
    display: none;
    position: static;
    top: auto;
    left: auto;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 12px;
    padding: 6px;
    margin-top: 8px;
    box-sizing: border-box;
  }

  .nav-link[data-dropdown].open {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-link[data-dropdown].open .nav-dropdown {
    display: block;
  }

  .nav-dropdown::before {
    display: none;
  }

  .dropdown-link {
    color: var(--off-white);
    padding: 9px 12px;
    font-size: 0.9rem;
    border-radius: 10px;
    white-space: normal;
  }

  .dropdown-link:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .portal-layout {
    grid-template-columns: 1fr;
  }

  .hd-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
  }

  .aside-heading {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .planner-bento-grid,
  .insights-grid,
  .search-grid,
  .contact-container,
  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 14px;
  }

  nav.nav {
    padding: 8px 14px;
    border-radius: 28px;
  }

  .hero-section {
    min-height: 76vh;
    padding: 112px 18px 64px;
  }

  .search-container {
    padding: 20px 16px;
  }

  .contact-box {
    padding: 16px !important;
  }

  .contact-box table,
  .contact-box tbody,
  .contact-box tr,
  .contact-box td {
    display: block !important;
    width: 100% !important;
  }

  .contact-box td:first-child {
    margin-bottom: 4px;
    line-height: 1.45;
  }

  #tab-ott-social .tab-inner > div {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 16px !important;
  }

  #tab-ott-social .tab-inner > div > div:nth-child(odd) {
    margin-top: 8px;
    color: var(--primary);
  }

  #tab-ott-social .tab-inner > div > div:first-child {
    margin-top: 0;
  }

  #tab-ott-social .tab-inner > div a {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
  }
}

/* =========================================================
   HORIZONTAL EPG SCHEDULE (VTVADD-STYLE)
   ========================================================= */
.epg-wrap {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.epg-controls {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}

.epg-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.epg-icon-btn:hover {
  background: #003382;
  border-color: #003382;
  color: #ffffff;
}

.epg-cal-btn {
  position: relative;
  overflow: hidden;
  font-size: 15px;
}

.epg-cal-btn input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.epg-date-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.epg-date-nav::-webkit-scrollbar {
  display: none;
}

.epg-day {
  flex: 1;
  min-width: 64px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}

.epg-day:hover {
  background: #e2e8f0;
}

.epg-day.today {
  border-color: #003382;
}

.epg-day.active {
  background: #003382;
  color: #ffffff;
  border-color: #003382;
}

.epg-day-txt {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.epg-day-date {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.epg-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.epg-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid #e31837;
  background: #ffffff;
  color: #e31837;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.epg-now-btn:hover {
  background: #e31837;
  color: #ffffff;
}

.epg-now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.epg-ch-bar {
  padding: 12px 14px 8px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.epg-ch-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.epg-ch-filter::-webkit-scrollbar {
  display: none;
}

.epg-ch-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
  margin-right: 4px;
}

.epg-ch-chip {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.epg-ch-chip:hover {
  border-color: #003382;
  color: #003382;
}

.epg-ch-chip.active {
  background: #003382;
  border-color: #003382;
  color: #ffffff;
}

.epg-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.epg-search-input {
  width: 260px;
  max-width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  outline: none;
}

.epg-search-input:focus {
  border-color: #003382;
}

.epg-cta-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #003382;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.epg-slider-wrap {
  padding: 6px 14px 6px 96px;
  background: #ffffff;
}

.epg-slider {
  width: 100%;
  cursor: pointer;
  accent-color: #003382;
}

.epg-body {
  display: flex;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.epg-sidebar {
  width: 96px;
  flex-shrink: 0;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  z-index: 2;
}

.epg-corner {
  height: 28px;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  background: #f8fafc;
}

.epg-ch-cell {
  width: 100%;
  height: 64px;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.epg-ch-cell:hover,
.epg-ch-cell.active {
  background: #eff6ff;
}

.epg-ch-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #003382;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 5px 8px;
  text-align: center;
  line-height: 1.2;
}

.epg-ch-cell.active .epg-ch-badge {
  background: #003382;
  color: #ffffff;
  border-color: #003382;
}

.epg-content {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
}

.epg-content::-webkit-scrollbar {
  display: none;
}

.epg-ruler {
  display: flex;
  height: 28px;
  border-bottom: 1px solid #cbd5e1;
  background: #f8fafc;
}

.epg-tick {
  width: 75px;
  flex-shrink: 0;
  border-left: 1px solid #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  line-height: 28px;
  padding-left: 4px;
}

.epg-canvas {
  position: relative;
}

.epg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.epg-ln {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #f1f5f9;
}

.epg-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e31837;
  z-index: 15;
  pointer-events: none;
}

.epg-now-line::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e31837;
}

.epg-now-tag {
  position: absolute;
  top: 6px;
  left: 4px;
  background: #e31837;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}

.epg-row {
  height: 64px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.epg-row-empty {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 16px;
  font-size: 12.5px;
  color: #94a3b8;
}

.epg-prog {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 6px;
  padding: 5px 8px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.epg-prog:hover {
  min-width: 190px;
  height: auto !important;
  min-height: calc(100% - 8px);
  white-space: normal;
  overflow: visible;
  z-index: 25;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
}

.epg-pt {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.epg-pn {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-pd {
  font-size: 10px;
  line-height: 1.2;
  margin-top: 1px;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epg-prog--past {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
}

.epg-prog--past:hover {
  background: #e2e8f0;
}

.epg-prog--current {
  background: #ffe7ba;
  border: 1px solid #fa8c16;
  border-left: 4px solid #fa541c;
  color: #1e293b;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(250, 140, 22, 0.28);
}

.epg-prog--current .epg-pt {
  color: #d4380d;
}

.epg-prog--current:hover {
  background: #ffd591;
}

.epg-prog--future {
  background: #e6f4ff;
  border: 1px solid #91caff;
  color: #0f172a;
}

.epg-prog--future .epg-pt {
  color: #0958d9;
}

.epg-prog--future:hover {
  background: #bae0ff;
}

.epg-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #475569;
}

.epg-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.epg-leg-hint {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}

.epg-sw {
  width: 22px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.epg-sw--past {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.epg-sw--current {
  background: #ffe7ba;
  border: 1px solid #fa8c16;
  border-left: 4px solid #fa541c;
}

.epg-sw--future {
  background: #e6f4ff;
  border: 1px solid #91caff;
}

/* Program Detail Modal */
.epg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.epg-modal {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.epg-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.epg-modal-ch {
  font-size: 14px;
  font-weight: 800;
  color: #003382;
}

.epg-modal-date {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.epg-modal-live {
  background: #fa541c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 3px 9px;
  text-transform: uppercase;
}

.epg-modal-close {
  border: none;
  background: #f1f5f9;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.epg-modal-title {
  margin: 14px 0 8px;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.epg-modal-desc {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}

.epg-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 10px;
}

.epg-modal-meta dt {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.epg-modal-meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.epg-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.epg-modal-btn-outline {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.epg-modal-btn-primary {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: #003382;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

@media (max-width: 640px) {
  .epg-controls {
    padding: 10px;
  }

  .epg-date-nav {
    order: 2;
    flex: 1 0 100%;
    width: 100%;
    margin-top: 6px;
  }

  .epg-tools {
    margin-left: auto;
  }

  .epg-day {
    min-width: 54px;
    padding: 5px 6px;
  }

  .epg-day-txt,
  .epg-day-date {
    font-size: 10px;
  }

  .epg-sidebar {
    width: 64px;
  }

  .epg-slider-wrap {
    padding-left: 64px;
    padding-right: 10px;
  }

  .epg-ch-badge {
    font-size: 10px;
    padding: 4px 5px;
  }

  .epg-leg-hint {
    margin-left: 0;
    width: 100%;
  }
}

/* =========================================================
   HOMEPAGE COMPACT SCHEDULE WIDGET (VTVADD .tvhs STYLE)
   ========================================================= */
.home-sched-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px;
}

.tvhs-section-full {
  width: 100%;
}

.contact-box {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%, #fffbeb 100%) !important;
  border: 2px solid #003382 !important;
  border-left: 6px solid #e31837 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 32px rgba(0, 51, 130, 0.12) !important;
  padding: 24px 28px !important;
}

.contact-box h4 {
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-box td {
  font-size: 0.98rem;
  color: #0f172a;
}

.tvhs-promo-card {
  background: linear-gradient(145deg, #030063 0%, #003382 55%, #0052cc 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 44px rgba(3, 0, 99, 0.16);
}

.tvhs-promo-eyebrow {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.tvhs-promo-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 14px;
  color: #ffffff;
}

.tvhs-promo-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 22px;
}

.tvhs-promo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.tvhs-promo-stats > div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
}

.tvhs-promo-stats strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffd166;
}

.tvhs-promo-stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.tvhs-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tvhs-promo-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 999px;
  background: #ffffff;
  color: #030063;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.tvhs-promo-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.tvhs {
  display: flex;
  flex-direction: column;
  height: 500px;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.tvhs-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  background: #e3eafe;
  border-bottom: 3px solid #003382;
}

.tvhs-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.tvhs-date {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
}

.tvhs-chips {
  flex-shrink: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: none;
}

.tvhs-chips::-webkit-scrollbar {
  display: none;
}

.tvhs-chip {
  flex: 0 0 auto;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tvhs-chip:hover {
  border-color: #003382;
  color: #003382;
}

.tvhs-chip.active {
  background: #003382;
  border-color: #003382;
  color: #ffffff;
}

.tvhs-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tvhs-msg {
  padding: 36px 16px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
}

.tvhs-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  border-left-width: 3px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tvhs-time {
  flex: 0 0 46px;
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 700;
  color: #0958d9;
  line-height: 1.35;
}

.tvhs-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tvhs-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
}

.tvhs-item.past {
  opacity: 0.72;
}

.tvhs-item.past .tvhs-time,
.tvhs-item.past .tvhs-name {
  color: #8c8c8c;
}

.tvhs-item.future {
  background: #f5faff;
  border-color: #e6f4ff;
  border-left-color: #91caff;
}

.tvhs-item.future:hover {
  background: #e6f4ff;
}

.tvhs-item.current {
  background: #ffe7ba;
  border-color: #fa8c16;
  border-left-width: 4px;
  padding: 10px 10px 10px 9px;
  box-shadow: 0 2px 8px rgba(250, 140, 22, 0.25);
}

.tvhs-item.current:hover {
  background: #ffd591;
}

.tvhs-item.current .tvhs-time {
  color: #d4380d;
  font-size: 14.5px;
}

.tvhs-item.current .tvhs-name {
  color: #111827;
  font-size: 14.5px;
  font-weight: 700;
}

.tvhs-live-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tvhs-badge {
  background: #fa541c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}

.tvhs-left {
  font-size: 11.5px;
  font-weight: 600;
  color: #ad4e00;
}

.tvhs-prog {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(250, 140, 22, 0.28);
  overflow: hidden;
  margin-top: 2px;
}

.tvhs-prog > i {
  display: block;
  height: 100%;
  background: #fa541c;
  border-radius: 999px;
}

.tvhs-more {
  flex-shrink: 0;
  display: block;
  text-align: center;
  padding: 10px;
  height: 42px;
  background: #fafbff;
  border-top: 1px solid #f0f0f0;
  color: #003382;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tvhs-more:hover {
  background: #eef3ff;
}

.home-news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .tvhs-section-grid {
    grid-template-columns: 1fr;
  }

  .home-news-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-sched-section {
    padding: 36px 16px;
  }

  .tvhs-promo-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
