/* Front-end member authentication. */
html.phim-member-open,
html.phim-member-open body {
  overflow: hidden !important;
}

.phim-member-modal[hidden] {
  display: none !important;
}

.phim-member-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: inherit;
}

.phim-member-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 23, .86);
  backdrop-filter: blur(5px);
}

.phim-member-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(390px, 1.05fr);
  width: min(890px, calc(100vw - 48px));
  min-height: 510px;
  overflow: hidden;
  color: #f6f7fb;
  background: #20294d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  animation: phim-member-in .22s ease-out;
}

@keyframes phim-member-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.phim-member-modal__close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 16px;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff;
  font-size: 28px;
  line-height: 36px !important;
  border: 0;
  border-radius: 50% !important;
  background: rgba(7,10,24,.24);
  box-shadow: none !important;
  text-align: center;
  text-transform: none;
  flex: 0 0 36px;
}

.phim-member-modal__close:hover {
  color: #ffd86f;
  background: rgba(7,10,24,.5);
}

.phim-member-modal__visual {
  position: relative;
  min-height: 100%;
  background-color: #34436d;
  background-image: url('../../images/rophim-login.jpg');
  background-position: center;
  background-size: cover;
}

.phim-member-modal__visual::before,
.phim-member-modal__visual::after {
  content: '';
  display: none;
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.phim-member-modal__visual::before {
  width: 310px;
  height: 310px;
  left: -80px;
  top: 40px;
  background: radial-gradient(circle, rgba(255,216,111,.28), transparent 68%);
}

.phim-member-modal__visual::after {
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(100,127,214,.48), transparent 68%);
}

.phim-member-modal__visual-shade {
  position: absolute;
  inset: 0;
  background: transparent;
}

.phim-member-modal__brand {
  position: absolute;
  z-index: 2;
  left: 46px;
  bottom: 50px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: rgba(255,255,255,.76);
  font-size: 15px;
}

.phim-member-modal__brand img {
  width: auto;
  max-width: 190px;
  max-height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.phim-member-modal__brand strong { font-size: 30px; color: #fff; }

.phim-member-modal__content {
  display: grid;
  align-items: center;
  padding: 56px 66px 48px;
  background: linear-gradient(145deg, #20294d, #1b2342);
}

.phim-member-modal__content h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 26px;
}

.phim-member-switch-copy {
  margin: 0 0 26px;
  color: #abb2c7;
  font-size: 14px;
}

.phim-member-switch-copy button {
  display: inline;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffd86f;
  font: inherit;
  font-weight: 700;
  text-transform: none;
  border: 0;
  background: none;
  box-shadow: none;
}

.phim-member-form { margin: 0; }
.phim-member-form[hidden] { display: none !important; }
.phim-member-form label {
  display: block;
  margin-bottom: 12px;
  color: #c8cde0;
  font-size: 13px;
  font-weight: 600;
}

.phim-member-form input:not([type='checkbox']) {
  width: 100%;
  height: 48px;
  margin: 6px 0 0;
  padding: 0 16px;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 7px;
  background: rgba(10,15,35,.16) !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.phim-member-form input:focus {
  color: #fff !important;
  border-color: #ffd86f !important;
  background: rgba(10,15,35,.28) !important;
  box-shadow: 0 0 0 3px rgba(255,216,111,.13) !important;
  outline: 0 !important;
}

/* Prevent Chromium autofill from replacing the dark field with a light fill. */
.phim-member-form input:-webkit-autofill,
.phim-member-form input:-webkit-autofill:hover,
.phim-member-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  border-color: rgba(255,255,255,.11) !important;
  -webkit-box-shadow: 0 0 0 1000px #1d2648 inset !important;
  box-shadow: 0 0 0 1000px #1d2648 inset !important;
  transition: background-color 9999s ease-out 0s;
}

.phim-member-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  border-color: #ffd86f !important;
  -webkit-box-shadow: 0 0 0 1000px #1b2445 inset, 0 0 0 3px rgba(255,216,111,.13) !important;
  box-shadow: 0 0 0 1000px #1b2445 inset, 0 0 0 3px rgba(255,216,111,.13) !important;
}

.phim-member-form__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phim-member-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
}

.phim-member-remember input {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 18px !important;
  min-width: 18px;
  height: 18px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 4px;
  background: rgba(10,15,35,.28) !important;
  box-shadow: none !important;
  cursor: pointer;
}

.phim-member-remember input:checked {
  border-color: #ffd86f !important;
  background: #ffd86f !important;
}

.phim-member-remember input:checked::after {
  content: '\e00a';
  position: absolute;
  inset: 0;
  color: #1d2341;
  font-family: fl-icons !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
  text-align: center;
}
.phim-member-turnstile { min-height: 0; margin: 15px 0; }
.phim-member-message { min-height: 20px; margin: 8px 0; font-size: 13px; }
.phim-member-message.is-error { color: #ff9c9c; }
.phim-member-message.is-success { color: #8ee2ad; }

.phim-member-submit {
  width: 100%;
  min-height: 46px;
  margin: 6px 0 0 !important;
  color: #252033 !important;
  font-weight: 800;
  text-transform: none;
  border: 0;
  border-radius: 7px;
  background: #ffd86f !important;
  box-shadow: none;
}

.phim-member-submit:hover { background: #ffe28d !important; }
.phim-member-submit:disabled { opacity: .65; }
.phim-member-modal__logged { text-align: center; }
.phim-member-modal__logged[hidden] { display: none; }
.phim-member-modal__avatar { display: block; margin-bottom: 12px; font-size: 54px; }
.phim-member-modal__logged p { color: #abb2c7; }

@media screen and (max-width: 768px) {
  .phim-member-modal { padding: 14px; }
  .phim-member-modal__dialog {
    display: block;
    width: min(100%, 440px);
    min-height: 0;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }
  .phim-member-modal__visual { min-height: 132px; }
  .phim-member-modal__visual::before { width: 220px; height: 220px; top: -70px; }
  .phim-member-modal__visual { background-position: center 72%; }
  .phim-member-modal__brand { left: 24px; bottom: 20px; }
  .phim-member-modal__brand img { max-width: 145px; max-height: 46px; }
  .phim-member-modal__content { padding: 30px 24px 28px; }
  .phim-member-modal__content h2 { font-size: 23px; }
  .phim-member-form__columns { grid-template-columns: 1fr; gap: 0; }
}

/* Keep the header account label legible against its light pill on every state. */
.phim-hybrid-site #header .header-button-1 .button,
.phim-hybrid-site #header .header-button-1 .button:hover,
.phim-hybrid-site #header .header-button-1 .button:focus,
.phim-hybrid-site #header .header-button-1 .button:active {
  color: #181922 !important;
  background-color: #f2f2f4 !important;
}

/* Flatsome colors the nested span on hover, so lock the label and icon too. */
.phim-hybrid-site #header .header-button-1 .button *,
.phim-hybrid-site #header .header-button-1 .button:hover *,
.phim-hybrid-site #header .header-button-1 .button:focus *,
.phim-hybrid-site #header .header-button-1 .button:active *,
.phim-hybrid-site #header .header-button-1 .button::before {
  color: #181922 !important;
}
body:not(.home).page-template-page-transparent-header #header + #main {
  padding-top: 80px;
}

/* Member account menu and pages. */
.phim-hybrid-site #header,
.phim-hybrid-site #header .header-wrapper,
.phim-hybrid-site #header .header-main,
.phim-hybrid-site #header .header-inner {
  transition: none !important;
}
/* Flatsome initially prints the configured "Thành viên" button. The member
   script replaces it with avatar + chevron after DOM ready. Reserve the final
   75px footprint for logged-in users so the navigation never shifts on F5. */
body.logged-in.phim-hybrid-site #header .header-button-1 .button:not(.phim-account-trigger) {
  width: 75px !important;
  min-width: 75px !important;
  max-width: 75px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 3px !important;
  overflow: hidden;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body.logged-in.phim-hybrid-site #header .header-button-1 .button:not(.phim-account-trigger)::before {
  content: "" !important;
  display: block !important;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c9c9c9;
  box-sizing: border-box;
}
.phim-account-menu-host { position:relative; }
.phim-account-menu-host::after { content:""; position:absolute; z-index:1001; top:100%; right:0; width:230px; height:10px; }
.phim-hybrid-site #header .header-button-1 .phim-account-trigger {
  display: flex !important; align-items: center; gap: 9px; min-width: 0; padding: 0 !important;
  color: #fff !important; background: transparent !important; border: 0 !important;
}
.phim-hybrid-site #header .header-button-1 .phim-account-trigger img { width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.phim-hybrid-site #header .header-button-1 .phim-account-trigger .phim-account-trigger__chevron { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-left:1px; color:#fff!important; font-size:12px; line-height:1; transition:transform .2s ease,color .2s ease; }
.phim-hybrid-site #header .phim-account-menu-host:hover .phim-account-trigger__chevron,
.phim-hybrid-site #header .phim-account-menu-host:focus-within .phim-account-trigger__chevron,
.phim-hybrid-site #header .phim-account-menu-host.is-open .phim-account-trigger__chevron { color:#ffd665!important; transform:rotate(180deg); }
.phim-hybrid-site #header .header-button-1 .button.phim-account-trigger {
  min-width: 52px !important; width: auto !important; height: 46px !important; padding: 0 3px !important;
  color: #fff !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
}
.phim-hybrid-site #header .header-button-1 .button.phim-account-trigger::before { display: none !important; content: none !important; }
.phim-hybrid-site #header .header-button-1 .button.phim-account-trigger:hover,
.phim-hybrid-site #header .header-button-1 .button.phim-account-trigger:focus { color: #fff !important; background: transparent !important; }
.phim-hybrid-site #header .phim-account-trigger__name { display: none; }
.phim-account-menu {
  position: absolute; z-index: 1002; top: calc(100% + 10px); right: 0; width: 230px;
  padding: 18px 0 0; overflow: hidden; color: #fff; background: #242b47;
  border: 1px solid rgba(255,255,255,.04); border-radius: 14px; box-shadow: 0 20px 55px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.phim-account-menu-host:hover .phim-account-menu,
.phim-account-menu-host:focus-within .phim-account-menu,
.phim-account-menu-host.is-open .phim-account-menu { opacity:1; visibility:visible; transform:none; }
.phim-account-menu__name { padding: 0 24px 16px; font-size: 16px; font-weight: 700; }
.phim-account-menu em, .phim-account__identity em { color: #ffd665; font-style: normal; font-size: 22px; }
.phim-account-menu a, .phim-account-menu button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; margin: 0; padding: 0 24px;
  color: #fff !important; font-size: 16px; font-weight: 600; text-align: left; text-transform: none;
  border: 0; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0; background: transparent; box-shadow: none;
}
.phim-account-menu a:hover, .phim-account-menu button:hover { color: #ffd665 !important; background: rgba(255,255,255,.04); }

body.page-parent.phim-hybrid-site #main, body.page-child.phim-hybrid-site #main, body.page-id-0.phim-hybrid-site #main { background: var(--phim-site-bg); }
.phim-account { color: #f5f5f7; }
.phim-account__sidebar { display: block; }
.phim-account__sidebar > .col-inner { display: flex; flex-direction: column; min-height: 680px; padding: 34px 30px; background: #23262e; border-radius: 14px; }
.phim-account__sidebar h2 { margin: 0 0 26px; color: #fff; font-size: 22px; }
.phim-account__sidebar nav a { display: flex; align-items: center; gap: 18px; min-height: 68px; color: #fff; font-size: 16px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.07); }
.phim-fa { flex: 0 0 18px; width: 18px; height: 18px; fill: currentColor; }
.phim-account__sidebar nav a:hover, .phim-account__sidebar nav a.is-active { color: #ffd665; }
.phim-account__identity { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-top: auto; }
.phim-account__identity img { width: 68px; height: 68px; margin-bottom: 14px; object-fit: cover; border: 2px solid #fff; border-radius: 50%; }
.phim-account__identity strong { color: #aaaeb9; font-size: 15px; }
.phim-account__identity span { color: #aaaeb9; font-size: 14px; }
.phim-account__identity button { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 0; color: #fff; font-size: 15px; font-weight: 700; text-transform: none; border: 0; background: transparent; box-shadow: none; }
.phim-account__content { min-width: 0; padding: 20px 0; }
.phim-account__content header h1 { margin: 0 0 6px; color: #fff; font-size: 25px; }
.phim-account__content header p { margin: 0; color: #9296a2; }
.phim-profile-form { display: grid; grid-template-columns: minmax(0,560px) 180px; gap: 56px; margin-top: 44px; }
.phim-profile-form__fields > label { display: block; margin-bottom: 22px; color: #aeb2bc; font-size: 14px; }
.phim-profile-form input[type='email'], .phim-profile-form input[type='text'], .phim-profile-form input:not([type]) { width: 100%; height: 52px; margin-top: 10px; padding: 0 16px; color: #fff; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: #191c25; box-shadow: none; }
.phim-profile-form input:focus { border-color: #ffd665; box-shadow: 0 0 0 3px rgba(255,214,101,.12); }
.phim-profile-form fieldset { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; margin:4px 0 34px; padding:0; border:0; }
.phim-profile-form legend { flex:0 0 100%; width:100%; margin-bottom:2px; color:#aeb2bc; font-size:14px; }
.phim-profile-form fieldset label { display:inline-flex; align-items:center; gap:8px; margin:0; color:#aeb2bc; white-space:nowrap; }
.phim-profile-form fieldset input[type='radio'] { flex:0 0 auto; margin:0; }
.phim-profile-form__fields > button { min-width: 130px; height: 48px; margin: 0; color: #1a1b22; font-weight: 800; text-transform: none; border: 0; border-radius: 7px; background: #ffd665; }
.phim-profile-form__password { margin-top: 46px; color: #989ca7; }
.phim-profile-form__password a { color: #ffd665; font-weight: 700; }
.phim-profile-form__avatar { display:flex; flex-direction:column; align-items:stretch; gap:0; }
.phim-profile-form__avatar img { align-self:center; width:128px; height:128px; margin-bottom:18px; object-fit:cover; border:3px solid #fff; border-radius:50%; }
.phim-profile-form__avatar label { position:relative; display:flex; align-items:center; justify-content:flex-start; gap:12px; box-sizing:border-box; width:100%; min-height:52px; margin:0; padding:0 14px; color:#fff; font-weight:700; cursor:pointer; border-top:1px solid rgba(255,255,255,.08); }
.phim-profile-form__avatar input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.phim-profile-form__avatar span { display:flex; align-items:center; justify-content:flex-start; gap:12px; box-sizing:border-box; width:100%; min-height:52px; padding:0 14px; color:#fff; text-align:left; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
.phim-profile-form__avatar label .phim-fa, .phim-profile-form__avatar span .phim-fa { flex:0 0 20px; width:20px; height:20px; }
.phim-account__notice { margin-top: 20px; padding: 12px 16px; color: #bdf5cf; background: rgba(45,180,95,.13); border-radius: 8px; }
.phim-account-heading { display: flex; align-items: center; gap: 20px; }
.phim-account-heading button { height: 38px; margin: 0; padding: 0 16px; color: #fff; text-transform: none; border: 1px solid #797d88; border-radius: 99px; background: transparent; }
.phim-list-card { display: grid; grid-template-columns: 1fr auto; gap: 22px; width: 420px; margin: 44px 0 0; padding: 24px 28px; color: #fff; text-align: left; text-transform: none; border: 3px solid #ffd665; border-radius: 18px; background: transparent; }
.phim-list-card strong { grid-column: 1/-1; font-size: 19px; }.phim-list-card span { color: #aaaeb9; }.phim-list-card u { color: #aaaeb9; }
.phim-account-empty { margin-top: 60px; color: #aaaeb9; font-size: 16px; text-align: center; }
.phim-account-movies { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; margin-top: 36px; }
.phim-account-movies article { position: relative; }.phim-account-movies article img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; }.phim-account-movies h3 { margin: 10px 0 3px; color: #fff; font-size: 15px; }.phim-account-movies p { margin: 0; color: #9398a6; font-size: 13px; }
.phim-favorite-remove { position: absolute; z-index: 4; top: 10px; right: 10px; display: grid; place-items: center; box-sizing: border-box; width: 34px!important; min-width: 34px!important; max-width: 34px; height: 34px!important; min-height: 34px!important; max-height: 34px; margin: 0!important; padding: 0!important; color: #fff; font: 600 21px/1 Arial,sans-serif; border: 1px solid rgba(255,255,255,.28); border-radius: 50%!important; background: rgba(12,15,25,.72); box-shadow: 0 5px 16px rgba(0,0,0,.3); backdrop-filter: blur(8px); transition: transform .2s ease,background-color .2s ease,border-color .2s ease; }
.phim-favorite-remove:hover, .phim-favorite-remove:focus-visible { color: #fff; border-color: rgba(255,255,255,.65); background: #d44752; transform: scale(1.08); }
[data-favorite-toggle].is-active .icon-heart, .gwd-movie-hover__actions [data-favorite-toggle].is-active { color: #ffd665; }
.phim-favorite-toasts { position: fixed; z-index: 100000; right: 22px; bottom: 22px; display: flex; flex-direction: column-reverse; gap: 10px; width: min(360px,calc(100vw - 32px)); pointer-events: none; }
.phim-favorite-toast { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; box-sizing: border-box; padding: 13px 15px; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(28,31,43,.96); box-shadow: 0 18px 48px rgba(0,0,0,.42); opacity: 0; transform: translate3d(18px,10px,0); transition: opacity .24s ease,transform .24s ease; backdrop-filter: blur(14px); }
.phim-favorite-toast.is-visible { opacity: 1; transform: translate3d(0,0,0); }
.phim-favorite-toast__icon { display: grid; place-items: center; width: 42px; height: 42px; color: #1a1d28; font-size: 20px; border-radius: 50%; background: #ffd665; }
.phim-favorite-toast.is-removed .phim-favorite-toast__icon { color: #fff; background: #555b6d; }
.phim-favorite-toast strong, .phim-favorite-toast small { display: block; line-height: 1.35; }
.phim-favorite-toast strong { color: #fff; font-size: 14px; }
.phim-favorite-toast small { margin-top: 3px; color: #aeb3c1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

