
/* === LAKORNZAB LIVE THEME (midnight_velvet) === */
:root, body.sp-premiere {
  --color-paper: #07050a !important;
  --color-ink: #f8fafc !important;
  --color-accent: #e11d48 !important;
  --color-accent-hover: #fbbf24 !important;
  --color-focus: #fbbf24 !important;
  --premiere-panel: rgba(18, 10, 24, 0.78) !important;
  --premiere-panel-raised: rgba(28, 14, 36, 0.88) !important;
  --premiere-line: rgba(251, 191, 36, 0.32) !important;
  --premiere-quiet: #cbd5e1 !important;
  --accent: #e11d48 !important;
  --gold: #fbbf24 !important;
}

html {
  background-color: #07050a !important;
  color: #f8fafc !important;
  scroll-behavior: smooth !important;
}

body, body.sp-premiere {
  background: transparent !important;
  color: #f8fafc !important;
  position: relative !important;
  z-index: 0 !important;
}

body::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -2 !important;
  pointer-events: none !important;
  
  background-image: url("/site-custom/assets/bg_billionaire_penthouse.jpg") !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  opacity: 0.64 !important;
  filter: saturate(1.18) contrast(1.08) !important;

}

body::after {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  background:
    radial-gradient(circle at 80% 15%, rgba(225, 29, 72, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7, 5, 10, 0.42) 0%, rgba(7, 5, 10, 0.72) 55%, rgba(7, 5, 10, 0.90) 100%) !important;
  pointer-events: none !important;
}

.sp-premiere .masthead, .site-header {
  background: rgba(10, 6, 16, 0.82) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65) !important;
}

.lz-brand-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  padding: 2px 0 !important;
}

.lz-brand-logo {
  height: 42px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8)) !important;
  transition: transform 0.22s ease !important;
}

.lz-brand-logo:hover {
  transform: scale(1.04) !important;
}

body.sp-premiere:not([data-live-studio="1"]) .brand {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

body.sp-premiere:not([data-live-studio="1"]) .brand > svg,
body.sp-premiere:not([data-live-studio="1"]) .brand > .brand-copy {
  display: none !important;
}

body.sp-premiere:not([data-live-studio="1"]) .brand::before {
  content: "" !important;
  display: inline-block !important;
  width: 165px !important;
  height: 42px !important;
  background-image: url("/site-custom/assets/logo.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
}

.sp-premiere .sp-home-heading h1, #sp-home-h1 {
  color: #fde68a !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8) !important;
}

.sp-premiere .sp-hero {
  background: rgba(16, 9, 22, 0.76) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(251, 191, 36, 0.42) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(225, 29, 72, 0.22) !important;
}

.sp-premiere .sp-hero-lead {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #ffffff !important;
  background: linear-gradient(90deg, #e11d48 0%, #be123c 55%, #d97706 100%) !important;
  border: 1px solid #fde68a !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.55) !important;
}

body.sp-premiere:not([data-live-studio="1"]) .sp-hero-lead {
  font-size: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

body.sp-premiere:not([data-live-studio="1"]) .sp-hero-lead::before {
  content: "🔥 ละครมาแรงอันดับ 1 วันนี้";
  display: inline-block;
  color: #ffffff !important;
  background: linear-gradient(90deg, #e11d48 0%, #be123c 55%, #d97706 100%) !important;
  border: 1px solid #fde68a !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.55) !important;
}

body.sp-premiere:not([data-live-studio="1"]) #row-featured-title {
  font-size: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

body.sp-premiere:not([data-live-studio="1"]) #row-featured-title::before {
  content: "🏆 Top 10 ละครยอดฮิตวันนี้";
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

body.sp-premiere:not([data-live-studio="1"]) section[aria-labelledby="row-bitter-title"],
body.sp-premiere:not([data-live-studio="1"]) section[aria-labelledby="row-family-title"] {
  display: none !important;
}

.sp-premiere .button-primary, .primary-button, .search-submit, .hero-cta {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 55%, #d97706 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(251, 191, 36, 0.65) !important;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.55) !important;
  font-weight: 700 !important;
}

.sp-premiere .button-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.5), 0 0 18px rgba(225, 29, 72, 0.75) !important;
}

.sp-premiere .sp-discovery {
  display: none !important;
}

.sp-premiere .sp-track {
  padding-top: 16px !important;
  margin-top: -10px !important;
  padding-bottom: 18px !important;
}

.sp-premiere .poster-card {
  padding-top: 4px !important;
}

.sp-premiere .poster-frame {
  position: relative !important;
  border: 1.5px solid rgba(225, 29, 72, 0.45) !important;
  border-top: 1.5px solid rgba(251, 191, 36, 0.75) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  box-sizing: border-box !important;
}

.sp-premiere .poster-card:hover .poster-frame {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #fbbf24 !important;
  border-top-color: #ffffff !important;
  outline: none !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(225, 29, 72, 0.55) !important;
}

.sp-premiere .sp-section-head h2 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

/* === TOP 10 RANKING BADGES, FOR YOU & NEW RELEASE STYLES === */
.lz-head-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lz-sub-pill {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(225, 29, 72, 0.32), rgba(251, 191, 36, 0.24));
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde68a;
  font-weight: 600;
}

.lz-foryou-pill {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.32), rgba(251, 191, 36, 0.24));
  border-color: rgba(244, 114, 182, 0.6);
  color: #fce7f3;
}

.lz-see-all {
  font-size: 0.82rem;
  color: #fde68a !important;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(20, 12, 28, 0.75);
  margin-right: 6px;
  font-weight: 600;
}

.lz-see-all:hover {
  background: rgba(225, 29, 72, 0.35);
  border-color: #fbbf24;
}

#row-featured {
  counter-reset: top10-counter;
}

#row-featured .poster-card {
  counter-increment: top10-counter;
  position: relative;
}

#row-featured .poster-card .poster-frame::before {
  content: "TOP " counter(top10-counter);
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 55%, #d97706 100%);
  color: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75), 0 0 10px rgba(225, 29, 72, 0.55);
}

#row-featured .poster-card:nth-child(1) .poster-frame::before {
  content: "👑 TOP 1";
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #e11d48 100%);
  border-color: #ffffff;
  font-size: 0.80rem;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.65);
}

#row-featured .poster-card:nth-child(2) .poster-frame::before {
  content: "🔥 TOP 2";
}

#row-featured .poster-card:nth-child(3) .poster-frame::before {
  content: "🔥 TOP 3";
}

.lz-new-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #a7f3d0;
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 10px rgba(16, 185, 129, 0.45);
}

.lz-foryou-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 60%, #d97706 100%);
  color: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 7px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75), 0 0 10px rgba(236, 72, 153, 0.45);
}

.lz-view-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  background: rgba(7, 5, 10, 0.82);
  backdrop-filter: blur(6px);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 600;
}
