.mex52-movie-logo {
  width: 350px !important;
  height: 88px !important;
  max-width: 38vw !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.mex52-home-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .mex52-branded-header {
    position: relative !important;
    padding-top: 82px !important;
  }

  .mex52-branded-header .mex52-movie-logo-host {
    display: block !important;
    position: absolute !important;
    top: 6px !important;
    left: 50% !important;
    width: min(88vw, 350px) !important;
    height: 72px !important;
    transform: translateX(-50%) !important;
  }

  .mex52-movie-logo {
    position: absolute !important;
    top: 6px !important;
    left: 50% !important;
    width: min(88vw, 350px) !important;
    height: 72px !important;
    max-width: none !important;
    object-position: center !important;
    transform: translateX(-50%) !important;
  }
}

.mex52-header-action {
  height: 32px;
  min-width: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.mex52-header-action:hover {
  background: var(--muted);
  border-color: var(--border);
}

.mex52-header-action:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.mex52-header-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.mex52-action-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.mex52-action-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mex52-action-modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(0 0 0 / 46%);
}

.mex52-action-dialog {
  position: relative;
  width: min(390px, 100%);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 18px 50px rgb(0 0 0 / 24%);
}

.mex52-action-dialog h2 {
  margin: 12px 0 14px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
}

.mex52-action-dialog ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.9;
}

.mex52-dialog-icon {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
  color: var(--primary);
}

.mex52-dialog-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mex52-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mex52-modal-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.mex52-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.mex52-dialog-actions button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mex52-copy-link {
  background: var(--background);
  color: var(--foreground);
}

.mex52-dialog-done {
  background: var(--primary);
  color: var(--primary-foreground);
}

.mex52-share-description {
  margin: -4px 0 14px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

.mex52-share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.mex52-share-link-row input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--muted);
  color: var(--foreground);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.mex52-copy-primary {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
}

.mex52-share-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mex52-share-platform {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.mex52-share-platform:hover {
  background: var(--muted);
}

.mex52-share-platform span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.mex52-share-whatsapp span {
  background: #1f9d55;
}

.mex52-share-facebook span {
  background: #1877f2;
}

.mex52-share-tip {
  margin: 14px 0 0;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  [data-mex52-mobile-music],
  [data-mex52-mobile-main] {
    min-width: 0;
  }

  [data-mex52-mobile-music] svg,
  [data-mex52-mobile-main] svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
  }

  .mex52-home-actions {
    gap: 2px;
  }

  .mex52-header-action {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .mex52-action-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .mex52-share-link-row {
    grid-template-columns: 1fr;
  }

  .mex52-copy-primary {
    width: 100%;
  }
}

@media (max-width: 359px) {
  .mex52-header-action {
    width: 30px;
    min-width: 30px;
  }
}
