/* ==========================================================================
   PHỦI CÀ MAU MEDIA — LARGE MONTHLY MVP HONOR POSTER SHOWCASE (NGAY DƯỚI MENU)
   Bright Royal Sapphire & Championship Gold Broadcast Edition
   ========================================================================== */

#pcm-home-banner {
  width: 100%;
  padding: 14px clamp(10px, 2.2vw, 28px) 18px;
  background: linear-gradient(180deg, #0c2b56 0%, #103970 52%, #0e3263 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.32);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

#pcm-home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 15% 0%, rgba(250, 204, 21, 0.18), transparent 65%),
    radial-gradient(60% 90% at 85% 0%, rgba(14, 165, 233, 0.24), transparent 65%);
  pointer-events: none;
}

.pcm-monthly-honor-container {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Top Honor Ribbon Bar --- */
.pcm-honor-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 49, 97, 0.95) 0%, rgba(21, 70, 134, 0.92) 55%, rgba(12, 42, 84, 0.95) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  box-shadow:
    0 10px 28px -8px rgba(4, 18, 42, 0.45),
    0 0 22px rgba(250, 204, 21, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pcm-honor-ribbon-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}

.pcm-honor-crown-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e1400;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 55%, #fef08a 100%);
  box-shadow: 0 3px 14px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
}

.pcm-honor-main-title {
  margin: 0;
  font-family: 'Montserrat', 'Be Vietnam Pro', sans-serif;
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.pcm-honor-sub-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.pcm-honor-ribbon-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pcm-honor-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8, 28, 58, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 6px;
  border-radius: 10px;
}

.pcm-honor-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pcm-honor-nav-btn:hover {
  background: #fde047;
  color: #0b2545;
  border-color: #fde047;
}

.pcm-honor-counter {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #fde047;
  padding: 0 4px;
}

.pcm-honor-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.pcm-honor-zoom-btn {
  background: rgba(14, 165, 233, 0.22);
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.pcm-honor-zoom-btn:hover {
  background: #0ea5e9;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.pcm-honor-manage-btn {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  color: #0f172a;
  border: 1px solid #fef08a;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.38);
}

.pcm-honor-manage-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.55);
}

/* --- Large Poster Frame --- */
#pcm-home-banner .pcm-glow-frame {
  position: relative;
  width: 100%;
  padding: 3.5px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 18px 48px -10px rgba(4, 18, 42, 0.55),
    0 0 32px rgba(250, 204, 21, 0.26);
  background: linear-gradient(115deg, #fde047, #f59e0b, #38bdf8, #2563eb, #fde047);
  background-size: 320% 320%;
  animation: pcm-border-shift 8s ease infinite;
}

#pcm-home-banner .pcm-frame-interior {
  position: relative;
  background: linear-gradient(180deg, #0b2545 0%, #0f3362 100%);
  border-radius: 17px;
  overflow: hidden;
  width: 100%;
}

#pcm-home-banner .pcm-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 0.45s ease, transform 0.55s ease;
  opacity: 1;
}

#pcm-home-banner .pcm-banner-image:hover {
  transform: scale(1.005);
}

#pcm-home-banner .pcm-banner-image.pcm-leaving {
  opacity: 0.15;
}

.pcm-banner-caption-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  background: linear-gradient(90deg, rgba(10, 34, 68, 0.96), rgba(16, 54, 106, 0.94));
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  color: #f8fafc;
  font-size: 12px;
}

.pcm-banner-caption-text {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pcm-caption-star {
  color: #fde047;
  font-size: 14px;
}

.pcm-caption-hint {
  color: #93c5fd;
  font-size: 11px;
}

#pcm-home-banner .pcm-banner-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
}

#pcm-home-banner .pcm-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.25s ease;
}

#pcm-home-banner .pcm-banner-dot.on {
  width: 26px;
  background: #fde047;
  box-shadow: 0 0 10px #fde047;
}

/* --- Inline Poster Upload & Management Drawer --- */
.pcm-inline-poster-drawer,
#pcm-banner-admin-panel {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #38bdf8;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 20px 45px rgba(8, 30, 66, 0.28);
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

.pcm-drawer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.pcm-drawer-head-left strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: #0b2545;
  text-transform: uppercase;
}

.pcm-drawer-head-left span {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

.pcm-drawer-close-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pcm-drawer-close-btn:hover {
  background: #e2e8f0;
}

.pcm-inline-login-note {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.pcm-inline-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.pcm-drawer-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pcm-drawer-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
}

.pcm-drawer-input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.pcm-drawer-file {
  padding: 10px;
  border: 2px dashed #0284c7;
  border-radius: 12px;
  background: #f0f9ff;
  color: #0f172a;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
}

.pcm-drawer-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pcm-drawer-btn-primary {
  padding: 10px 18px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

.pcm-drawer-btn-primary:hover {
  filter: brightness(1.08);
}

.pcm-drawer-btn-secondary {
  padding: 10px 16px;
  border-radius: 11px;
  border: 1.5px solid #0284c7;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.pcm-drawer-btn-secondary:hover {
  background: #bae6fd;
}

.pcm-drawer-status {
  font-size: 12.5px;
  font-weight: 800;
  min-height: 18px;
}

.pcm-banner-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pcm-banner-card {
  padding: 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pcm-banner-card.is-active {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}

.pcm-banner-card-head {
  font-size: 11px;
  font-weight: 900;
  color: #0b2545;
  text-transform: uppercase;
}

.pcm-banner-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #0b2545;
  border-radius: 8px;
}

.pcm-banner-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcm-banner-card-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.pcm-card-btn,
.pcm-card-btn-del {
  flex: 1;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.pcm-card-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.pcm-card-btn-del {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.pcm-card-btn-del:hover {
  background: #fee2e2;
}

/* --- Fullscreen Lightbox --- */
.pcm-poster-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(6, 20, 46, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pcm-poster-lightbox-inner {
  max-width: 1280px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #0b2545;
  border: 2px solid #fde047;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
}

.pcm-poster-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #081c38;
  border-bottom: 1px solid rgba(250, 204, 21, 0.35);
}

.pcm-poster-lightbox-title {
  color: #fde047;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
}

.pcm-poster-lightbox-close {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #ef4444;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.pcm-poster-lightbox-img {
  width: 100%;
  max-height: calc(94vh - 60px);
  object-fit: contain;
  background: #041022;
}

@keyframes pcm-border-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
  #pcm-home-banner {
    padding: 10px 8px 14px;
  }
  .pcm-honor-ribbon {
    padding: 9px 11px;
  }
  .pcm-honor-sub-pill,
  .pcm-caption-hint {
    display: none;
  }
  .pcm-inline-login-row {
    grid-template-columns: 1fr;
  }
}

/* Remove duplicate bottom poster slider (.hero-poster-shell & mobile #hero-section) so only the top slider (#pcm-home-banner) remains */
.hero-poster-shell,
#hero-section .hero-poster-shell,
#pcm-home-banner ~ #pcm-home-banner {
  display: none !important;
}

#hero-section:has(.hero-poster-shell) {
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1023px) {
  #hero-section,
  #hero-section.pcm-hero-duplicate-hidden {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
