/* XemPhimHDC / PaoPhim parity v3.3
 * Narrow, namespaced corrections based on the supplied PaoPhim HTML.
 */

/* Catalog filters: mirror the reference Tailwind classes exactly.
   grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3 w-full xl:w-auto */
.pao-filter-row{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  flex:0 1 auto!important;
}
.pao-filter-row label{display:block!important;min-width:0!important;margin:0!important}
.pao-filter-row select{
  -webkit-appearance:auto!important;
  appearance:auto!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:38px!important;
  margin:0!important;
  padding:8px!important;
  color:#d1d5db!important;             /* gray-300 */
  background:#1f2937!important;        /* gray-800 */
  background-image:none!important;
  border:1px solid #374151!important;  /* gray-700 */
  border-radius:8px!important;
  outline:none!important;
  box-shadow:none!important;
  font:400 14px/20px Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  cursor:pointer!important;
}
.pao-filter-row select option{
  color:#f3f4f6!important;
  background:#1f2937!important;
  font:400 14px/20px Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
.pao-filter-row select:focus{
  border-color:#eab308!important;       /* yellow-500 */
  box-shadow:0 0 0 1px #eab308!important;
}
@media(min-width:640px){.pao-filter-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:1024px){.pao-filter-row{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
@media(min-width:1280px){
  .pao-catalog-top{flex-direction:row!important;align-items:center!important}
  .pao-filter-row{
    width:auto!important;
    grid-template-columns:repeat(6,max-content)!important;
    flex:0 0 auto!important;
  }
  .pao-filter-row select{width:100%!important}
}

/* Reference movie cards do not reveal a play/year overlay on hover. */
.pao-card-hover{display:none!important}
.pao-card{transition:transform .3s ease-in-out!important;transform-origin:center center}
.pao-card:hover{transform:scale(1.05)!important}
.pao-card-poster{overflow:hidden!important;border-radius:6px!important}
.pao-card-poster>img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:6px!important}

/* Exact reference badge: top-0 h-6 bg-gray-800 text-orange-400 mt-1 ml-1 px-1 py-1 rounded-md. */
.pao-card-ribbon{
  position:absolute!important;
  z-index:10!important;
  top:4px!important;
  left:4px!important;
  display:flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:calc(100% - 42px)!important;
  height:24px!important;
  margin:0!important;
  padding:4px!important;
  color:#fb923c!important;
  background:#1f2937!important;
  border:0!important;
  border-radius:6px!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:500!important;
  text-transform:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.pao-card-ribbon>span{line-height:1!important;font-weight:500!important}
@media(min-width:768px){.pao-card-ribbon{font-size:16px!important}}

/* Reference heart: right-2 p-1 text-2xl; no round background. */
.pao-card-heart{
  position:absolute!important;
  z-index:20!important;
  top:0!important;
  right:8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;
  height:32px!important;
  padding:4px!important;
  color:#fff!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  transition:color .2s ease,transform .2s ease!important;
}
.pao-card-heart svg{width:24px!important;height:24px!important;display:block!important;fill:currentColor!important;stroke:none!important}
.pao-card-heart:hover{color:#ef4444!important;transform:scale(1.1)!important}

/* Guest favorite notice modelled on the PaoPhim popup shown by the user. */
.pao-login-notice{
  position:fixed;
  z-index:12050;
  top:30px;
  left:50%;
  width:min(480px,calc(100vw - 32px));
  transform:translate(-50%,-12px);
  display:grid;
  grid-template-columns:32px 1fr 24px;
  gap:12px;
  padding:22px 26px 22px 30px;
  color:#4b5563;
  background:#fff;
  border-radius:10px;
  box-shadow:0 8px 30px rgba(0,0,0,.22);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}
.pao-login-notice.is-visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.pao-login-notice-icon{
  width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
  background:#f59e0b;color:#fff;font-size:20px;font-weight:700;line-height:1
}
.pao-login-notice-title{font-size:18px;line-height:28px;color:#4b5563;font-weight:400;margin:0 0 4px}
.pao-login-notice-text{font-size:16px;line-height:24px;color:#6b7280}
.pao-login-notice-text a{color:#1677ff!important;text-decoration:none!important}
.pao-login-notice-text a:hover{text-decoration:none!important;color:#4096ff!important}
.pao-login-notice-close{
  width:24px;height:24px;padding:0;border:0;background:transparent;color:#9ca3af;
  font-size:26px;line-height:20px;cursor:pointer;display:grid;place-items:center
}
@media(max-width:640px){
  .pao-login-notice{top:16px;padding:18px 18px;grid-template-columns:28px 1fr 22px;gap:10px}
  .pao-login-notice-icon{width:28px;height:28px;font-size:18px}
  .pao-login-notice-title{font-size:16px;line-height:23px}
  .pao-login-notice-text{font-size:14px;line-height:21px}
}

/* Static Page view for the Pao theme. */
.pao-page-shell{
  min-height:calc(100vh - 70px);
  padding:118px 20px 72px;
  color:#e5e7eb;
  background:#1a1a1a;
}
.pao-page-inner{width:min(1280px,100%);margin:0 auto}
.pao-page-inner h1{
  margin:0 0 28px;
  color:#fffbeb;
  font-size:32px;
  line-height:1.2;
  font-weight:700;
}
.pao-page-content{max-width:100%;color:#d1d5db;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.pao-page-content>*{margin-top:0;margin-bottom:18px}
.pao-page-content h2{margin-top:32px;color:#fff7ed;font-size:24px;line-height:1.35;font-weight:650}
.pao-page-content h3{margin-top:28px;color:#fff7ed;font-size:20px;line-height:1.4;font-weight:600}
.pao-page-content h4{margin-top:24px;color:#fff7ed;font-size:18px;font-weight:600}
.pao-page-content a{color:#f59e0b;text-decoration:none}
.pao-page-content a:hover{color:#fbbf24;text-decoration:underline}
.pao-page-content ul{list-style:disc;padding-left:24px}.pao-page-content ol{list-style:decimal;padding-left:24px}
.pao-page-content blockquote{margin:24px 0;padding:14px 18px;border-left:3px solid #f59e0b;background:#111827;color:#d1d5db}
.pao-page-content img{max-width:100%;height:auto;border-radius:8px}
.pao-page-content table{width:100%;border-collapse:collapse}.pao-page-content th,.pao-page-content td{padding:10px 12px;border:1px solid #374151;text-align:left}
.pao-page-content hr{border:0;border-top:1px solid #374151;margin:28px 0}
@media(max-width:767px){.pao-page-shell{padding:92px 16px 52px}.pao-page-inner h1{font-size:27px;margin-bottom:22px}.pao-page-content{font-size:15px;line-height:1.72}}
