/* ==========================================================================
   6868M Billiards Pro — Christmas Edition 2026 & Auth UI
   Non-intrusive holiday overlay (pointer-events: none on snow & lights)
   + Complete Login / Register / User Profile / Change Password modals
   ========================================================================== */

:root {
  --be-xmas-red: #dc2626;
  --be-xmas-red-dark: #991b1b;
  --be-xmas-green: #15803d;
  --be-xmas-pine: #06281c;
  --be-xmas-gold: #facc15;
  --be-xmas-gold-soft: #fde68a;
  --be-xmas-ice: #bae6fd;
  --be-xmas-card: rgba(7, 25, 20, 0.94);
  --be-xmas-border: rgba(250, 204, 21, 0.32);
}

/* Subtle festive aura when Christmas Mode is ON */
body.be-xmas-active::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9985;
  box-shadow: inset 0 0 42px rgba(220, 38, 38, 0.14), inset 0 4px 28px rgba(250, 204, 21, 0.12);
}

/* 1. Falling Snow Canvas */
#be-xmas-snow {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9988;
  transition: opacity 0.4s ease;
}

body:not(.be-xmas-active) #be-xmas-snow {
  opacity: 0;
  display: none;
}

/* 2. Top Christmas Fairy Lights Garland */
.be-xmas-lights {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  pointer-events: none;
  z-index: 9990;
  overflow: hidden;
  padding: 0 6px;
}

body:not(.be-xmas-active) .be-xmas-lights {
  display: none;
}

.be-xmas-lights::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -2%;
  width: 104%;
  height: 16px;
  border-bottom: 1.5px solid rgba(34, 197, 94, 0.45);
  border-radius: 50%;
}

.be-xmas-bulb {
  position: relative;
  width: 8px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50% 50% 55% 55%;
  animation: beTwinkle 2.4s infinite ease-in-out;
  flex-shrink: 0;
}

.be-xmas-bulb::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: #14532d;
  border-radius: 1px;
}

.be-xmas-bulb.c-red {
  background: #ef4444;
  box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.85);
}

.be-xmas-bulb.c-gold {
  background: #facc15;
  box-shadow: 0 0 8px 2px rgba(250, 204, 21, 0.85);
  animation-delay: 0.6s;
}

.be-xmas-bulb.c-green {
  background: #22c55e;
  box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.85);
  animation-delay: 1.2s;
}

.be-xmas-bulb.c-ice {
  background: #38bdf8;
  box-shadow: 0 0 8px 2px rgba(56, 189, 248, 0.85);
  animation-delay: 1.8s;
}

@keyframes beTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.88); }
}

/* 3. Festive Greeting Banner Toast */
.be-xmas-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9992;
  max-width: min(92vw, 520px);
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.94), rgba(6, 55, 36, 0.94));
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fef9c3;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 14px rgba(250, 204, 21, 0.22);
  backdrop-filter: blur(10px);
  animation: beToastIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.be-xmas-toast-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.be-xmas-toast-close {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

@keyframes beToastIn {
  from { opacity: 0; transform: translate(-50%, -14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 4. Floating Christmas + Account Dock (Never blocks top strip or bottom tabs) */
.be-auth-dock {
  position: fixed;
  right: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 9993;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 32, 24, 0.92), rgba(32, 12, 18, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48), 0 0 12px rgba(220, 38, 38, 0.2);
  backdrop-filter: blur(12px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.be-auth-dock.collapsed .be-dock-collapsible {
  display: none;
}

.be-dock-btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}

.be-dock-btn:active {
  transform: scale(0.95);
}

.be-dock-icon {
  width: 30px;
  height: 30px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fef08a;
  font-size: 15px;
  padding: 0;
}

.be-dock-icon:hover {
  background: rgba(250, 204, 21, 0.22);
}

.be-dock-auth {
  padding: 8px 13px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.45);
}

.be-dock-auth:hover {
  filter: brightness(1.1);
}

.be-dock-user {
  padding: 7px 12px;
  background: linear-gradient(135deg, #15803d, #0f766e);
  color: #fef9c3;
  box-shadow: 0 3px 12px rgba(21, 128, 61, 0.45);
}

.be-dock-user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.be-dock-mini {
  width: 24px;
  height: 24px;
  justify-content: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  padding: 0;
}

/* 5. Christmas Auth & Profile Modal */
.be-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(3, 12, 10, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.be-auth-overlay.open {
  display: flex;
  opacity: 1;
  visibility: visible;
}

@keyframes beFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.be-auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92dvh;
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(165deg, #092119 0%, #0d1624 55%, #230c12 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.42);
  border-radius: 22px;
  padding: 22px 20px 20px;
  color: #f8fafc;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.68);
}

.be-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 22px 22px 0 0;
  background: repeating-linear-gradient(
    -45deg,
    #dc2626 0px,
    #dc2626 12px,
    #f8fafc 12px,
    #f8fafc 20px,
    #16a34a 20px,
    #16a34a 32px,
    #facc15 32px,
    #facc15 40px
  );
}

.be-auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.be-auth-close:hover {
  background: rgba(220, 38, 38, 0.35);
  color: #fff;
}

.be-auth-header {
  text-align: center;
  margin-bottom: 16px;
}

.be-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.be-auth-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 4px;
  background: linear-gradient(90deg, #ffffff, #fef08a, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.be-auth-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

/* Tabs */
.be-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.be-auth-tab {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.be-auth-tab.active {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

/* Alerts */
.be-auth-msg {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.be-auth-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fecaca;
}

.be-auth-msg.success {
  display: block;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

/* Form fields */
.be-field {
  margin-bottom: 11px;
}

.be-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 5px;
}

.be-field input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.be-field input:focus {
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.16);
}

.be-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.be-submit-btn {
  width: 100%;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 55%, #15803d 100%);
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.35);
  margin-top: 4px;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.be-submit-btn:hover {
  filter: brightness(1.08);
}

.be-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.be-skip-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.be-skip-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Profile card inside modal */
.be-profile-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.be-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.be-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #facc15);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.be-role-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.2);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.be-profile-meta {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.65;
}

.be-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.be-btn-admin {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
}

.be-btn-outline {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
}

.be-btn-logout {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  cursor: pointer;
}

/* 6. Dock Chat & Share Buttons */
.be-dock-chat {
  position: relative;
  padding: 8px 12px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 3px 12px rgba(14, 165, 233, 0.4);
}

.be-dock-chat:hover {
  filter: brightness(1.1);
}

.be-chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #092119;
}

.be-chat-badge.empty {
  display: none;
}

/* 7. Community Chat Room Drawer */
.be-chat-panel {
  position: fixed;
  right: 14px;
  bottom: calc(124px + env(safe-area-inset-bottom, 0px));
  z-index: 10040;
  width: min(370px, calc(100vw - 24px));
  height: min(500px, calc(100dvh - 150px));
  background: linear-gradient(165deg, rgba(8, 29, 23, 0.97), rgba(11, 20, 34, 0.97));
  border: 1.5px solid rgba(250, 204, 21, 0.42);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 24px rgba(14, 165, 233, 0.16);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: contain;
}

.be-chat-panel.open {
  display: flex;
  animation: beChatIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes beChatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.be-chat-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.28), rgba(21, 128, 61, 0.28));
  border-bottom: 1px solid rgba(250, 204, 21, 0.24);
}

.be-chat-hd-title {
  font-size: 14px;
  font-weight: 900;
  color: #fef9c3;
  display: flex;
  align-items: center;
  gap: 7px;
}

.be-chat-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.be-chat-hd-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
}

.be-chat-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.be-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
}

.be-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  align-self: flex-start;
}

.be-chat-msg.mine {
  align-self: flex-end;
}

.be-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.be-chat-msg.mine .be-chat-meta {
  justify-content: flex-end;
}

.be-chat-sender {
  font-weight: 700;
  color: #e2e8f0;
}

.be-chat-role-admin {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.22);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.be-chat-bubble {
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.be-chat-msg.mine .be-chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.78), rgba(14, 116, 144, 0.78));
  border-color: rgba(56, 189, 248, 0.35);
}

.be-chat-msg.is-admin .be-chat-bubble {
  border-color: rgba(250, 204, 21, 0.4);
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.45), rgba(15, 41, 34, 0.78));
}

.be-chat-stickers {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.be-chat-sticker {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.be-chat-sticker:hover {
  background: rgba(250, 204, 21, 0.2);
}

.be-chat-form {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
  align-items: center;
}

.be-chat-input {
  flex: 1;
  min-width: 0;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  outline: none;
}

.be-chat-input:focus {
  border-color: #facc15;
}

.be-chat-send {
  border: none;
  background: linear-gradient(135deg, #dc2626, #16a34a);
  color: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

/* 8. UI Polish & Smooth Rendering */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.be-auth-dock {
  backdrop-filter: blur(14px);
}

/* 9. Video Bộ Số Phúc Kiều Modal & Cards */
.be-dock-video {
  padding: 8px 11px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0b1411;
  box-shadow: 0 3px 12px rgba(234, 179, 8, 0.35);
}

.be-dock-video:hover {
  filter: brightness(1.08);
}

.be-pk-card {
  max-width: 780px;
}

.be-pk-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.be-pk-upload-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(250, 204, 21, 0.5);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.be-pk-progress {
  display: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.be-pk-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #16a34a, #facc15);
  transition: width 0.2s ease;
}

.be-pk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.be-pk-item {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.be-pk-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.be-pk-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.be-pk-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.4);
}

.be-pk-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.be-pk-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
}

.be-pk-home-card {
  cursor: pointer;
  border: 1px solid rgba(250, 204, 21, 0.4) !important;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.14), rgba(22, 163, 74, 0.12)) !important;
}

/* 10. Pro Cinema Video Player Stage */
.be-pk-stage {
  background: #04090c;
  border: 1.5px solid rgba(250, 204, 21, 0.42);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.65);
}

.be-pk-cinema-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 52vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.be-pk-cinema-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.be-pk-stage-hud {
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(9, 25, 21, 0.96), rgba(7, 16, 26, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.be-pk-seek-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.be-pk-seek {
  flex: 1;
  accent-color: #facc15;
  height: 5px;
  cursor: pointer;
}

.be-pk-time {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.be-pk-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.be-pk-ctrl-grp {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.be-pk-cbtn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.be-pk-cbtn:hover {
  background: rgba(250, 204, 21, 0.22);
  border-color: rgba(250, 204, 21, 0.55);
}

.be-pk-cbtn.active {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #091410;
  border-color: #facc15;
}

.be-pk-cbtn.primary {
  background: linear-gradient(135deg, #dc2626, #16a34a);
  border-color: rgba(250, 204, 21, 0.5);
  color: #fff;
  padding: 6px 12px;
}

.be-pk-stage-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.be-pk-item {
  transition: border-color 0.16s ease, transform 0.14s ease;
}

.be-pk-item.playing {
  border-color: #facc15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.28);
}

.be-pk-thumb-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020609;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.be-pk-thumb-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.be-pk-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.16s ease;
}

.be-pk-thumb-btn:hover .be-pk-play-badge {
  background: rgba(0, 0, 0, 0.1);
}

.be-pk-play-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.9);
  border: 2px solid #facc15;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.be-pk-del.confirming {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #facc15 !important;
}

/* 11. Home Screen Embedded Chat Channel & Admin Delete */
.be-home-chat-box {
  margin: 14px 0 18px;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(8, 29, 23, 0.94), rgba(11, 20, 34, 0.94));
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.be-home-chat-list {
  max-height: 250px;
  min-height: 120px;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overscroll-behavior: contain;
}

.be-chat-del {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
}

.be-chat-del.confirming {
  background: #dc2626;
  color: #fff;
  border-color: #facc15;
}

/* 12. Admin-Controlled Site Title, Slogan & Adaptive Light/Dark Cards */
body.be-xmas-active #home-scroll {
  padding-top: calc(24px + env(safe-area-inset-top, 0px)) !important;
}

#home-scroll .ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 10px;
}

#home-scroll .ph-top .brand-lockup {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

#home-scroll .ph-top .brand-word {
  display: block;
  min-width: 0;
  font-size: clamp(18px, 5vw, 22px);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#home-scroll .ph-top .ph-plan {
  flex: 0 0 auto;
}

.be-home-slogan {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: #047857;
  font-weight: 700;
  margin: -2px 2px 14px;
  word-break: break-word;
}

html[data-theme="dark"] .be-home-slogan {
  color: #fde68a;
}

.be-custom-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  margin: 8px 0;
  cursor: pointer;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.ph-ds .be-custom-card {
  margin: 8px 10px;
}

.ph-ds .be-custom-card:last-child {
  margin-bottom: 10px;
}

.be-custom-card:hover {
  transform: translateY(-1px);
  border-color: #10b981;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

.be-custom-card.featured {
  background: linear-gradient(135deg, #fffbeb 0%, #fef2f2 100%);
  border: 1.5px solid #f59e0b;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}

.be-custom-title {
  font-weight: 900;
  font-size: 14.5px;
  color: #0f172a;
  line-height: 1.3;
}

.be-custom-card.featured .be-custom-title {
  color: #991b1b;
  font-size: 15px;
}

.be-custom-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin-top: 2px;
}

.be-custom-card.featured .be-custom-desc {
  color: #374151;
}

/* Dark Mode Overrides */
html[data-theme="dark"] .be-custom-card {
  background: linear-gradient(135deg, #10251e 0%, #111c27 100%);
  border-color: rgba(250, 204, 21, 0.42);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .be-custom-card.featured {
  background: linear-gradient(135deg, #3b1116 0%, #241b09 100%);
  border-color: rgba(250, 204, 21, 0.78);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
}

html[data-theme="dark"] .be-custom-title,
html[data-theme="dark"] .be-custom-card.featured .be-custom-title {
  color: #fef08a;
}

html[data-theme="dark"] .be-custom-desc,
html[data-theme="dark"] .be-custom-card.featured .be-custom-desc {
  color: #e2e8f0;
}

/* 13. Hero Image Slider (Directly Below Logo & Slogan — Mobile & Desktop Pro) */
.be-hero-slider {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  border-radius: 20px;
  overflow: hidden;
  background: #07121a;
  border: 1.5px solid rgba(2, 132, 199, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

html[data-theme="dark"] .be-hero-slider {
  border-color: rgba(250, 204, 21, 0.44);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.52);
}

.be-hero-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 215px;
  max-height: 265px;
  overflow: hidden;
  background: #060d14;
}

@media (min-width: 768px) {
  .be-hero-slider {
    border-radius: 22px;
    margin: 4px 0 22px;
  }
  .be-hero-viewport {
    aspect-ratio: 16 / 9;
    min-height: 360px;
    max-height: 440px;
  }
}

.be-hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.be-hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.be-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 6s ease;
}

.be-hero-slide.active img {
  transform: scale(1.03);
}

.be-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 12, 18, 0.14) 0%,
    rgba(4, 12, 18, 0.06) 46%,
    rgba(4, 12, 18, 0.52) 72%,
    rgba(4, 12, 18, 0.88) 100%
  );
  pointer-events: none;
}

.be-hero-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 18, 28, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  pointer-events: none;
}

.be-hero-caption {
  position: absolute;
  left: 16px;
  right: 84px;
  bottom: 14px;
  z-index: 2;
  pointer-events: none;
}

@media (min-width: 768px) {
  .be-hero-caption {
    left: 24px;
    right: 110px;
    bottom: 20px;
  }
}

.be-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.34);
  border: 1px solid rgba(125, 211, 252, 0.6);
  color: #fef08a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.be-hero-title {
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(15px, 3.8vw, 22px);
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78);
}

.be-hero-sub {
  color: rgba(241, 245, 249, 0.92);
  font-size: clamp(11.5px, 2.5vw, 13.5px);
  line-height: 1.4;
  margin-top: 3px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.be-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(6, 18, 28, 0.56);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

@media (min-width: 768px) {
  .be-hero-nav {
    width: 42px;
    height: 42px;
    font-size: 24px;
    opacity: 0.78;
  }
  .be-hero-slider:hover .be-hero-nav {
    opacity: 1;
  }
  .be-hero-nav.prev {
    left: 16px;
  }
  .be-hero-nav.next {
    right: 16px;
  }
}

.be-hero-nav:hover {
  opacity: 1;
  background: rgba(2, 132, 199, 0.9);
  border-color: #7dd3fc;
  color: #ffffff;
}

.be-hero-nav.prev {
  left: 10px;
}

.be-hero-nav.next {
  right: 10px;
}

.be-hero-dots {
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.be-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.28s ease, background 0.28s ease;
}

.be-hero-dot.active {
  width: 22px;
  background: linear-gradient(90deg, #01d179, #facc15);
}

/* 14. Advertiser / Sponsor Logos Box (Replaces Đổi phòng chính slot) */
body.be-sponsors-active #home-body button[data-ph-doi] {
  display: none !important;
}

.be-sponsors-box {
  margin: 14px 0;
  padding: 13px 14px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .be-sponsors-box {
  background: linear-gradient(135deg, #0e211b 0%, #101925 100%);
  border-color: rgba(250, 204, 21, 0.36);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.be-sponsors-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
  flex-wrap: wrap;
}

.be-sponsors-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.1px;
}

html[data-theme="dark"] .be-sponsors-title {
  color: #fef08a;
}

.be-sponsors-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

html[data-theme="dark"] .be-sponsors-badge {
  background: rgba(1, 209, 121, 0.16);
  border-color: rgba(74, 222, 128, 0.45);
  color: #6ee7b7;
}

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

.be-sponsors-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.be-sponsors-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 600px) {
  .be-sponsors-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .be-sponsors-grid[data-count="1"] {
    grid-template-columns: 1fr;
  }
  .be-sponsors-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.be-sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.be-sponsor-item:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .be-sponsor-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

html[data-theme="dark"] .be-sponsor-item:hover {
  border-color: #facc15;
}

.be-sponsor-logo-wrap {
  width: 100%;
  height: 66px;
  border-radius: 9px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-sizing: border-box;
  overflow: hidden;
}

.be-sponsors-grid[data-count="1"] .be-sponsor-logo-wrap {
  height: 102px;
}

.be-sponsor-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 7px;
  object-fit: contain;
  display: block;
}

.be-sponsor-name {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  color: #334155;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .be-sponsor-name {
  color: #e2e8f0;
}

.be-sponsor-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 68px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

html[data-theme="dark"] .be-sponsor-slot {
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
}

/* 15. Member Login Gate (Locked VIP Content & Chat Gate) */
.be-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

html[data-theme="dark"] .be-lock-pill {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(250, 204, 21, 0.55);
  color: #fde68a;
}

.ph-row.be-is-locked {
  position: relative;
}

.ph-row.be-is-locked .ph-chev {
  display: none;
}

.be-custom-card.be-is-locked .be-custom-cta {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  color: #ffffff !important;
}

.be-lock-reason {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.14));
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #fef08a;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.be-home-chat-box.be-chat-locked .be-home-chat-list {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}

.be-chat-lock-overlay {
  padding: 14px 14px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(6, 20, 16, 0.72), rgba(6, 20, 16, 0.96));
  border-top: 1px solid rgba(250, 204, 21, 0.35);
}

.be-chat-lock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(250, 204, 21, 0.7);
  background: linear-gradient(135deg, #0284c7, #01d179);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(1, 209, 121, 0.28);
}

.be-chat-lock-sub {
  margin-top: 6px;
  font-size: 11.5px;
  color: #cbd5e1;
}

@media (min-width: 760px) {
  body.be-home-grid-2 #home-body .ph-ds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  body.be-home-grid-2 #home-body .ph-ds > * {
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .be-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .be-auth-dock {
    right: 8px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 4px 6px;
    gap: 4px;
  }
  .be-dock-auth, .be-dock-user, .be-dock-chat {
    padding: 7px 10px;
    font-size: 12px;
  }
  .be-chat-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px));
    height: min(62dvh, 460px);
  }
  .be-xmas-toast {
    font-size: 11.5px;
    padding: 7px 11px;
  }
}

/* 16. Desktop & Mobile Smooth Scroll, Centered Layout & Minimalist Video Player */
#home-scroll,
#screen-boso .ph-man-sc,
#screen-gaisuon .ph-man-sc,
#screen-lessons .lessons-list,
#screen-explore .kho-sc,
#screen-library #library-grid {
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Center empty state button cleanly in Sổ tay (Desktop & Mobile) */
#screen-library .library-empty {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#screen-library .library-empty button {
  margin-left: auto;
  margin-right: auto;
}

/* Desktop centered spacious reading & browsing columns */
@media (min-width: 768px) {
  #home-scroll,
  #screen-boso .ph-man-sc,
  #screen-gaisuon .ph-man-sc {
    padding-left: max(24px, calc((100% - 820px) / 2)) !important;
    padding-right: max(24px, calc((100% - 820px) / 2)) !important;
  }

  #screen-lessons .explore-lgh,
  #screen-lessons .lessons-list {
    padding-left: max(24px, calc((100% - 820px) / 2)) !important;
    padding-right: max(24px, calc((100% - 820px) / 2)) !important;
  }

  /* Prevent desktop scroll bounce from collapsing library header */
  #screen-library.nb-hidebar #tag-filter,
  #screen-library.nb-hidebar .library-header-row {
    max-height: 480px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: inherit !important;
  }

  .be-pk-card {
    max-width: 860px;
  }
}

/* Clean Minimalist Hardware-Accelerated Video Player & 0-Lag Poster Cards */
.be-pk-cinema-wrap {
  width: 100%;
  background: #000000;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 54vh;
}

.be-pk-cinema-video {
  width: 100%;
  max-height: 54vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
  display: block;
}

.be-pk-simple-hud {
  padding: 10px 12px 12px;
  background: rgba(6, 16, 13, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.be-pk-simple-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.be-pk-simple-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fef08a;
  flex: 1 1 180px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.be-pk-spd-sel {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fef08a;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.be-pk-dl-btn {
  background: rgba(22, 163, 74, 0.28) !important;
  border-color: rgba(34, 197, 94, 0.55) !important;
  color: #86efac !important;
  text-decoration: none;
}

.be-pk-poster {
  position: relative;
  width: 100%;
  height: 112px;
  border: 0;
  padding: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: radial-gradient(circle at 30% 25%, #0f3b2e 0%, #071713 75%, #040c0a 100%);
  color: #f8fafc;
  transition: filter 0.16s ease, background 0.16s ease;
}

.be-pk-poster:hover {
  filter: brightness(1.15);
}

.be-pk-poster.active {
  background: radial-gradient(circle at 30% 25%, #0369a1 0%, #0b2434 75%, #05111a 100%);
}

.be-pk-poster-num {
  position: absolute;
  top: 8px;
  left: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  font-weight: 800;
  color: #cbd5e1;
}

.be-pk-poster-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #01d179);
  color: #ffffff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 6px 18px rgba(1, 209, 121, 0.35);
}

.be-pk-poster.active .be-pk-poster-circle {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #0b1411;
  box-shadow: 0 6px 18px rgba(250, 204, 21, 0.4);
}

.be-pk-poster-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: #e2e8f0;
  letter-spacing: 0.2px;
}

@media (max-width: 600px) {
  .be-auth-overlay {
    padding: 8px;
  }
  .be-auth-card {
    padding: 16px 14px 16px;
    border-radius: 18px;
    max-height: 94dvh;
  }
  .be-pk-cinema-wrap,
  .be-pk-cinema-video {
    max-height: 42vh;
  }
  .be-pk-poster {
    height: 96px;
  }
  .be-pk-toolbar > input {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* 17. Luxury UI Polish (Light & Dark Mode Harmony) */
#home-scroll .ph-top {
  padding: 6px 2px 2px;
}

#home-scroll .ph-top .brand-mark {
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.32);
}

#home-scroll .ph-top .ph-plan.pro {
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  border-color: #0284c7;
  color: #0369a1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.14);
}

html[data-theme="dark"] #home-scroll .ph-top .ph-plan.pro {
  background: rgba(2, 132, 199, 0.2);
  border-color: #38bdf8;
  color: #7dd3fc;
}

#home-body .ph-h {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #0369a1;
  margin: 16px 4px 10px;
}

html[data-theme="dark"] #home-body .ph-h {
  color: #7dd3fc;
}

#home-body .ph-ds {
  border-radius: 20px;
  border: 1px solid #dbe4ea;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] #home-body .ph-ds {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

#home-body .ph-row {
  padding: 12px 16px;
  transition: background 0.15s ease;
}

#home-body .ph-row:hover {
  background: #f0f9ff;
}

html[data-theme="dark"] #home-body .ph-row:hover {
  background: rgba(56, 189, 248, 0.08);
}

#home-body .ph-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.be-sponsors-box {
  border-radius: 20px;
  padding: 16px;
  border-color: #dbe4ea;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.be-home-chat-box {
  border-radius: 20px;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

@media (min-width: 768px) {
  .be-hero-dots {
    right: 20px;
    bottom: 22px;
    gap: 6px;
  }
  .be-hero-dot {
    width: 8px;
    height: 8px;
  }
  .be-hero-dot.active {
    width: 28px;
  }
}
